paper 0.13.0 → 0.14.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.
Files changed (50) hide show
  1. package/CHANGELOG.md +85 -0
  2. package/README.md +16 -13
  3. package/dist/docs/assets/js/paper.js +434 -128
  4. package/dist/docs/classes/ChangeFlag.html +384 -0
  5. package/dist/docs/classes/Color.html +1 -1
  6. package/dist/docs/classes/CompoundPath.html +58 -4
  7. package/dist/docs/classes/Curve.html +1 -1
  8. package/dist/docs/classes/CurveLocation.html +1 -1
  9. package/dist/docs/classes/Event.html +1 -1
  10. package/dist/docs/classes/Gradient.html +1 -1
  11. package/dist/docs/classes/GradientStop.html +1 -1
  12. package/dist/docs/classes/Group.html +89 -4
  13. package/dist/docs/classes/HitResult.html +3 -2
  14. package/dist/docs/classes/HostItem.html +6721 -0
  15. package/dist/docs/classes/Item.html +58 -4
  16. package/dist/docs/classes/Key.html +1 -1
  17. package/dist/docs/classes/KeyEvent.html +1 -1
  18. package/dist/docs/classes/Layer.html +89 -4
  19. package/dist/docs/classes/Matrix.html +1 -1
  20. package/dist/docs/classes/MouseEvent.html +1 -1
  21. package/dist/docs/classes/PaperScope.html +2 -1
  22. package/dist/docs/classes/PaperScript.html +2 -1
  23. package/dist/docs/classes/Path.html +59 -5
  24. package/dist/docs/classes/PathItem.html +58 -4
  25. package/dist/docs/classes/Point.html +1 -1
  26. package/dist/docs/classes/PointText.html +58 -4
  27. package/dist/docs/classes/Project.html +188 -1
  28. package/dist/docs/classes/Raster.html +58 -4
  29. package/dist/docs/classes/Rectangle.html +1 -1
  30. package/dist/docs/classes/Segment.html +1 -1
  31. package/dist/docs/classes/Shape.html +58 -4
  32. package/dist/docs/classes/Size.html +1 -1
  33. package/dist/docs/classes/Style.html +2 -2
  34. package/dist/docs/classes/SymbolDefinition.html +1 -1
  35. package/dist/docs/classes/SymbolItem.html +58 -4
  36. package/dist/docs/classes/TextItem.html +58 -4
  37. package/dist/docs/classes/Tool.html +126 -1
  38. package/dist/docs/classes/ToolEvent.html +1 -1
  39. package/dist/docs/classes/Tween.html +1 -1
  40. package/dist/docs/classes/View.html +144 -2
  41. package/dist/docs/classes/global.html +1 -1
  42. package/dist/docs/classes/index.html +2 -2
  43. package/dist/docs/index.html +1 -1
  44. package/dist/paper-core.js +425 -123
  45. package/dist/paper-core.min.js +3 -3
  46. package/dist/paper-full.js +434 -128
  47. package/dist/paper-full.min.js +3 -3
  48. package/dist/paper-sourced.js +18631 -0
  49. package/dist/paper.d.ts +284 -7
  50. package/package.json +6 -10
@@ -28,6 +28,32 @@
28
28
  <h2>Properties</h2>
29
29
 
30
30
 
31
+ <div id="key" class="member">
32
+ <div class="member-link">
33
+ <a name="key" href="#key"><tt><b>key</b></tt></a>
34
+ </div>
35
+ <div class="member-description hidden">
36
+
37
+ <div class="member-text">
38
+ <p>The key of the host&rsquo;s node that the item represents, in a project backed by a host document, see <a href="../classes/Project.html#source"><tt>project.source</tt></a>. It can only be set once, on an item created by a script, to register the key that the host gave its new node.</p>
39
+
40
+
41
+
42
+ <ul class="member-list">
43
+ <h4>Type:</h4>
44
+ <li>
45
+ <tt>Number</tt>
46
+ </li>
47
+ </ul>
48
+
49
+
50
+
51
+ </div>
52
+
53
+ </div>
54
+ </div>
55
+
56
+
31
57
  <div id="id" class="member">
32
58
  <div class="member-link">
33
59
  <a name="id" href="#id"><tt><b>id</b></tt></a>
@@ -1111,6 +1137,34 @@ circle.position.x += 100;
1111
1137
 
1112
1138
 
1113
1139
 
