paper 0.14.0 → 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +252 -0
- package/README.md +3 -1
- package/dist/docs/assets/js/paper.js +6997 -1658
- package/dist/docs/classes/AreaText.html +8658 -0
- package/dist/docs/classes/ChangeFlag.html +2 -1
- package/dist/docs/classes/Color.html +2 -1
- package/dist/docs/classes/CompoundPath.html +152 -67
- package/dist/docs/classes/Curve.html +2 -1
- package/dist/docs/classes/CurveLocation.html +2 -1
- package/dist/docs/classes/Event.html +5 -4
- package/dist/docs/classes/Gradient.html +2 -1
- package/dist/docs/classes/GradientStop.html +2 -1
- package/dist/docs/classes/Group.html +117 -15
- package/dist/docs/classes/HitResult.html +2 -1
- package/dist/docs/classes/HostItem.html +80 -15
- package/dist/docs/classes/Item.html +137 -15
- package/dist/docs/classes/Key.html +2 -1
- package/dist/docs/classes/KeyEvent.html +5 -4
- package/dist/docs/classes/Layer.html +114 -15
- package/dist/docs/classes/Matrix.html +2 -1
- package/dist/docs/classes/MouseEvent.html +5 -4
- package/dist/docs/classes/PaperScope.html +4 -2
- package/dist/docs/classes/PaperScript.html +5 -2
- package/dist/docs/classes/Path.html +126 -67
- package/dist/docs/classes/PathItem.html +270 -185
- package/dist/docs/classes/PathText.html +8528 -0
- package/dist/docs/classes/Point.html +13 -2
- package/dist/docs/classes/PointText.html +1346 -59
- package/dist/docs/classes/Project.html +40 -7
- package/dist/docs/classes/Raster.html +80 -15
- package/dist/docs/classes/Rectangle.html +3 -2
- package/dist/docs/classes/Segment.html +2 -1
- package/dist/docs/classes/Shape.html +80 -15
- package/dist/docs/classes/Size.html +4 -2
- package/dist/docs/classes/Style.html +767 -14
- package/dist/docs/classes/SymbolDefinition.html +2 -1
- package/dist/docs/classes/SymbolItem.html +80 -15
- package/dist/docs/classes/TextItem.html +1469 -179
- package/dist/docs/classes/TextRange.html +186 -0
- package/dist/docs/classes/TextStory.html +355 -0
- package/dist/docs/classes/Tool.html +2 -1
- package/dist/docs/classes/ToolEvent.html +57 -4
- package/dist/docs/classes/Tween.html +17 -1
- package/dist/docs/classes/View.html +9 -8
- package/dist/docs/classes/global.html +2 -1
- package/dist/docs/classes/index.html +2 -2
- package/dist/docs/index.html +1 -1
- package/dist/paper-core.js +6832 -1637
- package/dist/paper-core.min.js +3 -3
- package/dist/paper-full.js +6997 -1658
- package/dist/paper-full.min.js +3 -3
- package/dist/{paper-sourced.js → paper-hosted.js} +7109 -1682
- package/dist/paper.d.ts +1727 -163
- package/examples/Scripts/AreaText.html +65 -0
- package/examples/Scripts/PathText.html +48 -0
- package/examples/Scripts/TextRanges.html +51 -0
- package/package.json +3 -2
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
<h1>Point</h1>
|
|
17
17
|
|
|
18
18
|
<p>The Point object represents a point in the two dimensional space of the Paper.js project. It is also used to represent two dimensional vector objects.</p>
|
|
19
|
+
<p>Wherever a point is the only argument of a function, it can also be passed as two numbers, e.g. <code>point.add(10, 20)</code> or <code>item.translate(10, 20)</code>.</p>
|
|
19
20
|
<h4>Example:<span class="description">Create a point at x: 10, y: 5</span></h4>
|
|
20
21
|
|
|
21
22
|
|
|
@@ -23,6 +24,7 @@
|
|
|
23
24
|
console.log(point.x); // 10
|
|
24
25
|
console.log(point.y); // 5</code></pre>
|
|
25
26
|
|
|
27
|
+
|
|
26
28
|
</div>
|
|
27
29
|
|
|
28
30
|
<!-- =============================== constructors ========================== -->
|
|
@@ -189,6 +191,15 @@ path.fillColor = 'red';</code></pre>
|
|
|
189
191
|
console.log(point.length); // 10
|
|
190
192
|
console.log(point.angle); // 90</code></pre>
|
|
191
193
|
|
|
194
|
+
<h4>Example:<span class="description">The angle can also be specified in radians:</span></h4>
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
<pre><code>var point = new Point({
|
|
198
|
+
length: 10,
|
|
199
|
+
angleInRadians: Math.PI / 2
|
|
200
|
+
});
|
|
201
|
+
console.log(point.angle); // 90</code></pre>
|
|
202
|
+
|
|
192
203
|
<h4>Example:<span class="description">Creating a point at x: 10, y: 20 using an object literal:</span></h4>
|
|
193
204
|
|
|
194
205
|
|
|
@@ -1086,7 +1097,7 @@ path.position.selected = true;
|
|
|
1086
1097
|
|
|
1087
1098
|
<li>
|
|
1088
1099
|
<tt>point:</tt>
|
|
1089
|
-
<a href="../classes/Point.html"><tt>Point</tt></a>
|
|
1100
|
+
<a href="../classes/Point.html"><tt>Point</tt></a>⟋Array of <tt>Numbers</tt>
|
|
1090
1101
|
|
|
1091
1102
|
|
|
1092
1103
|
</li>
|
|
@@ -2812,7 +2823,7 @@ var point = maxPoint * randomPoint;</code></pre>
|
|
|
2812
2823
|
|
|
2813
2824
|
<!-- =========================== copyright notice ========================== -->
|
|
2814
2825
|
<p class="footer">
|
|
2815
|
-
Paper.js v0.
|
|
2826
|
+
Paper.js v0.15.0<br>
|
|
2816
2827
|
Copyright © 2011—2026 <a href="http://www.lehni.org" target="_blank">Jürg Lehni</a> & <a href="http://www.jonathanpuckey.com" target="_blank">Jonathan Puckey</a>. All Rights Reserved.</p>
|
|
2817
2828
|
<div class="content-end"></div>
|
|
2818
2829
|
|