Commit graph

4146 commits

Author SHA1 Message Date
Jürg Lehni
8c9ac92a59 Define failing test for hit-testing bounds on raster items.
Linked to issue #247.
2013-06-23 19:48:46 -07:00
Jürg Lehni
9f7167a47f Clean up Item#hitTest() code. 2013-06-23 19:01:48 -07:00
Jürg Lehni
58f697abfc Fix hit-testing for guides. 2013-06-23 19:01:36 -07:00
Jürg Lehni
e59ae78285 Improve hit-testing tests for guides. 2013-06-23 19:00:57 -07:00
Jürg Lehni
dca049c6ab Implement failing test for hit-testing guides. 2013-06-23 18:18:49 -07:00
Jürg Lehni
76426c4cb3 Take #visible state into account when hit-testing.
Closes #243.
2013-06-23 17:55:14 -07:00
Jürg Lehni
f45fa853e7 Improve new hit-testing test. 2013-06-23 17:54:24 -07:00
Jürg Lehni
3b782f6338 Implement failing test for #243. 2013-06-23 17:52:31 -07:00
Jürg Lehni
1e81176cf1 Merge branch 'master' of github.com:paperjs/paper.js 2013-06-23 17:22:30 -07:00
Jürg Lehni
4b62949318 Fix tests for #246.
This is actually the right behavior: Setting length to negative values should flip around defined vectors.
2013-06-23 17:22:13 -07:00
Jürg Lehni
cf1b5a5df8 Define failing test for #246 2013-06-23 16:55:14 -07:00
Jürg Lehni
3d8f210268 Merge pull request #241 from chrisbarmonde/master
Fix project.clear()
2013-06-22 16:06:46 -07:00
Chris Barmonde
68626ca62b Fix project.clear() so it removes all layers properly. 2013-06-20 20:14:47 -06:00
Jürg Lehni
ca0513b1b2 Fix namespace for images in SVGExport. 2013-06-19 08:22:20 -07:00
Jürg Lehni
719b9d5e24 Move logic that determines if item can be directly composited into separate per-item #_canComposite() method. 2013-06-19 08:22:08 -07:00
Jürg Lehni
9c3a4acabd Bump version to v0.9.4 2013-06-18 19:20:47 -07:00
Jürg Lehni
258c404b98 Move curvature calculations into Curve.evaluate(), and define unit tests for it. 2013-06-18 19:00:05 -07:00
Jürg Lehni
619a8f88f8 Clean up code a bit in Curve#getCurvatureAt(). 2013-06-18 18:29:44 -07:00
Jürg Lehni
dc076efd0c Implement unit tests for Curve#getCurvatureAt(). 2013-06-18 18:29:32 -07:00
Jürg Lehni
663a7e0369 Implement unit tests for Curve#getTangentAt() and #getNormalAt(). 2013-06-18 18:23:48 -07:00
Jürg Lehni
3d78e3729d Fix issue with PaperScript and array[i++] expressions. 2013-06-18 18:18:39 -07:00
Jürg Lehni
4bda878f5f Fix accidental code removal. 2013-06-18 17:35:49 -07:00
Jürg Lehni
2241329321 Fix id clash in SVGExport. 2013-06-18 17:29:00 -07:00
Jürg Lehni
ace23d354d Update BlendModes example to include SVG export. 2013-06-18 17:23:38 -07:00
Jürg Lehni
742ae16de1 Add support for SVG mix-blend-mode attribute.
Browsers have yet to support it though.
2013-06-18 17:19:31 -07:00
Jürg Lehni
278a9771ba Minor clean-ups. 2013-06-18 17:02:02 -07:00
Jürg Lehni
785381b148 No need to set default color anymore due to detection of CSS style changes on any level. 2013-06-18 16:59:47 -07:00
Jürg Lehni
30c96dc9c1 Remove access to _style since we're using getters / setters on items directly now for SVGStyles. 2013-06-18 16:58:28 -07:00
Jürg Lehni
6e91d2ac9b Rearrange exporter sequence. 2013-06-18 16:57:09 -07:00
Jürg Lehni
7c1e10e35e Move Item#opacity support to SVGStyles. 2013-06-18 16:54:48 -07:00
Jürg Lehni
938433c51f Move Style#font support to SVGStyles. 2013-06-18 16:49:58 -07:00
Jürg Lehni
ad034fbb56 Allow for better minification. 2013-06-18 16:18:13 -07:00
Jürg Lehni
f48ef4d1a0 Move more styles to SVGStyles and make them work on export too.
SVGExport now supports text justification.
2013-06-18 16:14:47 -07:00
Jürg Lehni
2770a80a00 Fix unit tests for CSS values after white-space removal. 2013-06-18 15:59:28 -07:00
Jürg Lehni
b532390d9c Remove Clip class again.
Group can handle that.
2013-06-18 15:58:58 -07:00
Jürg Lehni
177229f99f Define Group#transformContent as a boolean to control #applyMatrix() behavior.
And use it for SVG Import.
2013-06-18 15:57:30 -07:00
Jürg Lehni
f758fb306b Rename #_applyMatrix to #_transformContent.
And swap names with private function...
2013-06-18 15:50:11 -07:00
Jürg Lehni
d7d6da0af8 Pass right value for dontNotify. 2013-06-18 15:47:14 -07:00
Jürg Lehni
691b2f8094 Fix issues with SVG Import and matrices on groups. 2013-06-18 15:46:49 -07:00
Jürg Lehni
f433423789 Respect _applyMatrix setting when calling #applyMatrix() in Group#_changed.
Required for Clip to work correctly.
2013-06-18 15:39:46 -07:00
Jürg Lehni
9633384122 Fix issue with colliding id ranges in SVG Export. 2013-06-18 15:01:18 -07:00
Jürg Lehni
db49718015 No need for white-space in CSS color format. 2013-06-18 14:33:50 -07:00
Jürg Lehni
75acdf1025 Add support for direct drawing of native blendModes for items that allow it.
Bypassing compositing into separate canvases completely.
2013-06-18 14:18:57 -07:00
Jürg Lehni
ad6124cf98 Take strokeWidth into account in Item#hasStroke() 2013-06-18 14:08:48 -07:00
Jürg Lehni
f4f97cda88 Fix a bug with wrong offsets when rendering nested clips and blend-modes.
And streamline blend-mode and opacity rendering code.
2013-06-18 12:35:57 -07:00
Jürg Lehni
414ac1d092 Fix offset in direct blitting of nested Clip items. 2013-06-18 12:20:21 -07:00
Jürg Lehni
a2cc7e11b3 Clean up blend-mode code a bit. 2013-06-18 11:26:58 -07:00
Jürg Lehni
deebd15f05 Improve comments. 2013-06-18 11:19:56 -07:00
Jürg Lehni
c48ab03050 Add support for native blend-modes.
Already works on Firefox 21.0 and will soon land on other major browsers!
2013-06-18 11:17:15 -07:00
Jürg Lehni
8cf09c08d9 Merge branch 'master' of github.com:paperjs/paper.js 2013-06-18 08:02:22 -07:00