paper 0.12.19 → 0.13.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 (51) hide show
  1. package/CHANGELOG.md +250 -0
  2. package/README.md +34 -27
  3. package/dist/docs/assets/js/paper.js +791 -366
  4. package/dist/docs/classes/Color.html +63 -47
  5. package/dist/docs/classes/CompoundPath.html +162 -59
  6. package/dist/docs/classes/Curve.html +9 -7
  7. package/dist/docs/classes/CurveLocation.html +1 -1
  8. package/dist/docs/classes/Event.html +1 -1
  9. package/dist/docs/classes/Gradient.html +1 -1
  10. package/dist/docs/classes/GradientStop.html +1 -1
  11. package/dist/docs/classes/Group.html +63 -24
  12. package/dist/docs/classes/HitResult.html +1 -1
  13. package/dist/docs/classes/Item.html +63 -24
  14. package/dist/docs/classes/Key.html +1 -1
  15. package/dist/docs/classes/KeyEvent.html +1 -1
  16. package/dist/docs/classes/Layer.html +63 -24
  17. package/dist/docs/classes/Matrix.html +1 -1
  18. package/dist/docs/classes/MouseEvent.html +1 -1
  19. package/dist/docs/classes/PaperScope.html +87 -1
  20. package/dist/docs/classes/PaperScript.html +1 -1
  21. package/dist/docs/classes/Path.html +174 -68
  22. package/dist/docs/classes/PathItem.html +280 -177
  23. package/dist/docs/classes/Point.html +143 -21
  24. package/dist/docs/classes/PointText.html +94 -24
  25. package/dist/docs/classes/Project.html +14 -8
  26. package/dist/docs/classes/Raster.html +93 -35
  27. package/dist/docs/classes/Rectangle.html +12 -11
  28. package/dist/docs/classes/Segment.html +1 -1
  29. package/dist/docs/classes/Shape.html +63 -24
  30. package/dist/docs/classes/Size.html +81 -21
  31. package/dist/docs/classes/Style.html +34 -2
  32. package/dist/docs/classes/SymbolDefinition.html +1 -1
  33. package/dist/docs/classes/SymbolItem.html +64 -25
  34. package/dist/docs/classes/TextItem.html +94 -24
  35. package/dist/docs/classes/Tool.html +2 -1
  36. package/dist/docs/classes/ToolEvent.html +27 -1
  37. package/dist/docs/classes/Tween.html +1 -1
  38. package/dist/docs/classes/View.html +203 -10
  39. package/dist/docs/classes/global.html +1 -1
  40. package/dist/docs/classes/index.html +2 -2
  41. package/dist/docs/index.html +1 -1
  42. package/dist/node/canvas.js +10 -8
  43. package/dist/node/self.js +13 -4
  44. package/dist/paper-core.js +772 -355
  45. package/dist/paper-core.min.js +3 -3
  46. package/dist/paper-full.js +791 -366
  47. package/dist/paper-full.min.js +3 -3
  48. package/dist/paper.d.ts +324 -73
  49. package/examples/Rasters/Smoothing.html +1 -1
  50. package/package.json +5 -11
  51. package/dist/node/xml.js +0 -40
@@ -13,7 +13,7 @@
13
13
  var clone = raster.clone();
14
14
  clone.scale(scale);
15
15
  clone.smoothing = value;
16
- clone.bounds.topLeft = position + [400 * index, 0];
16
+ clone.bounds.point = position + [400 * index, 0];
17
17
  new PointText({
18
18
  point: clone.bounds.topLeft + [0, -10],
19
19
  content: value
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "paper",
3
- "version": "0.12.19",
3
+ "version": "0.13.0",
4
4
  "description": "The Swiss Army Knife of Vector Graphics Scripting",
5
5
  "license": "MIT",
6
6
  "homepage": "http://paperjs.org",
@@ -26,7 +26,6 @@
26
26
  "jshint": "gulp jshint",
27
27
  "test": "gulp test",
28
28
  "test:browser": "gulp test:browser",
29
- "test:phantom": "gulp test:phantom",
30
29
  "test:node": "gulp test:node"
31
30
  },
32
31
  "files": [
@@ -54,13 +53,14 @@
54
53
  "./dist/node/self.js": false,
55
54
  "canvas": false,
56
55
  "jsdom": false,
56
+ "jsdom/lib/generated/idl/utils": false,
57
57
  "jsdom/lib/jsdom/living/generated/utils": false,
58
58
  "source-map-support": false
59
59
  },
60
60
  "devDependencies": {
61
61
  "acorn": "~0.5.0",
62
62
  "ansi-colors": "^4.1.3",
63
- "canvas": "^2.11.2",
63
+ "canvas": "^3.2.3",
64
64
  "del": "^5.1.0",
65
65
  "fancy-log": "^1.3.3",
66
66
  "gulp": "^3.9.1",
@@ -79,7 +79,7 @@
79
79
  "gulp-whitespace": "^0.1.0",
80
80
  "gulp-zip": "^5.1.0",
81
81
  "husky": "^4.3.8",
82
- "jsdom": "^16.7.0",
82
+ "jsdom": "^28.1.0",
83
83
  "jshint": "^2.13.6",
84
84
  "jshint-summary": "^0.4.0",
85
85
  "merge-stream": "^2.0.0",
@@ -95,12 +95,6 @@
95
95
  "straps": "^3.0.1",
96
96
  "typescript": "^3.9.10"
97
97
  },
98
- "workspaces": [
99
- "packages/*"
100
- ],
101
- "resolutions": {
102
- "graceful-fs": "4.2.2"
103
- },
104
98
  "keywords": [
105
99
  "vector",
106
100
  "graphic",
@@ -118,4 +112,4 @@
118
112
  "paper.js",
119
113
  "paperjs"
120
114
  ]
121
- }
115
+ }
package/dist/node/xml.js DELETED
@@ -1,40 +0,0 @@
1
- /*
2
- * Paper.js - The Swiss Army Knife of Vector Graphics Scripting.
3
- * http://paperjs.org/
4
- *
5
- * Copyright (c) 2011 - 2020, Jürg Lehni & Jonathan Puckey
6
- * http://juerglehni.com/ & https://puckey.studio/
7
- *
8
- * Distributed under the MIT license. See LICENSE file for details.
9
- *
10
- * All rights reserved.
11
- */
12
-
13
- module.exports = function(self) {
14
- // Define XMLSerializer shim, to emulate browser behavior.
15
- // Effort to bring XMLSerializer to jsdom:
16
- // https://github.com/tmpvar/jsdom/issues/1368
17
- self.XMLSerializer = function XMLSerializer() {
18
- };
19
-
20
- self.XMLSerializer.prototype = {
21
- serializeToString: function(node) {
22
- if (!node)
23
- return '';
24
- // Fix a jsdom issue where all SVG tagNames are lowercased:
25
- // https://github.com/tmpvar/jsdom/issues/620
26
- var text = node.outerHTML,
27
- tagNames = ['linearGradient', 'radialGradient', 'clipPath',
28
- 'textPath'];
29
- for (var i = 0, l = tagNames.length; i < l; i++) {
30
- var tagName = tagNames[i];
31
- text = text.replace(
32
- new RegExp('(<|</)' + tagName.toLowerCase() + '\\b', 'g'),
33
- function(match, start) {
34
- return start + tagName;
35
- });
36
- }
37
- return text;
38
- }
39
- };
40
- };