Linus Unnebäck
8586d72eb0
Merge pull request #874 from lukechilds/async-bug
Make sure Canvas#toDataURL is always async if a callback is passed in
8 years ago
Adam Hooper
f7cab453a4
Make test a bit nicer
8 years ago
Adam Hooper
bb506415ff
Avoid os.endianness()
8 years ago
Adam Hooper
fe88c8505c
Avoid buf.swap32() for older node versions
8 years ago
Adam Hooper
3ab222e43b
Support canvas.getBuffer('raw')
This should help interface with custom image libraries like LodePNG or
WebP.
8 years ago
Benjamin Byholm
003e803c3a
Crude PDF stream implementation
9 years ago
wsw
faae57a90c
Add support for evenodd fill rule
9 years ago
Linus Unnebäck
ba7422a1ed
Fix leak of data when streaming JPEG
9 years ago
Linus Unnebäck
21dd24cc59
Fix segfault in putImageData
9 years ago
Zach Bjornson
6edfe44d53
Clamp JPEG buffer size. Fixes #674
9 years ago
Linus Unnebäck
a94a427da0
require new in constructor
9 years ago
Zach Bjornson
e54183d8d4
Make toDataURL more spec-compliant:
* Use default arguments when undefined arguments are passed.
* Throw TypeError on first invalid argument
* Accept a number 'encoderOptions' as the quality
* Fall through to image/png if an unsupported encoding is requested
* Return "data:," if the canvas has no pixels
* Lower-case the format before testing for support
9 years ago
Zach Bjornson
d306aa3665
Add data URI jpeg support ( fixes #31 )
9 years ago
Linus Unnebäck
145ae05f6a
tests: use standard mocha ui
9 years ago
Zach Bjornson
9ad6c41f2b
jpegStream: bugfix, tests, simplification with LinusU. Fix #629
Remove the undocumented 3rd argument of the emitters (bytes left in buffer).
Add a column to the browser tests that displays JPEGs.
Revise how buffers are allocated.
9 years ago
Zach Bjornson
d4d3b9c724
Update to NAN 2 and node 3+ APIs
10 years ago
Linus Unnebäck
858d79bb4c
test: fix up some small issues
10 years ago
Zach Bjornson
c3123efe55
Update test infrasturcture.
10 years ago
motiz88
3cc596f34c
hsl/hsla color parsing + rebeccapurple
hsl() and hsla() color values are now supported, with corresponding unit tests.
Also added rebeccapurple (from CSS Color Level 4) to the named color list.
10 years ago
Thaddee Tyl
79f1d42fb5
Offer SVG output.
11 years ago
Enno Boland
bee3774333
export canvas.CanvasPixelArray instead of canvas.PixelArray which is undefined
11 years ago
TJ Holowaychuk
bee4f655e6
comment out font parsing tests for now
12 years ago
Brian White
96025d0adf
Remove duplicate require()
13 years ago
TJ Holowaychuk
03d1cacf9c
Added `Canvas#type` getter
13 years ago
Robert Sköld
46bda423f8
Added a test (and fix) for a regression with gradients
13 years ago
Robert Sköld
9927a3f01c
Added a test for ctx.createPattern(Image)
13 years ago
Robert Sköld
a1840301c3
Update ctx#createPattern() test to loop through all pixels.
13 years ago
Robert Sköld
559bd9d572
Started on ctx.createPattern() support.
13 years ago
Tj Holowaychuk
8af3486cf6
removed sys require
13 years ago
Tj Holowaychuk
078a8572d3
expresso -> mocha
13 years ago
Tj Holowaychuk
46d57fb1e2
fixed tests
13 years ago
Tj Holowaychuk
f65f60aec1
Fixed measureText().width. Closes #126
13 years ago
Tj Holowaychuk
b31343b7f5
more tests
13 years ago
Tj Holowaychuk
85fd07913b
Added failing measureText() test
13 years ago
Tj Holowaychuk
d8c87a03e5
upgraded expresso
14 years ago
atomizer
c941f94a10
wait. that passes, dammit
Signed-off-by: Tj Holowaychuk <tj@vision-media.ca>
14 years ago
atomizer
a9c6d318fd
some clamping tests
Signed-off-by: Tj Holowaychuk <tj@vision-media.ca>
14 years ago
Tj Holowaychuk
ba80473d34
output versions in `make test`
14 years ago
Tj Holowaychuk
cdc7aca71a
Fixed font tests
14 years ago
Tj Holowaychuk
c10bbcb872
Fixed font size growing issue after successive calls. Closes #70
14 years ago
Tj Holowaychuk
239013c7d1
Added patternQuality unit test
14 years ago
Tj Holowaychuk
e707a91c38
more color parser tests
14 years ago
Tj Holowaychuk
c157041df5
Added more color parser tests
14 years ago
Tj Holowaychuk
f4cd85ad05
lowercase rgba_to_string res for hex
14 years ago
Tj Holowaychuk
4e501aa017
removed parseColor() from tests
14 years ago
Tj Holowaychuk
4d4eed0e08
removed hsl tests for now
14 years ago
Tj Holowaychuk
afbb703c94
Added width/height Canvas initialization test
14 years ago
Tom Carden
f6dbf624c9
hsl and hsla support plus initial tests
14 years ago
Tj Holowaychuk
7e17bfb8c1
More tests
14 years ago
Tj Holowaychuk
5793f2d1b1
Added test for createImageData(ImageData)
14 years ago