Jürg Lehni
|
9d60662a28
|
Check for the occurrence of 'radius' rather than 'center' when deciding to read a center / radius pair for ellipses.
|
2013-10-29 18:53:55 +01:00 |
|
Jürg Lehni
|
c3aed5277d
|
Use center and radius in all ellipse code, rather than bounding rect.
Simplifies things.
|
2013-10-29 18:10:30 +01:00 |
|
Jürg Lehni
|
fc9cad009f
|
Implement CompoundPath#_getWindings() and move #_contains() code for both Path and CompoundPath to PathItem.
|
2013-10-29 17:57:25 +01:00 |
|
Jürg Lehni
|
04286bc1e0
|
Fix issue with param.trackTransforms
We can only pop() if we push()
|
2013-10-29 17:56:43 +01:00 |
|
Jürg Lehni
|
b2188be567
|
Make sure _globalMatrix is not set to false values in Item#rasterize().
|
2013-10-29 17:37:45 +01:00 |
|
Jürg Lehni
|
ccfacf2484
|
Fix mediaelement.js path in Nyan example.
|
2013-10-29 17:35:57 +01:00 |
|
Jürg Lehni
|
2066fae47a
|
Use option.expandShapes to restore boolean examples.
|
2013-10-29 16:47:27 +01:00 |
|
Jürg Lehni
|
c765e26a08
|
Implement SVGImport options support.
For now only options.expandShapes, which expands Shape items to Path items.
|
2013-10-29 16:47:02 +01:00 |
|
Jürg Lehni
|
d649b1bb21
|
Define insert argument for Path#toShape() and Shape#toPath()
|
2013-10-29 16:45:50 +01:00 |
|
Jürg Lehni
|
77b142bec4
|
Allow the SVGExport code to assume that the option object is always defined.
|
2013-10-29 16:41:16 +01:00 |
|
Jürg Lehni
|
dc3bd30ee3
|
Rename some variables and clean up code a bit more.
|
2013-10-29 16:19:39 +01:00 |
|
Jürg Lehni
|
de01ef1c21
|
Clean up code from previous merge.
|
2013-10-29 16:09:35 +01:00 |
|
Jürg Lehni
|
ef972949c8
|
Merge branch 'refs/heads/intersect-fix'
Conflicts:
src/path/Curve.js
|
2013-10-29 16:06:02 +01:00 |
|
hkrish
|
ac04029f6e
|
Curve-line intersection fix
|
2013-10-29 15:52:46 +01:00 |
|
Jürg Lehni
|
63e4bd5db2
|
Do not use the point of the rotated curve to evaluate the parameter of the line.
Use the non-rotated curve instead.
|
2013-10-29 15:46:20 +01:00 |
|
Jürg Lehni
|
f20e8240cd
|
Use new range feature of solveCubic()
|
2013-10-29 15:44:42 +01:00 |
|
Jürg Lehni
|
979428b6dc
|
Merge branch 'refs/heads/intersect-fix'
Conflicts:
src/path/Curve.js
|
2013-10-29 15:15:59 +01:00 |
|
Jürg Lehni
|
fb27f92ede
|
Clean up intersection-fix code.
|
2013-10-29 10:16:20 +01:00 |
|
Jürg Lehni
|
8ae1105236
|
Merge branch 'refs/heads/intersection-fix'
|
2013-10-29 10:03:26 +01:00 |
|
Jürg Lehni
|
5a462f42b7
|
Improve some comments / docs.
|
2013-10-29 09:42:59 +01:00 |
|
Jürg Lehni
|
7209b2f977
|
Add butterfly SVG example.
|
2013-10-29 09:42:59 +01:00 |
|
Jürg Lehni
|
c579433b3d
|
Fix bug in Raster.onLoad()
It was executing in wrong scope on websites with multiple scopes.
|
2013-10-29 09:42:58 +01:00 |
|
Jürg Lehni
|
160fe25cd1
|
Improve documentation of #importSVG() methods.
|
2013-10-29 09:42:58 +01:00 |
|
hkrish
|
bec1a91812
|
Calculate correct parameter for Curve-Line intersections
|
2013-10-29 00:10:20 +01:00 |
|
Jonathan Puckey
|
61ecf44140
|
Fix spelling mistake in CanvasView#initialize. Closes #316.
|
2013-10-25 17:15:54 +02:00 |
|
Jürg Lehni
|
b4850b572a
|
Improve variable naming.
|
2013-10-20 01:57:11 +02:00 |
|
Jürg Lehni
|
cc201655af
|
Fix comment.
|
2013-10-20 01:54:53 +02:00 |
|
Jürg Lehni
|
e6ef5e7e17
|
Fix hit-test for compound paths again.
|
2013-10-20 01:54:20 +02:00 |
|
Jürg Lehni
|
ddeacb1763
|
More code clean up.
|
2013-10-20 01:41:31 +02:00 |
|
Jürg Lehni
|
caa50236dd
|
Simplify winding algorithm by reusing orientation check.
|
2013-10-20 01:24:07 +02:00 |
|
Jürg Lehni
|
7c4518e4d0
|
Clean up some variable names.
|
2013-10-20 00:59:12 +02:00 |
|
Jürg Lehni
|
b4651a18c6
|
Implement #getItem() on Project and Item, similar to #getItems() but returning only the first match.
|
2013-10-19 13:02:53 +02:00 |
|
Jürg Lehni
|
1a645a1adb
|
Implement function callbacks for item matching.
|
2013-10-19 12:38:36 +02:00 |
|
Jürg Lehni
|
4fb6a5d949
|
Implement #getItems(match) on Project and Item as a simple and efficient query interface.
|
2013-10-19 12:27:13 +02:00 |
|
Jürg Lehni
|
49a8ea24af
|
No need for Object.getPrototypeOf().
Simply point _filtering directly at the original object.
|
2013-10-19 12:08:04 +02:00 |
|
Jürg Lehni
|
d59ed6d7c0
|
Implement a way to use fast _filtered inheritance trick and still use #hasOwnProperty() checks in Base#_set()
|
2013-10-19 12:05:53 +02:00 |
|
Jürg Lehni
|
0b7e128426
|
Only rely on _drawCount for drawing related things, and caching where it allows.
Project#selectedItems was out of sync until the next draw loop.
|
2013-10-18 21:52:22 +02:00 |
|
Jürg Lehni
|
5db6db3b76
|
Improve selection serialization to JSON and fix issue in deserialization.
|
2013-10-18 21:12:25 +02:00 |
|
Jürg Lehni
|
782f5c8f7e
|
Fix issue with reading selected segment points from JSON when there are no handles.
The segment short form was misunderstood by the constructor.
|
2013-10-18 20:58:06 +02:00 |
|
Jürg Lehni
|
f7c21144a1
|
Improve handling of strokes in Path#hitTest().
Have it match stroke locations when option.stroke is set even when the path has no stroke.
|
2013-10-18 20:27:47 +02:00 |
|
Jürg Lehni
|
b91c8f93f8
|
Remove Curve. _getEdgeSum() again, and inline code in Path.isClockwise()
|
2013-10-18 19:51:54 +02:00 |
|
Jürg Lehni
|
1fc9f882ca
|
Fix a minor bug in CompoundPath#contains(), improve comments and clean up code.
|
2013-10-18 19:49:05 +02:00 |
|
Jürg Lehni
|
304ecbc3be
|
Define compoundChildren hitTest option to get matching children instead of parent.
|
2013-10-18 15:40:41 +02:00 |
|
Jürg Lehni
|
f8106ae18f
|
Improve code handling special winding cases.
|
2013-10-18 15:20:32 +02:00 |
|
Jürg Lehni
|
75a209c002
|
Handle more special cases in winding algorithm.
|
2013-10-18 15:15:54 +02:00 |
|
Jürg Lehni
|
5d0fd8f970
|
Implement Style#windingRule and use it in Path#contains().
|
2013-10-18 14:54:13 +02:00 |
|
Jürg Lehni
|
4f27be8f12
|
Include new, improved point in path algorithm based on winding number.
It's also possible to switch to using the canvas's native isPointInPath() through options.nativeContains
|
2013-10-18 14:22:59 +02:00 |
|
Jürg Lehni
|
eae526f38c
|
Update Numerical.solveQuadratic() / solveCubic() to optionally filter results to be in a given range.
|
2013-10-18 13:52:01 +02:00 |
|
Jürg Lehni
|
523b9ea592
|
Fix syntax error.
|
2013-10-18 11:50:36 +02:00 |
|
Jürg Lehni
|
89704243b1
|
Simplify Numerical.solveQuadratic()
|
2013-10-18 11:48:23 +02:00 |
|