Svg

NodeDescriptionInputsOutputs
arc_toAppends 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 Numberd Text
circleCreates an SVG element.cx Number, cy Number, r Number, fill Text, stroke Text, stroke_width Numbersvg Text
close_pathAppends a Close Path (Z) command to SVG path data.d Textd Text
composeCombines two SVG fragments into one.a Text, b Textsvg Text
curve_toAppends a cubic Bezier Curve (C) command to SVG path data.d Text, cx1 Number, cy1 Number, cx2 Number, cy2 Number, x Number, y Numberd Text
documentWraps SVG content in a root document element.content Text, width Number, height Number, viewbox Text, background Textsvg Text
ellipseCreates an SVG element.cx Number, cy Number, rx Number, ry Number, fill Text, stroke Text, stroke_width Numbersvg Text
groupWraps SVG content in a group with an optional transform.content Text, transform Textsvg Text
lineCreates an SVG element.x1 Number, y1 Number, x2 Number, y2 Number, stroke Text, stroke_width Numbersvg Text
line_toAppends a Line To (L) command to SVG path data.d Text, x Number, y Numberd Text
move_toAppends a Move To (M) command to SVG path data.d Text, x Number, y Numberd Text
pathWraps path data in an SVG element with styling.d Text, fill Text, stroke Text, stroke_width Number, opacity Numbersvg Text
quad_toAppends a quadratic Bezier (Q) command to SVG path data.d Text, cx Number, cy Number, x Number, y Numberd Text
rectCreates an SVG element.x Number, y Number, width Number, height Number, rx Number, ry Number, fill Text, stroke Text, stroke_width Numbersvg Text
renderRenders an SVG document to a raster image via the frontend webview.svg Text, width Number, height Numberimage Image
set_attributeSets or replaces an attribute on SVG elements via regex.svg Text, attribute Text, value Textsvg Text
textCreates an SVG element.text Text, x Number, y Number, font_size Number, font_family Text, fill Text, anchor Textsvg Text
transformWraps SVG content in a with translate, rotate, and scale transforms.content Text, translate_x Number, translate_y Number, rotate Number, rotate_cx Number, rotate_cy Number, scale_x Number, scale_y Numbersvg Text

arc_to

Appends an Arc To (A) command to SVG path data.

Inputs:

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 = 75M 20 75 A 80 30 0 0 1 180 75

See also: move_to, curve_to, path

circle

Creates an SVG element.

Inputs:

Output: svg (Text) — SVG circle element

See also: ellipse, rect

close_path

Appends a Close Path (Z) command to SVG path data.

Inputs:

Output: d (Text) — path data with Z appended

See also: move_to, path

compose

Combines two SVG fragments into one.

Inputs:

Output: svg (Text) — combined SVG fragments

See also: group, document

curve_to

Appends a cubic Bezier Curve (C) command to SVG path data.

Inputs:

Output: d (Text) — path data with C command appended

See also: quad_to, arc_to, path

document

Wraps SVG content in a root document element.

Inputs:

Output: svg (Text) — complete SVG document

See also: compose, render

ellipse

Creates an SVG element.

Inputs:

Output: svg (Text) — SVG ellipse element

See also: circle, rect

group

Wraps SVG content in a group with an optional transform.

Inputs:

Output: svg (Text) — grouped SVG elements

See also: transform, compose

line

Creates an SVG element.

Inputs:

Output: svg (Text) — SVG line element

See also: path, rect

line_to

Appends a Line To (L) command to SVG path data.

Inputs:

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:

Output: d (Text) — path data with M command appended

Example: x = 20, y = 75M 20 75

See also: line_to, arc_to, path

path

Wraps path data in an SVG element with styling.

Inputs:

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:

Output: d (Text) — path data with Q command appended

See also: curve_to, arc_to, path

rect

Creates an SVG element.

Inputs:

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:

Output: image (Image) — rendered raster image

See also: document, drawing/html

set_attribute

Sets or replaces an attribute on SVG elements via regex.

Inputs:

Output: svg (Text) — SVG content with attribute updated

See also: path, group

text

Creates an SVG element.

Inputs:

Output: svg (Text) — SVG text element

See also: path, group

transform

Wraps SVG content in a with translate, rotate, and scale transforms.

Inputs:

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>

See also: group, compose