1
0
Fork 0

fix(docs): Change Path.SetText() docs to use correct name

This commit is contained in:
Benjamin F 2022-12-07 21:03:29 -08:00
parent 3a15f7a730
commit 2bddb66d87

View file

@ -2,7 +2,7 @@
title: Path.setText()
---
The `Path.addText()` method set text on the path.
The `Path.setText()` method sets text on the path.
## Signature
@ -25,7 +25,7 @@ The second argument will optionally be used to set the CSS class for the text.
paths.line = new Path()
.move(points.from)
.line(points.to)
.addText('FreeSewing rocks')
.setText('FreeSewing rocks')
return part
}