How to use the @antv/x6.FontStyle.isItalic function in @antv/x6

To help you get started, we’ve selected a few @antv/x6 examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github antvis / x6 / examples / x6-example-drawio / src / pages / graph / format-cell.tsx View on Github external
toggleItalic = () => {
    this.executeCommand('italic')
    const current = (this.state.fontStyle as number) || 0
    const fontStyle = FontStyle.isItalic(this.state.fontStyle)
      ? current - FontStyle.italic
      : current + FontStyle.italic
    this.setState({ fontStyle })
  }
github antvis / x6 / examples / x6-example-drawio / src / pages / graph / format-cell.tsx View on Github external
<div name="" style="{{">{name}</div>
                
              ))}
            
          
          <div>
            <button>
            </button><button>
            </button><button style="{{">
            </button></div>