1140
+ </div>
1141
+
1142
+ </div>
1143
+ </div>
1144
+
1145
+
1146
+ <div id="scope" class="member">
1147
+ <div class="member-link">
1148
+ <a name="scope" href="#scope"><tt><b>scope</b></tt></a>
1149
+ </div>
1150
+ <div class="member-description hidden">
1151
+
1152
+ <div class="member-text">
1153
+ <p>The scope that this item belongs to, through its project.</p>
1154
+
1155
+ <p>Read only.</p>
1156
+
1157
+
1158
+
1159
+ <ul class="member-list">
1160
+ <h4>Type:</h4>
1161
+ <li>
1162
+ <a href="../classes/PaperScope.html"><tt>PaperScope</tt></a>
1163
+ </li>
1164
+ </ul>
1165
+
1166
+
1167
+
1114
1168
  </div>
1115
1169
 
1116
1170
  </div>
@@ -1726,7 +1780,7 @@ path3.strokeJoin = 'bevel';
1726
1780
  <div class="member-description hidden">
1727
1781
 
1728
1782
  <div class="member-text">
1729
- <p>Specifies whether the stroke is to be drawn taking the current affine transformation into account (the default behavior), or whether it should appear as a non-scaling stroke.</p>
1783
+ <p>Specifies whether the stroke is to be drawn taking the current affine transformation into account (the default behavior), or whether it should appear as a non-scaling stroke. On text, non-scaling strokes are exact for uniform scaling only, as the glyphs are always stroked through the transformation.</p>
1730
1784
 
1731
1785
 
1732
1786
 
@@ -4380,7 +4434,7 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
4380
4434
  </div>
4381
4435
  <div class="member-description hidden">
4382
4436
  <div class="member-text">
4383
- <p>Checks whether the item has a fill.</p>
4437
+ <p>Checks whether the item has a visible fill, a fill color with an alpha above 0. Hit-tests also hit transparent fills, see <a href="../classes/Item.html#hittest"><tt>hitTest</tt></a>.</p>
4384
4438
 
4385
4439
 
4386
4440
 
@@ -4388,7 +4442,7 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
4388
4442
  <h4>Returns:</h4>
4389
4443
 
4390
4444
  <li>
4391
- <tt><tt>Boolean</tt></tt>&nbsp;&mdash;&nbsp;<tt>true</tt> if the item has a fill, <tt>false</tt> otherwise
4445
+ <tt><tt>Boolean</tt></tt>&nbsp;&mdash;&nbsp;<tt>true</tt> if the item has a visible fill, <tt>false</tt> otherwise
4392
4446
  </li>
4393
4447
 
4394
4448
 
@@ -6657,7 +6711,7 @@ path.tweenFrom({ fillColor: 'red' }, { duration: 1000 });
6657
6711
 
6658
6712
  <!-- =========================== copyright notice ========================== -->
6659
6713
  <p class="footer">
6660
- Paper.js v0.13.0<br>
6714
+ Paper.js v0.14.0<br>
6661
6715
  Copyright &#169; 2011—2026 <a href="http://www.lehni.org" target="_blank">J&uuml;rg Lehni</a> &amp; <a href="http://www.jonathanpuckey.com" target="_blank">Jonathan Puckey</a>. All Rights Reserved.</p>
6662
6716
  <div class="content-end"></div>
6663
6717
 
@@ -130,7 +130,7 @@
130
130
 
131
131
  <!-- =========================== copyright notice ========================== -->
132
132
  <p class="footer">
133
- Paper.js v0.13.0<br>
133
+ Paper.js v0.14.0<br>
134
134
  Copyright &#169; 2011—2026 <a href="http://www.lehni.org" target="_blank">J&uuml;rg Lehni</a> &amp; <a href="http://www.jonathanpuckey.com" target="_blank">Jonathan Puckey</a>. All Rights Reserved.</p>
135
135
  <div class="content-end"></div>
136
136
 
@@ -299,7 +299,7 @@
299
299
 
300
300
  <!-- =========================== copyright notice ========================== -->
301
301
  <p class="footer">
302
- Paper.js v0.13.0<br>
302
+ Paper.js v0.14.0<br>
303
303
  Copyright &#169; 2011—2026 <a href="http://www.lehni.org" target="_blank">J&uuml;rg Lehni</a> &amp; <a href="http://www.jonathanpuckey.com" target="_blank">Jonathan Puckey</a>. All Rights Reserved.</p>
