Commit graph

6999 commits

Author SHA1 Message Date
Jürg Lehni
188c006197 Update to straps.js v3.0.1 and make all functions and accessors enumerable. 2017-04-22 18:50:53 +02:00
Jürg Lehni
b26b056522 Prevent consumed properties in object literal constructors from being set on the instance.
We need to make sure arguments.__filtered survives constructor calls.
2017-04-22 13:52:03 +02:00
Jürg Lehni
e46c8ec340 Overhaul the caching of bounds and matrix decomposition.
Improves reliability of Item#rotation and #scaling and fixes situations caused by wrongly cached #position and #bounds values.
2017-04-22 12:55:42 +02:00
Jürg Lehni
11e9437b37 Gulp: Bump website version when publishing. 2017-04-21 12:54:40 +02:00
Jürg Lehni
153c36c9ce Fix git URL. 2017-04-21 12:54:15 +02:00
Jürg Lehni
63b0752a81 Travis CI: Prevent failures when deploy script isn't executed. 2017-04-21 07:16:11 +02:00
Jürg Lehni
5d125d6a43 Improve publishing of website assets. 2017-04-20 19:51:45 +02:00
Jürg Lehni
bb2ea8631e Switch back to load.js versions on develop branch. 2017-04-20 19:41:41 +02:00
Jürg Lehni
90f816f959 Release version 0.11.2 2017-04-20 19:34:40 +02:00
Jürg Lehni
9320a720c2 PaperScript: Fix parsing error in math operations without white-space.
Closes #1314
2017-04-20 19:14:30 +02:00
Jürg Lehni
eeed73c1e9 Sub-modules need to be updated and published before main module. 2017-04-20 18:53:35 +02:00
Jürg Lehni
5046d6968b Release version 0.11.1 2017-04-20 18:43:16 +02:00
Jürg Lehni
966425d962 Some tweaks on publishing scripts. 2017-04-20 18:16:21 +02:00
Jürg Lehni
118deea20b Gulp: Define publish:website task to keep paperjs.org in sync. 2017-04-20 12:50:09 +02:00
Jürg Lehni
91199f19f0 Bring back deactivation of Node.js modules on browser.
The require() statements are in the main code, not in the sub-modules!
2017-04-20 11:00:49 +02:00
Jürg Lehni
d364c32e6b Minor fixes. 2017-04-19 23:34:35 +02:00
Jürg Lehni
d638ceb5b5 Switch back to load.js versions on develop branch. 2017-04-19 22:17:17 +02:00
Jürg Lehni
d0a4532d94 Release version 0.11.0 2017-04-19 22:07:46 +02:00
Jürg Lehni
74094d27e2 Update Node.js examples to reference paper-jsdom-canvas module. 2017-04-19 20:32:12 +02:00
Jürg Lehni
6ff6e1a05d Improve documentation about new NPM modules.
Relates to #1252
2017-04-19 20:27:14 +02:00
Jürg Lehni
e2b72c7a8a Switch back to load.js versions on develop branch. 2017-04-19 19:55:34 +02:00
Jürg Lehni
a7d259bfc0 Release version 0.10.4 2017-04-19 19:55:21 +02:00
Jürg Lehni
2bac4e71e0 Introduce paper-jsdom and paper-jsdom-canvas submodules.
Relates to #1252
2017-04-19 19:53:39 +02:00
Jürg Lehni
7dea96c6f2 Docs: Fix wrong @link references to bean properties. 2017-04-13 12:24:56 +02:00
Jürg Lehni
2290ec0ff6 Improve unit test for new Path.Constructor({ insert: false }) 2017-04-10 09:30:52 +02:00
Jürg Lehni
c3333cc500 Clean up editorconfig file. 2017-04-10 09:22:07 +02:00
Jürg Lehni
4003a8e913 Merge pull request #1305 from sapics/fix-path-constructors
Fix Path.Constructor calls with { insert: false }
2017-04-10 09:21:08 +02:00
sapics
018cb6285a Add test for Path.Constructors initialization 2017-04-10 13:08:35 +09:00
sapics
08b9dcecb8 Fix Path.Constructors.js initialization 2017-04-10 12:17:56 +09:00
Jürg Lehni
d436d07fee Intersections: Correctly handle item#applyMatrix = false
Closes #1289
2017-03-23 13:13:32 +01:00
Jürg Lehni
261fc02c1d SVG Import: Improve handling of sizes in percent.
Closes #1242
2017-03-23 00:14:03 +01:00
Jürg Lehni
a43db8427a Boolean: update documentation and optimize #divide()
#divide() with options.trace = false can call splitBoolean() just once without removing any split sub-paths.

