1
0
Fork 0
freesewing/markdown/dev/reference/api/point/settext/en.md
2022-09-25 10:55:37 +02:00

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