paper 0.12.20 → 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 +233 -0
- package/README.md +29 -13
- package/dist/docs/assets/js/paper.js +788 -365
- 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 +1 -1
- package/dist/node/self.js +4 -3
- package/dist/paper-core.js +769 -354
- package/dist/paper-core.min.js +3 -3
- package/dist/paper-full.js +788 -365
- 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 +1 -8
- 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",
|
|
@@ -95,13 +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
|
-
"resemblejs/canvas": "^3.2.3"
|
|
104
|
-
},
|
|
105
98
|
"keywords": [
|
|
106
99
|
"vector",
|
|
107
100
|
"graphic",
|
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
|
-
};
|