ass_drawing_to_svg
Export ASS subtitle vector drawings to standalone SVG files. Set padding to grow the viewBox and prevent strokes near edges from clipping.
Instructions
Export a drawing as a standalone .svg file in workspace.output_dir.
The path data is the drawing's absolute SVG equivalent (scale space units,
one SVG user unit per drawing unit). padding grows the viewBox on every
side so strokes near the edge are not clipped.
path is a filename (resolved inside workspace.output_dir) or an
absolute path; the default is drawing.svg / drawing_<index>.svg and
is overwritten if it exists.
Returns {path, d, view_box, width, height, bbox, source, doc_id, index}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| text | No | ||
| index | No | ||
| doc_id | No | ||
| padding | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||