Jürg Lehni
143e71d8f9
Bump version to v0.9.22
2015-02-28 19:22:45 +01:00
Jürg Lehni
993a9df178
Simplify fix for #626 a bit.
...
Closes #626 .
2015-02-28 19:20:48 +01:00
Jürg Lehni
8a625e0acd
Merge pull request #627 from iam-TJ/issue_626
...
Issue 626: Don't try to iterate a null array
2015-02-28 19:18:50 +01:00
Jürg Lehni
5625563ed7
Merge pull request #643 from alexburner/patch-1
...
Fixing PlacedSymbol overflow
2015-02-28 19:08:05 +01:00
Jürg Lehni
48bc34b21f
Filter out deserialized dictionary in Base.deserialize()
...
Closes #637
2015-02-28 19:03:03 +01:00
Jürg Lehni
2002c4a3af
Merge pull request #639 from iconexperience/master
...
Fix for #638 SVG export creates 'data-paper-data="null"' attribute if item._data is null
2015-02-28 18:33:53 +01:00
Jürg Lehni
3b47d7ee89
Only draw Raster items when they're fully loaded.
...
Closes #645 .
2015-02-28 18:30:23 +01:00
Jürg Lehni
23ec75f5d2
Read CanvasView size correctly from arguments array.
2015-02-27 18:00:36 +01:00
Russell Vea
c0c8079913
Update to use jsdom v4 (document.defaultView vs. document.parentWindow).
2015-02-26 16:56:26 -10:00
Jürg Lehni
15813107c0
Remove unused variables.
2015-02-26 13:44:09 +01:00
Jürg Lehni
7c2492ac2a
Docs: Improve Item#applyMatrix.
2015-02-26 13:38:29 +01:00
Alex Burner
9e95b8788a
Fixing PlacedSymbol overflow
...
Initial value for `overflow` of svg elements is `visible`, but for elements that establish new viewports the value is overridden to `hidden`. A hidden overflow causes clipping of thick strokes, and may have additional consequences (I'm here because I was having trouble with my strokes).
As detailed in this issue: https://github.com/paperjs/paper.js/issues/642
2015-02-24 22:15:04 -08:00
Jonathan Puckey
3b70fcd603
Fix mistake in PaperScript reference - thanks to paperjs/paperjs.github.io/pull/5
2015-02-24 18:35:28 +01:00
Jan
1d8c662c98
Update SVGExport.js
...
Check for `'null'` before setting custom paper data attribute, because `JSON.stringify()` returns `"null"` (as a String object) if the argument is null.
2015-02-13 12:10:47 +01:00
Jan
c5ced798e8
Update SVGExport.js
2015-02-13 11:59:05 +01:00
TJ
d3af8483a8
Don't try to iterate a null array
...
Signed-off-by: TJ <hacker@iam.tj>
2015-01-26 21:21:46 +00:00
Jonathan Puckey
809c41b1cf
Merge pull request #591 from ponychicken/detectAtomShell
...
Browser detection: Add Atom shell
2015-01-21 14:57:15 +01:00
Jürg Lehni
55e2f6610a
Rename nRoots to count.
2015-01-10 22:06:11 +01:00
Jürg Lehni
22be259167
Deal with edge cases in Curve.solveCubic() where small cubics are very close to lines.
...
Also reduce Numerical.EPSILON again, as required by some rare edge cases.
Relates to #541 .
2015-01-10 22:05:42 +01:00
Jürg Lehni
665d154c95
Simplify control-flow in Numerical.solveCubic() a bit.
2015-01-10 17:57:37 +01:00
Jürg Lehni
814512f562
No need to check solutions for bounds again.
2015-01-05 22:01:56 +01:00
Jürg Lehni
efaae89dfc
No need to add 0.
2015-01-05 21:47:15 +01:00
BrownBear2
4d36a2d6f4
fixed svg path parsing for arcs with more than one definition
2015-01-05 21:32:21 +01:00
Jürg Lehni
1c758a415a
Switch to new and improved Line.getSignedDistance() in fat-line clipping code as well.
2015-01-05 16:20:33 +01:00
Jürg Lehni
920469426e
Remove the harmony version of Number.isFinite() in favor of the generally available global isFinite() for now.
2015-01-05 16:17:11 +01:00
Jan
60ddc68e56
Improve Line.getSignedDistance()
...
Improved code is shorter, faster, and should product results with higher precision.
2015-01-05 15:16:45 +01:00
Jürg Lehni
1803cd216a
Handle empty paths in Path#join()
...
Closes #516
2015-01-05 00:42:00 +01:00
Jürg Lehni
6562f861ab
More code clean-up.
2015-01-05 00:13:30 +01:00
Jürg Lehni
9977b6ab68
Some code clean-up.
2015-01-05 00:09:34 +01:00
Jürg Lehni
72bd150a34
Fix the rest of the failing tests that 6c6ad76c94
had caused.
...
Also closes #610 .
2015-01-04 23:59:25 +01:00
Jürg Lehni
5f3df1f5a1
Fix some failing tests with PathItem#contains(), introduced by commit 6c6ad76c94
2015-01-04 23:28:39 +01:00
Jürg Lehni
5d875f2d83
Clean up code formatting.
2015-01-04 22:37:27 +01:00
Jürg Lehni
8928eaffd0
Merge branch 'refs/heads/master' into boolean-operations
2015-01-04 22:00:55 +01:00
Jürg Lehni
7e80e19e32
Insert results of boolean operations above the first path.
2015-01-04 21:59:31 +01:00
Jürg Lehni
d522e4aec2
Merge remote-tracking branch 'origin/master' into boolean-operations
...
Conflicts:
src/path/PathItem.Boolean.js
2015-01-04 21:29:50 +01:00
Jürg Lehni
9f0a774fd0
Fix newly introduced error in clean-up.
2015-01-04 18:07:02 +01:00
Jürg Lehni
1239eb55ec
Minor clean up in Curve.filterIntersections().
2015-01-04 17:47:41 +01:00
Jürg Lehni
77193e1465
Clean-up new splitPath() code.
2015-01-04 17:37:15 +01:00
hkrish
718af4527f
Boolean: handle linear segments correctly.
...
Earlier implementation was unfinished and did not reset some handles to
linear, this caused the winding to be miscalculated.
Conflicts:
src/path/PathItem.Boolean.js
2015-01-04 17:30:19 +01:00
Jürg Lehni
afc14b9634
Reduce Numerical.TOLERANCE to 1e-6, and use the same value across the boolean code.
...
Yields very good results now, across all tests.
2015-01-04 15:54:50 +01:00
Jürg Lehni
3564dafa93
Do not keep iterating if the curve was reduced to a point.
2015-01-04 13:23:59 +01:00
Jürg Lehni
d33d65fcc2
Revert change in recursion threshold as the new code reaches the desired precision earlier.
2015-01-04 13:21:12 +01:00
Jürg Lehni
cca6606f72
Reduce the amount of path reversing required.
...
We don't need paths at clockwise / counter-clockwise orientation. We simply need them oriented the same way, or the opposite way.
2015-01-04 01:51:27 +01:00
Jürg Lehni
390ef324f2
Find a better implementation for exclude() boolean operations, requiring only one pass instead of two.
2015-01-04 01:50:24 +01:00
Jürg Lehni
f0f98daf69
Apply @hkrish's fix in 3781aedb22
to Line.getSignedDistance as well.
...
Relates to #554
2015-01-04 00:53:56 +01:00
hkrish
3781aedb22
Small but critical fix on getSignedDistance method
...
when the line is perfectly vertical, return the difference between x values depending on the side. The earlier "l1y" is a silly mistake.
2015-01-03 23:41:47 +01:00
Jürg Lehni
5c184e381b
Merge remote-tracking branch 'origin/master' into boolean-operations
...
Conflicts:
src/path/PathItem.Boolean.js
2015-01-03 21:09:31 +01:00
Jürg Lehni
4371e92191
Reduce EPSILON to 1e-13.
...
Reducing further to 1e-14 starts producing new issues in boolean operations code.
2015-01-03 21:03:13 +01:00
Jürg Lehni
b6a4815d03
Remove Curve#isHorizontal() as its implementation and precision is specific to boolean operations.
2015-01-03 21:02:12 +01:00
Jürg Lehni
46d7717812
Use standard values for tMin / tMax when calling getTangentAt() tracePaths()
2015-01-03 20:59:20 +01:00