()
| 107 | } |
| 108 | |
| 109 | getStyleContent(): string { |
| 110 | const { style } = this.options; |
| 111 | const { id } = this.state; |
| 112 | const styleText = typeof style === 'function' ? style(id) : ''; |
| 113 | return [this.options.embedGlobalCSS && css, styleText] |
| 114 | .filter(Boolean) |
| 115 | .join('\n'); |
| 116 | } |
| 117 | |
| 118 | updateStyle(): void { |
| 119 | this.svg.attr( |