paper 0.13.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.
Files changed (57) hide show
  1. package/CHANGELOG.md +337 -0
  2. package/README.md +19 -14
  3. package/dist/docs/assets/js/paper.js +7351 -1706
  4. package/dist/docs/classes/AreaText.html +8658 -0
  5. package/dist/docs/classes/ChangeFlag.html +385 -0
  6. package/dist/docs/classes/Color.html +2 -1
  7. package/dist/docs/classes/CompoundPath.html +208 -69
  8. package/dist/docs/classes/Curve.html +2 -1
  9. package/dist/docs/classes/CurveLocation.html +2 -1
  10. package/dist/docs/classes/Event.html +5 -4
  11. package/dist/docs/classes/Gradient.html +2 -1
  12. package/dist/docs/classes/GradientStop.html +2 -1
  13. package/dist/docs/classes/Group.html +204 -17
  14. package/dist/docs/classes/HitResult.html +4 -2
  15. package/dist/docs/classes/HostItem.html +6786 -0
  16. package/dist/docs/classes/Item.html +193 -17
  17. package/dist/docs/classes/Key.html +2 -1
  18. package/dist/docs/classes/KeyEvent.html +5 -4
  19. package/dist/docs/classes/Layer.html +201 -17
  20. package/dist/docs/classes/Matrix.html +2 -1
  21. package/dist/docs/classes/MouseEvent.html +5 -4
  22. package/dist/docs/classes/PaperScope.html +5 -2
  23. package/dist/docs/classes/PaperScript.html +6 -2
  24. package/dist/docs/classes/Path.html +183 -70
  25. package/dist/docs/classes/PathItem.html +326 -187
  26. package/dist/docs/classes/PathText.html +8528 -0
  27. package/dist/docs/classes/Point.html +13 -2
  28. package/dist/docs/classes/PointText.html +1404 -63
  29. package/dist/docs/classes/Project.html +221 -1
  30. package/dist/docs/classes/Raster.html +136 -17
  31. package/dist/docs/classes/Rectangle.html +3 -2
  32. package/dist/docs/classes/Segment.html +2 -1
  33. package/dist/docs/classes/Shape.html +136 -17
  34. package/dist/docs/classes/Size.html +4 -2
  35. package/dist/docs/classes/Style.html +768 -15
  36. package/dist/docs/classes/SymbolDefinition.html +2 -1
  37. package/dist/docs/classes/SymbolItem.html +136 -17
  38. package/dist/docs/classes/TextItem.html +1566 -222
  39. package/dist/docs/classes/TextRange.html +186 -0
  40. package/dist/docs/classes/TextStory.html +355 -0
  41. package/dist/docs/classes/Tool.html +127 -1
  42. package/dist/docs/classes/ToolEvent.html +57 -4
  43. package/dist/docs/classes/Tween.html +17 -1
  44. package/dist/docs/classes/View.html +148 -5
  45. package/dist/docs/classes/global.html +2 -1
  46. package/dist/docs/classes/index.html +2 -2
  47. package/dist/docs/index.html +1 -1
  48. package/dist/paper-core.js +7160 -1663
  49. package/dist/paper-core.min.js +3 -3
  50. package/dist/paper-full.js +7351 -1706
  51. package/dist/paper-full.min.js +3 -3
  52. package/dist/paper-hosted.js +24058 -0
  53. package/dist/paper.d.ts +1996 -155
  54. package/examples/Scripts/AreaText.html +65 -0
  55. package/examples/Scripts/PathText.html +48 -0
  56. package/examples/Scripts/TextRanges.html +51 -0
  57. package/package.json +8 -11
@@ -17,6 +17,7 @@
17
17
 
18
18
  <p>The Item type allows you to access and modify the items in Paper.js projects. Its functionality is inherited by different project item types such as <a href="../classes/Path.html"><tt>Path</tt></a>, <a href="../classes/CompoundPath.html"><tt>CompoundPath</tt></a>, <a href="../classes/Group.html"><tt>Group</tt></a>, <a href="../classes/Layer.html"><tt>Layer</tt></a> and <a href="../classes/Raster.html"><tt>Raster</tt></a>. They each add a layer of functionality that is unique to their type, but share the underlying properties and functions that they inherit from Item.</p>
