Nodes/svg-suite/SVG Element Styler
ComfyUI Node

SVG Element Styler

A ComfyUI node in 💎TOSVG/XMLParser with 7 inputs and 1 output.

By MushroomFleet·Created about a year ago·Updated 4 months ago· 9
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)

    NameTypeDefaultDescription
    svg_stringSTRING—
    selectorSTRINGpath—
    style_methodCOMBOinline_style3 options: inline_style, class_style, add_stylesheet
    style_propertiesoptSTRINGfill: red; stroke: black; stroke-width: 2;—
    class_nameoptSTRINGhighlighted—
    target_indexoptINT-1-1–100-1 to affect all matching elements
    css_rulesoptSTRING.highlighted { fill: red; stroke: black; } #special { opacity: 0.5; }—

    Outputs (1)

    NameTypeDescription
    STRINGSTRING—