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.
- package/CHANGELOG.md +250 -0
- package/README.md +34 -27
- package/dist/docs/assets/js/paper.js +791 -366
- package/dist/docs/classes/Color.html +63 -47
- package/dist/docs/classes/CompoundPath.html +162 -59
- package/dist/docs/classes/Curve.html +9 -7
- 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 +63 -24
- package/dist/docs/classes/HitResult.html +1 -1
- package/dist/docs/classes/Item.html +63 -24
- package/dist/docs/classes/Key.html +1 -1
- package/dist/docs/classes/KeyEvent.html +1 -1
- package/dist/docs/classes/Layer.html +63 -24
- package/dist/docs/classes/Matrix.html +1 -1
- package/dist/docs/classes/MouseEvent.html +1 -1
- package/dist/docs/classes/PaperScope.html +87 -1
- package/dist/docs/classes/PaperScript.html +1 -1
- package/dist/docs/classes/Path.html +174 -68
- package/dist/docs/classes/PathItem.html +280 -177
- package/dist/docs/classes/Point.html +143 -21
- package/dist/docs/classes/PointText.html +94 -24
- package/dist/docs/classes/Project.html +14 -8
- package/dist/docs/classes/Raster.html +93 -35
- package/dist/docs/classes/Rectangle.html +12 -11
- package/dist/docs/classes/Segment.html +1 -1
- package/dist/docs/classes/Shape.html +63 -24
- package/dist/docs/classes/Size.html +81 -21
- package/dist/docs/classes/Style.html +34 -2
- package/dist/docs/classes/SymbolDefinition.html +1 -1
- package/dist/docs/classes/SymbolItem.html +64 -25
- package/dist/docs/classes/TextItem.html +94 -24
- package/dist/docs/classes/Tool.html +2 -1
- package/dist/docs/classes/ToolEvent.html +27 -1
- package/dist/docs/classes/Tween.html +1 -1
- package/dist/docs/classes/View.html +203 -10
- 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/node/canvas.js +10 -8
- package/dist/node/self.js +13 -4
- package/dist/paper-core.js +772 -355
- package/dist/paper-core.min.js +3 -3
- package/dist/paper-full.js +791 -366
- package/dist/paper-full.min.js +3 -3
- package/dist/paper.d.ts +324 -73
- package/examples/Rasters/Smoothing.html +1 -1
- package/package.json +5 -11
- 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.
|
|
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.
|
|
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.
|
|
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": "^
|
|
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
|
-
};
|