304
304
  <div class="content-end"></div>
305
305
 
@@ -187,6 +187,32 @@ console.log(project.activeLayer == firstLayer); // true</code></pre>
187
187
  <div class="reference-members"><h2>Properties inherited from <a href="../classes/Item.html"><tt>Item</tt></a></h2>
188
188
 
189
189
 
190
+ <div id="key" class="member">
191
+ <div class="member-link">
192
+ <a name="key" href="#key"><tt><b>key</b></tt></a>
193
+ </div>
194
+ <div class="member-description hidden">
195
+
196
+ <div class="member-text">
197
+ <p>The key of the host&rsquo;s node that the item represents, in a project backed by a host document, see <a href="../classes/Project.html#source"><tt>project.source</tt></a>. It can only be set once, on an item created by a script, to register the key that the host gave its new node.</p>
198
+
199
+
200
+
201
+ <ul class="member-list">
202
+ <h4>Type:</h4>
203
+ <li>
204
+ <tt>Number</tt>
205
+ </li>
206
+ </ul>
207
+
208
+
209
+
210
+ </div>
211
+
212
+ </div>
213
+ </div>
214
+
215
+
190
216
  <div id="id" class="member">
191
217
  <div class="member-link">
192
218
  <a name="id" href="#id"><tt><b>id</b></tt></a>
@@ -1270,6 +1296,34 @@ circle.position.x += 100;
1270
1296
 
1271
1297
 
1272
1298
 
1299
+ </div>
1300
+
1301
+ </div>
1302
+ </div>
1303
+
1304
+
1305
+ <div id="scope" class="member">
1306
+ <div class="member-link">
1307
+ <a name="scope" href="#scope"><tt><b>scope</b></tt></a>
1308
+ </div>
1309
+ <div class="member-description hidden">
1310
+
1311
+ <div class="member-text">
1312
+ <p>The scope that this item belongs to, through its project.</p>
1313
+
1314
+ <p>Read only.</p>
1315
+
1316
+
1317
+
1318
+ <ul class="member-list">
1319
+ <h4>Type:</h4>
1320
+ <li>
1321
+ <a href="../classes/PaperScope.html"><tt>PaperScope</tt></a>
1322
+ </li>
1323
+ </ul>
1324
+
1325
+
1326
+
1273
1327
  </div>
1274
1328
 
1275
1329
  </div>
@@ -1885,7 +1939,7 @@ path3.strokeJoin = 'bevel';
1885
1939
  <div class="member-description hidden">
1886
1940
 
1887
1941
  <div class="member-text">
1888
- <p>Specifies whether the stroke is to be drawn taking the current affine transformation into account (the default behavior), or whether it should appear as a non-scaling stroke.</p>
1942
+ <p>Specifies whether the stroke is to be drawn taking the current affine transformation into account (the default behavior), or whether it should appear as a non-scaling stroke. On text, non-scaling strokes are exact for uniform scaling only, as the glyphs are always stroked through the transformation.</p>
1889
1943
 
1890
1944
 
1891
1945
 
@@ -4535,7 +4589,7 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
4535
4589
  </div>
4536
4590
  <div class="member-description hidden">
4537
4591
  <div class="member-text">
4538
- <p>Checks whether the item has a fill.</p>
4592
+ <p>Checks whether the item has a visible fill, a fill color with an alpha above 0. Hit-tests also hit transparent fills, see <a href="../classes/Item.html#hittest"><tt>hitTest</tt></a>.</p>
4539
4593
 
4540
4594
 
4541
4595
 
@@ -4543,7 +4597,7 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
4543
4597
  <h4>Returns:</h4>
4544
4598
 
4545
4599
  <li>
4546
- <tt><tt>Boolean</tt></tt>&nbsp;&mdash;&nbsp;<tt>true</tt> if the item has a fill, <tt>false</tt> otherwise
4600
+ <tt><tt>Boolean</tt></tt>&nbsp;&mdash;&nbsp;<tt>true</tt> if the item has a visible fill, <tt>false</tt> otherwise
4547
4601
  </li>
4548
4602
 
4549
4603
 
