Commit graph

3594 commits

Author SHA1 Message Date
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
Asturur
879d5b4e66 built beta.1 with isNaN fix 2017-04-23 08:46:53 +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
ba19885256 fix-3482 (#3862) 2017-04-22 14:08:41 +02:00
Asturur
849112577c beta build release 2017-04-22 09:22:59 +02:00
Andrea Bogazzi
b112b3405f text rewriting - reorganization (#3676)
*text refactored.
2017-04-22 09:15:38 +02:00
Roger Beaman
e0e431ce78 fixing callSuper (#3844)
* fixing callSuper

* fixing lint

* fixed unexpected alias for this
2017-04-20 13:43:58 +02:00
Rob Hoffmann
6dd4b70b44 Update _fireOverOutEvents to pass event object (#3853)
I encountered a scenario where we were listening for `mouseout` and calling `_isObjectMoved` expecting an event object to be passed from the `mouseout` listener, however the object was not passed from `_fireOverOutEvents`. Normally this would not be an issue as `_isObjectMoved()` -> `getPointer()` checks for `fabric.window.event` and uses that if `event` is undefined, but this produces an error in Firefox as the `window.event` property is not implemented (https://developer.mozilla.org/en-US/docs/Web/API/Window/event).

To resolve this I am proposing that `_fireOverOutEvents` pass along the event object to the target so that it can be passed along to `isObjectMoved()` if necessary.
2017-04-20 13:43:45 +02:00
ncou
de39c3c148 remove unused "originalState" var (#3836) 2017-04-09 01:01:36 +02:00
Andrea Bogazzi
f877f52f2a fix gradient toSVG for radial gradients (#3807)
* support svg crossorigin on images
* fix gradient export
* added tests
2017-03-26 10:22:10 +02:00
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