Commit graph

115 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
a8bdd40612
Create a different dataUrl (#5452)
* changed toDataUrl

* ok not broken

* ok not broken

* fix

* missed the offscreen
2018-12-30 15:49:50 +01:00
Blob
3b314d11cc Add strokeDashOffset and svg corresponding attribute (#5398)
* Add strokeDashOffset and svg corresponding attribute
2018-11-23 00:56:00 +01:00
Andrea Bogazzi
61249c85a5
Version 242 (#5309)
* Version 242

* fixed version
2018-10-14 19:07:16 +02:00
Andrea Bogazzi
191099cb59
Add shadow option to toDataURL and cloneAsImage (#5308)
* first test

* less accuracy
2018-10-14 18:15:57 +02:00
Andrea Bogazzi
a7ff2bfb10
Rework SVG code to have clipPath friendly transformations (#5284)
* so far i think i broke everything

* halp super hard

* this is what i wanted

* fixed error

* some fixes

* svg-working

* less code

* fixed shadow for text and groups

* fixed tests

* one file test more

* fixed lint

* works

* ok more tests

* remove a lint issue

* removed unused method
2018-10-07 15:43:37 -04:00
Andrea Bogazzi
de142eecbb
fixed (#5282) 2018-09-30 14:37:00 -04:00
Andrea Bogazzi
8c3f677cc2
Fix interaction between grouping and enter edit for text (#5153) 2018-08-12 02:33:41 +02:00
Andrea Bogazzi
db292dfb2f
Version 2.3.4 (#5144)
* built

* added changelog

* Update CHANGELOG.md
2018-08-06 00:50:56 +02:00
Andrea Bogazzi
7c7c227f3c fixed-test-lint 2018-07-12 15:20:42 +02:00
Andrea Bogazzi
750c7c26db
simpler test (#5093) 2018-07-09 12:10:39 +02:00
Durga Madhab
65a219e56c toSVG() excludeFromExport for backgroundImage and overlayImage (#5075) 2018-07-09 05:48:39 +02:00
Andrea Bogazzi
bafc28d3fc
Svg import improvements (#4984)
* test

* svg-import-fixes

* svg-import-fixes

* ok done

* adapted tests to new values
2018-05-29 10:28:02 +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
682eac4545
removed references to context when disposing (#4846)
* removed references to context
* improved test
* try fix error
2018-03-22 12:35:12 +01:00
Andrea Bogazzi
361db0b8a2
added test for dataUrl (#4705) 2018-02-10 13:12:00 +01:00
Andrea Bogazzi
dea22aca70
Fixes (#4674)
* default no retina for dataurl
* make num_fraction_digits variable
* restored aborted changes
* mispelled param
* added test for SVG
* added test for toDataUrl
* how it could even run
* simpler test
* i hope they will pass now
* fed up
* completely cheating
* fallback on dumb test
* test also this
* test also this
* more tests
2018-02-04 22:42:32 +01:00
Jeremy Shipman
0c936ed6bc Fix testem runner, and further improvements (#4593)
* Switched qunit dependency to npm

* Fixed testem not working

* Switched test.js build to use node-qunit.
As stated in the QUnit docs: The qunit package prior to 2.4.1 is an alternative CLI that is now published as node-qunit.

* Introduced qunit 2.4.1, with an npm script for running node tests

* Switched testem page fixture to use qunit package instead of qunitjs

* Configured testem to run in headless mode, and use new npm node test script for "Node" launcher configuration.
This means that individual tests will show up in testem output via the the `tap` test protocol.

* Made canvas_static 'toDataURL cropping' test asynchronous.

* Configured QUnit testTimeout and enabled 'noglobals' config

* Updated .travis.yml config to do cross-browser/env testing via Testem

* Specify qunit binary directly to fix confict with binary from node-qunit

* Avoid test hanging by aborting the animated cursor

* Firefox test fix, and enabled in Testem config
2017-12-31 09:51:07 +01:00
Andrea Bogazzi
71b36f6228
Node canvas (#4497)
* readded

* paused

* test

* try jsdom

* restore node methods

* restored

* restored

* fix tests
2017-11-24 19:00:47 +01:00
Andrea Bogazzi
031531b218
Reduce leaks in NODEJS continue canvas creations (#4471)
* reduce leaks in node

* fix test
2017-11-19 23:41:42 +01:00
Andrea Bogazzi
7eea5228b9
removed specific node code (#4470)
* removed node code

* fixed UTs
2017-11-19 20:00:01 +01:00
Stefan Hayden
0fc71349a6 Paint order (#4303)
* makes fabric aware of the paint-order svg2 spec to swap the paint order of stroke and fill
2017-09-17 22:47:35 +02: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
69d377b992 Output version (#4251)
* output version in json

* fixed tests

* fixed lint
2017-08-29 22:23:42 +02:00
Andrea Bogazzi
ffd2d3254c Fix block style insertion (#4192)
* fix style nsertion

* fixed tests from older changes

* fixed tests from older changes
2017-08-13 20:49:39 +02:00
Andrea Bogazzi
351e7dfa47 Multiple fixes (#4119)
* multiple fixes
* updated tests
2017-07-22 16:34:47 +02:00
Andrea Bogazzi
5367cfa8e3 Add tests for sourcePath changes (#4108)
* modified path
* added tests
2017-07-18 08:38:19 +02:00
Andrea Bogazzi
d106051554 Remove accessors (#4065) 2017-07-03 17:02:44 +02:00
Andrea Bogazzi
c41ef91fca Image meet or slice with cropX and cropY value (#4055)
* working example
* fixed tests
2017-07-03 12:20:10 +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
7517b951ab Remove PathGroups for Groups. (#3969)
* removed pathGroups
2017-06-01 11:02:32 +02:00
Andrea Bogazzi
e96ccf9ea6 new filtering with webgl (#3915) 2017-05-29 18:28:24 +02:00
Andrea Bogazzi
b979bd5861 switch to canvas prebuilt (#3757)
* swithced to canvas prebuilt

* try 2

* remove toolchanin needed to setup canvas
2017-03-14 12:37:07 +01:00
Stefan Kienzle
79c5d734c8 Fix loadFromJSON default values for fill and stroke (#3735) 2017-02-22 20:10:54 -05:00
Andrea Bogazzi
c378fa5b04 Misc changes (#3614)
* misc changes
2017-01-30 15:24:32 +01:00
Andrea Bogazzi
5ed0b83d45 fix tests (#3602) 2017-01-03 01:08:14 +01:00
Andrea Bogazzi
ab68d3a4ab Reuse come code between object and canvas (#3600)
* try to reuse code
* some fixes
* fixed errors

* Update util.js
2017-01-01 18:07:56 +01: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
edb90be547 WIP Patternload (#3598)
* make pattern load async
* made all object loadable asyncronously ( filters )
2016-12-30 22:41:16 +01:00
Andrea Bogazzi
3c0fe81b77 be more strict on when not to re render (#3594)
* add more check to first return false

* fix ;

* fix ; in tests

* fix test
2016-12-28 13:22:23 +01:00
Andrea Bogazzi
b775323424 fix includeDefaultValues (#3497)
* fix includeDefaultValues

* Update group.class.js

* Update group.js

* Update group.js
2016-12-05 14:51:06 +01:00
Andrea Bogazzi
9422fd39be Objectcaching (#3317) 2016-11-13 21:00:10 +01:00
Andrea Bogazzi
c5f60743f5 To object origin (#3416)
* deleted double default cleaning
* rework object export
* fixed tests
* fix fabric2 api change.
* removed unused var
2016-11-12 23:54:42 +01:00
Andrea Bogazzi
1278677a97 includeDefaults for background and overlay (#3415)
* reuse code for _toObject
* added small test
2016-11-12 18:20:20 +01:00
Timo Höpfner
37976d55b3 FIX for toDataURL cropping (#3335)
* FIX for toDataURL cropping
* Unit test for toDataURL cropping
2016-10-11 11:05:20 +02:00
Jeremy Shipman
d0c32acf7f Introduced testem test runner (#3327)
* Introduced testem test runner.
Install testem via 'npm install -g testem'
Run testem via 'testem'

* Fixed fixture image paths in tests
2016-10-05 09:12:26 +02:00
Andrea Bogazzi
b46c5b4ca3 remove unused function in staticCanvas (#3313)
* remove unused function in static
* fixed svg export
2016-10-02 12:12:42 +02:00
Andrea Bogazzi
43813adbdf Update clear methd (#3305)
* Update  clear method
2016-10-01 14:23:27 +02:00
Andrea Bogazzi
5d0bf5a166 add custom properties to bg and overlay (#3250) 2016-09-11 12:40:57 +02: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