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.
- package/CHANGELOG.md +85 -0
- package/README.md +16 -13
- package/dist/docs/assets/js/paper.js +434 -128
- package/dist/docs/classes/ChangeFlag.html +384 -0
- package/dist/docs/classes/Color.html +1 -1
- package/dist/docs/classes/CompoundPath.html +58 -4
- package/dist/docs/classes/Curve.html +1 -1
- package/dist/docs/classes/CurveLocation.html +1 -1
- package/dist/docs/classes/Event.html +1 -1
- package/dist/docs/classes/Gradient.html +1 -1
- package/dist/docs/classes/GradientStop.html +1 -1
- package/dist/docs/classes/Group.html +89 -4
- package/dist/docs/classes/HitResult.html +3 -2
- package/dist/docs/classes/HostItem.html +6721 -0
- package/dist/docs/classes/Item.html +58 -4
- package/dist/docs/classes/Key.html +1 -1
- package/dist/docs/classes/KeyEvent.html +1 -1
- package/dist/docs/classes/Layer.html +89 -4
- package/dist/docs/classes/Matrix.html +1 -1
- package/dist/docs/classes/MouseEvent.html +1 -1
- package/dist/docs/classes/PaperScope.html +2 -1
- package/dist/docs/classes/PaperScript.html +2 -1
- package/dist/docs/classes/Path.html +59 -5
- package/dist/docs/classes/PathItem.html +58 -4
- package/dist/docs/classes/Point.html +1 -1
- package/dist/docs/classes/PointText.html +58 -4
- package/dist/docs/classes/Project.html +188 -1
- package/dist/docs/classes/Raster.html +58 -4
- package/dist/docs/classes/Rectangle.html +1 -1
- package/dist/docs/classes/Segment.html +1 -1
- package/dist/docs/classes/Shape.html +58 -4
- package/dist/docs/classes/Size.html +1 -1
- package/dist/docs/classes/Style.html +2 -2
- package/dist/docs/classes/SymbolDefinition.html +1 -1
- package/dist/docs/classes/SymbolItem.html +58 -4
- package/dist/docs/classes/TextItem.html +58 -4
- package/dist/docs/classes/Tool.html +126 -1
- package/dist/docs/classes/ToolEvent.html +1 -1
- package/dist/docs/classes/Tween.html +1 -1
- package/dist/docs/classes/View.html +144 -2
- package/dist/docs/classes/global.html +1 -1
- package/dist/docs/classes/index.html +2 -2
- package/dist/docs/index.html +1 -1
- package/dist/paper-core.js +425 -123
- package/dist/paper-core.min.js +3 -3
- package/dist/paper-full.js +434 -128
- package/dist/paper-full.min.js +3 -3
- package/dist/paper-sourced.js +18631 -0
- package/dist/paper.d.ts +284 -7
- package/package.json +6 -10
|
@@ -79,6 +79,92 @@
|
|
|
79
79
|
<h2>Properties</h2>
|
|
80
80
|
|
|
81
81
|
|
|
82
|
+
<div id="source" class="member">
|
|
83
|
+
<div class="member-link">
|
|
84
|
+
<a name="source" href="#source"><tt><b>source</b></tt></a>
|
|
85
|
+
</div>
|
|
86
|
+
<div class="member-description hidden">
|
|
87
|
+
|
|
88
|
+
<div class="member-text">
|
|
89
|
+
<p>The host document that the project’s items come from. Setting it creates the project’s layers from the source’s records. All items are created as shells that load their content and children from the source on first access.</p>
|
|
90
|
+
<p>The source provides: - <code>getChildren(key)</code>, which returns the records of the children of the node with the given key, or of the top level for <code>null</code>, as columns: <code>keys</code>, <code>types</code> (indices into <code>typeNames</code>), <code>typeNames</code>, <code>flags</code> (selected: 1, visible: 2, locked: 4, strokeScaling: 8, clipMask: 64, guide: 128, empty: 256), <code>boxes</code> (bounds, strokeBounds and roughBounds in the item’s coordinates, 12 numbers per item), and the sparse objects <code>names</code> and <code>matrices</code>. - <code>getItem(key)</code>, which returns the node’s own content in the form of <a href="../classes/Item.html#importjson-json"><tt>item.importJSON(json)</tt></a>, without children. - <code>getAncestorKeys(key)</code>, which returns the keys from the top level down to the node’s parent.</p>
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
<ul class="member-list">
|
|
95
|
+
<h4>Type:</h4>
|
|
96
|
+
<li>
|
|
97
|
+
<tt>Object</tt>
|
|
98
|
+
</li>
|
|
99
|
+
</ul>
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
</div>
|
|
104
|
+
|
|
105
|
+
</div>
|
|
106
|
+
</div>
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
<div id="trackchanges" class="member">
|
|
110
|
+
<div class="member-link">
|
|
111
|
+
<a name="trackchanges" href="#trackchanges"><tt><b>trackChanges</b></tt></a>
|
|
112
|
+
</div>
|
|
113
|
+
<div class="member-description hidden">
|
|
114
|
+
|
|
115
|
+
<div class="member-text">
|
|
116
|
+
<p>Specifies whether the project logs the changes of its items, to be retrieved through <a href="../classes/Project.html#takechanges"><tt>takeChanges</tt></a>(). This allows hosts that keep their own document to update only what has changed.</p>
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
<ul class="member-list">
|
|
121
|
+
<h4>Default:</h4>
|
|
122
|
+
<li><tt>false</tt></li>
|
|
123
|
+
</ul>
|
|
124
|
+
|
|
125
|
+
<ul class="member-list">
|
|
126
|
+
<h4>Type:</h4>
|
|
127
|
+
<li>
|
|
128
|
+
<tt>Boolean</tt>
|
|
129
|
+
</li>
|
|
130
|
+
</ul>
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
</div>
|
|
135
|
+
|
|
136
|
+
</div>
|
|
137
|
+
</div>
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
<div id="scope" class="member">
|
|
141
|
+
<div class="member-link">
|
|
142
|
+
<a name="scope" href="#scope"><tt><b>scope</b></tt></a>
|
|
143
|
+
</div>
|
|
144
|
+
<div class="member-description hidden">
|
|
145
|
+
|
|
146
|
+
<div class="member-text">
|
|
147
|
+
<p>The scope that this project belongs to.</p>
|
|
148
|
+
|
|
149
|
+
<p>Read only.</p>
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
<ul class="member-list">
|
|
154
|
+
<h4>Type:</h4>
|
|
155
|
+
<li>
|
|
156
|
+
<a href="../classes/PaperScope.html"><tt>PaperScope</tt></a>
|
|
157
|
+
</li>
|
|
158
|
+
</ul>
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
</div>
|
|
163
|
+
|
|
164
|
+
</div>
|
|
165
|
+
</div>
|
|
166
|
+
|
|
167
|
+
|
|
82
168
|
<div id="view" class="member">
|
|
83
169
|
<div class="member-link">
|
|
84
170
|
<a name="view" href="#view"><tt><b>view</b></tt></a>
|
|
@@ -327,6 +413,107 @@ var path2 = new Path.Circle(new Point(175, 50), 20);
|
|
|
327
413
|
<h2>Methods</h2>
|
|
328
414
|
|
|
329
415
|
|
|
416
|
+
<div id="getitembykey-key" class="member">
|
|
417
|
+
<div class="member-link">
|
|
418
|
+
<a name="getitembykey-key" href="#getitembykey-key"><tt><b>getItemByKey</b>(key)</tt></a>
|
|
419
|
+
</div>
|
|
420
|
+
<div class="member-description hidden">
|
|
421
|
+
<div class="member-text">
|
|
422
|
+
<p>Returns the item of the host’s node with the given key, loading only the children of its ancestors.</p>
|
|
423
|
+
|
|
424
|
+
|
|
425
|
+
<ul class="member-list">
|
|
426
|
+
<h4>Parameters:</h4>
|
|
427
|
+
|
|
428
|
+
<li>
|
|
429
|
+
<tt>key:</tt>
|
|
430
|
+
<tt>Number</tt>
|
|
431
|
+
— the key of the host’s node
|
|
432
|
+
|
|
433
|
+
</li>
|
|
434
|
+
|
|
435
|
+
</ul>
|
|
436
|
+
|
|
437
|
+
|
|
438
|
+
<ul class="member-list">
|
|
439
|
+
<h4>Returns:</h4>
|
|
440
|
+
|
|
441
|
+
<li>
|
|
442
|
+
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the item, or <code>null</code> if the source has no such node
|
|
443
|
+
</li>
|
|
444
|
+
|
|
445
|
+
|
|
446
|
+
</ul>
|
|
447
|
+
|
|
448
|
+
|
|
449
|
+
|
|
450
|
+
|
|
451
|
+
|
|
452
|
+
</div>
|
|
453
|
+
</div>
|
|
454
|
+
</div>
|
|
455
|
+
|
|
456
|
+
|
|
457
|
+
<div id="invalidate-columns" class="member">
|
|
458
|
+
<div class="member-link">
|
|
459
|
+
<a name="invalidate-columns" href="#invalidate-columns"><tt><b>invalidate</b>(columns)</tt></a>
|
|
460
|
+
</div>
|
|
461
|
+
<div class="member-description hidden">
|
|
462
|
+
<div class="member-text">
|
|
463
|
+
<p>Updates the items of changed host nodes, given in the column format of the source’s <code>getChildren()</code>, with two more flags: 16 when the node’s own content changed, so the item loads it again on next access, and 32 when its list of children changed, so it loads them again right away if it had loaded them, keeping the items of nodes that remain. Nodes without items are skipped.</p>
|
|
464
|
+
|
|
465
|
+
|
|
466
|
+
<ul class="member-list">
|
|
467
|
+
<h4>Parameters:</h4>
|
|
468
|
+
|
|
469
|
+
<li>
|
|
470
|
+
<tt>columns:</tt>
|
|
471
|
+
<tt>Object</tt>
|
|
472
|
+
— the records of the changed nodes
|
|
473
|
+
|
|
474
|
+
</li>
|
|
475
|
+
|
|
476
|
+
</ul>
|
|
477
|
+
|
|
478
|
+
|
|
479
|
+
|
|
480
|
+
|
|
481
|
+
|
|
482
|
+
|
|
483
|
+
</div>
|
|
484
|
+
</div>
|
|
485
|
+
</div>
|
|
486
|
+
|
|
487
|
+
|
|
488
|
+
<div id="takechanges" class="member">
|
|
489
|
+
<div class="member-link">
|
|
490
|
+
<a name="takechanges" href="#takechanges"><tt><b>takeChanges</b>()</tt></a>
|
|
491
|
+
</div>
|
|
492
|
+
<div class="member-description hidden">
|
|
493
|
+
<div class="member-text">
|
|
494
|
+
<p>Returns the changes logged since tracking was activated or since the last call, and clears the log. Each item is listed once, with the <a href="../classes/ChangeFlag.html"><tt>ChangeFlag</tt></a> values of all its changes combined. Removed items are listed with the <code>ChangeFlag.INSERTION</code> flag.</p>
|
|
495
|
+
|
|
496
|
+
|
|
497
|
+
|
|
498
|
+
<ul class="member-list">
|
|
499
|
+
<h4>Returns:</h4>
|
|
500
|
+
|
|
501
|
+
<li>
|
|
502
|
+
<tt>Array of <tt>Object</tt> objects</tt> — the changes as <code>{ item, flags }</code> objects, or <code>null</code> if <a href="../classes/Project.html#trackchanges"><tt>trackChanges</tt></a> is off
|
|
503
|
+
</li>
|
|
504
|
+
|
|
505
|
+
|
|
506
|
+
</ul>
|
|
507
|
+
|
|
508
|
+
|
|
509
|
+
|
|
510
|
+
|
|
511
|
+
|
|
512
|
+
</div>
|
|
513
|
+
</div>
|
|
514
|
+
</div>
|
|
515
|
+
|
|
516
|
+
|
|
330
517
|
<div id="activate" class="member">
|
|
331
518
|
<div class="member-link">
|
|
332
519
|
<a name="activate" href="#activate"><tt><b>activate</b>()</tt></a>
|
|
@@ -1303,7 +1490,7 @@ for (var i = 0; i < items.length; i++) {
|
|
|
1303
1490
|
|
|
1304
1491
|
<!-- =========================== copyright notice ========================== -->
|
|
1305
1492
|
<p class="footer">
|
|
1306
|
-
Paper.js v0.
|
|
1493
|
+
Paper.js v0.14.0<br>
|
|
1307
1494
|
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>
|
|
1308
1495
|
<div class="content-end"></div>
|
|
1309
1496
|
|
|
@@ -1269,6 +1269,32 @@ raster.on('load', function() {
|
|
|
1269
1269
|
<div class="reference-members"><h2>Properties inherited from <a href="../classes/Item.html"><tt>Item</tt></a></h2>
|
|
1270
1270
|
|
|
1271
1271
|
|
|
1272
|
+
<div id="key" class="member">
|
|
1273
|
+
<div class="member-link">
|
|
1274
|
+
<a name="key" href="#key"><tt><b>key</b></tt></a>
|
|
1275
|
+
</div>
|
|
1276
|
+
<div class="member-description hidden">
|
|
1277
|
+
|
|
1278
|
+
<div class="member-text">
|
|
1279
|
+
<p>The key of the host’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>
|
|
1280
|
+
|
|
1281
|
+
|
|
1282
|
+
|
|
1283
|
+
<ul class="member-list">
|
|
1284
|
+
<h4>Type:</h4>
|
|
1285
|
+
<li>
|
|
1286
|
+
<tt>Number</tt>
|
|
1287
|
+
</li>
|
|
1288
|
+
</ul>
|
|
1289
|
+
|
|
1290
|
+
|
|
1291
|
+
|
|
1292
|
+
</div>
|
|
1293
|
+
|
|
1294
|
+
</div>
|
|
1295
|
+
</div>
|
|
1296
|
+
|
|
1297
|
+
|
|
1272
1298
|
<div id="id" class="member">
|
|
1273
1299
|
<div class="member-link">
|
|
1274
1300
|
<a name="id" href="#id"><tt><b>id</b></tt></a>
|
|
@@ -2352,6 +2378,34 @@ circle.position.x += 100;
|
|
|
2352
2378
|
|
|
2353
2379
|
|
|
2354
2380
|
|
|
2381
|
+
</div>
|
|
2382
|
+
|
|
2383
|
+
</div>
|
|
2384
|
+
</div>
|
|
2385
|
+
|
|
2386
|
+
|
|
2387
|
+
<div id="scope" class="member">
|
|
2388
|
+
<div class="member-link">
|
|
2389
|
+
<a name="scope" href="#scope"><tt><b>scope</b></tt></a>
|
|
2390
|
+
</div>
|
|
2391
|
+
<div class="member-description hidden">
|
|
2392
|
+
|
|
2393
|
+
<div class="member-text">
|
|
2394
|
+
<p>The scope that this item belongs to, through its project.</p>
|
|
2395
|
+
|
|
2396
|
+
<p>Read only.</p>
|
|
2397
|
+
|
|
2398
|
+
|
|
2399
|
+
|
|
2400
|
+
<ul class="member-list">
|
|
2401
|
+
<h4>Type:</h4>
|
|
2402
|
+
<li>
|
|
2403
|
+
<a href="../classes/PaperScope.html"><tt>PaperScope</tt></a>
|
|
2404
|
+
</li>
|
|
2405
|
+
</ul>
|
|
2406
|
+
|
|
2407
|
+
|
|
2408
|
+
|
|
2355
2409
|
</div>
|
|
2356
2410
|
|
|
2357
2411
|
</div>
|
|
@@ -2967,7 +3021,7 @@ path3.strokeJoin = 'bevel';
|
|
|
2967
3021
|
<div class="member-description hidden">
|
|
2968
3022
|
|
|
2969
3023
|
<div class="member-text">
|
|
2970
|
-
<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>
|
|
3024
|
+
<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>
|
|
2971
3025
|
|
|
2972
3026
|
|
|
2973
3027
|
|
|
@@ -5617,7 +5671,7 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|
|
5617
5671
|
</div>
|
|
5618
5672
|
<div class="member-description hidden">
|
|
5619
5673
|
<div class="member-text">
|
|
5620
|
-
<p>Checks whether the item has a fill
|
|
5674
|
+
<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>
|
|
5621
5675
|
|
|
5622
5676
|
|
|
5623
5677
|
|
|
@@ -5625,7 +5679,7 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|
|
5625
5679
|
<h4>Returns:</h4>
|
|
5626
5680
|
|
|
5627
5681
|
<li>
|
|
5628
|
-
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the item has a fill, <tt>false</tt> otherwise
|
|
5682
|
+
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the item has a visible fill, <tt>false</tt> otherwise
|
|
5629
5683
|
</li>
|
|
5630
5684
|
|
|
5631
5685
|
|
|
@@ -7891,7 +7945,7 @@ path.tweenFrom({ fillColor: 'red' }, { duration: 1000 });
|
|
|
7891
7945
|
|
|
7892
7946
|
<!-- =========================== copyright notice ========================== -->
|
|
7893
7947
|
<p class="footer">
|
|
7894
|
-
Paper.js v0.
|
|
7948
|
+
Paper.js v0.14.0<br>
|
|
7895
7949
|
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>
|
|
7896
7950
|
<div class="content-end"></div>
|
|
7897
7951
|
|
|
@@ -1646,7 +1646,7 @@ intersectionPath.fillColor = 'red';
|
|
|
1646
1646
|
|
|
1647
1647
|
<!-- =========================== copyright notice ========================== -->
|
|
1648
1648
|
<p class="footer">
|
|
1649
|
-
Paper.js v0.
|
|
1649
|
+
Paper.js v0.14.0<br>
|
|
1650
1650
|
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>
|
|
1651
1651
|
<div class="content-end"></div>
|
|
1652
1652
|
|
|
@@ -930,7 +930,7 @@ path.segments[2].selected = true;
|
|
|
930
930
|
|
|
931
931
|
<!-- =========================== copyright notice ========================== -->
|
|
932
932
|
<p class="footer">
|
|
933
|
-
Paper.js v0.
|
|
933
|
+
Paper.js v0.14.0<br>
|
|
934
934
|
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>
|
|
935
935
|
<div class="content-end"></div>
|
|
936
936
|
|
|
@@ -770,6 +770,32 @@ var shape = new Shape.Ellipse({
|
|
|
770
770
|
<div class="reference-members"><h2>Properties inherited from <a href="../classes/Item.html"><tt>Item</tt></a></h2>
|
|
771
771
|
|
|
772
772
|
|
|
773
|
+
<div id="key" class="member">
|
|
774
|
+
<div class="member-link">
|
|
775
|
+
<a name="key" href="#key"><tt><b>key</b></tt></a>
|
|
776
|
+
</div>
|
|
777
|
+
<div class="member-description hidden">
|
|
778
|
+
|
|
779
|
+
<div class="member-text">
|
|
780
|
+
<p>The key of the host’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>
|
|
781
|
+
|
|
782
|
+
|
|
783
|
+
|
|
784
|
+
<ul class="member-list">
|
|
785
|
+
<h4>Type:</h4>
|
|
786
|
+
<li>
|
|
787
|
+
<tt>Number</tt>
|
|
788
|
+
</li>
|
|
789
|
+
</ul>
|
|
790
|
+
|
|
791
|
+
|
|
792
|
+
|
|
793
|
+
</div>
|
|
794
|
+
|
|
795
|
+
</div>
|
|
796
|
+
</div>
|
|
797
|
+
|
|
798
|
+
|
|
773
799
|
<div id="id" class="member">
|
|
774
800
|
<div class="member-link">
|
|
775
801
|
<a name="id" href="#id"><tt><b>id</b></tt></a>
|
|
@@ -1853,6 +1879,34 @@ circle.position.x += 100;
|
|
|
1853
1879
|
|
|
1854
1880
|
|
|
1855
1881
|
|
|
1882
|
+
</div>
|
|
1883
|
+
|
|
1884
|
+
</div>
|
|
1885
|
+
</div>
|
|
1886
|
+
|
|
1887
|
+
|
|
1888
|
+
<div id="scope" class="member">
|
|
1889
|
+
<div class="member-link">
|
|
1890
|
+
<a name="scope" href="#scope"><tt><b>scope</b></tt></a>
|
|
1891
|
+
</div>
|
|
1892
|
+
<div class="member-description hidden">
|
|
1893
|
+
|
|
1894
|
+
<div class="member-text">
|
|
1895
|
+
<p>The scope that this item belongs to, through its project.</p>
|
|
1896
|
+
|
|
1897
|
+
<p>Read only.</p>
|
|
1898
|
+
|
|
1899
|
+
|
|
1900
|
+
|
|
1901
|
+
<ul class="member-list">
|
|
1902
|
+
<h4>Type:</h4>
|
|
1903
|
+
<li>
|
|
1904
|
+
<a href="../classes/PaperScope.html"><tt>PaperScope</tt></a>
|
|
1905
|
+
</li>
|
|
1906
|
+
</ul>
|
|
1907
|
+
|
|
1908
|
+
|
|
1909
|
+
|
|
1856
1910
|
</div>
|
|
1857
1911
|
|
|
1858
1912
|
</div>
|
|
@@ -2468,7 +2522,7 @@ path3.strokeJoin = 'bevel';
|
|
|
2468
2522
|
<div class="member-description hidden">
|
|
2469
2523
|
|
|
2470
2524
|
<div class="member-text">
|
|
2471
|
-
<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>
|
|
2525
|
+
<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>
|
|
2472
2526
|
|
|
2473
2527
|
|
|
2474
2528
|
|
|
@@ -5118,7 +5172,7 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|
|
5118
5172
|
</div>
|
|
5119
5173
|
<div class="member-description hidden">
|
|
5120
5174
|
<div class="member-text">
|
|
5121
|
-
<p>Checks whether the item has a fill
|
|
5175
|
+
<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>
|
|
5122
5176
|
|
|
5123
5177
|
|
|
5124
5178
|
|
|
@@ -5126,7 +5180,7 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|
|
5126
5180
|
<h4>Returns:</h4>
|
|
5127
5181
|
|
|
5128
5182
|
<li>
|
|
5129
|
-
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the item has a fill, <tt>false</tt> otherwise
|
|
5183
|
+
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the item has a visible fill, <tt>false</tt> otherwise
|
|
5130
5184
|
</li>
|
|
5131
5185
|
|
|
5132
5186
|
|
|
@@ -7392,7 +7446,7 @@ path.tweenFrom({ fillColor: 'red' }, { duration: 1000 });
|
|
|
7392
7446
|
|
|
7393
7447
|
<!-- =========================== copyright notice ========================== -->
|
|
7394
7448
|
<p class="footer">
|
|
7395
|
-
Paper.js v0.
|
|
7449
|
+
Paper.js v0.14.0<br>
|
|
7396
7450
|
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>
|
|
7397
7451
|
<div class="content-end"></div>
|
|
7398
7452
|
|
|
@@ -1876,7 +1876,7 @@ var size = maxSize * randomSize;</code></pre>
|
|
|
1876
1876
|
|
|
1877
1877
|
<!-- =========================== copyright notice ========================== -->
|
|
1878
1878
|
<p class="footer">
|
|
1879
|
-
Paper.js v0.
|
|
1879
|
+
Paper.js v0.14.0<br>
|
|
1880
1880
|
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>
|
|
1881
1881
|
<div class="content-end"></div>
|
|
1882
1882
|
|
|
@@ -376,7 +376,7 @@ path3.strokeJoin = 'bevel';
|
|
|
376
376
|
<div class="member-description hidden">
|
|
377
377
|
|
|
378
378
|
<div class="member-text">
|
|
379
|
-
<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>
|
|
379
|
+
<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>
|
|
380
380
|
|
|
381
381
|
|
|
382
382
|
|
|
@@ -942,7 +942,7 @@ var circle = new Path.Circle({
|
|
|
942
942
|
|
|
943
943
|
<!-- =========================== copyright notice ========================== -->
|
|
944
944
|
<p class="footer">
|
|
945
|
-
Paper.js v0.
|
|
945
|
+
Paper.js v0.14.0<br>
|
|
946
946
|
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>
|
|
947
947
|
<div class="content-end"></div>
|
|
948
948
|
|
|
@@ -302,7 +302,7 @@ for (var i = 0; i < 100; i++) {
|
|
|
302
302
|
|
|
303
303
|
<!-- =========================== copyright notice ========================== -->
|
|
304
304
|
<p class="footer">
|
|
305
|
-
Paper.js v0.
|
|
305
|
+
Paper.js v0.14.0<br>
|
|
306
306
|
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>
|
|
307
307
|
<div class="content-end"></div>
|
|
308
308
|
|
|
@@ -162,6 +162,32 @@ for (var i = 0; i < 100; i++) {
|
|
|
162
162
|
<div class="reference-members"><h2>Properties inherited from <a href="../classes/Item.html"><tt>Item</tt></a></h2>
|
|
163
163
|
|
|
164
164
|
|
|
165
|
+
<div id="key" class="member">
|
|
166
|
+
<div class="member-link">
|
|
167
|
+
<a name="key" href="#key"><tt><b>key</b></tt></a>
|
|
168
|
+
</div>
|
|
169
|
+
<div class="member-description hidden">
|
|
170
|
+
|
|
171
|
+
<div class="member-text">
|
|
172
|
+
<p>The key of the host’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>
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
<ul class="member-list">
|
|
177
|
+
<h4>Type:</h4>
|
|
178
|
+
<li>
|
|
179
|
+
<tt>Number</tt>
|
|
180
|
+
</li>
|
|
181
|
+
</ul>
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
</div>
|
|
186
|
+
|
|
187
|
+
</div>
|
|
188
|
+
</div>
|
|
189
|
+
|
|
190
|
+
|
|
165
191
|
<div id="id" class="member">
|
|
166
192
|
<div class="member-link">
|
|
167
193
|
<a name="id" href="#id"><tt><b>id</b></tt></a>
|
|
@@ -1245,6 +1271,34 @@ circle.position.x += 100;
|
|
|
1245
1271
|
|
|
1246
1272
|
|
|
1247
1273
|
|
|
1274
|
+
</div>
|
|
1275
|
+
|
|
1276
|
+
</div>
|
|
1277
|
+
</div>
|
|
1278
|
+
|
|
1279
|
+
|
|
1280
|
+
<div id="scope" class="member">
|
|
1281
|
+
<div class="member-link">
|
|
1282
|
+
<a name="scope" href="#scope"><tt><b>scope</b></tt></a>
|
|
1283
|
+
</div>
|
|
1284
|
+
<div class="member-description hidden">
|
|
1285
|
+
|
|
1286
|
+
<div class="member-text">
|
|
1287
|
+
<p>The scope that this item belongs to, through its project.</p>
|
|
1288
|
+
|
|
1289
|
+
<p>Read only.</p>
|
|
1290
|
+
|
|
1291
|
+
|
|
1292
|
+
|
|
1293
|
+
<ul class="member-list">
|
|
1294
|
+
<h4>Type:</h4>
|
|
1295
|
+
<li>
|
|
1296
|
+
<a href="../classes/PaperScope.html"><tt>PaperScope</tt></a>
|
|
1297
|
+
</li>
|
|
1298
|
+
</ul>
|
|
1299
|
+
|
|
1300
|
+
|
|
1301
|
+
|
|
1248
1302
|
</div>
|
|
1249
1303
|
|
|
1250
1304
|
</div>
|
|
@@ -1860,7 +1914,7 @@ path3.strokeJoin = 'bevel';
|
|
|
1860
1914
|
<div class="member-description hidden">
|
|
1861
1915
|
|
|
1862
1916
|
<div class="member-text">
|
|
1863
|
-
<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>
|
|
1917
|
+
<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>
|
|
1864
1918
|
|
|
1865
1919
|
|
|
1866
1920
|
|
|
@@ -4510,7 +4564,7 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|
|
4510
4564
|
</div>
|
|
4511
4565
|
<div class="member-description hidden">
|
|
4512
4566
|
<div class="member-text">
|
|
4513
|
-
<p>Checks whether the item has a fill
|
|
4567
|
+
<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>
|
|
4514
4568
|
|
|
4515
4569
|
|
|
4516
4570
|
|
|
@@ -4518,7 +4572,7 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|
|
4518
4572
|
<h4>Returns:</h4>
|
|
4519
4573
|
|
|
4520
4574
|
<li>
|
|
4521
|
-
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the item has a fill, <tt>false</tt> otherwise
|
|
4575
|
+
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the item has a visible fill, <tt>false</tt> otherwise
|
|
4522
4576
|
</li>
|
|
4523
4577
|
|
|
4524
4578
|
|
|
@@ -6784,7 +6838,7 @@ path.tweenFrom({ fillColor: 'red' }, { duration: 1000 });
|
|
|
6784
6838
|
|
|
6785
6839
|
<!-- =========================== copyright notice ========================== -->
|
|
6786
6840
|
<p class="footer">
|
|
6787
|
-
Paper.js v0.
|
|
6841
|
+
Paper.js v0.14.0<br>
|
|
6788
6842
|
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>
|
|
6789
6843
|
<div class="content-end"></div>
|
|
6790
6844
|
|