Documentation / @ripl/svg / SVGText
Class: SVGText
Defined in: svg/src/index.ts:427
SVG-specific text element mapping position and content to SVG <text> attributes.
Extends
Implements
Constructors
Constructor
new SVGText(
options):SVGText
Defined in: svg/src/index.ts:432
Parameters
| Parameter | Type |
|---|---|
options | TextOptions |
Returns
SVGText
Overrides
Properties
| Property | Modifier | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|---|
content | public | string | The text string to render. | ContextText.content | core/src/context/text.ts:21 |
definition | public | SVGContextElementDefinition | The rendering definition describing this text's SVG <text> node. | - | svg/src/index.ts:430 |
id | readonly | string | Unique identifier for this text element. | SVGContextElement.id ContextText.id | core/src/context/text.ts:14 |
maxWidth? | public | number | Maximum width, in pixels, the text is scaled to fit within. | ContextText.maxWidth | core/src/context/text.ts:23 |
pathData? | public | string | SVG path data along which the text is laid out, for text-on-a-path. | ContextText.pathData | core/src/context/text.ts:25 |
startOffset? | public | number | Offset along the text path at which rendering begins. | ContextText.startOffset | core/src/context/text.ts:27 |
x | public | number | X coordinate of the text's anchor position. | ContextText.x | core/src/context/text.ts:17 |
y | public | number | Y coordinate of the text's anchor position. | ContextText.y | core/src/context/text.ts:19 |