wsw
faae57a90c
Add support for evenodd fill rule
9 years ago
Zach Bjornson
d4d3b9c724
Update to NAN 2 and node 3+ APIs
10 years ago
Zach Bjornson
b4a05d7892
Replace CanvasPixelArray with Uint8ClampedArray to meet spec.
Added some argument testing/manipulation to match WebKit/Moz behaviors.
Additionally benchmarked:
* branching on `if (a == 0 || a == 255)`, as it is
* not branching (always doing the alpha calculation)
* Mozilla's implementation found here: https://dxr.mozilla.org/mozilla-central/source/dom/canvas/CanvasRenderingContext2D.cpp#5083
Mozilla's is insignificantly faster (p=0.17) :) so left it as-is.
10 years ago
Andy Wood
822d822066
Refactor setSourceRGBA to allow the context to be supplied.
10 years ago
David Caldwell
31dd7d6d21
Add support for the lineDash API.
Described here:
http://www.w3.org/TR/2dcontext/#dom-context-2d-setlinedash
The test images match on Chrome, but not on Firefox. It looks like
Firefox resets the lineDash to [] when given invalid parameters. My
reading of the spec agrees with Chrome.
11 years ago
Rod Vagg
2354d9bb8c
0.11.4+ compatibility using NAN
See https://github.com/rvagg/nan
12 years ago
Seth Fitzsimmons
8dc36f09fa
CanvasRenderingContext2d#filter
Like patternQuality, but applies to transformations effecting more than just
patternsi (i.e. the implicitly created pattern).
See
http://cairographics.org/manual/cairo-cairo-pattern-t.html#cairo-pattern-set-filter
for more information.
12 years ago
Julian Viereck
1d3a99d85a
Add support to load fonts from file.
13 years ago
c-spencer
35d491a284
Add pango drawing support, and silence some warnings.
13 years ago
c-spencer
307fa29396
Switch draw mode state to an enum.
13 years ago
c-spencer
18e3edfc28
Add textDrawingMode context property.
13 years ago
TJ Holowaychuk
eb0edf2ce4
Changed: renamed .nextPage() to .addPage()
13 years ago
TJ Holowaychuk
a063907832
Added quick PDF support
need to clean things up, add async support, test images etc. I believe
some guys forked node-canvas to add some kind of image caching
for when an image appears several times within a PDF document, though
that may be out of scope
13 years ago
Robert Sköld
559bd9d572
Started on ctx.createPattern() support.
13 years ago
Tj Holowaychuk
ca5a58908f
Added CanvasRenderingContext2d#patternQuality accessor (non-standard)
15 years ago
Tj Holowaychuk
83c86d1c4b
Added drawImage() patternQuality support
15 years ago
Tj Holowaychuk
85ae1c931f
Added Context2d::Get{Fill,Stroke}Color()
15 years ago
Tj Holowaychuk
0ff539c691
setting up shadowColor accessors
15 years ago
Tj Holowaychuk
13e4ecf68c
make g++ stop bitching
15 years ago
Tj Holowaychuk
97c7fe6dbd
prep for c color parser
15 years ago
Tj Holowaychuk
ea4b13e7ef
Added arcTo(). Closes #11
15 years ago
Tj Holowaychuk
9221d3a403
Fixed canvas resizing. Closes #57
15 years ago
Tj Holowaychuk
d81edff827
Added Context2d::setContext()
15 years ago
Tj Holowaychuk
513f2a1098
Added PixelArray::constructor
15 years ago
Tj Holowaychuk
1e19b6ddb0
Added Context2d::constructor
15 years ago
Tj Holowaychuk
96005f2ac3
Started putImageData()
15 years ago
Tj Holowaychuk
b92797961e
Started Context2d#drawImage()
15 years ago
Tj Holowaychuk
620a83eeb6
Removed redundant "get" prefix for some methods
15 years ago
Tj Holowaychuk
12e26814bb
Added Context2d#antialias=
15 years ago
Tj Holowaychuk
001247f1cb
Fixed some errors / warnings on fedora
15 years ago
Tj Holowaychuk
ffa011a1c4
Moved blur to Context2d::blur()
15 years ago
Tj Holowaychuk
7f56dc825e
Utilizing new stroke/fill
15 years ago
Tj Holowaychuk
a8202da8d8
Added Context2d::shadow()
15 years ago
Tj Holowaychuk
19fe22a1c6
Added Context2d::setSourceRGBA()
15 years ago
Tj Holowaychuk
08eef3ebf5
Added Context2d::shadow{Start,Apply}()
15 years ago
Tj Holowaychuk
86837dbecc
Added Context2d::{save,restore}()
15 years ago
Tj Holowaychuk
d7b4eb6e2c
Implemented shadow coloring
15 years ago
Tj Holowaychuk
9ed1a24b43
Added Context2d::hasShadow()
15 years ago
Tj Holowaychuk
047c068392
Shadow related props within state
15 years ago
Tj Holowaychuk
1623e58773
newlines
15 years ago
Tj Holowaychuk
cd4d5da7c2
Added Context2d::{save,restore}Path()
15 years ago
Tj Holowaychuk
3dd37cc4ac
Added Context2d::setTextPath()
15 years ago
Tj Holowaychuk
1d90aa950a
Stubbed FillText() and StrokeText()
15 years ago
Tj Holowaychuk
17aba44102
uppercase filenames
15 years ago
Tj Holowaychuk
0d5b80a284
Added SetTextBaseline()
15 years ago
Tj Holowaychuk
888cb0198d
Added textAlign=
15 years ago
Tj Holowaychuk
b4339f9555
Added measureText()
15 years ago
Tj Holowaychuk
b93c406b96
Fixed fillText() fillStroke(), added SetTextPath()
15 years ago
Tj Holowaychuk
0fbefba998
Started strokeText()
15 years ago
Tj Holowaychuk
e0aca54c57
Started SetFont()
15 years ago