Commit graph

4554 commits

Author SHA1 Message Date
Jürg Lehni
2a88042315 Handle importing of SVG gradients for shapes, and drawing of canvas gradients correctly.
Closes #312.
2013-10-30 01:25:13 +01:00
Jürg Lehni
4869376c41 Fix issue with cloning gradient colors. 2013-10-30 00:41:14 +01:00
Jürg Lehni
eecf68b7c3 Clear ctx.shadowColor after ctx.fill() to avoid application to both fill and stroke.
Closes #314.
2013-10-30 00:00:04 +01:00
Jürg Lehni
db882748b1 Fix documentation of Point#angle.
Closes #320.
2013-10-29 23:37:05 +01:00
Jürg Lehni
dec7efc939 Remove unused variable center. 2013-10-29 22:02:29 +01:00
Jürg Lehni
6335393541 Remove unused function argument. 2013-10-29 22:01:49 +01:00
Jürg Lehni
825a090e6b Bump version to v0.9.10 2013-10-29 22:00:23 +01:00
Jürg Lehni
f211c20e77 Make Palette code optional and only include id in paper-full.js 2013-10-29 21:56:00 +01:00
Jürg Lehni
4042d4fc2c Only fire change events if values actually change. 2013-10-29 21:52:42 +01:00
Jürg Lehni
54a24d97b1 Fix typo. 2013-10-29 21:34:51 +01:00
Jürg Lehni
a3ec26dace Improve handling of change events in Palette. 2013-10-29 21:34:12 +01:00
Jürg Lehni
4e34a27da4 Some more work on comments. 2013-10-29 21:20:19 +01:00
Jürg Lehni
1871e2f7c4 Improve comments. 2013-10-29 21:18:09 +01:00
Jürg Lehni
fd96447ac1 Share ellipse reading code between Shape.Ellipse and Path.Ellipse. 2013-10-29 21:15:28 +01:00
Jürg Lehni
aca9968164 Simplify Shape#_contains() code. 2013-10-29 21:09:11 +01:00
Jürg Lehni
4333334014 Simplify Shape#hitTest() code. 2013-10-29 21:06:58 +01:00
Jürg Lehni
6fba727600 Add DOCS comments. 2013-10-29 21:00:24 +01:00
Jürg Lehni
f8d960d834 option.tolerance should always be defined in _hitTest() 2013-10-29 21:00:17 +01:00
Jürg Lehni
ae4ddaeae5 Implement correct hit-tests for rounded rectangle Shape items. 2013-10-29 20:58:30 +01:00
Jürg Lehni
c43752dc3e Use #hasFill() and #hasStroke() more broadly and avoid drawing strokes when strokeWidth is set to 0. 2013-10-29 20:05:39 +01:00
Jürg Lehni
94623f6d3f Keep radius and size in sync in Path.Rectangle. 2013-10-29 19:42:33 +01:00
Jürg Lehni
b86b66d43d Improve documentation. 2013-10-29 19:25:10 +01:00
Jürg Lehni
7f8d9d9e90 Support options.tolerance in Shape#hitTest() 2013-10-29 19:17:42 +01:00
Jürg Lehni
156c7cfbc3 Update JSDoc. 2013-10-29 19:16:02 +01:00
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