How to use the @antv/x6.FontStyle.isBold 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
toggleBold = () => {
    this.executeCommand('bold')
    const current = (this.state.fontStyle as number) || 0
    const fontStyle = FontStyle.isBold(this.state.fontStyle)
      ? current - FontStyle.bold
      : current + FontStyle.bold
    this.setState({ fontStyle })
  }
github antvis / x6 / examples / x6-example-drawio / src / pages / graph / format-cell.tsx View on Github external
'Comic Sans MS',
                'Courier New',
                'Georgia',
                'Lucida Console',
                'Tahoma',
              ].map(name => (
                
                  <div name="" style="{{">{name}</div>
                
              ))}
            
          
          <div>
            <button>
            </button><button>
            </button></div>