Constructor
new Typst(source)
Creates a new Typst object from a source string.
Parameters:
Name | Type | Description |
---|---|---|
source | string | The source of the Typst object. |
- Source
Classes
Members
source
Returns the source of the Typst object.
- Source
Methods
to_svg(font_facesopt) → {string}
Renders the Typst object to an SVG string.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
font_faces | Array.<FontFace> | | <optional> | The font faces to use when rendering the Typst object. |
- Source
Returns:
The SVG string.
- Type:
- string
vector_object_builder(font_facesopt) → {VectorObjectBuilder}
Renders the Typst object to a VectorObjectBuilder.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
font_faces | Array.<FontFace> | | <optional> | The FontFaces to use when rendering the Typst object, if any. |
- Source
Returns:
A VectorObjectBuilder representing the typesetting object.
- Type:
- VectorObjectBuilder