Commit graph

738 commits

Author SHA1 Message Date
Andrea Bogazzi
e96ccf9ea6 new filtering with webgl (#3915) 2017-05-29 18:28:24 +02:00
Andrea Bogazzi
a8db7b3523 Fix #3905 add an additional setCoords at the end of addWithUpdate/removeWithUpdate (#3911)
* added setCoords

* removed extra setCoords

* so tired i cannot read

* added test
2017-05-06 19:54:42 +02:00
Andrea Bogazzi
0f559ad84f removed saveCoords hasMoved (#3910)
* removed method
* deleted tests
2017-05-06 19:16:03 +02:00
apgeo
e8766af559 Updated fiddle describing originX/originY usage (#3907)
The old fiddle did not work because of now inexistent fabricjs dependency script
2017-05-06 13:05:53 +02:00
Andrea Bogazzi
95d07a97ba small changes (#3908) 2017-05-06 13:05:07 +02:00
Andrea Bogazzi
b4761f3459 only one object for style (#3899) 2017-04-29 20:26:33 +02:00
Andrea Bogazzi
ee323e126f Give a way to draw controls programmatically (#3887)
* changes to control rendering

* changes

* moved render all after the events

* more changes

* removed console.log
2017-04-29 20:08:23 +02:00
Andrea Bogazzi
d1ec14f2de Allow group selection start on non selectable object (#3892)
* allow selection start on non selectable obkect
* fixed lint
2017-04-27 23:03:00 +02:00
Stefan Hayden
ca95fb513b initDelayedCursor() will abort and then restart the cursor animation (#3879) 2017-04-24 22:57:11 +02:00
Andrea Bogazzi
4d4b8f1088 added missing functions (#3877) 2017-04-24 09:48:56 +02:00
Andrea Bogazzi
ff2909ebf8 fixed cache for first draw (#3870)
* fixed cache for first draw

* fixed tests
2017-04-23 13:44:22 +02:00
Asturur
1e057a0bbf renamed char in _cahr 2017-04-23 11:28:57 +02:00
Andrea Bogazzi
eb3d7496ca fix caching widths (#3868) 2017-04-23 11:18:47 +02:00
Andrea Bogazzi
630ed86d9e fix toSVG polygons and other bugs (#3866) 2017-04-22 22:46:45 +02:00
Andrea Bogazzi
ea17776d28 Do not cache group if a child has shadow. (#3864)
* fix caching with shadows
* add travis install for canvas
2017-04-22 20:59:34 +02:00
Andrea Bogazzi
d95612e3c3 Issue 3832 Add toDatalessObject to Group class since it may contains pathGroups. (#3863)
* fix toDatalessObject

* added test
2017-04-22 15:15:01 +02:00
Andrea Bogazzi
b112b3405f text rewriting - reorganization (#3676)
*text refactored.
2017-04-22 09:15:38 +02:00
ncou
de39c3c148 remove unused "originalState" var (#3836) 2017-04-09 01:01:36 +02:00
Asturur
e4a42e054f support svg crossorigin on images 2017-03-25 18:45:54 +01:00
Andrea Bogazzi
c145ac26f2 fixed dirty (#3782) 2017-03-14 23:36:48 +01:00
by12
a7ff845165 Update path.class.js (#3774) 2017-03-14 21:42:07 +01:00
Andrea Bogazzi
efcd946b48 fix setSelectionStyles do not set anything when there is no selection (#3765)
* fix setSelection
* fixed tests
2017-03-06 01:15:24 +01:00
Andrea Bogazzi
0d0f5c5e63 Better offscreen detetion, added parameter to skip offscreen rendering. (#3758)
* added check for offscren

* changes

* better onscreen detection

* fix lint
2017-03-03 16:42:14 +01:00
Andrea Bogazzi
c3a6447aff fix text coordinates on init (#3745)
* fix text coordinates on init

* added small test

* fix test lint
2017-02-27 02:02:30 +01:00
Edwin Guzman
1f55de07c4 Fix problem on fabric.Line controls and line.getWidth() (#3742)
* feat(pr/fixLineWidth) Fix problem on fabric.Line controls and line.getWidth()

* fix line boxes and svg import
2017-02-25 15:17:24 -05:00
Andrea Bogazzi
14e8826173 text fixes to style (#3743) 2017-02-24 23:01:33 -05:00
Stefan Kienzle
79c5d734c8 Fix loadFromJSON default values for fill and stroke (#3735) 2017-02-22 20:10:54 -05:00
by12
45c868cd2b Update path_group.class.js (#3728) 2017-02-21 07:16:22 -05:00
Andrea Bogazzi
f85bdc75c6 Update path.class.js (#3713) 2017-02-19 17:29:03 -05:00
Andrea Bogazzi
74d8e02267 fix for bluriness (#3721) 2017-02-19 17:08:15 -05:00
Andrea Bogazzi
7a987faef2 changes (#3717) 2017-02-18 23:47:32 -05:00
Andrea Bogazzi
ff0b6f0a50 make cacheCanvas created on the fly if needed (#3706) 2017-02-16 17:19:32 -05:00
Andrea Bogazzi
5aeb2a619d add condition on angle transform (#3704) 2017-02-16 16:32:52 -05:00
Andrea Bogazzi
c9e50febad add needsItsOwnCache property (#3703) 2017-02-16 15:36:45 -05:00
Stefan Hayden
eb6815a972 Draw consecutive textBackgroundColor in style with one draw call (#3698) 2017-02-16 13:44:54 -05:00
Andrea Bogazzi
5cd1111195 fix reload from json (#3691)
* fix reload from json

* fix just on path
2017-02-14 00:40:02 -05:00
Andrea Bogazzi
c378fa5b04 Misc changes (#3614)
* misc changes
2017-01-30 15:24:32 +01:00
Andrea Bogazzi
9e37f9b3c1 Fixes recent and old small issues (#3643) 2017-01-23 00:34:47 +01:00
Andrea Bogazzi
920b83b513 Handle wheel event as a normal event with target. (#3612)
* wheel event with target
* fix target detection
2017-01-07 14:38:57 +01:00
Andrea Bogazzi
4df8ef3698 Fix lines test 2017-01-07 14:31:14 +01:00
Andrea Bogazzi
673959b4e7 force origin for line fromElement (#3604) 2017-01-03 15:27:51 +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
1cb047bb66 fix space for cache canvas for thin lines (#3596)
* fix space for cache canvas
* add the fixed padding to cache canvas
* update group test
2016-12-30 18:19:18 +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
9bb820ed75 save new state anyway (#3595) 2016-12-28 11:50:48 +01:00
Andrea Bogazzi
da253012c7 During load from json send error to reviver (#3586)
* send error to reviver
* add error to imageFromObject
2016-12-26 19:40:33 +01:00
Andrea Bogazzi
700ee14ff5 send up to group the change on dirty flag (#3564)
* send up to group the change on dirty flag
* added tests
2016-12-26 18:54:53 +01:00
Andrea Bogazzi
713e0af4bd correct doc for backgroundColor 2016-12-26 18:53:38 +01:00