19
19
 
20
+
20
21
  </div>
21
22
 
22
23
 
@@ -28,6 +29,32 @@
28
29
  <h2>Properties</h2>
29
30
 
30
31
 
32
+ <div id="key" class="member">
33
+ <div class="member-link">
34
+ <a name="key" href="#key"><tt><b>key</b></tt></a>
35
+ </div>
36
+ <div class="member-description hidden">
37
+
38
+ <div class="member-text">
39
+ <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#host"><tt>project.host</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>
40
+
41
+
42
+
43
+ <ul class="member-list">
44
+ <h4>Type:</h4>
45
+ <li>
46
+ <tt>Number</tt>
47
+ </li>
48
+ </ul>
49
+
50
+
51
+
52
+ </div>
53
+
54
+ </div>
55
+ </div>
56
+
57
+
31
58
  <div id="id" class="member">
32
59
  <div class="member-link">
33
60
  <a name="id" href="#id"><tt><b>id</b></tt></a>
@@ -374,7 +401,7 @@ path.visible = false;
374
401
  <div class="member-description hidden">
375
402
 
376
403
  <div class="member-text">
377
- <p>The blend mode with which the item is composited onto the canvas. Both the standard canvas compositing modes, as well as the new CSS blend modes are supported. If blend-modes cannot be rendered natively, they are emulated. Be aware that emulation can have an impact on performance.</p>
404
+ <p>The blend mode with which the item is composited onto the canvas. Both the standard canvas compositing modes, as well as the new CSS blend modes are supported. Where the canvas doesn&rsquo;t support a CSS blend mode natively, it draws as <code>&#39;normal&#39;</code>. Paper.js&rsquo;s own modes <code>&#39;add&#39;</code>, <code>&#39;subtract&#39;</code>, <code>&#39;average&#39;</code>, <code>&#39;pin-light&#39;</code> and <code>&#39;negation&#39;</code> are emulated, which can have an impact on performance.</p>
378
405
 
379
406
 
380
407
  <ul class="member-list">
@@ -527,6 +554,42 @@ circle2.opacity = 0.5;
527
554
  </div>
528
555
 
529
556
 
557
+ <div id="textwrap" class="member">
558
+ <div class="member-link">
559
+ <a name="textwrap" href="#textwrap"><tt><b>textWrap</b></tt></a>
560
+ </div>
561
+ <div class="member-description hidden">
562
+
563
+ <div class="member-text">
564
+ <p>Specifies whether, and how, the item pushes aside the text of the <a href="../classes/AreaText.html"><tt>AreaText</tt></a> items below it in its layer: <code>null</code>, or an object with <code>offset</code>, the space kept between them, and <code>invert</code>, to let the text flow inside it instead. <code>true</code> sets the defaults.</p>
565
+
566
+
567
+
568
+ <ul class="member-list">
569
+ <h4>Default:</h4>
570
+ <li><tt>null</tt></li>
571
+ </ul>
572
+
573
+ <ul class="member-list">
574
+ <h4>Type:</h4>
575
+ <li>
576
+ <tt>Object</tt>
577
+ </li>
578
+ </ul>
579
+
580
+
581
+ <h4>Example:</h4>
582
+
583
+
584
+ <pre><code>var circle = new Path.Circle({ center: [100, 100], radius: 40 });
585
+ circle.textWrap = { offset: 10 };</code></pre>
586
+
587
+ </div>
588
+
589
+ </div>
590
+ </div>
591
+
592
+
530
593
  <div id="selected" class="member">
531
594
  <div class="member-link">
532
595
  <a name="selected" href="#selected"><tt><b>selected</b></tt></a>
@@ -584,6 +647,32 @@ path.selected = true; // Select the path
584
647
  </div>
585
648
 
586
649
 
650
+ </div>
651
+
652
+ </div>
653
+ </div>
654
+
655
+
656
+ <div id="fullyselected" class="member">
657
+ <div class="member-link">
658
+ <a name="fullyselected" href="#fullyselected"><tt><b>fullySelected</b></tt></a>
659
+ </div>
660
+ <div class="member-description hidden">
661
+
662
+ <div class="member-text">
663
+ <p>Specifies whether the item and all its descendants are selected. Setting it selects or deselects them all.</p>
664
+
665
+
666
+
667
+ <ul class="member-list">
668
+ <h4>Type:</h4>
669
+ <li>
670
+ <tt>Boolean</tt>
671
+ </li>
672
+ </ul>
673
+
674
+
675
+
587
676
  </div>