@@ -6867,6 +6921,37 @@ function onFrame(event) {
6867
6921
  </div>
6868
6922
 
6869
6923
 
6924
+ </div>
6925
+
6926
+ </div>
6927
+ </div>
6928
+
6929
+
6930
+ <div id="isolated" class="member">
6931
+ <div class="member-link">
6932
+ <a name="isolated" href="#isolated"><tt><b>isolated</b></tt></a>
6933
+ </div>
6934
+ <div class="member-description hidden">
6935
+
6936
+ <div class="member-text">
6937
+ <p>Specifies whether the group is isolated, drawn through a temporary canvas, so that the blend modes of its children only apply within it, like CSS&rsquo;s <code>isolation: isolate</code>. Without it, a compositing mode such as <code>&#39;destination-out&#39;</code> affects everything drawn below the group, also in other layers. Groups with an <a href="../classes/Item.html#opacity"><tt>item.opacity</tt></a> below 1 or a <a href="../classes/Item.html#blendmode"><tt>item.blendMode</tt></a> are isolated anyway.</p>
6938
+
6939
+
6940
+
6941
+ <ul class="member-list">
6942
+ <h4>Default:</h4>
6943
+ <li><tt>false</tt></li>
6944
+ </ul>
6945
+
6946
+ <ul class="member-list">
6947
+ <h4>Type:</h4>
6948
+ <li>
6949
+ <tt>Boolean</tt>
6950
+ </li>
6951
+ </ul>
6952
+
6953
+
6954
+
6870
6955
  </div>
6871
6956
 
6872
6957
  </div>
@@ -6879,7 +6964,7 @@ function onFrame(event) {
6879
6964
 
6880
6965
  <!-- =========================== copyright notice ========================== -->
6881
6966
  <p class="footer">
6882
- Paper.js v0.13.0<br>
6967
+ Paper.js v0.14.0<br>
6883
6968
  Copyright &#169; 2011—2026 <a href="http://www.lehni.org" target="_blank">J&uuml;rg Lehni</a> &amp; <a href="http://www.jonathanpuckey.com" target="_blank">Jonathan Puckey</a>. All Rights Reserved.</p>
6884
6969
  <div class="content-end"></div>
6885
6970
 
@@ -1735,7 +1735,7 @@ Array of <tt>Numbers</tt>
1735
1735
 
1736
1736
  <!-- =========================== copyright notice ========================== -->
1737
1737
  <p class="footer">
1738
- Paper.js v0.13.0<br>
1738
+ Paper.js v0.14.0<br>
1739
1739
  Copyright &#169; 2011—2026 <a href="http://www.lehni.org" target="_blank">J&uuml;rg Lehni</a> &amp; <a href="http://www.jonathanpuckey.com" target="_blank">Jonathan Puckey</a>. All Rights Reserved.</p>
1740
1740
  <div class="content-end"></div>
1741
1741
 
@@ -346,7 +346,7 @@
346
346
 
347
347
  <!-- =========================== copyright notice ========================== -->
348
348
  <p class="footer">
349
- Paper.js v0.13.0<br>
349
+ Paper.js v0.14.0<br>
350
350
  Copyright &#169; 2011—2026 <a href="http://www.lehni.org" target="_blank">J&uuml;rg Lehni</a> &amp; <a href="http://www.jonathanpuckey.com" target="_blank">Jonathan Puckey</a>. All Rights Reserved.</p>
351
351
  <div class="content-end"></div>
352
352
 
@@ -117,6 +117,7 @@
117
117
  <li><tt>settings.applyMatrix: <tt>Boolean</tt></tt> &mdash; controls what value newly created items have their <a href="../classes/Item.html#applymatrix"><tt>item.applyMatrix</tt></a> property set to (Note that not all items can set this to <code>false</code>) &mdash;&nbsp;default: <tt>true</tt></li>
118
118
  <li><tt>settings.handleSize: <tt>Number</tt></tt> &mdash; the size of the curve handles when drawing selections &mdash;&nbsp;default: <tt>4</tt></li>
119
119
  <li><tt>settings.hitTolerance: <tt>Number</tt></tt> &mdash; the default tolerance for hit- tests, when no value is specified &mdash;&nbsp;default: <tt>0</tt></li>
120
+ <li><tt>settings.scaleStrokes: <tt>Boolean</tt></tt> &mdash; controls whether applying a matrix to the content of paths and compound paths also scales their <a href="../classes/Style.html#strokewidth"><tt>style.strokeWidth</tt></a>, by the geometric mean of the scale factors for non-uniform scaling. Items that keep their matrix, with <a href="../classes/Item.html#applymatrix"><tt>item.applyMatrix</tt></a> set to <code>false</code>, scale their strokes when drawing anyway, unless <a href="../classes/Style.html#strokescaling"><tt>style.strokeScaling</tt></a> is <code>false</code> &mdash;&nbsp;default: <tt>false</tt></li>
120
121
  </ul>
121
122
 
122
123
 
@@ -536,7 +537,7 @@
536
537
 
537
538
  <!-- =========================== copyright notice ========================== -->
538
539
  <p class="footer">
539
- Paper.js v0.13.0<br>
540
+ Paper.js v0.14.0<br>
540
541
  Copyright &#169; 2011—2026 <a href="http://www.lehni.org" target="_blank">J&uuml;rg Lehni</a> &amp; <a href="http://www.jonathanpuckey.com" target="_blank">Jonathan Puckey</a>. All Rights Reserved.</p>
541
542
  <div class="content-end"></div>
542
543
 
@@ -95,6 +95,7 @@
95
95
  <h4>Options:</h4>
96
96
  <li><tt>options.url: <tt>String</tt></tt> &mdash; the url of the source, for source-map generation</li>
97
97
  <li><tt>options.source: <tt>String</tt></tt> &mdash; the source to be used for the source- mapping, in case the code that&rsquo;s passed in has already been mingled.</li>
98
+ <li><tt>options.handlers: Array of <tt>Strings</tt></tt> &mdash; the names of further global handlers to export next to <code>onFrame</code>, <code>onResize</code> and the tool&rsquo;s handlers, for hosts that call them themselves</li>
98
99
  </ul>
99
100
 
100
101
  <ul class="member-list">
@@ -189,7 +190,7 @@
189
190
 
190
191
  <!-- =========================== copyright notice ========================== -->
191
192
  <p class="footer">
192
- Paper.js v0.13.0<br>
193
+ Paper.js v0.14.0<br>
193
194
  Copyright &#169; 2011—2026 <a href="http://www.lehni.org" target="_blank">J&uuml;rg Lehni</a> &amp; <a href="http://www.jonathanpuckey.com" target="_blank">Jonathan Puckey</a>. All Rights Reserved.</p>
194
195
  <div class="content-end"></div>
195
196
 
@@ -1069,7 +1069,7 @@ var path = new Path.Arc({
1069
1069
  </div>
1070
1070
  <div class="member-description hidden">
1071
1071
  <div class="member-text">
1072
- <p>Creates a regular polygon shaped path item.</p>
1072
+ <p>Creates a regular polygon shaped path item. As in Illustrator, it stands on a flat bottom edge, and its segments run counterclockwise from its top vertex, or with an even number of sides, from the right end of its top edge.</p>
1073
1073
 
1074
1074
 
1075
1075
  <ul class="member-list">
@@ -3345,6 +3345,32 @@ for (var i = 0; i < amount + 1; i++) {
3345
3345
  <div class="reference-members"><h2>Properties inherited from <a href="../classes/Item.html"><tt>Item</tt></a></h2>
3346
3346
 
3347
3347
 
3348
+ <div id="key" class="member">
3349
+ <div class="member-link">
3350
+ <a name="key" href="#key"><tt><b>key</b></tt></a>
3351
+ </div>
3352
+ <div class="member-description hidden">
3353
+
3354
+ <div class="member-text">
3355
+ <p>The key of the host&rsquo;s node that the item represents, in a project backed by a host document, see <a href="../classes/Project.html#source"><tt>project.source</tt></a>. It can only be set once, on an item created by a script, to register the key that the host gave its new node.</p>
3356
+
3357
+
3358
+
3359
+ <ul class="member-list">
3360
+ <h4>Type:</h4>
3361
+ <li>
3362
+ <tt>Number</tt>
3363
+ </li>
3364
+ </ul>
3365
+
3366
+
3367
+
3368
+ </div>
3369
+
3370
+ </div>
3371
+ </div>
3372
+
3373
+
3348
3374
  <div id="id" class="member">
3349
3375
  <div class="member-link">
3350
3376
  <a name="id" href="#id"><tt><b>id</b></tt></a>
@@ -4428,6 +4454,34 @@ circle.position.x += 100;
4428
4454
 
4429
4455
 
4430
4456
 
4457
+ </div>
4458
+
4459
+ </div>
4460
+ </div>
4461
+
4462
+
4463
+ <div id="scope" class="member">
4464
+ <div class="member-link">
4465
+ <a name="scope" href="#scope"><tt><b>scope</b></tt></a>
4466
+ </div>
4467
+ <div class="member-description hidden">
4468
+
4469
+ <div class="member-text">
4470
+ <p>The scope that this item belongs to, through its project.</p>
4471
+
4472
+ <p>Read only.</p>
4473
+
4474
+
4475
+
4476
+ <ul class="member-list">
4477
+ <h4>Type:</h4>
4478
+ <li>
4479
+ <a href="../classes/PaperScope.html"><tt>PaperScope</tt></a>
4480
+ </li>
4481
+ </ul>
4482
+
4483
+
4484
+
4431
4485
  </div>
4432
4486
 
4433
4487
  </div>
@@ -5043,7 +5097,7 @@ path3.strokeJoin = 'bevel';
5043
5097
  <div class="member-description hidden">
5044
5098
 
5045
5099
  <div class="member-text">
5046
- <p>Specifies whether the stroke is to be drawn taking the current affine transformation into account (the default behavior), or whether it should appear as a non-scaling stroke.</p>
5100
+ <p>Specifies whether the stroke is to be drawn taking the current affine transformation into account (the default behavior), or whether it should appear as a non-scaling stroke. On text, non-scaling strokes are exact for uniform scaling only, as the glyphs are always stroked through the transformation.</p>
5047
5101
 
5048
5102
 
5049
5103
 
@@ -7652,7 +7706,7 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
7652
7706
  </div>
7653
7707
  <div class="member-description hidden">
7654
7708
  <div class="member-text">
7655
- <p>Checks whether the item has a fill.</p>
7709
+ <p>Checks whether the item has a visible fill, a fill color with an alpha above 0. Hit-tests also hit transparent fills, see <a href="../classes/Item.html#hittest"><tt>hitTest</tt></a>.</p>
7656
7710
 
7657
7711
 
7658
7712
 
@@ -7660,7 +7714,7 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
7660
7714
  <h4>Returns:</h4>
7661
7715
 
7662
7716
  <li>
7663
- <tt><tt>Boolean</tt></tt>&nbsp;&mdash;&nbsp;<tt>true</tt> if the item has a fill, <tt>false</tt> otherwise
7717
+ <tt><tt>Boolean</tt></tt>&nbsp;&mdash;&nbsp;<tt>true</tt> if the item has a visible fill, <tt>false</tt> otherwise
7664
7718
  </li>
7665
7719
 
7666
7720
 
@@ -11871,7 +11925,7 @@ path.smooth();
11871
11925
 
11872
11926
  <!-- =========================== copyright notice ========================== -->
11873
11927
  <p class="footer">
11874
- Paper.js v0.13.0<br>
11928
+ Paper.js v0.14.0<br>
11875
11929
  Copyright &#169; 2011—2026 <a href="http://www.lehni.org" target="_blank">J&uuml;rg Lehni</a> &amp; <a href="http://www.jonathanpuckey.com" target="_blank">Jonathan Puckey</a>. All Rights Reserved.</p>
11876
11930
  <div class="content-end"></div>
11877
11931
 
@@ -2110,6 +2110,32 @@ Array of <tt>Number[]</tt> objects[]
2110
2110
  <div class="reference-members"><h2>Properties inherited from <a href="../classes/Item.html"><tt>Item</tt></a></h2>
2111
2111
 
2112
2112
 
2113
+ <div id="key" class="member">
2114
+ <div class="member-link">
2115
+ <a name="key" href="#key"><tt><b>key</b></tt></a>
2116
+ </div>
2117
+ <div class="member-description hidden">
2118
+
2119
+ <div class="member-text">
2120
+ <p>The key of the host&rsquo;s node that the item represents, in a project backed by a host document, see <a href="../classes/Project.html#source"><tt>project.source</tt></a>. It can only be set once, on an item created by a script, to register the key that the host gave its new node.</p>
2121
+
2122
+
2123
+
2124
+ <ul class="member-list">
2125
+ <h4>Type:</h4>
2126
+ <li>
2127
+ <tt>Number</tt>
2128
+ </li>
2129
+ </ul>
2130
+
2131
+
2132
+
2133
+ </div>
2134
+
2135
+ </div>
2136
+ </div>
2137
+
2138
+
2113
2139
  <div id="id" class="member">
2114
2140
  <div class="member-link">
2115
2141
  <a name="id" href="#id"><tt><b>id</b></tt></a>
@@ -3193,6 +3219,34 @@ circle.position.x += 100;
3193
3219
 
3194
3220
 
3195
3221
 
3222
+ </div>
3223
+
3224
+ </div>
3225
+ </div>
3226
+
3227
+
3228
+ <div id="scope" class="member">
3229
+ <div class="member-link">
3230
+ <a name="scope" href="#scope"><tt><b>scope</b></tt></a>
3231
+ </div>
3232
+ <div class="member-description hidden">
3233
+
3234
+ <div class="member-text">
3235
+ <p>The scope that this item belongs to, through its project.</p>
3236
+
3237
+ <p>Read only.</p>
3238
+
3239
+
3240
+
3241
+ <ul class="member-list">
3242
+ <h4>Type:</h4>
3243
+ <li>
3244
+ <a href="../classes/PaperScope.html"><tt>PaperScope</tt></a>
3245
+ </li>
3246
+ </ul>
3247
+
3248
+
3249
+
3196
3250
  </div>
3197
3251
 
3198
3252
  </div>
@@ -3808,7 +3862,7 @@ path3.strokeJoin = 'bevel';
3808
3862
  <div class="member-description hidden">
3809
3863
 
3810
3864
  <div class="member-text">
3811
- <p>Specifies whether the stroke is to be drawn taking the current affine transformation into account (the default behavior), or whether it should appear as a non-scaling stroke.</p>
3865
+ <p>Specifies whether the stroke is to be drawn taking the current affine transformation into account (the default behavior), or whether it should appear as a non-scaling stroke. On text, non-scaling strokes are exact for uniform scaling only, as the glyphs are always stroked through the transformation.</p>
3812
3866
 
3813
3867
 
3814
3868
 
@@ -6458,7 +6512,7 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
6458
6512
  </div>
6459
6513
  <div class="member-description hidden">
6460
6514
  <div class="member-text">
6461
- <p>Checks whether the item has a fill.</p>
6515
+ <p>Checks whether the item has a visible fill, a fill color with an alpha above 0. Hit-tests also hit transparent fills, see <a href="../classes/Item.html#hittest"><tt>hitTest</tt></a>.</p>
6462
6516
 
6463
6517
 
6464
6518
 
@@ -6466,7 +6520,7 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
6466
6520
  <h4>Returns:</h4>
6467
6521
 
6468
6522
  <li>
6469
- <tt><tt>Boolean</tt></tt>&nbsp;&mdash;&nbsp;<tt>true</tt> if the item has a fill, <tt>false</tt> otherwise
6523
+ <tt><tt>Boolean</tt></tt>&nbsp;&mdash;&nbsp;<tt>true</tt> if the item has a visible fill, <tt>false</tt> otherwise
6470
6524
  </li>
6471
6525
 
6472
6526
 
@@ -8732,7 +8786,7 @@ path.tweenFrom({ fillColor: 'red' }, { duration: 1000 });
8732
8786
 
8733
8787
  <!-- =========================== copyright notice ========================== -->
8734
8788
  <p class="footer">
8735
- Paper.js v0.13.0<br>
8789
+ Paper.js v0.14.0<br>
8736
8790
  Copyright &#169; 2011—2026 <a href="http://www.lehni.org" target="_blank">J&uuml;rg Lehni</a> &amp; <a href="http://www.jonathanpuckey.com" target="_blank">Jonathan Puckey</a>. All Rights Reserved.</p>
8737
8791
  <div class="content-end"></div>
8738
8792
 
@@ -2812,7 +2812,7 @@ var point = maxPoint * randomPoint;</code></pre>
2812
2812
 
2813
2813
  <!-- =========================== copyright notice ========================== -->
2814
2814
  <p class="footer">
2815
- Paper.js v0.13.0<br>
2815
+ Paper.js v0.14.0<br>
2816
2816
  Copyright &#169; 2011—2026 <a href="http://www.lehni.org" target="_blank">J&uuml;rg Lehni</a> &amp; <a href="http://www.jonathanpuckey.com" target="_blank">Jonathan Puckey</a>. All Rights Reserved.</p>
2817
2817
  <div class="content-end"></div>
2818
2818
 
@@ -194,6 +194,32 @@ var text = new PointText({
194
194
  <div class="reference-members"><h2>Properties inherited from <a href="../classes/Item.html"><tt>Item</tt></a></h2>
195
195
 
196
196
 
197
+ <div id="key" class="member">
198
+ <div class="member-link">
199
+ <a name="key" href="#key"><tt><b>key</b></tt></a>
200
+ </div>
201
+ <div class="member-description hidden">
202
+
203
+ <div class="member-text">
204
+ <p>The key of the host&rsquo;s node that the item represents, in a project backed by a host document, see <a href="../classes/Project.html#source"><tt>project.source</tt></a>. It can only be set once, on an item created by a script, to register the key that the host gave its new node.</p>
205
+
206
+
207
+
208
+ <ul class="member-list">
209
+ <h4>Type:</h4>
210
+ <li>
211
+ <tt>Number</tt>
212
+ </li>
213
+ </ul>
214
+
215
+
216
+
217
+ </div>
218
+
219
+ </div>
220
+ </div>
221
+
222
+
197
223
  <div id="id" class="member">
198
224
  <div class="member-link">
199
225
  <a name="id" href="#id"><tt><b>id</b></tt></a>
@@ -1277,6 +1303,34 @@ circle.position.x += 100;
1277
1303
 
1278
1304
 
1279
1305
 
1306
+ </div>
1307
+
1308
+ </div>
1309
+ </div>
1310
+
1311
+
1312
+ <div id="scope" class="member">
1313
+ <div class="member-link">
1314
+ <a name="scope" href="#scope"><tt><b>scope</b></tt></a>
1315
+ </div>
1316
+ <div class="member-description hidden">
1317
+
1318
+ <div class="member-text">
1319
+ <p>The scope that this item belongs to, through its project.</p>
1320
+
1321
+ <p>Read only.</p>
1322
+
1323
+
1324
+
1325
+ <ul class="member-list">
1326
+ <h4>Type:</h4>
1327
+ <li>
1328
+ <a href="../classes/PaperScope.html"><tt>PaperScope</tt></a>
1329
+ </li>
1330
+ </ul>
1331
+
1332
+
1333
+
1280
1334
  </div>
1281
1335
 
1282
1336
  </div>
@@ -1892,7 +1946,7 @@ path3.strokeJoin = 'bevel';
1892
1946
  <div class="member-description hidden">
1893
1947
 
1894
1948
  <div class="member-text">
1895
- <p>Specifies whether the stroke is to be drawn taking the current affine transformation into account (the default behavior), or whether it should appear as a non-scaling stroke.</p>
1949
+ <p>Specifies whether the stroke is to be drawn taking the current affine transformation into account (the default behavior), or whether it should appear as a non-scaling stroke. On text, non-scaling strokes are exact for uniform scaling only, as the glyphs are always stroked through the transformation.</p>
1896
1950
 
1897
1951
 
1898
1952
 
@@ -4542,7 +4596,7 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
4542
4596
  </div>
4543
4597
  <div class="member-description hidden">
4544
4598
  <div class="member-text">
4545
- <p>Checks whether the item has a fill.</p>
4599
+ <p>Checks whether the item has a visible fill, a fill color with an alpha above 0. Hit-tests also hit transparent fills, see <a href="../classes/Item.html#hittest"><tt>hitTest</tt></a>.</p>
4546
4600
 
4547
4601
 
4548
4602
 
@@ -4550,7 +4604,7 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
4550
4604
  <h4>Returns:</h4>
4551
4605
 
4552
4606
  <li>
4553
- <tt><tt>Boolean</tt></tt>&nbsp;&mdash;&nbsp;<tt>true</tt> if the item has a fill, <tt>false</tt> otherwise
4607
+ <tt><tt>Boolean</tt></tt>&nbsp;&mdash;&nbsp;<tt>true</tt> if the item has a visible fill, <tt>false</tt> otherwise
4554
4608
  </li>
4555
4609
 
4556
4610
 
@@ -7089,7 +7143,7 @@ function onMouseMove(event) {
7089
7143
 
7090
7144
  <!-- =========================== copyright notice ========================== -->
7091
7145
  <p class="footer">
7092
- Paper.js v0.13.0<br>
7146
+ Paper.js v0.14.0<br>
7093
7147
  Copyright &#169; 2011—2026 <a href="http://www.lehni.org" target="_blank">J&uuml;rg Lehni</a> &amp; <a href="http://www.jonathanpuckey.com" target="_blank">Jonathan Puckey</a>. All Rights Reserved.</p>
7094
7148
  <div class="content-end"></div>
7095
7149