diff --git a/markdown/dev/reference/api/path/addtext/en.md b/markdown/dev/reference/api/path/addtext/en.md index 516712eba82..8ce9c0b7021 100644 --- a/markdown/dev/reference/api/path/addtext/en.md +++ b/markdown/dev/reference/api/path/addtext/en.md @@ -7,7 +7,7 @@ The `Path.addText()` method adds text to the path. ## Signature ```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. diff --git a/markdown/dev/reference/api/path/attr/en.md b/markdown/dev/reference/api/path/attr/en.md index 75d27b52763..81bf3182525 100644 --- a/markdown/dev/reference/api/path/attr/en.md +++ b/markdown/dev/reference/api/path/attr/en.md @@ -5,7 +5,7 @@ title: Path.attr() 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. -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. ## Signature diff --git a/markdown/dev/reference/api/path/settext/en.md b/markdown/dev/reference/api/path/settext/en.md index fa9397d3eb7..9c68ebafe11 100644 --- a/markdown/dev/reference/api/path/settext/en.md +++ b/markdown/dev/reference/api/path/settext/en.md @@ -7,7 +7,7 @@ The `Path.setText()` method sets text on the path. ## Signature ```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. diff --git a/markdown/dev/reference/api/path/shiftalong/en.md b/markdown/dev/reference/api/path/shiftalong/en.md index 89f0ed21d64..7d6ce5b41c8 100644 --- a/markdown/dev/reference/api/path/shiftalong/en.md +++ b/markdown/dev/reference/api/path/shiftalong/en.md @@ -8,7 +8,7 @@ along the path. ## Signature ```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_. diff --git a/markdown/dev/reference/api/path/shiftfractionalong/en.md b/markdown/dev/reference/api/path/shiftfractionalong/en.md index 6bceb4f1576..98e76342981 100644 --- a/markdown/dev/reference/api/path/shiftfractionalong/en.md +++ b/markdown/dev/reference/api/path/shiftfractionalong/en.md @@ -8,7 +8,7 @@ length of the path travelled along the path. ## Signature ```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_.