588
677
 
589
678
  </div>
@@ -823,6 +912,7 @@ circle.position.x += 100;
823
912
 
824
913
  <div class="member-text">
825
914
  <p>The bounding rectangle of the item including stroke width.</p>
915
+ <p>Setting it fits the item&rsquo;s <a href="../classes/Item.html#bounds"><tt>bounds</tt></a> into the given rectangle minus the extent of the stroke on each side, also where this extent changes with the item&rsquo;s proportions, as with miters. A rectangle smaller than the stroke itself shrinks the bounds to its center.</p>
826
916
 
827
917
 
828
918
 
@@ -1111,6 +1201,34 @@ circle.position.x += 100;
1111
1201
 
1112
1202
 
1113
1203
 
1204
+ </div>
1205
+
1206
+ </div>
1207
+ </div>
1208
+
1209
+
1210
+ <div id="scope" class="member">
1211
+ <div class="member-link">
1212
+ <a name="scope" href="#scope"><tt><b>scope</b></tt></a>
1213
+ </div>
1214
+ <div class="member-description hidden">
1215
+
1216
+ <div class="member-text">
1217
+ <p>The scope that this item belongs to, through its project.</p>
1218
+
1219
+ <p>Read only.</p>
1220
+
1221
+
1222
+
1223
+ <ul class="member-list">
1224
+ <h4>Type:</h4>
1225
+ <li>
1226
+ <a href="../classes/PaperScope.html"><tt>PaperScope</tt></a>
1227
+ </li>
1228
+ </ul>
1229
+
1230
+
1231
+
1114
1232
  </div>
1115
1233
 
1116
1234
  </div>
@@ -1726,7 +1844,7 @@ path3.strokeJoin = 'bevel';
1726
1844
  <div class="member-description hidden">
1727
1845
 
1728
1846
  <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>
1847
+ <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
1848
 
1731
1849
 
1732
1850
 