Relates to #1221
2017-03-22 23:45:11 +01:00
Jürg Lehni
15471c76ab Boolean: Always return CompoundPath items.
Relates to #1221
2017-03-22 23:26:26 +01:00
Jürg Lehni
3c9d2eea1d Boolean: Implement options.trace, and add unit tests for options.trace = false
Relates to #1221
2017-03-22 15:03:11 +01:00
Jürg Lehni
ffa7e16f48 Use == false instead of === false for all options that default to true.
These expression are true:
- false == false
- false == 0
While these are false:
- false == null
- false == undefined
2017-03-22 14:42:11 +01:00
Jürg Lehni
dd56f86679 Boolean: Pass on options in PathItem#subtract(path, options)
Relates to #1221
2017-03-22 14:24:40 +01:00
Jürg Lehni
7e8e04351f Boolean: small optimization in computeStrokeBoolean() 2017-03-22 14:24:11 +01:00
Jürg Lehni
89d0536783 Scene Graphs: Do not allow inserting same item as child multiple times. 2017-03-21 11:55:42 +01:00
Jürg Lehni
29de03dc30 Node.js: Add code to handle separate shim modules.
Planend are the modules paper-jsdom and paper-jsdom-canvas, as shim modules that require and handle the dependencies as peer dependencies.

Relates to #1252
2017-03-20 12:38:52 +01:00
Jürg Lehni
48e9ef62a6 Boolean: Bring back on-path winding handling.
Relates to #1281
2017-03-20 01:02:12 +01:00
Jürg Lehni
49fca5510e Improve handling of Rectangle dimension properties.
Better deal with left / top / right / bottom / center values, and implement more unit tests for their behavior.

Closes #1147
2017-03-19 22:51:34 +01:00
Jürg Lehni
ab45002003 Tests: Clean up Rectangle unit tests. 2017-03-19 19:26:07 +01:00
Jürg Lehni
f5c8cd094c Node.js: Move all dependencies to optionalDependencies
Closes #1171
2017-03-19 16:17:43 +01:00
Jürg Lehni
5c3e3ec34c Mouse Events: Improve mousedrag handling.
Relates to #1247, closes #1286
2017-03-19 16:15:34 +01:00
Jürg Lehni
7a2ccc6d44 More work on supporting hybrid contexts.
Relates to #1252
2017-03-19 16:03:29 +01:00
Jürg Lehni
89a953dde0 Docs: Add documentation for options.bound and options.matrix in #exportSVG()
Closes #1254
2017-03-19 14:50:59 +01:00
Jürg Lehni
e354bccf69 Include note about compiling for Electron.
And some smaller forgotten changes.

Closes #1276
2017-03-19 14:38:24 +01:00
Jürg Lehni
26993b2c36 Various minor improvements to getWinding() 2017-03-19 14:18:55 +01:00
Jürg Lehni
374107c439 Minor cleanup for previous commit. 2017-03-18 16:46:55 +01:00
Jürg Lehni
fdd42076f9 Intersections: Bring back special handling of curve end-points.
Revert commit 89e31dd393, and add further improvements:

- Implement unit tests for #1284
- Remove Rectangle#touches(rect) in favor of #intersects(rect, epsilon)

Closes #1284
2017-03-18 16:42:55 +01:00