Commit graph

65 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
77862ef41c
fix the parsing of the URL part of a property. (#4881)
* fix gradient parse url

* added test

* fix lint
2018-04-01 20:39:49 +02: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
c03111824c Update deps (#4315)
* try replace tests
* modified tests for new qunit
* lint tests
2017-09-17 11:44:57 +02:00
Andrea Bogazzi
860b7a74c0 mousemove and svg export (#4283) 2017-09-06 12:38:12 +02:00
Andrea Bogazzi
5bab9b84b2 fix path exports svgs (#4274) 2017-08-31 22:59:22 +02:00
neopheus
3b06e685ef Some modifications (#4137)
* unnecessary semicolon
* comment error
* expression simplified
* simply function
* jsdoc update
2017-07-29 11:41:32 +02:00
Andrea Bogazzi
7517b951ab Remove PathGroups for Groups. (#3969)
* removed pathGroups
2017-06-01 11:02:32 +02:00
Andrea Bogazzi
630ed86d9e fix toSVG polygons and other bugs (#3866) 2017-04-22 22:46:45 +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
88b9f7ef21 Changes to canvas svg export (#3599)
* change to parser
* fixed broken function;
* some changes to code reuse
2017-01-01 16:11:54 +01: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
neopheus
9b383628e8 JSdoc update (#3179)
* update JSDOC

* update JSDOC - v2

* update JSDOC - v3
2016-08-20 12:05:19 +02:00
Andrea Bogazzi
6601af9340 gradientInfinity (#3082)
* gradientInfinity
* updated tests
2016-07-17 10:31:51 +02:00
Andrea Bogazzi
611c6f7d4b remove forward slashes in docs urls 2016-04-27 16:01:48 +02:00
Andrea Bogazzi
bbae1aa9f6 Add gradient transform to toObject method 2015-09-19 08:25:17 +02:00
Andrea Bogazzi
37acc8a602 Set offset to 0 if attribute not present 2015-08-12 14:18:50 +02:00
sapics
7e9f17186f just code simpler 2015-06-11 11:16:41 +09:00
Andrea Bogazzi
323c648961 Update text.class.js 2015-05-09 11:05:54 +02:00
Andrea Bogazzi
0933c6f5c2 Update gradient.class.js 2015-03-07 15:56:24 +01:00
Andrea Bogazzi
0e09961c64 Update to text, rendering and optimization 2015-01-26 02:49:37 +01:00
kangax
0c41880e97 Add maximumLineLength restriction of 120 chars and space after comma 2014-09-22 20:40:39 +02:00
Andrea Bogazzi
e284fc0ec3 Update gradient.class.js 2014-09-13 17:03:56 +02:00
Andrea Bogazzi
2dd8884129 Update gradient.class.js
why it didn't tell me all togheter is a mistery.
Code style fix part 2.
2014-09-02 22:51:44 +02:00
Andrea Bogazzi
f854db4e4c Update gradient.class.js
code styles error fixed.
2014-09-02 22:47:49 +02:00
Andrea Bogazzi
d87af17aa4 Update gradient.class.js 2014-09-02 22:40:00 +02:00
kangax
a3d40878d6 Update JSCS to 1.6, fix errors, hook up travis 2014-08-30 13:18:43 +04:00
Andrea Bogazzi
29b6ae03e5 Update gradient.class.js 2014-08-19 15:07:33 +02:00
Andrea Bogazzi
92604f1ee4 Update gradient.class.js
Fixed some errore introduced with commit.
2014-08-19 13:59:26 +02:00
Andrea Bogazzi
cf5062b072 Update gradient.class.js 2014-08-16 17:17:00 +02:00
Andrea Bogazzi
dc4d4a4205 Update gradient.class.js
JSDOC and Variable names
2014-08-16 16:11:43 +02:00
Andrea Bogazzi
011674707a Update gradient.class.js 2014-08-16 08:13:20 +02:00
Andrea Bogazzi
740047a98b Update gradient.class.js
Added import of gradient transform
2014-08-03 20:55:45 +02:00
kangax
818ab118b3 JSCS changes; Prepare for JSCS ignore support; down to 51 failures 2014-08-03 16:47:27 +02:00
kangax
d2f6a9033e Add JSCS validation & change bunch of things for conformance. Down to 333 failures from ~1000. 2014-02-16 16:36:14 -05:00
kangax
fc3bb9fe69 Refactor getColorStop 2013-11-10 16:51:08 +01:00
kangax
86d8df6c8e Refactor duplication in gradient class 2013-10-25 20:27:02 +02:00
kangax
476da71e92 Doc changes 2013-10-25 09:05:39 +02:00
Kienz
fa2f18a77a Add more docs.
Examples, tutorial and demo links.
2013-09-28 12:31:32 +02:00
Kienz
721ac7a8c2 Doc additions - document object parameter 2013-09-17 22:42:58 +02:00
Kienz
92bdebfde7 Doc fixes, Update README (1800+ unit tests) 2013-08-08 18:31:26 +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
Michal Knizek
f22c198a1e Zero opacity in gracient color stop kangax/fabric.js#711 2013-06-18 09:00:55 +02:00
kangax
51b7c09314 Move Cufon methods to text.cufon. Move drawControls to Canvas (from StaticCanvas). Move dataURL-exporting methods to dataurl_exporter mixin. 2013-06-06 12:31:32 +02:00
Stefan Kienzle
2698597c74 Fix vertical gradients (x1 = x2 = 0)
I think `ctx.canvas.width` is not needed.
If gradient coords are e.g. `{x1: 0, y1: -50, x2: 0, y2: -50}` the vertical gradient doesn't work.
Fixes issue #660
2013-05-31 13:30:44 +02:00
kangax
2223b1b61f Remove more functions in distribution when SVG import (parser) is not included. Always include stateful mixin. Closes #662 2013-05-30 21:55:26 +02:00
kangax
2b6b64dd02 Add support for removing SVG export functionality during build (via no-svg-export flag) 2013-05-09 14:21:10 -04:00
kangax
4e1a26cc11 Update docs 2013-04-25 14:21:32 -04:00