Andrea Bogazzi
0f559ad84f
removed saveCoords hasMoved ( #3910 )
...
* removed method
* deleted tests
2017-05-06 19:16:03 +02:00
Andrea Bogazzi
ce996e2ec6
fix 3906 moved target cancellation up so ( #3909 )
...
* moved target cancellation up
* added tests
2017-05-06 15:03:07 +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
19c18a512d
Fix groupSelector on editing Text ( #3901 )
...
* fix for drag on editing text
* updated test
2017-04-30 21:21:52 +02:00
Andrea Bogazzi
4638459dac
Add more information to mouseOver mouseOut events. ( #3900 )
2017-04-30 20:39:15 +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
977d71de6e
Added isClick boolean to mouseUp events on left click ( #3898 )
...
* added test
* removed useless method
2017-04-29 10:05: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
Andrea Bogazzi
6139af3a1c
Stop text from firing mouse up and mouse down on non left clicks ( #3888 )
...
* fix right click mouse up
* block mouse up/down for text on non left click
* fixes also deactivteAllWithDispatch
2017-04-26 12:59:33 +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
17035c7480
reduce angle calculation error for cosin of 90 and 270 degrees ( #3872 )
...
* reduce angle calculation error
* reduce angle calculation error
2017-04-24 02:13:18 +02:00
Andrea Bogazzi
79c21cf188
pass event to functions ( #3871 )
2017-04-23 23:58:47 +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
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
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
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