jointjs
Version:
JavaScript diagramming library
13 lines (12 loc) • 798 B
HTML
<p>
Valid only for <code data-lang="svg"><text></code> subelements.
<code>textPath</code> can be either a string or an object.
</p>
<p>
If it is a string, it specifies a path the text will be rendered along.
</p>
<p>
If it is an object, then it can contain a <code>d</code> property that specifies the path the text will be rendered along.
Alternatively use <code>selector</code> property, which is useful for targeting a specific SVGPathElement within the shape. The option expects a string selector (CSS or JSONMarkup selector).
Use <code>startOffset</code> property to control the text position on the path (e.g. <code>'50%'</code>, <code>20</code>). See the <code>Vectorizer.text</code> <a href="vectorizer.html#V.prototype.text">method</a> for more details.
</p>