Jürg Lehni
dbe3aa42ec
Fix typo in error message.
2016-09-22 10:42:47 -04:00
Jürg Lehni
e539633852
Implement new and shorter segments array notation.
...
Supporting:
- Closing paths by including `true` as the last entry
- Nested segment arrays that can be passed to PathItem.create() and the CompoundPath constructor to create all sub-paths
2016-07-19 13:08:21 +02:00
Jürg Lehni
8fb7c41537
Implement support for web-workers.
...
Relates to #634 , closes #582
2016-02-02 17:30:38 +01:00
Jürg Lehni
90e1cf8f5e
Canvas: Throw an error if a canvas cannot provide a 2D context.
2016-01-31 12:43:38 +01:00
Jürg Lehni
c479ec9272
Start with transition to unified version.
...
Relates to #739
2016-01-26 11:41:49 +01:00
Jürg Lehni
a7a07fb6d5
Update JSDoc and do some documentation spring-cleaning.
...
- Convert from {@code ...} to shorter `...`
- Reformat some documentation comment blocks
- Update copyright notices
2015-12-30 21:55:19 +01:00
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