ComfyUI Node
SVG Element Styler
A ComfyUI node in 💎TOSVG/XMLParser with 7 inputs and 1 output.
SVG Element Styler
- STRING
◄svg_string—►
â—„selectorpathâ–º
â—„style_methodinline_styleâ–º
â—„style_propertiesfill: red; stroke: black; stroke-width: 2;â–º
â—„class_namehighlightedâ–º
â—„target_index-1â–º
â—„css_rules.highlighted { fill: red; stroke: black; }
#special { opacity: 0.5; }â–º
Category💎TOSVG/XMLParser
Inputs (7)
| Name | Type | Default | Description |
|---|---|---|---|
| svg_string | STRING | — | |
| selector | STRING | path | — |
| style_method | COMBO | inline_style | 3 options: inline_style, class_style, add_stylesheet |
| style_propertiesopt | STRING | fill: red; stroke: black; stroke-width: 2; | — |
| class_nameopt | STRING | highlighted | — |
| target_indexopt | INT | -1-1–100 | -1 to affect all matching elements |
| css_rulesopt | STRING | .highlighted { fill: red; stroke: black; } #special { opacity: 0.5; } | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| STRING | STRING | — |