Commit graph

4175 commits

Author SHA1 Message Date
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
Jürg Lehni
b133d8fe2e Restructure BlendMode code, fix issues with color-dodge and color-burn, and create BlendModes.html example.
All modes should be implemented according to specs now.
2013-06-18 08:02:04 -07:00
Jürg Lehni
1b42822c2d Remove trailing comma. 2013-06-17 16:35:28 -07:00
Jürg Lehni
f350f34eb4 Apply clipping fix not only to blend modes but any operation that draws into a separate canvas. 2013-06-17 16:22:23 -07:00
Jürg Lehni
ab2bfe2d40 Rename nativeDash to dash. 2013-06-17 15:52:16 -07:00
Jürg Lehni
a51745447b Restructure CanvasProvider code and call save() and restore() upon retrieval / release. 2013-06-17 15:24:57 -07:00
Jürg Lehni
d98a9f40cb Correctly fix Line#length documentation. 2013-06-17 15:16:48 -07:00
hkrish
d4d2075040 Fix: Use absolute coordinates from #Curve.getValues() directly while calculating the curvature 2013-06-17 22:27:20 +05:30
Jürg Lehni
8a726f22b2 Clean up comments. 2013-06-17 08:57:30 -07:00
Jürg Lehni
b072df0486 Put isEnd value directly into conditional. 2013-06-17 08:56:42 -07:00
Jürg Lehni
d761c6c25f Implement tests for Curve#getPointAt().
More to come.
2013-06-17 08:54:42 -07:00
Jürg Lehni
ccd0bf8f6b Simply delegate to Point#getLength() as we already have it. 2013-06-17 08:28:37 -07:00
Jürg Lehni
9463f0078a Fix documentation since Line#vector will be documented as a simple accessor. 2013-06-17 08:28:02 -07:00
Jürg Lehni
18ad8a235d Clean up code to follow Paper.js coding conventions. 2013-06-17 08:26:51 -07:00
Jürg Lehni
be6bbb802d Move calculations of values to where they are needed. 2013-06-17 08:22:28 -07:00
Jürg Lehni
5ff990a84a Fix global variable leakage, and join sequential variable definitions. 2013-06-17 08:10:57 -07:00
hkrish
2693516844 Implement correct method for calculating curvature on a Path 2013-06-17 15:16:11 +05:30
Jonathan Puckey
de8aa1a6a5 Merge pull request #238 from christophknoth/patch-2
Changed broken link http://paperjs.org/downloads to http://paperjs.org/d...
2013-06-16 12:53:30 -07:00
Jürg Lehni
f8367bb0dd More clean-ups. 2013-06-15 05:24:34 -07:00
Jürg Lehni
79785afa2a Minor clean-ups and optimizations of stroke hit-test code. 2013-06-15 05:21:17 -07:00
Jürg Lehni
8c09d19f7c Fix wrong calculation of rough bounds for square caps.
And add some comments to stroke hit-testing code.
2013-06-15 05:15:48 -07:00
Jürg Lehni
26971672b2 Only check segments for miters that are within the limit. 2013-06-15 05:08:12 -07:00