Commit graph

33 commits

Author SHA1 Message Date
Jürg Lehni
a457228846 Fix formatting issues. 2014-10-08 15:52:41 +02:00
Jürg Lehni
797a393c9a Remove various double white-spaces. 2014-08-25 12:49:14 +02:00
Jürg Lehni
48cb05a181 Replace tabs with 4 white-spaces. 2014-08-16 19:24:54 +02:00
Jürg Lehni
f39b7603de Remove pixelRatio handling from CanvasProvider and move it to Item#draw() 2014-05-15 17:14:37 +02:00
Jürg Lehni
f56efd6471 Fix exceptions in ProxyContext when drawing bitmaps. 2014-05-13 12:33:39 +02:00
Jürg Lehni
320caa56d1 Add support for line dash to ProxyContext. 2014-04-27 17:36:31 +02:00
Jürg Lehni
f002c633a7 Remove trailing white spaces and ensure newlines at the end. 2014-04-06 13:48:03 +02:00
Jürg Lehni
3dae48acf4 Bring back accidentally removed support for pixelRatio in CanvasProvider. 2014-03-18 12:42:28 +01:00
Jürg Lehni
d28bac0734 Support Firefox 3.6 still, with surprising little effort.
Why, I don't really know :)
2014-03-18 12:38:29 +01:00
Jürg Lehni
2b4ecfa669 Remove unused pixelRatio code from CanvasProvider. 2014-03-17 16:41:11 +01:00
Jürg Lehni
ec0877962b Expose the view's pixel-ratio and resolution through View#pixelRatio and View#resolution 2014-02-26 16:19:48 +01:00
Jürg Lehni
e22fa3a664 Update copyright notice. 2014-01-04 01:47:16 +01:00
Jürg Lehni
a59a42376a Clean up coding style a bit. 2013-12-16 21:40:40 +01:00
Jürg Lehni
93d10983ee Update to latest Prepro.js and switch from global options object to __options, to avoid name clashes. 2013-11-29 20:26:38 +01:00
Jürg Lehni
5439f6ba45 We need to take pixel ratio into account when directly blitting blend-modes onto canvas. 2013-11-06 13:11:54 +01: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
392cef3961 Add missing colon. 2013-10-16 16:11:08 +02:00
Jürg Lehni
c0c5695b5a Fix indentation. 2013-10-16 16:09:34 +02:00
Jürg Lehni
fb6ff59218 Improve ProxyContext: Use JSON.stringify() for rendering values correctly, and streamline code. 2013-10-16 16:09:11 +02:00
Jürg Lehni
c68a7d33da Switch from options.browser and options.node to options.environment 2013-10-10 23:09:00 +02:00
Jürg Lehni
94c192495a Add support for canvas compositing modes to Item#blendMode.
Closes #159.
2013-07-19 15:23:16 -07:00
Jürg Lehni
a908556956 Fix blend mode detection syntax. 2013-06-26 15:05:43 -07:00
Jürg Lehni
1126c699d2 Improve tests for native blend modes.
Each mode needs to be tested separately, since some browsers implement only a subset (WebKit).
2013-06-26 14:59:07 -07:00
Jürg Lehni
b8d773e129 Rename blendMode parameter to mode. 2013-06-26 14:37:41 -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
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
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
a51745447b Restructure CanvasProvider code and call save() and restore() upon retrieval / release. 2013-06-17 15:24:57 -07:00
Jürg Lehni
6fe60cff9d Fix trailing comas. 2013-06-12 17:42:38 -07:00
Jürg Lehni
cd7db56249 Remove all create() constructors for basic types since new constructors are now faster.
Woop!
2013-05-27 23:57:31 -07:00
Jürg Lehni
53dac53ca0 Restructure code organization by separating canvas related utility classes into separate canvas folder, and move inclusion of utilities classes to beginning.
Was needed because Numerical.KAPPA is accessed at compile time.
2013-04-19 19:38:48 -07:00