Commit graph

22 commits

Author SHA1 Message Date
Andrea Bogazzi
1bb1f8eb85
fix svg export of gradients (#5456)
* fix svg export of gradients

* fixed UTs

* visual tests too

* and the pictures

* fixed test lint
2019-01-06 01:15:16 +01:00
Andrea Bogazzi
d5f3bf4a79
Canvas SVG export (#4852)
* changed export

* mmm

* mmm

* added some tests

* fixed tests

* ....lint

* ....lint
2018-04-01 00:11:53 +02:00
Andrea Bogazzi
43ebcd8278
Gradient fix parsing floats (#4637)
* fixed gradient parsing and circle width/height leak

* added a small test

* fix lint

* test re enabled

* fixed tests
2018-01-20 01:09:47 +01:00
Andrea Bogazzi
7eea5228b9
removed specific node code (#4470)
* removed node code

* fixed UTs
2017-11-19 20:00:01 +01:00
Andrea Bogazzi
c03111824c Update deps (#4315)
* try replace tests
* modified tests for new qunit
* lint tests
2017-09-17 11:44:57 +02:00
Andrea Bogazzi
553669c938 Extend test coverage (#3999)
* extended test coverage
* new file
* fixed lint
2017-06-12 11:13:55 +02:00
Andrea Bogazzi
f877f52f2a fix gradient toSVG for radial gradients (#3807)
* support svg crossorigin on images
* fix gradient export
* added tests
2017-03-26 10:22:10 +02:00
Andrea Bogazzi
8a6b17cac6 add custom props to pattern and gradient (#3477) 2016-12-01 23:39:25 +01:00
Andrea Bogazzi
08f60adbea switch to eslint (#3229)
* switch to eslint 2.x
* fix src
* fix tests
2016-09-10 15:14:23 +02:00
Andrea Bogazzi
6601af9340 gradientInfinity (#3082)
* gradientInfinity
* updated tests
2016-07-17 10:31:51 +02:00
Andrea Bogazzi
436ce5a70c add test for gradient Transform 2015-09-19 08:27:28 +02:00
Andrea Bogazzi
c3b1af63e0 add failing test for missing stop attribute 2015-08-12 14:23:42 +02:00
kangax
94f7035624 Lint unit tests and fix errors/warnings 2015-04-23 11:47:35 +02:00
Andrea Bogazzi
a9e2211780 Update gradient.js 2014-08-16 08:16:12 +02:00
Andrea Bogazzi
b27cba8921 Update gradient.js
Add test for imported transform
2014-08-03 20:55:04 +02:00
kangax
67b54a44a5 Fix pattern toSVG 2013-07-22 22:00:03 +02:00
Kienz
520b2258d3 Convert opacity value into float value. If stop-opacity is set as attribute (not as style attribute) el.getAttribute('stop-opacity') returns null. Problem exists since commit a0b7fa4eb9.
Add default value rgb(0,0,0) for stop-color and 1 for stop-opacity.
Add more gradient tests.
2013-07-02 21:09:50 +02:00
Kienz
57de0f7f3a Add more tests to gradient (distinguish between linearGradient and radialGradient) 2013-06-18 22:34:18 +02:00
kangax
e8e32e80de Fix gradient colorStops initialization. Thanks @Kienz 2013-03-18 13:11:31 +01:00
kangax
9fb9b1ca34 Fix unit tests 2013-03-10 20:58:48 +01:00
kangax
6777c50012 Add support for patterns 2013-02-03 02:15:29 +01:00
kangax
9a7d40d7d7 Change the way gradients are initialized.
They no longer need `ctx` property, which is now taken from object directly during rendering time.
Add unit tests for gradients.
2012-08-20 18:23:53 +02:00