Commit graph

3580 commits

Author SHA1 Message Date
Asturur
e4a42e054f support svg crossorigin on images 2017-03-25 18:45:54 +01:00
Aliaksandr Yankouski
977889881a Update README.md (#3793) 2017-03-22 08:33:51 +01:00
Andrea Bogazzi
c145ac26f2 fixed dirty (#3782) 2017-03-14 23:36:48 +01:00
Andrea Bogazzi
e5b5e92530 Revert 3754 modal textarea (#3780)
* Revert "Update path.class.js (#3774)"

This reverts commit a7ff845165.

* Revert "switch to canvas prebuilt (#3757)"

This reverts commit b979bd5861.

* Revert "Fix textarea focus bug when canvas is in an element that stops events from reaching the body (#3754)"

This reverts commit 3f9b69fe80.
2017-03-14 23:11:50 +01:00
by12
a7ff845165 Update path.class.js (#3774) 2017-03-14 21:42:07 +01: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
kghandi
3f9b69fe80 Fix textarea focus bug when canvas is in an element that stops events from reaching the body (#3754)
See example: https://jsfiddle.net/kghandi/jhd6xn4x/

* remove comments

* Update fabric.js

manually updated fabric.js for testing, since I don't know how to do a build.

* Revert "Update fabric.js"

This reverts commit d4f8e2c6a44aa4be92a3dced85020241fac0ea29.

* Resolve unit test failure for textarea focus patch

Reference lowerCanvasEl instead of upperCanvasEl so the patch works for
StaticCanvas.

* Resolve unit test failure for textarea focus patch

Check for this.canvas initialized.

* Resolve unit test failure for textarea focus patch

* Resolve unit test failure for textarea focus patch

* Fix positioning of hiddenTextArea

* Update itext_behavior.mixin.js
2017-03-14 12:36:38 +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
50180a1111 Added middle click mouse down managment (#3764)
* added test
* fixed test
2017-03-06 00:12:44 +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
7733dea5c1 Refocus textarea on mouseout from canvas (#3759)
* add focus on moouse out

* fix mouse out lost focus
2017-03-03 14:33:46 +01:00
Andrea Bogazzi
211edecdfd Fix opacity parsing from classes and from fill-opacity (#3747)
* fix to parser

* fix opacity parsing

* fix opacity parsing

* added tests

* fix for parsing attributes equalt to 0

* added test

* fixed better

* removed fix
2017-02-27 02:18:23 +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
22465346fc add safe check for activeObject 2017-02-19 23:52:53 -05:00
Andrea Bogazzi
214a169767 Removed es5 shim function and support for ie < 10 (#3722)
* removed es5 part
* removed json shim
* removed node 5
* removed node 5
2017-02-19 19:47:39 -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
54f76a1066 Firedeselectedalsowithmouse (#3716)
* added code

* added test
2017-02-18 23:03:23 -05:00
Andrea Bogazzi
b9d4888188 build v176 (#3707) 2017-02-16 17:24:39 -05:00
Andrea Bogazzi
ff0b6f0a50 make cacheCanvas created on the fly if needed (#3706) 2017-02-16 17:19:32 -05:00
Andrea Bogazzi
d058307dd0 build 175 (#3705)
update to v175
2017-02-16 16:57:22 -05:00
Andrea Bogazzi
5aeb2a619d add condition on angle transform (#3704) 2017-02-16 16:32:52 -05:00
Andrea Bogazzi
085a3c75fc Do not fire selection changed if we are not editing (#3702)
* Do not fire selection changed if we are not editing
* fire selection changed event after enter editing
* fix tests

* fixed trailing space
2017-02-16 16:16:43 -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
5605d84f3b Version 1.7.4 (#3692)
* v174

* fixed a text for browser
2017-02-14 09:35:24 -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
7ff1063c07 passivefalseeverywhere (#3690)
* passivefalseeverywhere

* Update canvas_events.mixin.js

* Update dom_event.js

* Update canvas.class.js
2017-02-13 23:35:35 -05: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
f2b3cc86d9 subtarget check selection on activeObject (#3688)
* subtarget check selection

* fix
2017-02-12 18:52:00 -05:00
Andrea Bogazzi
e6cdd46bfd add global zoom information to setLocalMouse (#3671) 2017-02-07 13:42:18 +01:00
Andrea Bogazzi
c378fa5b04 Misc changes (#3614)
* misc changes
2017-01-30 15:24:32 +01:00
Andrea Bogazzi
6a30d81fdb clarified getPointer function on jsdocs 2017-01-30 10:06:01 +01:00
Cristian Scorteanu
f47835b37c Added an additional check for the blur event on hiddenTextarea (#3656)
* Added an additional check for the blur event on hiddenTextarea

* moved statements under if
2017-01-28 21:11:56 +01:00
Andrea Bogazzi
a326d1dda2 Remove hoveredTarget reference if object is removed (#3657)
* Remove hoveredTarget reference if object is removed
* Update canvas.js tests
* remove trailing spaces
2017-01-28 17:04:11 +01:00
Andrea Bogazzi
9e37f9b3c1 Fixes recent and old small issues (#3643) 2017-01-23 00:34:47 +01:00
neopheus
f7551924af Color.class update (#3615)
* add toHexa method with tests
* Update toHexa Function (asturur)
2017-01-09 14:22:31 +01:00
Andrea Bogazzi
01d8392ae3 Update to 1.7.3 (#3603)
* build v173
2017-01-08 11:07:41 +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
5ed0b83d45 fix tests (#3602) 2017-01-03 01:08:14 +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