Commit graph

5577 commits

Author SHA1 Message Date
Jürg Lehni
c0a5e1fdbc Update to latest straps.js
Closes #748
2015-08-18 12:17:39 +02:00
Jürg Lehni
98edddc5ac Include _pivot in cloning.
Closes #747
2015-08-17 14:47:56 +02:00
Jürg Lehni
4ee68e5782 Various changes to #isCollinear(), #isOrthogonal(), #isArc()
- Rename #isArc() - > #isOrthogonalArc()
- Implement versions for Curve
- Write proper documentation
2015-08-17 14:33:48 +02:00
Jürg Lehni
f8314f927e Various changes on #isLinear(), #hasHandles() & co
Relates to #652

- Implement #hasHandles() on Path, Segment and Curve
- Remove Path#isPolygon()
- Define #isLinear() consistently across Path, Segment and Curve.
- Introduce new Segment#isStraight()
2015-08-17 14:31:23 +02:00
Jürg Lehni
97ca1f6ff8 Fix negation in previous commit. 2015-08-17 14:19:31 +02:00
Jürg Lehni
65f085cc98 Have option.matchShapes control conversion to SVG polygon elements as well.
Closes #753
2015-08-17 14:18:22 +02:00
Jürg Lehni
2b0098321f Merge pull request #744 from Olegas/fix-async-typo
Fixed typo in word 'async'
2015-08-06 07:24:18 +02:00
Oleg Elifantiev
70766c47d5 Fixed typo in word 'async' 2015-08-05 11:46:54 +03:00
Jürg Lehni
10fb616665 Fixed leaked globals.
Detected using QUnit's "Check for Globals" feature!
2015-07-27 12:36:45 +02:00
Jürg Lehni
4ad8875a8c Install qunitjs module as a NPM dev dependency. 2015-07-27 12:25:45 +02:00
Jürg Lehni
ffb3ea8d15 Fix wrong URL in documentation. 2015-07-27 12:15:01 +02:00
Jürg Lehni
6712cbb4e9 Start using gulp to run quint test suite through phantomjs.
Eventually all build scripts shall run through this.
2015-07-27 11:53:08 +02:00
Jürg Lehni
3816407ee7 Clean up SVGExport tests. 2015-07-27 11:42:41 +02:00
Jürg Lehni
5604dd7a30 Clean up SVGImport tests. 2015-07-27 10:29:50 +02:00
Jürg Lehni
5f42020869 Increase tolerances in #getAverageColor() tests.
The phantomjs canvas appear to produce less precise results.
2015-07-27 10:03:11 +02:00
Jürg Lehni
59b7da0ed5 Fall back to pixelRatio 1 when none is defined.
Required in Item#rasterize() for non-native blend modes. This broke phantomjs tests.
2015-07-27 09:56:37 +02:00
Jürg Lehni
cce42bc6f2 Filter out project key in object literal constructor.
It was causing issues when running test suites in phantomjs.
2015-07-26 14:01:00 +02:00
Jürg Lehni
4044089d0e Update to latest uglifyjs to void minify issues. 2015-07-07 11:52:27 +02:00
Jürg Lehni
b29e432bed Switch back to load.js version of dist libraries. 2015-07-07 11:41:27 +02:00
Jürg Lehni
ed3edbbf4a Merge pull request #723 from MattouFP/optional-canvas-dep
Make "canvas" dependency optional to avoid unnecessary builds
2015-07-07 11:00:04 +02:00
mattoufp
854a8caa6b Make "canvas" dependency optional to avoid unnecessary builds 2015-07-06 17:00:52 +02:00
Jürg Lehni
8dae5c2a8b Merge pull request #720 from sapics/fix-draw-shape-rectangle
fix rectangle type name
2015-07-04 11:07:17 +02:00
sapics
d7a4dd2780 rect -> rectangle 2015-07-03 10:00:57 +09:00
Jürg Lehni
b0255d9fc2 Bump version to v0.9.23 2015-06-23 17:03:39 +02:00
Jürg Lehni
b58dd84501 Adjust publish script to reflect change in bower.json 2015-06-23 16:22:20 +02:00
Jürg Lehni
4e2fba660d Merge pull request #717 from sapics/code-minifier
code minifier
2015-06-23 11:54:36 +02:00
Jürg Lehni
708e8d7834 Include documentation about importSVG() onLoad callbacks.
See #715.
2015-06-23 09:40:11 +02:00
sapics
e15b23f8af code minifier 2015-06-23 13:09:48 +09:00
Jürg Lehni
19bcd19b49 Implement path versioning for segment changes.
And use it to keep CurveLocation objects up to date. Closes #682
2015-06-16 19:36:22 +02:00
Jürg Lehni
c1485e7068 Use < instead of <= when comparing against TOLERANCE 2015-06-16 19:33:21 +02:00
Jürg Lehni
26cdbb6805 Fix typo: #isColinear() -> #isCollinear()
Keeping misspelled version around for a while.
2015-06-16 18:39:52 +02:00
Jürg Lehni
07b58e928e Implement unit test for shape.toPath().toShape()
Currently failing for rect.
2015-06-16 18:38:57 +02:00
Jürg Lehni
5812a70e08 Use EPSILON instead of TOLERANCE in Point#isColinear() and #isOrthogonal() (reverted from commit 5f0e545ba7) 2015-06-16 18:25:50 +02:00
Jürg Lehni
dbac9c06de Bring back private UIDs for Color.
SVG Export for multiple gradients was broken.
2015-06-16 18:12:40 +02:00
Jürg Lehni
4fde7ab37d Add applyMatrix option to importSVG() 2015-06-16 17:52:34 +02:00
Jürg Lehni
036ba45326 Update JSDoc. 2015-06-16 17:51:22 +02:00
Jürg Lehni
b541088c6f A whole lot of documentation clean-up. 2015-06-16 17:50:37 +02:00
Jürg Lehni
0d8deb4a9e Update JSDoc. 2015-06-16 16:49:00 +02:00
Jürg Lehni
ecfa09e676 Handle SVG attributes in correct sequence.
Closes #694.
2015-06-16 15:54:29 +02:00
Jürg Lehni
7a6ee5d5f4 Do not implicitly close paths in SVG compound paths.
Closes #705
2015-06-16 14:49:54 +02:00
Jürg Lehni
2cf6cd7a14 Correctly clone all attributes in Shape#toPath() and Path#toShape()
Also write documentation for both methods.
Closes #622.
2015-06-16 14:30:40 +02:00
Jürg Lehni
ba12eec7f5 Some documentation clean-up.
- Prefer @return over @returns
- Place @see at the end, before @example
2015-06-16 14:08:34 +02:00
Jürg Lehni
496b8ecd0f Implement unit test for issue #708. 2015-06-16 12:56:53 +02:00
Jürg Lehni
ce41447793 Prevent invalid invinite solutions in Numerical.solveQuadratic()
Closes #708
2015-06-16 12:30:25 +02:00
Jürg Lehni
e3f04478d9 Clean up Curve.getParameterOf() code. 2015-06-16 12:29:27 +02:00
Jürg Lehni
575436bafe Improve handling of SVG defs located in odd places.
Relates to #702
2015-06-16 12:21:19 +02:00
Jürg Lehni
917139bb3f Merge pull request #702 from jardakotesovec/Import-svg-defs-first
SVG Import defs first
2015-06-16 11:49:58 +02:00
Jürg Lehni
b26c6221f1 Fix PaperScript increment operator in rare special case.
Closes #691.
2015-06-15 23:43:03 +02:00
Jürg Lehni
2004e7065a Merge branch 'byte-foundry-npm_everywhere' into develop 2015-06-15 23:11:22 +02:00
Jürg Lehni
2721ceb579 Merge branch 'npm_everywhere' of https://github.com/byte-foundry/paper.js into byte-foundry-npm_everywhere
Conflicts:
	package.json
2015-06-15 23:10:29 +02:00