paper 0.12.17 → 0.12.19

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 (46) hide show
  1. package/CHANGELOG.md +44 -1
  2. package/dist/docs/assets/js/paper.js +107 -61
  3. package/dist/docs/classes/Color.html +2 -2
  4. package/dist/docs/classes/CompoundPath.html +3 -4
  5. package/dist/docs/classes/Curve.html +2 -2
  6. package/dist/docs/classes/CurveLocation.html +2 -2
  7. package/dist/docs/classes/Event.html +2 -2
  8. package/dist/docs/classes/Gradient.html +2 -2
  9. package/dist/docs/classes/GradientStop.html +2 -2
  10. package/dist/docs/classes/Group.html +3 -4
  11. package/dist/docs/classes/HitResult.html +2 -2
  12. package/dist/docs/classes/Item.html +3 -4
  13. package/dist/docs/classes/Key.html +2 -2
  14. package/dist/docs/classes/KeyEvent.html +2 -2
  15. package/dist/docs/classes/Layer.html +3 -4
  16. package/dist/docs/classes/Matrix.html +2 -2
  17. package/dist/docs/classes/MouseEvent.html +2 -2
  18. package/dist/docs/classes/PaperScope.html +2 -2
  19. package/dist/docs/classes/PaperScript.html +2 -2
  20. package/dist/docs/classes/Path.html +3 -4
  21. package/dist/docs/classes/PathItem.html +3 -4
  22. package/dist/docs/classes/Point.html +2 -2
  23. package/dist/docs/classes/PointText.html +3 -4
  24. package/dist/docs/classes/Project.html +3 -2
  25. package/dist/docs/classes/Raster.html +3 -4
  26. package/dist/docs/classes/Rectangle.html +2 -2
  27. package/dist/docs/classes/Segment.html +2 -2
  28. package/dist/docs/classes/Shape.html +3 -4
  29. package/dist/docs/classes/Size.html +2 -2
  30. package/dist/docs/classes/Style.html +2 -2
  31. package/dist/docs/classes/SymbolDefinition.html +2 -2
  32. package/dist/docs/classes/SymbolItem.html +3 -4
  33. package/dist/docs/classes/TextItem.html +3 -4
  34. package/dist/docs/classes/Tool.html +2 -2
  35. package/dist/docs/classes/ToolEvent.html +2 -2
  36. package/dist/docs/classes/Tween.html +2 -2
  37. package/dist/docs/classes/View.html +3 -3
  38. package/dist/docs/classes/global.html +2 -2
  39. package/dist/docs/classes/index.html +2 -2
  40. package/dist/docs/index.html +1 -1
  41. package/dist/paper-core.js +106 -60
  42. package/dist/paper-core.min.js +3 -3
  43. package/dist/paper-full.js +107 -61
  44. package/dist/paper-full.min.js +3 -3
  45. package/dist/paper.d.ts +10 -4
  46. package/package.json +8 -5
package/dist/paper.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Paper.js v0.12.17 - The Swiss Army Knife of Vector Graphics Scripting.
2
+ * Paper.js v0.12.19 - 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: Thu Nov 3 21:15:36 2022 +0100
12
+ * Date: Sun Oct 18 13:05:31 2026 +0200
13
13
  *
14
14
  * This is an auto-generated type definition.
15
15
  */
@@ -1572,7 +1572,7 @@ declare namespace paper {
1572
1572
  /**
1573
1573
  * The index of this item within the list of its parent's children.
1574
1574
  */
1575
- readonly index: number
1575
+ index: number
1576
1576
 
1577
1577
  /**
1578
1578
  * The color of the stroke.
@@ -2054,6 +2054,9 @@ declare namespace paper {
2054
2054
  * @option [options.embedImages=true] {Boolean} whether raster images should
2055
2055
  * be embedded as base64 data inlined in the xlink:href attribute, or
2056
2056
  * kept as a link to their external URL.
2057
+ * @option [options.reduceAttributes=true] {Boolean} wether to only include
2058
+ * style attributes in the SVG output that differ from their parents,
2059
+ * or to always include them (much faster but leading to redundancies).
2057
2060
  *
2058
2061
  * @param options - the export options
2059
2062
  *
@@ -5236,6 +5239,9 @@ declare namespace paper {
5236
5239
  * @option [options.embedImages=true] {Boolean} whether raster images should
5237
5240
  * be embedded as base64 data inlined in the xlink:href attribute, or
5238
5241
  * kept as a link to their external URL.
5242
+ * @option [options.reduceAttributes=true] {Boolean} wether to only include
5243
+ * style attributes in the SVG output that differ from their parents,
5244
+ * or to always include them (much faster but leading to redundancies).
5239
5245
  *
5240
5246
  * @param options - the export options
5241
5247
  *
@@ -6972,7 +6978,7 @@ declare namespace paper {
6972
6978
  readonly pixelRatio: number
6973
6979
 
6974
6980
  /**
6975
- * The resoltuion of the underlying canvas / device in pixel per inch (DPI).
6981
+ * The resolution of the underlying canvas / device in pixel per inch (DPI).
6976
6982
  * It is `72` for normal displays, and `144` for high-resolution
6977
6983
  * displays with a pixel-ratio of `2`.
6978
6984
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "paper",
3
- "version": "0.12.17",
3
+ "version": "0.12.19",
4
4
  "description": "The Swiss Army Knife of Vector Graphics Scripting",
5
5
  "license": "MIT",
6
6
  "homepage": "http://paperjs.org",
@@ -32,7 +32,10 @@
32
32
  "files": [
33
33
  "AUTHORS.md",
34
34
  "CHANGELOG.md",
35
- "dist/",
35
+ "dist/paper-*.js",
36
+ "dist/*.d.ts",
37
+ "dist/node/*",
38
+ "dist/docs/**",
36
39
  "examples/",
37
40
  "LICENSE.txt",
38
41
  "README.md"
@@ -57,7 +60,7 @@
57
60
  "devDependencies": {
58
61
  "acorn": "~0.5.0",
59
62
  "ansi-colors": "^4.1.3",
60
- "canvas": "^2.10.1",
63
+ "canvas": "^2.11.2",
61
64
  "del": "^5.1.0",
62
65
  "fancy-log": "^1.3.3",
63
66
  "gulp": "^3.9.1",
@@ -77,10 +80,10 @@
77
80
  "gulp-zip": "^5.1.0",
78
81
  "husky": "^4.3.8",
79
82
  "jsdom": "^16.7.0",
80
- "jshint": "^2.13.5",
83
+ "jshint": "^2.13.6",
81
84
  "jshint-summary": "^0.4.0",
82
85
  "merge-stream": "^2.0.0",
83
- "minimist": "^1.2.7",
86
+ "minimist": "^1.2.8",
84
87
  "mustache": "^4.2.0",
85
88
  "prepro": "^2.4.0",
86
89
  "qunitjs": "^1.23.1",