1
0
Fork 0

Merge pull request #3179 from BenJamesBen/settext-docs-fix

fix(docs): Change Path.SetText() docs to use correct name
This commit is contained in:
Joost De Cock 2022-12-09 08:03:36 +01:00 committed by GitHub
commit 9ac0ab59ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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
}