How to use the @antv/x6.util.isValidColor 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
)}
          
          <div>
            
              Background Color
            
            {util.isValidColor(this.state.labelBackgroundColor) &amp;&amp; (
              
            )}
          </div>
        
        <div>
          <div>
            <div style="{{">Label Position</div>
            <select value="{this.state.labelPosition}" style="{{"></select></div></div>
github antvis / x6 / examples / x6-example-drawio / src / pages / graph / format-cell.tsx View on Github external
)}
          
          <div>
            
              Gradient
            
            {util.isValidColor(this.state.gradient) &amp;&amp; (
              
            )}
          </div>
        
        <div>
          <div>
            
              Stroke</div></div>
github antvis / x6 / examples / x6-example-drawio / src / pages / graph / format-cell.tsx View on Github external
fill="currentColor"
                  viewBox="0 0 1024 1024"
                  xmlns="http://www.w3.org/2000/svg"
                &gt;
github antvis / x6 / examples / x6-example-drawio / src / pages / graph / format-cell.tsx View on Github external
renderStyleTab() {
    const hasStroke =
      (this.state.strokeWidth != null &amp;&amp; this.state.strokeWidth &gt; 0) ||
      util.isValidColor(this.state.strokeColor)

    return (
      <div>
        <div>
          <div>
            
              Fill
            
            {util.isValidColor(this.state.fill) &amp;&amp; (
              
            )}
          </div>
          <div>
            </div></div></div>
github antvis / x6 / examples / x6-example-drawio / src / pages / graph / format-cell.tsx View on Github external
&gt;
              Fill
            
            {util.isValidColor(this.state.fill) &amp;&amp; (
              
            )}
          
          <div>
            
              Gradient
            
            {util.isValidColor(this.state.gradient) &amp;&amp; (
              
            )}
          </div>
        
        <div>
          <div>
            </div></div>
github antvis / x6 / examples / x6-example-drawio / src / pages / graph / format-cell.tsx View on Github external
const hasStroke =
      (this.state.strokeWidth != null &amp;&amp; this.state.strokeWidth &gt; 0) ||
      util.isValidColor(this.state.strokeColor)

    return (
      <div>
        <div>
          <div>
            
              Fill
            
            {util.isValidColor(this.state.fill) &amp;&amp; (
              
            )}
          </div>
          <div>
            
              Gradient
            
            {util.isValidColor(this.state.gradient) &amp;&amp; (</div></div></div>
github antvis / x6 / examples / x6-example-drawio / src / pages / graph / format-cell.tsx View on Github external
)}
          
          <div>
            
              Border Color
            
            {util.isValidColor(this.state.labelBorderColor) &amp;&amp; (
              
            )}
          </div>
          <div>
            
              Background Color
            
            {util.isValidColor(this.state.labelBackgroundColor) &amp;&amp; (</div>
github antvis / x6 / examples / x6-example-drawio / src / pages / graph / format-cell.tsx View on Github external
renderStyleTab() {
    const hasStroke =
      (this.state.strokeWidth != null &amp;&amp; this.state.strokeWidth &gt; 0) ||
      util.isValidColor(this.state.strokeColor)

    return (
      <div>
        <div>
          <div>
            
              Fill
            
            {util.isValidColor(this.state.fill) &amp;&amp; (
              </div></div></div>