paper 0.15.0 → 0.17.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 +158 -0
- package/README.md +24 -16
- package/dist/docs/assets/js/paper.js +4811 -808
- package/dist/docs/classes/AreaText.html +771 -243
- package/dist/docs/classes/ChangeFlag.html +1 -1
- package/dist/docs/classes/Color.html +218 -21
- package/dist/docs/classes/CompoundPath.html +1174 -274
- package/dist/docs/classes/Curve.html +2 -2
- package/dist/docs/classes/CurveLocation.html +1 -1
- package/dist/docs/classes/DrawEvent.html +69 -0
- package/dist/docs/classes/Effect.html +434 -0
- package/dist/docs/classes/EffectInstance.html +304 -0
- 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 +842 -243
- package/dist/docs/classes/HitResult.html +1 -1
- package/dist/docs/classes/HostItem.html +770 -242
- package/dist/docs/classes/Item.html +827 -242
- package/dist/docs/classes/Key.html +1 -1
- package/dist/docs/classes/KeyEvent.html +1 -1
- package/dist/docs/classes/Layer.html +784 -185
- package/dist/docs/classes/Matrix.html +1 -1
- package/dist/docs/classes/MouseEvent.html +1 -1
- package/dist/docs/classes/PaperScope.html +1 -1
- package/dist/docs/classes/PaperScript.html +4 -2
- package/dist/docs/classes/Path.html +1366 -352
- package/dist/docs/classes/PathItem.html +1198 -298
- package/dist/docs/classes/PathText.html +772 -244
- package/dist/docs/classes/PatternDefinition.html +367 -0
- package/dist/docs/classes/Point.html +33 -5
- package/dist/docs/classes/PointText.html +771 -243
- package/dist/docs/classes/Project.html +251 -9
- package/dist/docs/classes/Raster.html +770 -242
- package/dist/docs/classes/Rectangle.html +50 -8
- package/dist/docs/classes/Segment.html +79 -2
- package/dist/docs/classes/Shape.html +770 -242
- package/dist/docs/classes/Size.html +31 -3
- package/dist/docs/classes/StrokeProfileStop.html +346 -0
- package/dist/docs/classes/Style.html +67 -6
- package/dist/docs/classes/SymbolDefinition.html +28 -2
- package/dist/docs/classes/SymbolItem.html +807 -242
- package/dist/docs/classes/TextItem.html +771 -243
- package/dist/docs/classes/TextRange.html +1 -1
- package/dist/docs/classes/TextStory.html +1 -1
- package/dist/docs/classes/Tool.html +2 -2
- package/dist/docs/classes/ToolEvent.html +1 -1
- package/dist/docs/classes/Tween.html +1 -1
- package/dist/docs/classes/View.html +2 -2
- 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/browser.js +15 -0
- package/dist/paper-core.js +4701 -728
- package/dist/paper-core.min.js +3 -3
- package/dist/paper-full.js +4811 -808
- package/dist/paper-full.min.js +3 -3
- package/dist/paper-hosted.js +5389 -892
- package/dist/paper.d.ts +1058 -69
- package/examples/Paperjs.org/LiveEffects.html +366 -0
- package/examples/Paperjs.org/Offsetting.html +379 -0
- package/examples/Paperjs.org/StrokeProfiles.html +706 -0
- package/examples/Scripts/Patterns.html +57 -0
- package/package.json +21 -11
|
@@ -1736,7 +1736,7 @@ Array of <tt>Numbers</tt>
|
|
|
1736
1736
|
|
|
1737
1737
|
<!-- =========================== copyright notice ========================== -->
|
|
1738
1738
|
<p class="footer">
|
|
1739
|
-
Paper.js v0.
|
|
1739
|
+
Paper.js v0.17.0<br>
|
|
1740
1740
|
Copyright © 2011—2026 <a href="http://www.lehni.org" target="_blank">Jürg Lehni</a> & <a href="http://www.jonathanpuckey.com" target="_blank">Jonathan Puckey</a>. All Rights Reserved.</p>
|
|
1741
1741
|
<div class="content-end"></div>
|
|
1742
1742
|
|
|
@@ -347,7 +347,7 @@
|
|
|
347
347
|
|
|
348
348
|
<!-- =========================== copyright notice ========================== -->
|
|
349
349
|
<p class="footer">
|
|
350
|
-
Paper.js v0.
|
|
350
|
+
Paper.js v0.17.0<br>
|
|
351
351
|
Copyright © 2011—2026 <a href="http://www.lehni.org" target="_blank">Jürg Lehni</a> & <a href="http://www.jonathanpuckey.com" target="_blank">Jonathan Puckey</a>. All Rights Reserved.</p>
|
|
352
352
|
<div class="content-end"></div>
|
|
353
353
|
|
|
@@ -539,7 +539,7 @@
|
|
|
539
539
|
|
|
540
540
|
<!-- =========================== copyright notice ========================== -->
|
|
541
541
|
<p class="footer">
|
|
542
|
-
Paper.js v0.
|
|
542
|
+
Paper.js v0.17.0<br>
|
|
543
543
|
Copyright © 2011—2026 <a href="http://www.lehni.org" target="_blank">Jürg Lehni</a> & <a href="http://www.jonathanpuckey.com" target="_blank">Jonathan Puckey</a>. All Rights Reserved.</p>
|
|
544
544
|
<div class="content-end"></div>
|
|
545
545
|
|
|
@@ -97,7 +97,9 @@
|
|
|
97
97
|
<li><tt>options.url: <tt>String</tt></tt> — the url of the source, for source-map generation</li>
|
|
98
98
|
<li><tt>options.source: <tt>String</tt></tt> — the source to be used for the source- mapping, in case the code that’s passed in has already been mingled.</li>
|
|
99
99
|
<li><tt>options.handlers: Array of <tt>Strings</tt></tt> — the names of further global handlers to export next to <code>onFrame</code>, <code>onResize</code> and the tool’s handlers, for hosts that call them themselves</li>
|
|
100
|
-
<li><tt>options.
|
|
100
|
+
<li><tt>options.evaluate: <tt>Function</tt></tt> — the evaluator for hosts that evaluate code their own way: called with the source of a function expression and <code>options.url</code>, and returning the function, e.g. by evaluating the source as a script of that url</li>
|
|
101
|
+
<li><tt>options.load: <tt>Function</tt></tt> — the loader for static <code>import</code> statements, called with the specifier as written, the <code>options.url</code> of the importing script, and the import attributes as an object, e.g. <code>{ type: 'paperscript' }</code> for <code>import x from 'm' with { type:
|
|
102
|
+
'paperscript' }</code>, or <code>undefined</code> without them, and returning the module’s exports, e.g. the result of executing it. Modules with ES <code>export</code> statements have their default export as <code>default</code> and are marked with <code>__esModule</code>, so <code>import x</code> receives the default export, and for CommonJS-style exports the whole exports. <code>import * as x</code> receives all exports, and for CommonJS-style exports, these as <code>default</code> too. Dynamic <code>import(specifier)</code> resolves to that namespace as a Promise, and its loader may return a Promise as well. <code>import(specifier, options)</code> passes on <code>options.with</code> as the attributes. The loader runs each module once and handles cycles. Parsing <code>import</code> requires a current Acorn as <code>self.acorn</code>
|
|
101
103
|
Code with top-level <code>await</code> runs as an async function. <code>execute()</code> then returns a Promise of the exports, and installs the global handlers once it resolves. Parsing it requires a current Acorn as <code>self.acorn</code>.</li>
|
|
102
104
|
</ul>
|
|
103
105
|
|
|
@@ -193,7 +195,7 @@ Code with top-level <code>await</code> runs as an async function. <code>execute(
|
|
|
193
195
|
|
|
194
196
|
<!-- =========================== copyright notice ========================== -->
|
|
195
197
|
<p class="footer">
|
|
196
|
-
Paper.js v0.
|
|
198
|
+
Paper.js v0.17.0<br>
|
|
197
199
|
Copyright © 2011—2026 <a href="http://www.lehni.org" target="_blank">Jürg Lehni</a> & <a href="http://www.jonathanpuckey.com" target="_blank">Jonathan Puckey</a>. All Rights Reserved.</p>
|
|
198
200
|
<div class="content-end"></div>
|
|
199
201
|
|