@@ -2938,9 +3056,9 @@ for (var i = 0; i < 20; i++) {
2938
3056
  <p>Rasterizes the item into a newly created Raster object. The item itself is not removed after rasterization.</p>
2939
3057
  <ul class="member-list">
2940
3058
  <h4>Options:</h4>
2941
- <li><tt>resolution: <tt>Number</tt></tt> &mdash; the desired resolution to be used when rasterizing, in pixels per inch (DPI). If not specified, the value of <code>view.resolution</code> is used by default. &mdash;&nbsp;default: <tt>view.resolution</tt></li>
2942
- <li><tt>raster: <a href="../classes/Raster.html"><tt>Raster</tt></a></tt> &mdash; specifies a raster to be reused when rasterizing. If the raster has the desired size already, then the underlying canvas is reused and no new memory needs to be allocated. If no raster is provided, a new raster item is created and returned instead. &mdash;&nbsp;default: <tt>null</tt></li>
2943
- <li><tt>insert: <tt>Boolean</tt></tt> &mdash; specifies whether the raster should be inserted into the scene graph. When set to <code>true</code>, it is inserted above the rasterized item. &mdash;&nbsp;default: <tt>true</tt></li>
3059
+ <li><tt>options.resolution: <tt>Number</tt></tt> &mdash; the desired resolution to be used when rasterizing, in pixels per inch (DPI). If not specified, the value of <code>view.resolution</code> is used by default. &mdash;&nbsp;default: <tt>view.resolution</tt></li>
3060
+ <li><tt>options.raster: <a href="../classes/Raster.html"><tt>Raster</tt></a></tt> &mdash; specifies a raster to be reused when rasterizing. If the raster has the desired size already, then the underlying canvas is reused and no new memory needs to be allocated. If no raster is provided, a new raster item is created and returned instead. &mdash;&nbsp;default: <tt>null</tt></li>
3061
+ <li><tt>options.insert: <tt>Boolean</tt></tt> &mdash; specifies whether the raster should be inserted into the scene graph. When set to <code>true</code>, it is inserted above the rasterized item. &mdash;&nbsp;default: <tt>true</tt></li>
2944
3062
  </ul>
2945
3063
 
2946
3064
  <ul class="member-list">
@@ -3125,7 +3243,7 @@ function onMouseDown(event) {
3125
3243
  </div>
3126
3244
  <div class="member-description hidden">
3127
3245
  <div class="member-text">
3128
-
3246
+ <p>Checks whether the item overlaps with the given item: whether their outlines cross, or one contains the other, as <a href="../classes/Rectangle.html#intersects-rect"><tt>rectangle.intersects(rect)</tt></a> does for rectangles. Items other than paths and shapes are checked through their bounds. To only check whether outlines cross, use <a href="../classes/PathItem.html#getintersections-path"><tt>pathItem.getIntersections(path)</tt></a>.</p>
3129
3247
 
3130
3248
 
3131
3249
  <ul class="member-list">
@@ -3145,7 +3263,7 @@ function onMouseDown(event) {
3145
3263
  <h4>Returns:</h4>
3146
3264
 
3147
3265
  <li>
3148
- <tt><tt>Boolean</tt></tt>
3266
+ <tt><tt>Boolean</tt></tt>&nbsp;&mdash;&nbsp;<tt>true</tt> if the items overlap, <tt>false</tt> otherwise
3149
3267
  </li>
3150
3268
 
3151
3269
 
@@ -3641,6 +3759,7 @@ function onMouseDown(event) {
3641
3759
  <div class="member-text">
3642
3760
  <p>Converts the provided SVG content into Paper.js items and adds them to the this item&rsquo;s children list. Note that the item is not cleared first. You can call <a href="../classes/Item.html#removechildren"><tt>item.removeChildren</tt></a>() to do so.</p>
3643
3761
  <p><code>&lt;symbol&gt;</code> elements are imported as <a href="../classes/SymbolDefinition.html"><tt>SymbolDefinition</tt></a> items, and the <code>&lt;use&gt;</code> elements that place them as <a href="../classes/SymbolItem.html"><tt>SymbolItem</tt></a> items. The styles that <code>&lt;use&gt;</code> elements inherit don&rsquo;t reach the symbols&rsquo; content.</p>
3762
+ <p>URLs are fetched as they are, so validate URLs that come from untrusted sources first, especially on servers, where they could reach internal addresses.</p>
3644
3763
  <ul class="member-list">
3645
3764
  <h4>Options:</h4>
3646
3765
  <li><tt>options.expandShapes: <tt>Boolean</tt></tt> &mdash; whether imported shape items should be expanded to path items &mdash;&nbsp;default: <tt>false</tt></li>
@@ -4194,11 +4313,11 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
4194
4313
 
4195
4314
  <div id="replacewith-item" class="member">
4196
4315
  <div class="member-link">
4197
- <a name="replacewith-item" href="#replacewith-item"><tt><b>replaceWith</b>(item)</tt></a>
4316
+ <a name="replacewith-item" href="#replacewith-item"><tt><b>replaceWith</b>(...item)</tt></a>
4198
4317
  </div>
4199
4318
  <div class="member-description hidden">
4200
4319
  <div class="member-text">
4201
- <p>Replaces this item with the provided new item which will takes its place in the project hierarchy instead.</p>
4320
+ <p>Replaces this item with the provided new items which will take its place in the project hierarchy instead, in the given order. This also ungroups a group, e.g. <code>group.replaceWith(…group.children)</code>, but note that the items keep their own matrices, see <a href="../classes/Group.html#ungroup"><tt>group.ungroup</tt></a>().</p>
4202
4321
 
4203
4322
 
4204
4323
  <ul class="member-list">
@@ -4207,7 +4326,7 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
4207
4326
  <li>
4208
4327
  <tt>item:</tt>
4209
4328
  <a href="../classes/Item.html"><tt>Item</tt></a>
4210
- &mdash;&nbsp;the item that will replace this item
4329
+ &mdash;&nbsp;the items that will replace this item
4211
4330
 
4212
4331
  </li>
4213
4332
 
@@ -4380,7 +4499,7 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
4380
4499
  </div>
4381
4500
  <div class="member-description hidden">
4382
4501
  <div class="member-text">
4383
- <p>Checks whether the item has a fill.</p>
4502
+ <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
4503
 
4385
4504
 
4386
4505
 
@@ -4388,7 +4507,7 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
4388
4507
  <h4>Returns:</h4>
4389
4508
 
4390
4509
  <li>
4391
- <tt><tt>Boolean</tt></tt>&nbsp;&mdash;&nbsp;<tt>true</tt> if the item has a fill, <tt>false</tt> otherwise
4510
+ <tt><tt>Boolean</tt></tt>&nbsp;&mdash;&nbsp;<tt>true</tt> if the item has a visible fill, <tt>false</tt> otherwise
4392
4511
  </li>
4393
4512
 
4394
4513
 
@@ -6022,10 +6141,10 @@ function onMouseDown(event) {
6022
6141
  <p>Removes the item when the events specified in the passed options object occur.</p>
6023
6142
  <ul class="member-list">
6024
6143
  <h4>Options:</h4>
6025
- <li><tt>options.move: undefined</tt> &mdash; {Boolean) remove the item when the next <a href="../classes/Tool.html#onmousemove"><tt>tool.onMouseMove</tt></a> event is fired.</li>
6026
- <li><tt>options.drag: undefined</tt> &mdash; {Boolena) remove the item when the next <a href="../classes/Tool.html#onmousedrag"><tt>tool.onMouseDrag</tt></a> event is fired.</li>
6027
- <li><tt>options.down: undefined</tt> &mdash; {Boolean) remove the item when the next <a href="../classes/Tool.html#onmousedown"><tt>tool.onMouseDown</tt></a> event is fired.</li>
6028
- <li><tt>options.up: undefined</tt> &mdash; {Boolean) remove the item when the next <a href="../classes/Tool.html#onmouseup"><tt>tool.onMouseUp</tt></a> event is fired.</li>
6144
+ <li><tt>options.move: <tt>Boolean</tt></tt> &mdash; remove the item when the next <a href="../classes/Tool.html#onmousemove"><tt>tool.onMouseMove</tt></a> event is fired.</li>
6145
+ <li><tt>options.drag: <tt>Boolean</tt></tt> &mdash; remove the item when the next <a href="../classes/Tool.html#onmousedrag"><tt>tool.onMouseDrag</tt></a> event is fired.</li>
6146
+ <li><tt>options.down: <tt>Boolean</tt></tt> &mdash; remove the item when the next <a href="../classes/Tool.html#onmousedown"><tt>tool.onMouseDown</tt></a> event is fired.</li>
6147
+ <li><tt>options.up: <tt>Boolean</tt></tt> &mdash; remove the item when the next <a href="../classes/Tool.html#onmouseup"><tt>tool.onMouseUp</tt></a> event is fired.</li>
6029
6148
  </ul>
6030
6149
 
6031
6150
  <ul class="member-list">
@@ -6653,11 +6772,68 @@ path.tweenFrom({ fillColor: 'red' }, { duration: 1000 });
6653
6772
  </div>
6654
6773
 
6655
6774
 
6775
+ <div class="reference-members">
6776
+ <h2>Static Methods</h2>
6777
+
6778
+
6779
+ <div id="getbounds-items" class="member">
6780
+ <div class="member-link">
6781
+ <a name="getbounds-items" href="#getbounds-items"><tt><b>Item.getBounds</b>(items[, options])</tt></a>
6782
+ </div>
6783
+ <div class="member-description hidden">
6784
+ <div class="member-text">
6785
+ <p>Returns the bounds of the given items in project coordinates, as if they were grouped, without moving them, e.g. the bounds of the selection: <code>Item.getBounds(project.selectedItems)</code>. As in groups, items that aren&rsquo;t visible or are empty are left out.</p>
6786
+ <ul class="member-list">
6787
+ <h4>Options:</h4>
6788
+ <li><tt>options.stroke: <tt>Boolean</tt></tt> &mdash; include the stroke widths, as <a href="../classes/Item.html#strokebounds"><tt>item.strokeBounds</tt></a> does &mdash;&nbsp;default: <tt>false</tt></li>
6789
+ <li><tt>options.handle: <tt>Boolean</tt></tt> &mdash; include the handles, as <a href="../classes/Item.html#handlebounds"><tt>item.handleBounds</tt></a> does &mdash;&nbsp;default: <tt>false</tt></li>
6790
+ </ul>
6791
+
6792
+ <ul class="member-list">
6793
+ <h4>Parameters:</h4>
6794
+
6795
+ <li>
6796
+ <tt>items:</tt>
6797
+ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
6798
+ &mdash;&nbsp;the items to get the bounds of
6799
+
6800
+ </li>
6801
+
6802
+ <li>
6803
+ <tt>options:</tt>
6804
+ <tt>Object</tt>
6805
+ &mdash;&nbsp;the kind of bounds
6806
+ &mdash;&nbsp;optional
6807
+ </li>
6808
+
6809
+ </ul>
6810
+
6811
+
6812
+ <ul class="member-list">
6813
+ <h4>Returns:</h4>
6814
+
6815
+ <li>
6816
+ <tt><a href="../classes/Rectangle.html"><tt>Rectangle</tt></a></tt>&nbsp;&mdash;&nbsp;the bounds of the items, empty if there are none
6817
+ </li>
6818
+
6819
+
6820
+ </ul>
6821
+
6822
+
6823
+
6824
+
6825
+
6826
+ </div>
6827
+ </div>
6828
+ </div>
6829
+
6830
+ </div>
6831
+
6656
6832
 
6657
6833
 
6658
6834
  <!-- =========================== copyright notice ========================== -->
6659
6835
  <p class="footer">
6660
- Paper.js v0.13.0<br>
6836
+ Paper.js v0.15.0<br>
6661
6837
  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
6838
  <div class="content-end"></div>
6663
6839
 
@@ -17,6 +17,7 @@
17
17
 
18
18
 
19
19
 
20
+
20
21
  </div>
21
22
 
22
23
 
@@ -130,7 +131,7 @@
130
131
 
131
132
  <!-- =========================== copyright notice ========================== -->
132
133
  <p class="footer">
133
- Paper.js v0.13.0<br>
134
+ Paper.js v0.15.0<br>
134
135
  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
136
  <div class="content-end"></div>
136
137
 
@@ -19,6 +19,7 @@
19
19
 
20
20
  <p>The KeyEvent object is received by the <a href="../classes/Tool.html"><tt>Tool</tt></a>&rsquo;s keyboard handlers <a href="../classes/Tool.html#onkeydown"><tt>tool.onKeyDown</tt></a>, <a href="../classes/Tool.html#onkeyup"><tt>tool.onKeyUp</tt></a>. The KeyEvent object is the only parameter passed to these functions and contains information about the keyboard event.</p>
21
21
 
22
+
22
23
  </div>
23
24
 
24
25
 
@@ -167,14 +168,14 @@
167
168
  <div class="reference-members"><h2>Properties inherited from <a href="../classes/Event.html"><tt>Event</tt></a></h2>
168
169
 
169
170
 
170
- <div id="timestamp" class="member">
171
+ <div id="time" class="member">
171
172
  <div class="member-link">
172
- <a name="timestamp" href="#timestamp"><tt><b>timeStamp</b></tt></a>
173
+ <a name="time" href="#time"><tt><b>time</b></tt></a>
173
174
  </div>
174
175
  <div class="member-description hidden">
175
176
 
176
177
  <div class="member-text">
177
- <p>The time at which the event was created, in milliseconds since the epoch.</p>
178
+ <p>The time at which the event was created, in seconds, as the times of frame events are. Browsers count from the page&rsquo;s time origin, as <code>performance.now()</code> does, while <a href="../classes/View.html#dispatchmouseevent-type-point"><tt>view.dispatchMouseEvent(type, point[, options])</tt></a> and <a href="../classes/View.html#dispatchkeyevent-type-key"><tt>view.dispatchKeyEvent(type, key[, options])</tt></a> use <code>Date.now()</code> unless the host passes a time, so only compare the times of events from the same source.</p>
178
179
 
179
180
  <p>Read only.</p>
180
181
 
@@ -299,7 +300,7 @@
299
300
 
300
301
  <!-- =========================== copyright notice ========================== -->
301
302
  <p class="footer">
302
- Paper.js v0.13.0<br>
303
+ Paper.js v0.15.0<br>
303
304
  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
305
  <div class="content-end"></div>
305
306