Merge pull request #5990 from BenJamesBen/path-doc-update
fix(markdown): Path doc updates for optional parameters
This commit is contained in:
commit
2d43e0408e
5 changed files with 5 additions and 5 deletions
|
@ -7,7 +7,7 @@ The `Path.addText()` method adds text to the path.
|
||||||
## Signature
|
## Signature
|
||||||
|
|
||||||
```js
|
```js
|
||||||
Path path.addText(string text, string className)
|
Path path.addText(string text, string className = '')
|
||||||
```
|
```
|
||||||
|
|
||||||
The second argument will optionally be used to set the CSS class for the text.
|
The second argument will optionally be used to set the CSS class for the text.
|
||||||
|
|
|
@ -5,7 +5,7 @@ title: Path.attr()
|
||||||
This `Path.attr()` method can be used to add attributes to the Path object.
|
This `Path.attr()` method can be used to add attributes to the Path object.
|
||||||
It calls `this.attributes.add()` under the hood, and returns the Path object.
|
It calls `this.attributes.add()` under the hood, and returns the Path object.
|
||||||
|
|
||||||
If the third parameter is set to `true` it will call `this.attributes.set()`
|
If the optional third parameter is set to `true` it will call `this.attributes.set()`
|
||||||
instead, thereby overwriting the value of the attribute.
|
instead, thereby overwriting the value of the attribute.
|
||||||
|
|
||||||
## Signature
|
## Signature
|
||||||
|
|
|
@ -7,7 +7,7 @@ The `Path.setText()` method sets text on the path.
|
||||||
## Signature
|
## Signature
|
||||||
|
|
||||||
```js
|
```js
|
||||||
Path path.setText(string text, string className)
|
Path path.setText(string text, string className = '')
|
||||||
```
|
```
|
||||||
|
|
||||||
The second argument will optionally be used to set the CSS class for the text.
|
The second argument will optionally be used to set the CSS class for the text.
|
||||||
|
|
|
@ -8,7 +8,7 @@ along the path.
|
||||||
## Signature
|
## Signature
|
||||||
|
|
||||||
```js
|
```js
|
||||||
Point path.shiftAlong(float distance[, int stepsPerMm=10])
|
Point path.shiftAlong(float distance, int stepsPerMm = 10)
|
||||||
```
|
```
|
||||||
|
|
||||||
The second parameter controls the precision by which the path will be _walked_.
|
The second parameter controls the precision by which the path will be _walked_.
|
||||||
|
|
|
@ -8,7 +8,7 @@ length of the path travelled along the path.
|
||||||
## Signature
|
## Signature
|
||||||
|
|
||||||
```js
|
```js
|
||||||
Point path.shiftFractionAlong(float fraction[, int stepsPerMm=25])
|
Point path.shiftFractionAlong(float fraction, int stepsPerMm = 25)
|
||||||
```
|
```
|
||||||
|
|
||||||
The second parameter controls the precision by which the path will be _walked_.
|
The second parameter controls the precision by which the path will be _walked_.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue