fix(docs): Change Path.SetText() docs to use correct name
This commit is contained in:
parent
3a15f7a730
commit
2bddb66d87
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue