Commit graph

160 commits

Author SHA1 Message Date
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
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
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
Andrea Bogazzi
ff21b07be4 build172 (#3547) 2016-12-18 11:05:13 +01:00
Andrea Bogazzi
7a88bf7d58 Includedefaults (#3545)
* fix defaults

* fix the hardcoded false

* fix typo
2016-12-18 00:10:36 +01:00
Asturur
3785dccacf rebuilt dist 2016-11-27 14:12:13 +01:00
Andrea Bogazzi
79a634c8d7 add default dirty flag to object 2016-11-27 13:21:24 +01:00
Andrea Bogazzi
a4a8f71fd7 Release 170 (#3437)
* build 170
* fix default values
* fix text not rendering
* other fixes
* finished fixing
2016-11-21 12:09:25 +01:00
Andrea Bogazzi
a5245b96c8 Fix itext cursor trail on initDimensions (#3436)
* add clear context top for set

* fix cursor trail
2016-11-20 19:11:49 +01:00
Asturur
f6e5a8e265 rework coords for groups 2016-11-14 23:14:10 +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
49c7858596 changed to dataurl export (#3314)
* changed to dataurl
2016-10-02 19:37:20 +02:00
Andrea Bogazzi
437eea118f allow for deep state check and save (#3262) 2016-09-15 12:49:25 +02:00
Andrea Bogazzi
d7157d122c move backgroundColor to all classes (#3248) 2016-09-11 11:45:25 +02:00
Andrea Bogazzi
876c9ca91f Uniform clone and fromObject behaviour (#3212) 2016-09-10 16:09:17 +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
148b5c1434 Make object fire deselect event (#3195) 2016-08-28 22:25:51 +02:00
neopheus
9b383628e8 JSdoc update (#3179)
* update JSDOC

* update JSDOC - v2

* update JSDOC - v3
2016-08-20 12:05:19 +02:00
Stefan Dietz
c0f5dc3eb0 Change borderScaleFactor behaviour (#2930) (#3154) 2016-08-12 00:14:12 +02:00
Andrea Bogazzi
a2b4ef564b Add enableRetinaScaling to cloneAsImage (#3147)
* Add enableRetinaScaling to cloneAsImage
* added test
2016-08-08 07:17:39 +02:00
Andrea Bogazzi
948019f622 add object scaling function (#3134)
* add object scaling function

* Update object.class.js
2016-07-30 12:04:38 -04:00
Andrea Bogazzi
72a6c273bf remove lastRendered logic (#3111) 2016-07-17 08:35:18 +02:00
Andrea Bogazzi
77dab21155 Additional method for centering objects (#3044) 2016-06-11 14:10:20 +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
11fd746c1e Use scaled canvas dimensions (#2972) 2016-05-15 13:07:32 +02:00
Andrea Bogazzi
cb0c71e1fe * Remove rounding for minScaleLimit, added test.
* Remove rounding for minScaleLimit
2016-05-14 18:38:48 +02:00
Andrea Bogazzi
13026beecb Control customization part 4 - draw selection background (#2950) 2016-05-08 09:55:34 +02:00
Andrea Bogazzi
b99eebd324 Control cusomization part 3 - allow for rounded corners (#2942)
Using Object.cornerStyle = 'circle' or 'rect'
2016-05-05 20:22:17 +02:00
Andrea Bogazzi
0410aae841 Control customization part 2 - Allow for separate corner filling and cornerStroke (#2933) 2016-05-04 22:44:30 +02:00
Andrea Bogazzi
3c9fb411c4 Control customization part 1 - Set dashed line to controls and borders (#2932)
added:
cornerDashArray
borderDashArray
borderScaleFactor influences both border and controls now
changed default corner size to 13: (a default size of 12 is always out of focus when borders are on focus and viceversa, at least now they are same. difference is not noticeable because the 1st and 12th pixel where always across 2 different pixels)
2016-05-03 10:16:19 +02:00
Andrea Bogazzi
e032cae7d1 Set line dash in external function (#2928)
* move dashed code in function for later reuse in controls
* Added functionTest
2016-05-02 11:33:09 +02:00
Andrea Bogazzi
6fd1f8aa21 Add missing stroke.live translation, allow gradientTransform for dashed line. 2016-05-01 14:29:45 +02:00
Andrea Bogazzi
200632015f Allow hoverCursor to appear on non selectable objects. (#2924)
Fixed regression from #2907, added object.moveCursor
2016-05-01 03:06:20 +02:00
Andrea Bogazzi
f88711a526 Docs links, remove last forward slash (#2917) 2016-04-28 23:33:40 +02:00
Andrea Bogazzi
c84bce2703 Fire canvas mouse:out when the mouse leave the canvas (#2907)
* Add support for mouseOut out of the canvas.
Clear the _hoveredTarget and fire mouseout on the previous hovered if any.
Make selection of small object easier.
2016-04-26 02:05:58 +02:00
Andrea Bogazzi
c815f22d3e Merge pull request #2842 from asturur/bordersAddWithU
Do not draw control borders in normal group with active objects
2016-03-23 17:42:21 +01:00
Andrea Bogazzi
8410796872 drw controls and borders just if you are in active group ora active 2016-03-17 09:07:47 +01:00
Andrea Bogazzi
91bf1fbacf Update object.class.js 2016-02-25 08:10:38 +01:00
Andrea Bogazzi
bd345a39d5 Update object.class.js 2016-02-25 00:50:10 +01:00
Andrea Bogazzi
db068d59c9 enlarge shadow if retina scaling is active 2016-02-24 08:45:15 +01:00
Andrea Bogazzi
701a62053d make group transform support general transforms 2015-10-24 15:38:46 +02:00
Andrea Bogazzi
cda0611326 Add support for skew objects. 2015-09-17 14:22:12 +02:00
Andrea Bogazzi
8ff217c59a Update object.class.js 2015-08-13 22:28:06 +02:00