Skip to content

Commit

Permalink
CurvePath: Return this in closePath(). (#26697)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mugen87 authored Sep 5, 2023
1 parent ec325ca commit 06936fc
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/api/ar/extras/core/CurvePath.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ <h2>الوظائف (Methods)</h2>
<h3>[method:undefined add]( [param:Curve curve] )</h3>
<p>إضافة منحى إلى مصفوفة [page:.curves].</p>

<h3>[method:undefined closePath]()</h3>
<h3>[method:this closePath]()</h3>
<p>يضيف [page:LineCurve lineCurve] لإغلاق المسار.</p>

<h3>[method:Array getCurveLengths]()</h3>
Expand Down
2 changes: 1 addition & 1 deletion docs/api/en/extras/core/CurvePath.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ <h2>Methods</h2>
<h3>[method:undefined add]( [param:Curve curve] )</h3>
<p>Add a curve to the [page:.curves] array.</p>

<h3>[method:undefined closePath]()</h3>
<h3>[method:this closePath]()</h3>
<p>Adds a [page:LineCurve lineCurve] to close the path.</p>

<h3>[method:Array getCurveLengths]()</h3>
Expand Down
2 changes: 1 addition & 1 deletion docs/api/it/extras/core/CurvePath.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ <h2>Metodi</h2>
<h3>[method:undefined add]( [param:Curve curve] )</h3>
<p>Aggiunge una curva all'array [page:.curves].</p>

<h3>[method:undefined closePath]()</h3>
<h3>[method:this closePath]()</h3>
<p>Aggiunge una [page:LineCurve lineCurve] per chiudere il percorso.</p>

<h3>[method:Array getCurveLengths]()</h3>
Expand Down
2 changes: 1 addition & 1 deletion docs/api/ko/extras/core/CurvePath.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ <h2>메서드</h2>
<h3>[method:undefined add]( [param:Curve curve] )</h3>
<p>[page:.curves] 배열에 곡선을 추가합니다.</p>

<h3>[method:undefined closePath]()</h3>
<h3>[method:this closePath]()</h3>
<p>path를 닫기위해 [page:LineCurve lineCurve]를 추가합니다.</p>

<h3>[method:Array getCurveLengths]()</h3>
Expand Down
2 changes: 1 addition & 1 deletion docs/api/zh/extras/core/CurvePath.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ <h2>方法</h2>
<h3>[method:undefined add]( [param:Curve curve] )</h3>
<p>添加一条曲线到[page:.curves]数组中。</p>

<h3>[method:undefined closePath]()</h3>
<h3>[method:this closePath]()</h3>
<p>添加一条[page:LineCurve lineCurve]用于闭合路径。</p>

<h3>[method:Array getCurveLengths]()</h3>
Expand Down
2 changes: 2 additions & 0 deletions src/extras/core/CurvePath.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ class CurvePath extends Curve {

}

return this;

}

// To get accurate point with reference to
Expand Down

0 comments on commit 06936fc

Please sign in to comment.