Documentation / @ripl/svg / SVGText
Class: SVGText ​
Defined in: svg/src/index.ts:370
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:374
Parameters ​
| Parameter | Type |
|---|---|
options | TextOptions |
Returns ​
SVGText
Overrides ​
Properties ​
| Property | Modifier | Type | Inherited from | Defined in |
|---|---|---|---|---|
content | public | string | ContextText.content | core/src/context/text.ts:17 |
definition | public | SVGContextElementDefinition | - | svg/src/index.ts:372 |
id | readonly | string | SVGContextElement.id ContextText.id | core/src/context/text.ts:13 |
maxWidth? | public | number | ContextText.maxWidth | core/src/context/text.ts:18 |
pathData? | public | string | ContextText.pathData | core/src/context/text.ts:19 |
startOffset? | public | number | ContextText.startOffset | core/src/context/text.ts:20 |
x | public | number | ContextText.x | core/src/context/text.ts:15 |
y | public | number | ContextText.y | core/src/context/text.ts:16 |