paper 0.12.14 → 0.12.16

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 (47) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/README.md +2 -2
  3. package/dist/docs/assets/js/paper.js +32 -19
  4. package/dist/docs/classes/Color.html +2 -2
  5. package/dist/docs/classes/CompoundPath.html +2 -2
  6. package/dist/docs/classes/Curve.html +2 -2
  7. package/dist/docs/classes/CurveLocation.html +2 -2
  8. package/dist/docs/classes/Event.html +2 -2
  9. package/dist/docs/classes/Gradient.html +2 -2
  10. package/dist/docs/classes/GradientStop.html +2 -2
  11. package/dist/docs/classes/Group.html +2 -2
  12. package/dist/docs/classes/HitResult.html +2 -2
  13. package/dist/docs/classes/Item.html +2 -2
  14. package/dist/docs/classes/Key.html +2 -2
  15. package/dist/docs/classes/KeyEvent.html +2 -2
  16. package/dist/docs/classes/Layer.html +2 -2
  17. package/dist/docs/classes/Matrix.html +2 -2
  18. package/dist/docs/classes/MouseEvent.html +2 -2
  19. package/dist/docs/classes/PaperScope.html +2 -2
  20. package/dist/docs/classes/PaperScript.html +2 -2
  21. package/dist/docs/classes/Path.html +2 -2
  22. package/dist/docs/classes/PathItem.html +2 -2
  23. package/dist/docs/classes/Point.html +2 -2
  24. package/dist/docs/classes/PointText.html +2 -2
  25. package/dist/docs/classes/Project.html +2 -2
  26. package/dist/docs/classes/Raster.html +35 -4
  27. package/dist/docs/classes/Rectangle.html +2 -2
  28. package/dist/docs/classes/Segment.html +3 -3
  29. package/dist/docs/classes/Shape.html +3 -3
  30. package/dist/docs/classes/Size.html +2 -2
  31. package/dist/docs/classes/Style.html +2 -2
  32. package/dist/docs/classes/SymbolDefinition.html +2 -2
  33. package/dist/docs/classes/SymbolItem.html +2 -2
  34. package/dist/docs/classes/TextItem.html +2 -2
  35. package/dist/docs/classes/Tool.html +2 -2
  36. package/dist/docs/classes/ToolEvent.html +2 -2
  37. package/dist/docs/classes/Tween.html +2 -2
  38. package/dist/docs/classes/View.html +2 -2
  39. package/dist/docs/classes/global.html +2 -2
  40. package/dist/docs/classes/index.html +2 -2
  41. package/dist/docs/index.html +1 -1
  42. package/dist/paper-core.js +32 -19
  43. package/dist/paper-core.min.js +3 -3
  44. package/dist/paper-full.js +32 -19
  45. package/dist/paper-full.min.js +3 -3
  46. package/dist/paper.d.ts +7 -4
  47. package/package.json +17 -15
package/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # Change Log
2
2
 
