Svg
| Node | Description | Inputs | Outputs |
|---|---|---|---|
| arc_to | Appends an Arc To (A) command to SVG path data. | d Text, rx Number, ry Number, rotation Number, large_arc Boolean, sweep Boolean, x Number, y Number | d Text |
| circle | Creates an SVG | cx Number, cy Number, r Number, fill Text, stroke Text, stroke_width Number | svg Text |
| close_path | Appends a Close Path (Z) command to SVG path data. | d Text | d Text |
| compose | Combines two SVG fragments into one. | a Text, b Text | svg Text |
| curve_to | Appends a cubic Bezier Curve (C) command to SVG path data. | d Text, cx1 Number, cy1 Number, cx2 Number, cy2 Number, x Number, y Number | d Text |
| document | Wraps SVG content in a root | content Text, width Number, height Number, viewbox Text, background Text | svg Text |
| ellipse | Creates an SVG | cx Number, cy Number, rx Number, ry Number, fill Text, stroke Text, stroke_width Number | svg Text |
| group | Wraps SVG content in a | content Text, transform Text | svg Text |
| line | Creates an SVG | x1 Number, y1 Number, x2 Number, y2 Number, stroke Text, stroke_width Number | svg Text |
| line_to | Appends a Line To (L) command to SVG path data. | d Text, x Number, y Number | d Text |
| move_to | Appends a Move To (M) command to SVG path data. | d Text, x Number, y Number | d Text |
| path | Wraps path data in an SVG | d Text, fill Text, stroke Text, stroke_width Number, opacity Number | svg Text |
| quad_to | Appends a quadratic Bezier (Q) command to SVG path data. | d Text, cx Number, cy Number, x Number, y Number | d Text |
| rect | Creates an SVG | x Number, y Number, width Number, height Number, rx Number, ry Number, fill Text, stroke Text, stroke_width Number | svg Text |
| render | Renders an SVG document to a raster image via the frontend webview. | svg Text, width Number, height Number | image Image |
| set_attribute | Sets or replaces an attribute on SVG elements via regex. | svg Text, attribute Text, value Text | svg Text |
| text | Creates an SVG | text Text, x Number, y Number, font_size Number, font_family Text, fill Text, anchor Text | svg Text |
| transform | Wraps SVG content in a | content Text, translate_x Number, translate_y Number, rotate Number, rotate_cx Number, rotate_cy Number, scale_x Number, scale_y Number | svg Text |
arc_to
Appends an Arc To (A) command to SVG path data.
Inputs:
d(Text) — path data so farrx(Number) — x radius of the ellipsery(Number) — y radius of the ellipserotation(Number) — x-axis rotation in degreeslarge_arc(Boolean) — use the large arc sweepsweep(Boolean) — arc drawn in positive-angle directionx(Number) — target x coordinatey(Number) — target y coordinate
Output: d (Text) — path data with A command appended
Example: d = M 20 75, large_arc = false, rotation = 0, rx = 80, ry = 30, sweep = true, x = 180, y = 75 → M 20 75 A 80 30 0 0 1 180 75
See also: move_to, curve_to, path
circle
Creates an SVG
Inputs:
cx(Number) — center xcy(Number) — center yr(Number) — radiusfill(Text) — fill colorstroke(Text) — stroke colorstroke_width(Number) — stroke width
Output: svg (Text) — SVG circle element
close_path
Appends a Close Path (Z) command to SVG path data.
Inputs:
d(Text) — path data so far
Output: d (Text) — path data with Z appended
compose
Combines two SVG fragments into one.
Inputs:
a(Text) — first SVG fragmentb(Text) — second SVG fragment
Output: svg (Text) — combined SVG fragments
curve_to
Appends a cubic Bezier Curve (C) command to SVG path data.
Inputs:
d(Text) — path data so farcx1(Number) — first control point xcy1(Number) — first control point ycx2(Number) — second control point xcy2(Number) — second control point yx(Number) — target x coordinatey(Number) — target y coordinate
Output: d (Text) — path data with C command appended
See also: quad_to, arc_to, path
document
Wraps SVG content in a root
Inputs:
content(Text) — SVG elements to wrapwidth(Number) — document widthheight(Number) — document heightviewbox(Text) — custom viewBox — blank derives from width/heightbackground(Text) — background color — blank for transparent
Output: svg (Text) — complete SVG document
ellipse
Creates an SVG
Inputs:
cx(Number) — center xcy(Number) — center yrx(Number) — x radiusry(Number) — y radiusfill(Text) — fill colorstroke(Text) — stroke colorstroke_width(Number) — stroke width
Output: svg (Text) — SVG ellipse element
group
Wraps SVG content in a
Inputs:
content(Text) — SVG elements to grouptransform(Text) — SVG transform attribute value
Output: svg (Text) — grouped SVG elements
line
Creates an SVG
Inputs:
x1(Number) — start xy1(Number) — start yx2(Number) — end xy2(Number) — end ystroke(Text) — stroke colorstroke_width(Number) — stroke width
Output: svg (Text) — SVG line element
line_to
Appends a Line To (L) command to SVG path data.
Inputs:
d(Text) — path data so farx(Number) — target x coordinatey(Number) — target y coordinate
Output: d (Text) — path data with L command appended
See also: move_to, arc_to, path
move_to
Appends a Move To (M) command to SVG path data.
Inputs:
d(Text) — path data so farx(Number) — target x coordinatey(Number) — target y coordinate
Output: d (Text) — path data with M command appended
Example: x = 20, y = 75 → M 20 75
See also: line_to, arc_to, path
path
Wraps path data in an SVG
Inputs:
d(Text) — SVG path data stringfill(Text) — fill colorstroke(Text) — stroke colorstroke_width(Number) — stroke widthopacity(Number) — element opacity
Output: svg (Text) — SVG path element
See also: move_to, arc_to, group
quad_to
Appends a quadratic Bezier (Q) command to SVG path data.
Inputs:
d(Text) — path data so farcx(Number) — control point xcy(Number) — control point yx(Number) — target x coordinatey(Number) — target y coordinate
Output: d (Text) — path data with Q command appended
See also: curve_to, arc_to, path
rect
Creates an SVG
Inputs:
x(Number) — left xy(Number) — top ywidth(Number) — rectangle widthheight(Number) — rectangle heightrx(Number) — corner radius xry(Number) — corner radius yfill(Text) — fill colorstroke(Text) — stroke colorstroke_width(Number) — stroke width
Output: svg (Text) — SVG rect element
See also: circle, ellipse, path
render
Renders an SVG document to a raster image via the frontend webview.
Inputs:
svg(Text) — SVG document or fragment to renderwidth(Number) — output width — 0 uses SVG intrinsic sizeheight(Number) — output height — 0 uses SVG intrinsic size
Output: image (Image) — rendered raster image
See also: document, drawing/html
set_attribute
Sets or replaces an attribute on SVG elements via regex.
Inputs:
svg(Text) — SVG content to modifyattribute(Text) — attribute name to setvalue(Text) — new attribute value
Output: svg (Text) — SVG content with attribute updated
text
Creates an SVG
Inputs:
text(Text) — text contentx(Number) — x positiony(Number) — y position (baseline)font_size(Number) — font size in pxfont_family(Text) — font familyfill(Text) — text coloranchor(Text) — text-anchor: start, middle, or end
Output: svg (Text) — SVG text element
transform
Wraps SVG content in a
Inputs:
content(Text) — SVG elements to transformtranslate_x(Number) — x translationtranslate_y(Number) — y translationrotate(Number) — rotation in degreesrotate_cx(Number) — rotation center xrotate_cy(Number) — rotation center yscale_x(Number) — x scale factorscale_y(Number) — y scale factor
Output: svg (Text) — transformed SVG elements
Example: content = <circle cx="50" cy="50" r="10"/>, rotate = 45, rotate_cx = 50, rotate_cy = 50 → <g transform="rotate(45, 50, 50)"><circle cx="50" cy="50" r="10"/></g>