Commit graph

6982 commits

Author SHA1 Message Date
Jürg Lehni
91e67887da Winding: Some improvements to comments and documentation. 2016-07-16 20:17:20 +02:00
Jürg Lehni
8513144ae1 Mono-curves: No need to filter out curves with no length any more. 2016-07-16 20:05:25 +02:00
Jürg Lehni
b1037f89f1 Winding: Add back support for open paths.
Includes refactoring of some related code.
2016-07-16 20:01:36 +02:00
Jürg Lehni
7d675dab13 Some minor cleanups. 2016-07-14 18:58:12 +02:00
Jürg Lehni
7da70181cc Move addWinding() into getWinding()
Allowing the reuse of a whole lot of shared variables and leading to some nice simplifications.
2016-07-14 18:53:23 +02:00
Jürg Lehni
cad2858070 Use same naming for prev* variables as elsewhere in boolean code. 2016-07-14 18:02:42 +02:00
Jürg Lehni
acfe6cddeb Boolean: Improve handling of open paths.
Relates to #1089
2016-07-14 10:49:12 +02:00
Jürg Lehni
c2df96c440 Implement CompoundPath#closed. 2016-07-14 10:24:04 +02:00
Jürg Lehni
41dce862d4 Fix CompoundPath#getLastCurve() and improve documentation. 2016-07-14 10:21:11 +02:00
Jürg Lehni
38e5fc1488 Tests: Reference GitHub issues where they're knonw in PathItem#contains() tests. 2016-07-14 09:32:29 +02:00
Jürg Lehni
083a2c6e0d Boolean: Prevent rare exception where an encountered segment is not part of a valid path anymore.
Relates to #1091
2016-07-14 09:14:11 +02:00
Jürg Lehni
80f4ba947f First attempt at supporting JSPM.
Relates to #1104
2016-07-13 21:04:53 +02:00
Jürg Lehni
6ca3bb1c63 Prevent Path#getStrokeBounds() from accidentally modifying segments.
Closes #1102
2016-07-13 18:43:15 +02:00
iconexperience
46ea9da423 Small cleanup in getWinding() 2016-07-13 11:07:12 +02:00
Jürg Lehni
8a45c5dff9 Fix Node.js unit-tests, and add CHANGELOG entry for #1103 2016-07-12 19:27:35 +02:00
Jürg Lehni
89c60b1a05 Loosely couple Node.js code to canvas module.
Treat absence of canvas module like a web worker context.
Relates to #1103
2016-07-12 19:11:09 +02:00
Jürg Lehni
73fc111b50 SVG: Correctly handle relative "moveto" commands.
Closes #1101
2016-07-11 19:48:17 +02:00
Jürg Lehni
4df2dfb343 No need for npm prepublish now that we have the gulp publish task. 2016-07-09 23:49:11 +02:00
Jürg Lehni
a14e1e4c97 Replace extend() with Object.assign() 2016-07-09 23:36:11 +02:00
Jürg Lehni
bf2eada11c Remove component.json and clean up package files a bit.
Component is not maintained anymore, per https://github.com/componentjs/component/issues/639
2016-07-09 21:31:25 +02:00
Jürg Lehni
6154b44d68 Gulp: Cleanup publish task. 2016-07-09 21:20:47 +02:00
Jürg Lehni
3a7c0f5775 Switch back to load.js versions on develop branch. 2016-07-09 21:13:43 +02:00
Jürg Lehni
a02f181c00 Release version 0.10.2 2016-07-09 21:04:37 +02:00
Jürg Lehni
0311c267f5 Gulp: More work on improved publish task for Bower. 2016-07-09 20:56:58 +02:00
Jürg Lehni
1b1b9a1606 Gulp: Change publish task so that dist folder contains built versions on master branch.
As required by Bower...
2016-07-09 19:48:02 +02:00
Jürg Lehni
b29a1e4028 Version 0.10.1 is released, adjust Changelog title. 2016-07-09 18:02:16 +02:00
Jürg Lehni
9fefa7dbf0 Release version 0.10.1 2016-07-09 17:17:22 +02:00
Jürg Lehni
e13300440e Correct a few issues with documentation and NPM publishing that slipped through in the v0.10.0 release. 2016-07-09 17:13:15 +02:00
Jürg Lehni
f6189c7ab1 Remove "Unreleased" now that 0.10.0 is finally out. 2016-07-09 16:51:58 +02:00
Jürg Lehni
0b31b5fdc6 Release version 0.10.0 2016-07-09 16:37:39 +02:00
Jürg Lehni
6aa983f367 Gulp: Use correct depenency sequence for publish task. 2016-07-09 16:37:00 +02:00
Jürg Lehni
cbbc7f0bbc Switch to husky for git precommit / prepush handling. 2016-07-09 16:28:08 +02:00
Jürg Lehni
7e20770126 Gulp: Fix docs task.
Omitted return means streaming wasn't working.
2016-07-09 16:11:18 +02:00
Jürg Lehni
7936ca6677 Update NPM dependencies. 2016-07-09 16:10:29 +02:00
Jürg Lehni
2667dc159e Use pre-commit to lint code before commits, and pre-push to run tests. 2016-07-09 15:48:21 +02:00
Jürg Lehni
e15de78347 Update JSHint and fix some some hinting errors. 2016-07-09 14:32:01 +02:00
Jürg Lehni
da78e837a1 Simplify Numerical.solveCubic() code by introducing evaluate() closure. 2016-07-09 13:54:02 +02:00
Jürg Lehni
9d6aab3802 Streamline handling of getNormalizationFactor() to share more code.
Based on comments by @hkrish in https://github.com/paperjs/paper.js/pull/1087#issuecomment-231529361
2016-07-09 13:28:50 +02:00
Jürg Lehni
2532f205a7 Prefer native Math.log2(), but support IE through internalized polyfill. 2016-07-09 12:54:17 +02:00
Jürg Lehni
7e3d18f5d4 Further cleanups in Numerical.solveQuadratic() 2016-07-09 01:10:55 +02:00
Jürg Lehni
02658c9e74 Clean-up code from PR #1087
Closes #1085
2016-07-09 01:01:19 +02:00
Jürg Lehni
1914e64e4b Fix boolean tests to compare with improved results.
Disovered thanks to @sapics' improved solveCubic() in #1087
2016-07-08 23:05:50 +02:00
Jürg Lehni
90bc4ffecb Merge pull request #1087 from sapics/improve-poly-solve
Improvements to solve polynomials in Numerical.js
2016-07-07 06:39:28 +02:00
Jürg Lehni
866dcb50dd Some tweaks to potentially support strict mode. 2016-07-07 06:21:20 +02:00
Jürg Lehni
f04dd14309 Remove jsdom legacy code. 2016-07-03 14:16:17 +02:00
Jürg Lehni
cb4ffc7945 Update to latest gulp-qunits. 2016-07-03 14:13:50 +02:00
Jürg Lehni
df8969f1c4 Switch to jsdom v9.4.0 with native DOMParser support.
Closes #1093
2016-07-03 13:39:05 +02:00
Jürg Lehni
45ffc6fb88 Improve Segment constructor to correctly handle undefined values.
Closes #1095
2016-07-03 13:30:56 +02:00
Jürg Lehni
cfa215051d Update to latest gulp-git-streamed and remove publish workaround code. 2016-07-03 12:17:37 +02:00
Jürg Lehni
c942239032 Merge pull request #1092 from iconexperience/patch-2
Accidental semicolon in var declaration
2016-06-29 10:05:57 +02:00