Jürg Lehni
3946bcb04e
Remove unnecessary segments between two collinear curves in Path#reduce()
2015-08-24 12:49:33 +02:00
Jürg Lehni
4be48cec16
A lot more work to correctly support overlapping edge cases in boolean operations: intersect(), exclude(), subtract()
2015-08-24 12:30:14 +02:00
Jürg Lehni
75f669d839
Implement proper method to determine which segment to choose when encountering overlaps.
2015-08-24 04:36:49 +02:00
Jürg Lehni
15bcf2a7aa
More work on supporting overlaps in boolean operations other than unite().
2015-08-23 22:42:57 +02:00
Jürg Lehni
68832e0690
Revert "Switch to using 0, 1 instead of tMin, tMax for tangents."
...
This reverts commit edfabcbbd8
.
; Conflicts:
; src/path/PathItem.Boolean.js
2015-08-23 21:48:16 +02:00
Jürg Lehni
92ec09f451
Some debug code fixes and improvements.
2015-08-23 21:34:41 +02:00
Jürg Lehni
85d21c84b8
Start implementing support for touching and overlapping shapes in boolean operations.
...
Relates to #449 , #450 , #648 , #719
2015-08-23 21:19:19 +02:00
Jürg Lehni
edfabcbbd8
Switch to using 0, 1 instead of tMin, tMax for tangents.
...
getTangentAt() can handle that since a while now.
2015-08-23 09:43:28 +02:00
Jürg Lehni
157a60dee6
Fix spelling mistake.
2015-08-22 23:22:01 +02:00
Jürg Lehni
2eaaabf07c
Merge pull request #759 from sapics/minor-fix-matrix
...
Minor fix to Matrix.js
2015-08-22 23:21:23 +02:00
Jürg Lehni
9bd399b5b8
Introduce Curve#isStraight() and use it in splitPath() and divide() to keep the result of splitting straight curves straight.
...
Do not use Curve#isLinear(), as that would include curves with collinear handles, and we don't want to set these straight.
2015-08-22 22:06:42 +02:00
Jürg Lehni
605ceef94c
Fix deprecated getPoint / Normal / Tangent calls.
2015-08-22 14:24:57 +02:00
Jürg Lehni
bddff95fe3
Remove workarounds in splitPath() thanks to improved precision of Numerical.solveCubic().
2015-08-22 14:24:31 +02:00
Jürg Lehni
142ee6fd8a
Shorten code a bit.
2015-08-21 17:42:33 +02:00
Jürg Lehni
af24af8916
Merge pull request #730 from sapics/raster.toDataURL
...
add param to raster.todataurl
2015-08-21 17:41:32 +02:00
Jürg Lehni
89a3c9f452
Include bugs URL in package files.
2015-08-21 17:36:48 +02:00
Jürg Lehni
599e595916
Update publish.sh script to work with develop / master branches.
2015-08-21 17:16:14 +02:00
Jürg Lehni
dacb69b697
Switch back to load.js versions for development.
2015-08-21 17:14:42 +02:00
Jürg Lehni
7d82491cce
Release version v0.9.24
2015-08-21 16:59:35 +02:00
Jürg Lehni
716d21e369
Always use fat-line clipping since fallback doesn't behave the same way.
2015-08-21 16:39:41 +02:00
Jürg Lehni
caf6321caf
Always include Http object.
2015-08-21 16:38:27 +02:00
Jürg Lehni
ec0e4fcd15
Remove unused build options.
2015-08-21 16:38:17 +02:00
Jürg Lehni
bae7fa435f
Some minor clean-ups for #593 .
2015-08-21 15:53:37 +02:00
Jürg Lehni
8f9e0f58fa
Merge pull request #593 from megawac/helpers
...
Helpers
2015-08-21 15:53:06 +02:00
Jürg Lehni
5f50372b02
More optimizations and clean up in Base.equals()
2015-08-21 15:42:19 +02:00
Jürg Lehni
4f17aa376d
Merge pull request #594 from megawac/equals
...
Refactor and optimize base equals
2015-08-21 15:36:51 +02:00
Jürg Lehni
13b5e6ce22
Help JS minification.
2015-08-21 15:15:06 +02:00
Jürg Lehni
4cdc572824
Merge pull request #729 from sapics/item-matrix
...
setMatrix of item makes more useful
2015-08-21 15:11:49 +02:00
Jürg Lehni
27b7063fc4
To avoid possible duplicate browser requests for PaperScript files, support the data-src attribute as well as src.
...
Closes #749 .
2015-08-21 15:11:01 +02:00
Jürg Lehni
eb3628063c
Handle missing keyup events for keys pressed while Command key is down on Mac.
...
Closes #630 .
2015-08-21 13:56:44 +02:00
sapics
687eca9677
fix
2015-08-21 15:35:30 +09:00
Jürg Lehni
3dd0f1fc1b
Introduce new option in SVGExport to not embed images.
...
Closes #696
2015-08-20 19:34:38 +02:00
Jürg Lehni
650bf5d616
Implement CORS support on Raster.
...
Closes #754
2015-08-20 19:14:33 +02:00
Jürg Lehni
0436b2749a
Fix some comments.
2015-08-19 17:28:41 +02:00
Jürg Lehni
84b202fd79
Expose and reuse Curve evaluation method names.
2015-08-19 17:26:52 +02:00
Jürg Lehni
9fe93d1434
Move Curve evaluate() method to private scope.
2015-08-19 17:19:42 +02:00
Jürg Lehni
da82116501
Rework handling of weighted and normalized curve tangents and normals.
...
Relates to #563
2015-08-19 17:15:41 +02:00
Jürg Lehni
eb8c5b4a3e
Handle em and pt font sizes correctly on Firefox.
...
Closes #734
2015-08-19 12:57:22 +02:00
Jürg Lehni
59eec1f27b
Implement Curve#isLinear(), #isCollinear() & co without depending on the segments being part of a path.
2015-08-19 11:43:37 +02:00
Jürg Lehni
2366e03265
Implement getItems(function() {}).
...
As requested in #751 .
2015-08-19 01:04:47 +02:00
Jürg Lehni
39ea409684
Fix issue with param.overlapping in #getItems()
...
Consider items fully contained inside the rectangle as overlapping as well.
Closes #751 .
2015-08-19 00:55:44 +02:00
Jürg Lehni
e476672748
Use better epsilon values in Numerical.solveQuadratic() and solveCubic()
...
To finally satisfy both #541 and #708 .
With this change in place, https://github.com/paperjs/boolean-test is also finally back to run with 0 errors. Woop!
2015-08-18 23:47:28 +02:00
Jürg Lehni
098ddda3bc
Include copyright comment in gulp file.
2015-08-18 22:51:34 +02:00
Jürg Lehni
08bdfe585b
Fix issue in getWinding() where rays were counted twice.
...
Closes #736 .
2015-08-18 22:36:10 +02:00
Jürg Lehni
be603c7da8
Fix Item#pivot test.
2015-08-18 17:23:33 +02:00
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