3
+ ## `0.12.16`
4
+
5
+ ### Fixed
6
+
7
+ - Fix `Item#rasterize()` bounds cache when reusing raster.
8
+ - Fix new warning in New warning in Chrome Console by providing
9
+ `{ willReadFrequently: true }` canvas context option where needed (#1999,
10
+ #2000, #2003).
11
+ - Fix `Path.*` constructor properties handling when passing `{ insert: true }`
12
+ -
13
+ ### Changed
14
+
15
+ - Rename `Raster#setImageData()` to `#putImageData()`.
16
+ - Change `Raster#setImageData()` to also respect image size.
17
+ - Add separate `Numerical.ANGULAR_EPSILON` for `Path#arcTo()`
18
+
19
+ ## `0.12.15`
20
+
21
+ ### Fixed
22
+
23
+ - Fix NPM installation problem with `husky` introduced in `v0.12.13`
24
+
3
25
  ## `0.12.13`
4
26
 
5
27
  ### Fixed
package/README.md CHANGED
@@ -304,7 +304,7 @@ fork](https://help.github.com/articles/fork-a-repo/). Then do this:
304
304
 
305
305
  git clone --recursive git@github.com:yourusername/paper.js.git
306
306
  cd paper.js
307
- git remote add upstream git://github.com/paperjs/paper.js.git
307
+ git remote add upstream git@github.com:paperjs/paper.js.git
308
308
 
309
309
  To then fetch changes from upstream, run
310
310
 
@@ -368,4 +368,4 @@ For a list of authors and contributors, please see
368
368
 
369
369
  Distributed under the MIT license. See
370
370
  [LICENSE](https://github.com/paperjs/paper.js/blob/master/LICENSE.txt)
371
- fo details.
371
+ for details.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Paper.js v0.12.14 - The Swiss Army Knife of Vector Graphics Scripting.
2
+ * Paper.js v0.12.16 - The Swiss Army Knife of Vector Graphics Scripting.
3
3
  * http://paperjs.org/
4
4
  *
5
5
  * Copyright (c) 2011 - 2020, Jürg Lehni & Jonathan Puckey
@@ -9,7 +9,7 @@
9
9
  *
10
10
  * All rights reserved.
11
11
  *
12
- * Date: Wed Mar 17 10:01:28 2021 +0100
12
+ * Date: Thu Oct 20 17:38:51 2022 +0200
13
13
  *
14
14
  ***
15
15
  *
@@ -575,7 +575,7 @@ statics: {
575
575
  if (Base.isPlainObject(arg)) {
576
576
  arg.insert = false;
577
577
  if (useTarget) {
578
- args = args.concat([{ insert: true }]);
578
+ args = args.concat([Item.INSERT]);
579
579
  }
580
580
  }
581
581
  }
@@ -821,7 +821,7 @@ var PaperScope = Base.extend({
821
821
  }
822
822
  },
823
823
 
824
- version: "0.12.14",
824
+ version: "0.12.16",
825
825
 
826
826
  getView: function() {
827
827
  var project = this.project;
@@ -1221,6 +1221,7 @@ var Numerical = new function() {
1221
1221
  CURVETIME_EPSILON: 1e-8,
1222
1222
  GEOMETRIC_EPSILON: 1e-7,
1223
1223
  TRIGONOMETRIC_EPSILON: 1e-8,
1224
+ ANGULAR_EPSILON: 1e-5,
1224
1225
  KAPPA: 4 * (sqrt(2) - 1) / 3,
1225
1226
 
1226
1227
  isZero: function(val) {
@@ -3138,6 +3139,7 @@ var Item = Base.extend(Emitter, {
3138
3139
  return extend.base.apply(this, arguments);
3139
3140
  },
3140
3141
 
3142
+ INSERT: { insert: true },
3141
3143
  NO_INSERT: { insert: false }
3142
3144
  },
3143
3145
 
@@ -3224,13 +3226,13 @@ new function() {
3224
3226
  matrix._owner = this;
3225
3227
  this._style = new Style(project._currentStyle, this, project);
3226
3228
  if (internal || hasProps && props.insert == false
3227
- || !settings.insertItems && !(hasProps && props.insert === true)) {
3229
+ || !settings.insertItems && !(hasProps && props.insert == true)) {
3228
3230
  this._setProject(project);
3229
3231
  } else {
3230
3232
  (hasProps && props.parent || project)
3231
3233
  ._insertItem(undefined, this, true);
3232
3234
  }
3233
- if (hasProps && props !== Item.NO_INSERT) {
3235
+ if (hasProps && props !== Item.NO_INSERT && props !== Item.INSERT) {
3234
3236
  this.set(props, {
3235
3237
  internal: true, insert: true, project: true, parent: true
3236
3238
  });
@@ -3903,9 +3905,7 @@ new function() {
3903
3905
  resolution = arg0;
3904
3906
  insert = arg1;
3905
3907
  }
3906
- if (raster) {
3907
- raster.matrix.reset(true);
3908
- } else {
3908
+ if (!raster) {
3909
3909
  raster = new Raster(Item.NO_INSERT);
3910
3910
  }
3911
3911
  var bounds = this.getStrokeBounds(),
@@ -3924,7 +3924,7 @@ new function() {
3924
3924
  this.draw(ctx, new Base({ matrices: [matrix] }));
3925
3925
  ctx.restore();
3926
3926
  }
3927
- raster.transform(
3927
+ raster._matrix.set(
3928
3928
  new Matrix()
3929
3929
  .translate(topLeft.add(boundsSize.divide(2)))
3930
3930
  .scale(1 / scale)
@@ -5733,11 +5733,16 @@ var Raster = Item.extend({
5733
5733
  rect.width, rect.height);
5734
5734
  },
5735
5735
 
5736
- setImageData: function(data ) {
5736
+ putImageData: function(data ) {
5737
5737
  var point = Point.read(arguments, 1);
5738
5738
  this.getContext(true).putImageData(data, point.x, point.y);
5739
5739
  },
5740
5740
 
5741
+ setImageData: function(data) {
5742
+ this.setSize(data);
5743
+ this.getContext(true).putImageData(data, 0, 0);
5744
+ },
5745
+
5741
5746
  _getBounds: function(matrix, options) {
5742
5747
  var rect = new Rectangle(this._size).setCenter(0, 0);
5743
5748
  return matrix ? matrix._transformBounds(rect) : rect;
@@ -9669,9 +9674,11 @@ new function() {
9669
9674
  }
9670
9675
  }
9671
9676
  if (extent) {
9672
- var epsilon = 1e-7,
9677
+ var epsilon = 1e-5,
9673
9678
  ext = abs(extent),
9674
- count = ext >= 360 ? 4 : Math.ceil((ext - epsilon) / 90),
9679
+ count = ext >= 360
9680
+ ? 4
9681
+ : Math.ceil((ext - epsilon) / 90),
9675
9682
  inc = extent / count,
9676
9683
  half = inc * Math.PI / 360,
9677
9684
  z = 4 / 3 * Math.sin(half) / (1 + Math.cos(half)),
@@ -9979,10 +9986,14 @@ Path.inject({ statics: new function() {
9979
9986
 
9980
9987
  function createPath(segments, closed, args) {
9981
9988
  var props = Base.getNamed(args),
9982
- path = new Path(props && props.insert == false && Item.NO_INSERT);
9989
+ path = new Path(props && (
9990
+ props.insert == true ? Item.INSERT
9991
+ : props.insert == false ? Item.NO_INSERT
9992
+ : null
9993
+ ));
9983
9994
  path._add(segments);
9984
9995
  path._closed = closed;
9985
- return path.set(props, { insert: true });
9996
+ return path.set(props, Item.INSERT);
9986
9997
  }
9987
9998
 
9988
9999
  function createEllipse(center, radius, args) {
@@ -11700,7 +11711,9 @@ var Color = Base.extend(new function() {
11700
11711
  if (!color) {
11701
11712
  if (window) {
11702
11713
  if (!colorCtx) {
11703
- colorCtx = CanvasProvider.getContext(1, 1);
11714
+ colorCtx = CanvasProvider.getContext(1, 1, {
11715
+ willReadFrequently: true
11716
+ });
11704
11717
  colorCtx.globalCompositeOperation = 'copy';
11705
11718
  }
11706
11719
  colorCtx.fillStyle = 'rgba(0,0,0,0)';
@@ -14328,7 +14341,7 @@ var Http = {
14328
14341
  var CanvasProvider = Base.exports.CanvasProvider = {
14329
14342
  canvases: [],
14330
14343
 
14331
- getCanvas: function(width, height) {
14344
+ getCanvas: function(width, height, options) {
14332
14345
  if (!window)
14333
14346
  return null;
14334
14347
  var canvas,
@@ -14343,7 +14356,7 @@ var CanvasProvider = Base.exports.CanvasProvider = {
14343
14356
  canvas = document.createElement('canvas');
14344
14357
  clear = false;
14345
14358
  }
14346
- var ctx = canvas.getContext('2d');
14359
+ var ctx = canvas.getContext('2d', options || {});
14347
14360
  if (!ctx) {
14348
14361
  throw new Error('Canvas ' + canvas +
14349
14362
  ' is unable to provide a 2D context.');
@@ -14559,7 +14572,7 @@ var BlendMode = new function() {
14559
14572
  this[mode] = true;
14560
14573
  }, {});
14561
14574
 
14562
- var ctx = CanvasProvider.getContext(1, 1);
14575
+ var ctx = CanvasProvider.getContext(1, 1, { willReadFrequently: true });
14563
14576
  if (ctx) {
14564
14577
  Base.each(modes, function(func, mode) {
14565
14578
  var darken = mode === 'darken',
@@ -2179,8 +2179,8 @@ circle.fillColor = Color.random();
2179
2179
 
2180
2180
  <!-- =========================== copyright notice ========================== -->
2181
2181
  <p class="footer">
2182
- Paper.js v0.12.14<br>
2183
- Copyright &#169; 2011—2021 <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>
2182
+ Paper.js v0.12.16<br>
2183
+ Copyright &#169; 2011—2022 <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>
2184
2184
  <div class="content-end"></div>
2185
2185
 
2186
2186
 
@@ -8868,8 +8868,8 @@ path.smooth();
8868
8868
 
8869
8869
  <!-- =========================== copyright notice ========================== -->
8870
8870
  <p class="footer">
8871
- Paper.js v0.12.14<br>
8872
- Copyright &#169; 2011—2021 <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>
8871
+ Paper.js v0.12.16<br>
8872
+ Copyright &#169; 2011—2022 <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>
8873
8873
  <div class="content-end"></div>
8874
8874
 
8875
8875
 
@@ -2314,8 +2314,8 @@
2314
2314
 
2315
2315
  <!-- =========================== copyright notice ========================== -->
2316
2316
  <p class="footer">
2317
- Paper.js v0.12.14<br>
2318
- Copyright &#169; 2011—2021 <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>
2317
+ Paper.js v0.12.16<br>
2318
+ Copyright &#169; 2011—2022 <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>
2319
2319
  <div class="content-end"></div>
2320
2320
 
2321
2321
 
@@ -663,8 +663,8 @@
663
663
 
664
664
  <!-- =========================== copyright notice ========================== -->
665
665
  <p class="footer">
666
- Paper.js v0.12.14<br>
667
- Copyright &#169; 2011—2021 <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>
666
+ Paper.js v0.12.16<br>
667
+ Copyright &#169; 2011—2022 <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>
668
668
  <div class="content-end"></div>
669
669
 
670
670
 
@@ -167,8 +167,8 @@
167
167
 
168
168
  <!-- =========================== copyright notice ========================== -->
169
169
  <p class="footer">
170
- Paper.js v0.12.14<br>
171
- Copyright &#169; 2011—2021 <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>
170
+ Paper.js v0.12.16<br>
171
+ Copyright &#169; 2011—2022 <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>
172
172
  <div class="content-end"></div>
173
173
 
174
174
 
@@ -231,8 +231,8 @@ path.fillColor = {
231
231
 
232
232
  <!-- =========================== copyright notice ========================== -->
233
233
  <p class="footer">
234
- Paper.js v0.12.14<br>
235
- Copyright &#169; 2011—2021 <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>
234
+ Paper.js v0.12.16<br>
235
+ Copyright &#169; 2011—2022 <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>
236
236
  <div class="content-end"></div>
237
237
 
238
238
 
@@ -264,8 +264,8 @@ function onFrame(event) {
264
264
 
265
265
  <!-- =========================== copyright notice ========================== -->
266
266
  <p class="footer">
267
- Paper.js v0.12.14<br>
268
- Copyright &#169; 2011—2021 <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>
267
+ Paper.js v0.12.16<br>
268
+ Copyright &#169; 2011—2022 <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>
269
269
  <div class="content-end"></div>
270
270
 
271
271
 
@@ -6855,8 +6855,8 @@ path.tweenFrom({ fillColor: 'red' }, { duration: 1000 });
6855
6855
 
6856
6856
  <!-- =========================== copyright notice ========================== -->
6857
6857
  <p class="footer">
6858
- Paper.js v0.12.14<br>
6859
- Copyright &#169; 2011—2021 <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>
6858
+ Paper.js v0.12.16<br>
6859
+ Copyright &#169; 2011—2022 <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>
6860
6860
  <div class="content-end"></div>
6861
6861
 
6862
6862
 
@@ -230,8 +230,8 @@
230
230
 
231
231
  <!-- =========================== copyright notice ========================== -->
232
232
  <p class="footer">
233
- Paper.js v0.12.14<br>
234
- Copyright &#169; 2011—2021 <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>
233
+ Paper.js v0.12.16<br>
234
+ Copyright &#169; 2011—2022 <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>
235
235
  <div class="content-end"></div>
236
236
 
237
237
 
@@ -6619,8 +6619,8 @@ path.tweenFrom({ fillColor: 'red' }, { duration: 1000 });
6619
6619
 
6620
6620
  <!-- =========================== copyright notice ========================== -->
6621
6621
  <p class="footer">
6622
- Paper.js v0.12.14<br>
6623
- Copyright &#169; 2011—2021 <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>
6622
+ Paper.js v0.12.16<br>
6623
+ Copyright &#169; 2011—2022 <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>
6624
6624
  <div class="content-end"></div>
6625
6625
 
6626
6626
 
@@ -130,8 +130,8 @@
130
130
 
131
131
  <!-- =========================== copyright notice ========================== -->
132
132
  <p class="footer">
133
- Paper.js v0.12.14<br>
134
- Copyright &#169; 2011—2021 <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>
133
+ Paper.js v0.12.16<br>
134
+ Copyright &#169; 2011—2022 <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
 
137
137
 
@@ -299,8 +299,8 @@
299
299
 
300
300
  <!-- =========================== copyright notice ========================== -->
301
301
  <p class="footer">
302
- Paper.js v0.12.14<br>
303
- Copyright &#169; 2011—2021 <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>
302
+ Paper.js v0.12.16<br>
303
+ Copyright &#169; 2011—2022 <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
 
306
306
 
@@ -6841,8 +6841,8 @@ function onFrame(event) {
6841
6841
 
6842
6842
  <!-- =========================== copyright notice ========================== -->
6843
6843
  <p class="footer">
6844
- Paper.js v0.12.14<br>
6845
- Copyright &#169; 2011—2021 <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>
6844
+ Paper.js v0.12.16<br>
6845
+ Copyright &#169; 2011—2022 <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>
6846
6846
  <div class="content-end"></div>
6847
6847
 
6848
6848
 
@@ -1735,8 +1735,8 @@ Array of <tt>Numbers</tt>
1735
1735
 
1736
1736
  <!-- =========================== copyright notice ========================== -->
1737
1737
  <p class="footer">
1738
- Paper.js v0.12.14<br>
1739
- Copyright &#169; 2011—2021 <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>
1738
+ Paper.js v0.12.16<br>
1739
+ Copyright &#169; 2011—2022 <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
 
1742
1742
 
@@ -346,8 +346,8 @@
346
346
 
347
347
  <!-- =========================== copyright notice ========================== -->
348
348
  <p class="footer">
349
- Paper.js v0.12.14<br>
350
- Copyright &#169; 2011—2021 <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>
349
+ Paper.js v0.12.16<br>
350
+ Copyright &#169; 2011—2022 <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
 
353
353
 
@@ -450,8 +450,8 @@
450
450
 
451
451
  <!-- =========================== copyright notice ========================== -->
452
452
  <p class="footer">
453
- Paper.js v0.12.14<br>
454
- Copyright &#169; 2011—2021 <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>
453
+ Paper.js v0.12.16<br>
454
+ Copyright &#169; 2011—2022 <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>
455
455
  <div class="content-end"></div>
456
456
 
457
457
 
@@ -189,8 +189,8 @@
189
189
 
190
190
  <!-- =========================== copyright notice ========================== -->
191
191
  <p class="footer">
192
- Paper.js v0.12.14<br>
193
- Copyright &#169; 2011—2021 <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>
192
+ Paper.js v0.12.16<br>
193
+ Copyright &#169; 2011—2022 <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
194
  <div class="content-end"></div>
195
195
 
196
196
 
@@ -11766,8 +11766,8 @@ path.smooth();
11766
11766
 
11767
11767
  <!-- =========================== copyright notice ========================== -->
11768
11768
  <p class="footer">
11769
- Paper.js v0.12.14<br>
11770
- Copyright &#169; 2011—2021 <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>
11769
+ Paper.js v0.12.16<br>
11770
+ Copyright &#169; 2011—2022 <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>
11771
11771
  <div class="content-end"></div>
11772
11772
 
11773
11773
 
@@ -8630,8 +8630,8 @@ path.tweenFrom({ fillColor: 'red' }, { duration: 1000 });
8630
8630
 
8631
8631
  <!-- =========================== copyright notice ========================== -->
8632
8632
  <p class="footer">
8633
- Paper.js v0.12.14<br>
8634
- Copyright &#169; 2011—2021 <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>
8633
+ Paper.js v0.12.16<br>
8634
+ Copyright &#169; 2011—2022 <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>
8635
8635
  <div class="content-end"></div>
8636
8636
 
8637
8637
 
@@ -2690,8 +2690,8 @@ var point = maxPoint * randomPoint;</code></pre>
2690
2690
 
2691
2691
  <!-- =========================== copyright notice ========================== -->
2692
2692
  <p class="footer">
2693
- Paper.js v0.12.14<br>
2694
- Copyright &#169; 2011—2021 <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>
2693
+ Paper.js v0.12.16<br>
2694
+ Copyright &#169; 2011—2022 <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>
2695
2695
  <div class="content-end"></div>
2696
2696
 
2697
2697
 
@@ -7020,8 +7020,8 @@ function onMouseMove(event) {
7020
7020
 
7021
7021
  <!-- =========================== copyright notice ========================== -->
7022
7022
  <p class="footer">
7023
- Paper.js v0.12.14<br>
7024
- Copyright &#169; 2011—2021 <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>
7023
+ Paper.js v0.12.16<br>
7024
+ Copyright &#169; 2011—2022 <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>
7025
7025
  <div class="content-end"></div>
7026
7026
 
7027
7027
 
@@ -1296,8 +1296,8 @@ for (var i = 0; i < items.length; i++) {
1296
1296
 
1297
1297
  <!-- =========================== copyright notice ========================== -->
1298
1298
  <p class="footer">
1299
- Paper.js v0.12.14<br>
1300
- Copyright &#169; 2011—2021 <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>
1299
+ Paper.js v0.12.16<br>
1300
+ Copyright &#169; 2011—2022 <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>
1301
1301
  <div class="content-end"></div>
1302
1302
 
1303
1303
 
@@ -1171,9 +1171,9 @@ raster.on('load', function() {
1171
1171
  </div>
1172
1172
 
1173
1173
 
1174
- <div id="setimagedata-data-point" class="member">
1174
+ <div id="putimagedata-data-point" class="member">
1175
1175
  <div class="member-link">
1176
- <a name="setimagedata-data-point" href="#setimagedata-data-point"><tt><b>setImageData</b>(data, point)</tt></a>
1176
+ <a name="putimagedata-data-point" href="#putimagedata-data-point"><tt><b>putImageData</b>(data, point)</tt></a>
1177
1177
  </div>
1178
1178
  <div class="member-description hidden">
1179
1179
  <div class="member-text">
@@ -1204,6 +1204,37 @@ raster.on('load', function() {
1204
1204
 
1205
1205
 
1206
1206
 
1207
+ </div>
1208
+ </div>
1209
+ </div>
1210
+
1211
+
1212
+ <div id="setimagedata-data" class="member">
1213
+ <div class="member-link">
1214
+ <a name="setimagedata-data" href="#setimagedata-data"><tt><b>setImageData</b>(data)</tt></a>
1215
+ </div>
1216
+ <div class="member-description hidden">
1217
+ <div class="member-text">
1218
+
1219
+
1220
+
1221
+ <ul class="member-list">
1222
+ <h4>Parameters:</h4>
1223
+
1224
+ <li>
1225
+ <tt>data:</tt>
1226
+ <tt>ImageData</tt>
1227
+
1228
+
1229
+ </li>
1230
+
1231
+ </ul>
1232
+
1233
+
1234
+
1235
+
1236
+
1237
+
1207
1238
  </div>
1208
1239
  </div>
1209
1240
  </div>
@@ -7803,8 +7834,8 @@ path.tweenFrom({ fillColor: 'red' }, { duration: 1000 });
7803
7834
 
7804
7835
  <!-- =========================== copyright notice ========================== -->
7805
7836
  <p class="footer">
7806
- Paper.js v0.12.14<br>
7807
- Copyright &#169; 2011—2021 <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>
7837
+ Paper.js v0.12.16<br>
7838
+ Copyright &#169; 2011—2022 <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>
7808
7839
  <div class="content-end"></div>
7809
7840
 
7810
7841
 
@@ -1645,8 +1645,8 @@ intersectionPath.fillColor = 'red';
1645
1645
 
1646
1646
  <!-- =========================== copyright notice ========================== -->
1647
1647
  <p class="footer">
1648
- Paper.js v0.12.14<br>
1649
- Copyright &#169; 2011—2021 <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>
1648
+ Paper.js v0.12.16<br>
1649
+ Copyright &#169; 2011—2022 <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>
1650
1650
  <div class="content-end"></div>
1651
1651
 
1652
1652
 
@@ -16,7 +16,7 @@
16
16
  <h1>Segment</h1>
17
17
 
18
18
  <p>The Segment object represents the points of a path through which its <a href="../classes/Curve.html"><tt>Curve</tt></a> objects pass. The segments of a path can be accessed through its <a href="../classes/Path.html#segments"><tt>path.segments</tt></a> array.</p>
19
- <p>Each segment consists of an anchor point (<a href="../classes/Segment.html#point"><tt>segment.point</tt></a>) and optionaly an incoming and an outgoing handle (<a href="../classes/Segment.html#handlein"><tt>segment.handleIn</tt></a> and <a href="../classes/Segment.html#handleout"><tt>segment.handleOut</tt></a>), describing the tangents of the two <a href="../classes/Curve.html"><tt>Curve</tt></a> objects that are connected by this segment.</p>
19
+ <p>Each segment consists of an anchor point (<a href="../classes/Segment.html#point"><tt>segment.point</tt></a>) and optionally an incoming and an outgoing handle (<a href="../classes/Segment.html#handlein"><tt>segment.handleIn</tt></a> and <a href="../classes/Segment.html#handleout"><tt>segment.handleOut</tt></a>), describing the tangents of the two <a href="../classes/Curve.html"><tt>Curve</tt></a> objects that are connected by this segment.</p>
20
20
 
21
21
  </div>
22
22
 
@@ -930,8 +930,8 @@ path.segments[2].selected = true;
930
930
 
931
931
  <!-- =========================== copyright notice ========================== -->
932
932
  <p class="footer">
933
- Paper.js v0.12.14<br>
934
- Copyright &#169; 2011—2021 <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>
933
+ Paper.js v0.12.16<br>
934
+ Copyright &#169; 2011—2022 <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>
935
935
  <div class="content-end"></div>
936
936
 
937
937
 
@@ -464,7 +464,7 @@ var shape = new Shape.Rectangle({
464
464
 
465
465
  <script type="text/paperscript" canvas="canvas-9">
466
466
  var shape = new Shape.Rectangle({
467
- topLeft: [20, 20],
467
+ topLeft: [20, 20],
468
468
  bottomRight: [80, 80],
469
469
  radius: 10,
470
470
  strokeColor: 'black'
@@ -7354,8 +7354,8 @@ path.tweenFrom({ fillColor: 'red' }, { duration: 1000 });
7354
7354
 
7355
7355
  <!-- =========================== copyright notice ========================== -->
7356
7356
  <p class="footer">
7357
- Paper.js v0.12.14<br>
7358
- Copyright &#169; 2011—2021 <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>
7357
+ Paper.js v0.12.16<br>
7358
+ Copyright &#169; 2011—2022 <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>
7359
7359
  <div class="content-end"></div>
7360
7360
 
7361
7361
 
@@ -1816,8 +1816,8 @@ var size = maxSize * randomSize;</code></pre>
1816
1816
 
1817
1817
  <!-- =========================== copyright notice ========================== -->
1818
1818
  <p class="footer">
1819
- Paper.js v0.12.14<br>
1820
- Copyright &#169; 2011—2021 <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>
1819
+ Paper.js v0.12.16<br>
1820
+ Copyright &#169; 2011—2022 <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>
1821
1821
  <div class="content-end"></div>
1822
1822
 
1823
1823
 
@@ -910,8 +910,8 @@ var circle = new Path.Circle({
910
910
 
911
911
  <!-- =========================== copyright notice ========================== -->
912
912
  <p class="footer">
913
- Paper.js v0.12.14<br>
914
- Copyright &#169; 2011—2021 <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>
913
+ Paper.js v0.12.16<br>
914
+ Copyright &#169; 2011—2022 <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>
915
915
  <div class="content-end"></div>
916
916
 
917
917