Commit graph

233 commits

Author SHA1 Message Date
Andrea Bogazzi
a816742415 Better offscreen detetion, added parameter to skip offscreen rendering. (#3758)
* added check for offscren

* changes

* better onscreen detection

* fix lint
2017-03-14 22:54:13 +01:00
Andrea Bogazzi
91c851a333 fire deselected on activeObject switch. (#3689)
* misc changes

* fire the selection on target swap

* manag exitEditing without events

* onDeselect

* onDeselect
2017-02-13 07:47:59 -05:00
Andrea Bogazzi
c378fa5b04 Misc changes (#3614)
* misc changes
2017-01-30 15:24:32 +01:00
Andrea Bogazzi
0c523361f5 fix pattern to svg (#3601) 2017-01-02 01:33:17 +01:00
Asturur
d5220fee6e wait pattern reload from json 2017-01-01 21:41:25 +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
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
5b4e85dc48 Addition of aCoords (#3540)
* addition of acoords
* do not do extra work
2016-12-17 15:27:29 +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
1278677a97 includeDefaults for background and overlay (#3415)
* reuse code for _toObject
* added small test
2016-11-12 18:20:20 +01:00
Andrea Bogazzi
7af65b05bd Fix event listeners after itext removal (#3345)
* fix function naming
2016-10-15 13:26:25 +02:00
Andrea Bogazzi
8783b2132c change how itext handle removal handlers (#3332)
* change how itext handle removal handlers
* fix test lint
2016-10-09 09:25:43 +02:00
Andrea Bogazzi
49c7858596 changed to dataurl export (#3314)
* changed to dataurl
2016-10-02 19:37:20 +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
8190aa7568 remove canvas reference on object removed (#3307)
* remove canvas reference on object removed

* remove canvas after event fire
2016-10-01 17:45:52 +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
Andrea Bogazzi
bba8b3a705 bring callback toapplyfilters (#3210)
* bring callback toapplyfilters
2016-08-28 22:42:41 +02:00
Andrea Bogazzi
cf5f327f55 Extending test coverage (#3148)
* adding tests
2016-08-14 11:05:44 +02:00
Andrea Bogazzi
ad7e56422a Get pointer change (#3144)
* fix normalized pointer
* more tests
2016-08-07 17:00:58 +02:00
Andrea Bogazzi
725d48771f Bump to 1.6.3 (#3080) 2016-07-03 13:52:08 +02:00
Andrea Bogazzi
77dab21155 Additional method for centering objects (#3044) 2016-06-11 14:10:20 +02:00
Andrea Bogazzi
5a6b11ef50 introduce a parameter to choose behaviour of background and overlay (#3019)
* introduce a parameter to choose behaviour of background and overlay
2016-05-30 23:33:02 +02:00
Andrea Bogazzi
dd3e6a81e2 do not set background or overlay image if the load fails. (#3003) 2016-05-23 14:53:09 +02:00
Andrea Bogazzi
143c0758a7 add excludeFromExport property (#2976)
* add excludeFromExport property
* added test for SVG and JSON
2016-05-17 12:56:34 +02:00
Andrea Bogazzi
a0ba49ea5d Use reviver also for background and overlay image in svg export (#2975)
* Use reviver also for background and overlay image
2016-05-17 02:56:25 +02:00
Andrea Bogazzi
940db388a8 Use sendToBack, bringToFront, bringForward, sendBackwards for multiple selections (#2908)
Use sendToBack, bringToFront, bringForward, sendBackwards for activeGroups.
Visually there is no effect if preserveObjectStacking is set to false.
2016-04-28 11:21:48 +02:00
Andrea Bogazzi
928009dce9 remove forward slashes in docs urls 2016-04-27 16:00:13 +02:00
Andrea Bogazzi
188fed21f5 Do not clear the contextTop if we are in drawingMode. closes #2723 (#2895)
* do not clear contexttop if we are drawing
2016-04-15 23:04:04 +02:00
Andrea Bogazzi
5aa0ad1b8c remove warning of deprecated functions about imageSmoothingEnabled 2016-04-11 15:46:51 +02:00
Andrea Bogazzi
2df1c1d37f Canvas dispose unwrap the lowercanvas element back to its original place
Added unwrap logic to canvas.dispose()
Added tests.
2016-04-09 16:02:42 +02:00
Andrea Bogazzi
381f959f54 move retina logic check in a function 2016-02-24 08:44:21 +01:00
Juriy Zaytsev
c79e872ea2 Merge pull request #2712 from asturur/transformMatrix
Restore green check on tests
2016-02-07 17:37:44 -05:00
Andrea Bogazzi
dfc574c099 Fix tests removing extra context.Restore(); 2016-02-07 18:23:14 +01:00
Andrea Bogazzi
42da3a5689 pass image/img to constructor 2016-02-04 15:10:03 +01:00
Juriy Zaytsev
8ffa6a199d Merge pull request #2708 from asturur/dispos
Add active instance cleaning to dispose.
2015-12-27 11:34:22 -05:00
Andrea Bogazzi
ecc72f8b63 Update static_canvas.class.js 2015-12-26 13:08:32 +01:00
Andrea Bogazzi
ae6b00f33d Update static_canvas.class.js 2015-12-24 17:19:40 +01:00
Juriy Zaytsev
5d0524a6bd Build dist, fix lint errors 2015-12-24 10:57:55 -05:00
Andrea Bogazzi
041e2747ab Update static_canvas.class.js 2015-11-23 16:49:25 +01:00
Andrea Bogazzi
6aa09fc567 fix grammar typo 2015-11-22 14:34:00 +01:00
Andrea Bogazzi
842af5d993 change svg header to use viewbox 2015-11-22 14:32:11 +01:00
Juriy Zaytsev
540ecc6a39 Merge pull request #2632 from asturur/fixcontrols
Fixcontrols
2015-11-17 19:24:28 -08:00
Andrea Bogazzi
cd9ae6e9a3 Update static_canvas.class.js 2015-11-17 21:28:50 +01:00
Andrea Bogazzi
6317d95254 Update static_canvas.class.js 2015-11-13 00:22:45 +01:00
Andrea Bogazzi
41d247d700 Update static_canvas.class.js 2015-10-24 16:16:34 +02:00
Andrea Bogazzi
e1b165b983 switch to save and restore methods 2015-10-24 16:04:53 +02:00