749 B
749 B
title |
---|
Point.setText() |
Sets text on a Point. Under the hood, this will call Point.attr()
as text
is set via attributes. Refer to Adding text for
more details.
Point.setText() signature
Point point.setText(
string text,
string className
)
Point.setText() example
Examples of Point.setText(), compare this to [Point.setText](/reference/api/point/settext)({ Point, points, part }) => {
points.anchor = new Point(100, 25)
.setText('supportFreesewingBecomeAPatron', 'center')
.setText('please?')
return part
}
Remember to use translation keys, not text