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
Andrea Bogazzi
ff0b6f0a50
make cacheCanvas created on the fly if needed ( #3706 )
2017-02-16 17:19:32 -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
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
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
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
9bb820ed75
save new state anyway ( #3595 )
2016-12-28 11:50:48 +01:00
Asturur
e72881bb6d
fix null object in enlived array
2016-12-27 10:43:49 +01:00
Asturur
2c9fd6dd66
fix null object in enlived array
2016-12-27 10:42:34 +01:00
Andrea Bogazzi
da253012c7
During load from json send error to reviver ( #3586 )
...
* send error to reviver
* add error to imageFromObject
2016-12-26 19:40:33 +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
KULDIP PIPALIYA
7c96c48eff
Update canvas_events.mixin.js ( #3561 )
2016-12-22 09:32:58 +01:00
Andrea Bogazzi
1034a7c098
Reloadbackgrounds different from images ( #3550 )
...
* fix enliving
2016-12-19 09:26:20 +01:00
Andrea Bogazzi
ff21b07be4
build172 ( #3547 )
2016-12-18 11:05:13 +01:00
Andrea Bogazzi
5ab46d61de
delete stylemap before wrapping text ( #3546 )
2016-12-18 00:20:41 +01:00
Andrea Bogazzi
7a88bf7d58
Includedefaults ( #3545 )
...
* fix defaults
* fix the hardcoded false
* fix typo
2016-12-18 00:10:36 +01:00
Juha
a5cc56762a
Added missing semicolons to canvas.class.js ( #3528 )
2016-12-17 23:22:56 +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
c8505ee0ab
fix ( #3539 )
2016-12-17 14:46:05 +01:00
Andrea Bogazzi
41cc29a78c
fix selection clearing ( #3538 )
2016-12-17 14:30:14 +01:00
Andrea Bogazzi
c77fcf308b
Fix save state generation on dynamic created objects. ( #3537 )
...
* fix statefull on new group
2016-12-17 12:30:18 +01:00
Andrea Bogazzi
549ea1776b
fixes deep cloning of style ( #3502 )
...
* fixes deep cloning of style
* better fix and tests
2016-12-06 09:50:51 +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
81609a85fb
Fixestocachepolygon ( #3490 )
...
* fixes polygon and other subclasses
* fixed polygon fill
2016-12-03 22:53:51 +01:00
Stefan Hayden
6074660008
update values of alt keys from event instead of holding on to values from a stale mouseDown event ( #3479 )
2016-12-02 08:09:46 +01:00
Andrea Bogazzi
8a6b17cac6
add custom props to pattern and gradient ( #3477 )
2016-12-01 23:39:25 +01:00
Andrea Bogazzi
6db3f4648e
add blur on textarea ( #3476 )
2016-12-01 23:19:29 +01:00
Andrea Bogazzi
929391ff36
fix shadow zoom level ( #3475 )
2016-12-01 23:10:07 +01:00
Andrea Bogazzi
10f8c55948
fix for scale and flip ( #3474 )
2016-12-01 22:32:53 +01:00
Andrea Bogazzi
cf2ab8a8fe
simpe fix for textbox ( #3473 )
...
* simpe fix for textbox
* resotre build
2016-12-01 22:14:12 +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
d37ff8ebfe
Remove usage of thix.ctx in initDimensions. ( #3441 )
...
* remove this.ctx at text startup.
* fix textbox
2016-11-21 21:25:46 +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
Andrea Bogazzi
52013a94d1
null check on setActive ( #3435 )
2016-11-20 19:11:37 +01:00
Andrea Bogazzi
2c814db928
Better deep object cloning and savestate check ( #3434 )
...
* fixed deep cloning with function removed array ordering
* added tests
2016-11-20 19:11:20 +01:00
Andrea Bogazzi
f306328b6d
Add better jsdoc to util.object.extend
2016-11-15 09:08:47 +01:00
Asturur
11dc62c0f3
add options to bounding rect
2016-11-14 23:47:14 +01:00
Asturur
60c48ece8d
separate set coords from calculation
2016-11-14 23:23:18 +01:00
Asturur
e853f99d3b
fixes typo
2016-11-14 23:17:44 +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
Marcin
f26a2dc8aa
Word widths on justified line of text were calculated incorrectly. ( #3408 )
...
* Calculation of word widths on justified line will now correctly take styles into account
* fix lint
2016-11-13 00:35:40 +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
1278677a97
includeDefaults for background and overlay ( #3415 )
...
* reuse code for _toObject
* added small test
2016-11-12 18:20:20 +01:00
Stefan Hayden
5915ca8d38
Trigger mouse over on canvas enter ( #3389 )
...
* fire a mouse:over event once when mouse enters the canvas
* only fire if we don't find a target
* only fire if we find no target and set the hoveredTarget to null
2016-11-01 11:11:01 +01:00
Joe Sullivan
d69d471db0
Grab target and pointer above right-click logic ( #3381 )
2016-10-29 16:52:30 +02:00
Andrea Bogazzi
17ad7896fc
fix itext clear area ( #3388 )
...
* fix itext clear area
* fix overlapping bg colors
* do not commit dist
2016-10-29 16:41:44 +02:00
Stefan Hayden
10703055c0
adding object properties of snapAngle and snapThreshold to enable object snapping. ( #3383 )
...
* adding object properties of and to enable object snapping.
2016-10-29 09:55:41 +02:00
Andrea Bogazzi
273b2cd2d2
Add jsdoc to modifier keys ( #3373 )
2016-10-25 17:56:39 +02:00
Andrea Bogazzi
98c3291806
fix saturate filter ( #3351 )
2016-10-17 11:49:55 +02:00
Andrea Bogazzi
28c2654a23
Ver166 ( #3350 )
...
* ver 166
2016-10-16 23:40:02 +02:00
Andrea Bogazzi
ddc8a028de
fix mouse:move removal ( #3349 )
2016-10-16 20:56:15 +02:00
Andrea Bogazzi
e54dc3bffb
restored path parsing cache ( #3347 )
...
* restored path parsing cache
* Update arc.js
2016-10-15 23:45:47 +02:00
Andrea Bogazzi
7af65b05bd
Fix event listeners after itext removal ( #3345 )
...
* fix function naming
2016-10-15 13:26:25 +02:00
Andrea Bogazzi
4459ae4b81
Contrast & saturation ( #3341 )
...
* added filters
* tweak
* fixed docs
2016-10-15 12:02:40 +02:00
Timo Höpfner
37976d55b3
FIX for toDataURL cropping ( #3335 )
...
* FIX for toDataURL cropping
* Unit test for toDataURL cropping
2016-10-11 11:05:20 +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
84b012f9ce
Versione 1.6.5 ( #3316 )
...
* fix to doc
* ver 165
2016-10-02 21:35:37 +02:00
Andrea Bogazzi
bb41cdfa4d
remove space at start of line ( #3315 )
2016-10-02 19:58:34 +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
cd4c465f4c
fix text minimum dimensions ( #3312 )
...
* fix text dim
* add tests
2016-10-02 11:00:17 +02:00
Andrea Bogazzi
224309a4c7
fix src to svg ( #3310 )
2016-10-02 09:38:31 +02:00
Andrea Bogazzi
51835c1224
use native stroke dash for selection area ( #3309 )
...
* use native stroke dash for selection area
* check support at init
2016-10-02 09:31:32 +02:00
Andrea Bogazzi
89593190bb
added right click fire ( #3308 )
2016-10-01 20:25:47 +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
e0f687298c
add canvas offset to textarea position ( #3306 )
2016-10-01 14:05:46 +02:00
Marcin
a8827e7a5c
fixes Issue 3256 - line's style was gone when pushing line down ( #3277 )
2016-09-25 22:13:35 +02:00
Andrea Bogazzi
06a4207d25
added event firing for shortcuts ( #3285 )
2016-09-25 22:10:31 +02:00
Andrea Bogazzi
bda846b41a
reverted font changes ( #3276 )
2016-09-19 09:44:42 +02:00
Andrea Bogazzi
07094a4ec5
fixed behaviour of shift click and shift keys ( #3274 )
...
removed some glitches, removed duplicate code
2016-09-18 23:22:49 +02:00
Andrea Bogazzi
77f37db3c9
fix shift click ( #3270 )
2016-09-17 23:56:55 +02:00
Andrea Bogazzi
437eea118f
allow for deep state check and save ( #3262 )
2016-09-15 12:49:25 +02:00
Andrea Bogazzi
c34027cdfd
fixed selection, added test ( #3254 )
2016-09-11 21:28:48 +02:00
Andrea Bogazzi
aa53e08a6b
isContainedWithinObject on coords instead of bounding rect ( #3252 )
...
* update function and test
* fix interset with object and overlap
2016-09-11 16:01:23 +02:00
Andrea Bogazzi
5d0bf5a166
add custom properties to bg and overlay ( #3250 )
2016-09-11 12:40:57 +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
86e99899bc
Update image.class.js
2016-09-05 20:18:50 +02:00
Andrea Bogazzi
5dbbcdb682
Update itext.class.js
2016-09-05 20:01:32 +02:00
Andrea Bogazzi
c5175d66e9
Update text.class.js
2016-09-05 19:52:59 +02:00
Andrea Bogazzi
42d8f3e463
Fix textbox and negative charspacing ( #3233 )
...
* do not count charspacing twice
* do not get negative with char width
2016-09-05 18:26:15 +02:00
Asturur
a1e5d518bf
fixed tests for browser
2016-09-01 08:31:56 +02:00
Andrea Bogazzi
bba8b3a705
bring callback toapplyfilters ( #3210 )
...
* bring callback toapplyfilters
2016-08-28 22:42:41 +02:00
Andrea Bogazzi
148b5c1434
Make object fire deselect event ( #3195 )
2016-08-28 22:25:51 +02:00
neopheus
37689f52eb
Update Wheel event ( #3204 )
...
rename mousewheel -> wheel
2016-08-27 18:13:02 +02:00
neopheus
2570b548a7
Lerp - lock t between 0 and 1 ( #3188 )
...
* lock t between 0 and 1
* Add New Unit Test for lerp (min, max t)
2016-08-26 15:41:22 +02:00
neopheus
a6bc04ce8d
Add Hex Color RGBa ( #3202 )
...
* Add RGBa (8 digits, #FF5544CC, 4 digits #F54C);
2016-08-26 10:46:14 +02:00
Andrea Bogazzi
27f9214d94
Update text.class.js
2016-08-23 11:19:52 +02:00
Andrea Bogazzi
ff56ad583e
Make text use default setStrokeDash function
2016-08-23 10:49:14 +02:00
Andrea Bogazzi
17d7f929d5
Update collection.mixin.js ( #3174 )
...
* Update collection.mixin.js
2016-08-22 11:51:59 +02:00
neopheus
5db01369e4
Check code 2 ( #3186 )
...
* JSDoc update + same name for variables
2016-08-22 11:36:30 +02:00
Andrea Bogazzi
702126eb85
Change getFontDeclaration ( #3191 )
...
* Change getFontDeclaration
2016-08-22 11:27:34 +02:00
Kyle Herock
181cdec80c
give getSrc a better role in this class. ( #3189 )
2016-08-22 10:43:17 +02:00
neopheus
3544b727be
Update code v2 ( #3180 )
...
* update JSDOC - v4
* update JSDOC -v5
2016-08-20 17:58:16 +02:00
neopheus
9b383628e8
JSdoc update ( #3179 )
...
* update JSDOC
* update JSDOC - v2
* update JSDOC - v3
2016-08-20 12:05:19 +02:00
Andrea Bogazzi
fd6038d50d
no need to render if nothing happened
2016-08-18 07:58:35 +02:00
Andrea Bogazzi
9a595f7037
forgot to export charSpacing value in toObject Method
2016-08-18 07:54:59 +02:00
Andrea Bogazzi
46624d3f50
Textspacing ( #3097 )
...
Introduce charspacing.
2016-08-14 23:19:42 +02:00
Andrea Bogazzi
cf5f327f55
Extending test coverage ( #3148 )
...
* adding tests
2016-08-14 11:05:44 +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
c36225015a
initialized body variable
2016-08-07 22:37:26 +02:00
Andrea Bogazzi
48a6c9c67f
fix insert at ( #3146 )
2016-08-07 22:30:05 +02:00
Juan Basso
201a8c7f65
Added missing object:added on docs ( #3145 )
...
`object:added` is also fired by canvas.
2016-08-07 22:01:09 +02:00
Andrea Bogazzi
ad7e56422a
Get pointer change ( #3144 )
...
* fix normalized pointer
* more tests
2016-08-07 17:00:58 +02:00
Simon Kunz
03d27681c3
Add Color Matrix filter class ( #3139 )
2016-08-03 07:26:30 -04:00
Scott Seaward
ebb2552357
IE replace text selection with keypress ( #3137 )
...
Why:
* After creating a textbox, selecting text, and pressing a key, the first character of the previous text would remain.
* This happened because the hidden textarea would not update its selection in IE when it was in the same parent element as the canvas.
This change addresses the need by:
* Keeping the hidden textarea in the body element.
* IE now correctly updates the text selection as the user interacts with the canvas textbox.
2016-08-01 16:46:40 -04:00
Andrea Bogazzi
9e4ed9565f
fix cursor left without shift ( #3135 )
...
* fix cursor left and added missing test
2016-07-31 23:32:10 -04:00
Andrea Bogazzi
d93f91febc
Start to cleant setSelections ( #3119 )
2016-07-31 12:21:52 -04: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
9e5f3ab7b9
numeric origin ( #3121 )
...
* Numeric object origin add tets
2016-07-25 10:07:50 -04:00
Andrea Bogazzi
9980c83fb9
move the pathCommands out of render
...
makes easier to override, extend the class.
2016-07-22 11:10:30 +02:00
Andrea Bogazzi
f9782cf788
Update canvas_events.mixin.js
2016-07-22 11:07:29 +02:00
zntus
d4f0b52f18
Fix Rect imported from svg is invisible when display = "none" ( #3106 )
2016-07-18 10:05:14 +02:00
Andrea Bogazzi
7dad30c156
support style merging from css ( #3114 )
...
* supportstylemerging
* added test
2016-07-18 08:56:40 +02:00
Andrea Bogazzi
dde9eaa4e3
fix pattern brush ( #3112 )
2016-07-17 11:55:36 +02:00
Andrea Bogazzi
6601af9340
gradientInfinity ( #3082 )
...
* gradientInfinity
* updated tests
2016-07-17 10:31:51 +02:00
Andrea Bogazzi
72a6c273bf
remove lastRendered logic ( #3111 )
2016-07-17 08:35:18 +02:00
Andrea Bogazzi
51995a73d8
fix perPixelTargetFind ( #3109 )
2016-07-16 17:25:34 +02:00
Andrea Bogazzi
6e1d2e2fd2
fix for lineheight and text selection ( #3094 )
2016-07-10 23:04:46 +02:00
Andrea Bogazzi
98f2d1b3dd
ignore svg namespace ( #3081 )
...
* ignore svg namespace
2016-07-03 23:52:25 +02:00
Andrea Bogazzi
725d48771f
Bump to 1.6.3 ( #3080 )
2016-07-03 13:52:08 +02:00
blucobalto
cf95dd45c9
FindTarget patch 1 ( #3077 )
...
define pointer before running findTarget
2016-07-03 09:15:09 +02:00
Andrea Bogazzi
4433809cb1
fix lineheight < 1 ( #3078 )
2016-07-02 19:23:36 +02:00
Kyle Herock
62da4fd6cd
Apply viewport transform when calculating isTargetTransparent ( #2980 )
2016-07-02 10:45:11 +02:00
Andrea Bogazzi
2cd06c915d
fix selection background on zoomed canvas ( #3076 )
2016-07-02 09:07:53 +02:00
Andrea Bogazzi
f1ff91dbc3
Fix targets undefined
2016-07-01 09:50:42 +02:00
Andrea Bogazzi
5166ab76c8
update clear method to clear lastRenderedWithControls ( #3058 )
2016-06-20 07:32:12 +02:00
Andrea Bogazzi
be8dfae17e
Various fixes ( #3057 )
...
Fixes hidden textarea positioning, rendering fixes during canvas zoom.
2016-06-19 23:33:54 +02:00
Andrea Bogazzi
77dab21155
Additional method for centering objects ( #3044 )
2016-06-11 14:10:20 +02:00
Andrea Bogazzi
9ef51ff77d
load from options after the load backroung in the callback ( #3029 )
...
moved the load of the custom properties load after the callback
Added tests
2016-06-05 17:08:19 +02:00
Scott Seaward
da42b293d3
Remove reference to lastRenderedWithControls when that object is deleted ( #3023 )
2016-06-02 11:06:36 +02:00
Andrea Bogazzi
0c6a665bcb
Target in group ( #2997 )
...
Added gorup.subTargetCheck, fixed transparent target selected on mouse up, fix text grouping while editing
2016-05-31 11:41:02 +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
d4e723e49d
update area clearing during rendering ( #3016 )
...
* update area clearing during rendering
* register event in correct way
* re render selection or cursor only if selectionStart changes
2016-05-30 23:22:55 +02:00
Andrea Bogazzi
64bf67b0ab
remove Textbox instances ( #3008 )
2016-05-25 15:00:38 +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
1843581488
Move charWidthCache from iText to fabric, allow single cache for font. ( #2995 )
...
divided cache in a single font cache objects, added method for clearing one font cache.
2016-05-23 08:16:59 +02:00
Andrea Bogazzi
dd0b9f63d3
fix multi line selection regression introduced with #2996
2016-05-21 16:07:00 +02:00
Andrea Bogazzi
dfb5e4e903
Clear only the itext area top context when animating cursor or selection ( #2996 )
2016-05-21 15:29:26 +02:00
Andrea Bogazzi
cfe0e27d19
Update itext_behavior.mixin.js
2016-05-21 15:15:44 +02:00
Andrea Bogazzi
eb9b7f45b9
Add ID to svg export ( #2993 )
2016-05-21 15:07:04 +02:00
Andrea Bogazzi
489230bdf5
add callback with null argument to failed xml load ( #2994 )
2016-05-21 14:34:17 +02:00
Andrea Bogazzi
f425966162
give text its own dimension function ( #2992 )
...
* give text its own dimension function
* updated tests after verifying that the svg import from element is better than previous
2016-05-21 13:05:59 +02:00
Andrea Bogazzi
e8a530019f
remove deadcode ( #2984 )
2016-05-19 21:39:06 +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
830838b037
Fix export of colors alwaus in rgb + eventually opacity.
2016-05-16 17:22:05 +02:00
Andrea Bogazzi
38bebc2fcb
bump to 1.6.2 and build dist ( #2973 )
2016-05-15 23:59:26 +02:00
Andrea Bogazzi
11fd746c1e
Use scaled canvas dimensions ( #2972 )
2016-05-15 13:07:32 +02:00
Andrea Bogazzi
0297041e2f
Fix iText space width justification ( #2971 )
2016-05-15 12:04:02 +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
56ef2d2612
Update svg export to do not output colors in rgba format.
2016-05-09 12:41:48 +02:00
Andrea Bogazzi
a9cf96b9be
fix imageToObject with resize filters ( #2954 )
...
width and height get stored as before filtering in case of filters with type resize.
2016-05-09 12:11:48 +02:00
Andrea Bogazzi
3ab5cdbc26
bring selectAll on keydown again ( #2951 )
2016-05-08 21:26:25 +02:00
Andrea Bogazzi
fcfc9f45f9
do not override user options.
2016-05-08 21:22:51 +02:00
Andrea Bogazzi
13026beecb
Control customization part 4 - draw selection background ( #2950 )
2016-05-08 09:55:34 +02:00
Andrea Bogazzi
52f1ebd500
Update doc for _initDimension and setFont* methods ( #2949 )
...
* Update text.class.js doc
* added more docs
2016-05-07 09:04:46 +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
e5bedf3ebb
fix itext width calculation with caching false ( #2943 )
2016-05-05 12:59:47 +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
27fd548bd3
Delegate dataURL multiplier to viewport zooming ( #2940 )
...
This temporary viewport change allow correct zooming and scaling of shadow.
2016-05-04 22:35:09 +02:00
Andrea Bogazzi
d7ea78b812
added prototype from basefilter
2016-05-04 20:59:32 +02:00
Andrea Bogazzi
c4911406ac
Fix createSVGFontFacesMarkup ( #2935 )
...
* Update parser.js
2016-05-03 14:05:17 +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
17775fa567
Make iText fires object:modified on text change on exit editing ( #2927 )
...
added some tests also.
2016-05-02 08:25:03 +02:00
Andrea Bogazzi
fab0c05d2a
make Modifier keys customizable ( #2925 )
...
Make the keys used for modifying transformations and multiselect customizable within shiftKey, altKey and ctrlKey
2016-05-02 06:41:55 +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
015af249fa
Update canvas loadFromJSON to restore includeProperties ( #2921 )
...
added test also.
2016-04-30 13:51:12 +02:00
Andrea Bogazzi
f88711a526
Docs links, remove last forward slash ( #2917 )
2016-04-28 23:33:40 +02:00
Andrea Bogazzi
b49882ba83
Stop producing fabric.Element documentation. ( #2915 )
...
fabric.Element is a deprecated alias.
2016-04-28 11:37:53 +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
c335cb558e
remove forward slashes in docs urls
2016-04-27 16:02:58 +02:00
Andrea Bogazzi
611c6f7d4b
remove forward slashes in docs urls
2016-04-27 16:01:48 +02:00
Andrea Bogazzi
21ea8c25c5
remove forward slashes in docs urls
2016-04-27 16:01:09 +02:00
Andrea Bogazzi
928009dce9
remove forward slashes in docs urls
2016-04-27 16:00:13 +02:00
Andrea Bogazzi
1768ef48ac
deleted forward slashes in docs urls
2016-04-27 15:54:18 +02:00
Andrea Bogazzi
923b876e4b
Fix docs ending slash for urls
2016-04-27 15:52:57 +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
218ad28f2b
Draw controls only for active target ( #2903 )
2016-04-25 11:06:25 +02:00
Andrea Bogazzi
b95b4d2b2f
Search the target again on mouse up
2016-04-25 10:32:23 +02:00
Andrea Bogazzi
32b963bc0c
perPixelTargetFind shiftClick deselection fix
...
Make possible to shiftclick and remove object from active group while using perPixelTargetFind
2016-04-23 02:00:24 +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
fd95729692
Safer event deleting ( #2883 )
...
made handler removal safer.
Add edge cases for event handler adding and deleting.
2016-04-14 00:05:46 +02:00
Andrea Bogazzi
37b20991c7
Allow a not stateful canvas to fire object:modified at end of transform. ( #2890 )
...
stateful false can fire events now
Also events fire just when the object is really rotated, scaled, skewed or dragged.
2016-04-13 23:39:35 +02:00
Andrea Bogazzi
de4826f968
Fix normalize function to handle 0/0 ( #2888 )
2016-04-13 03:07:33 +02:00
Andrea Bogazzi
a5192e487f
Fix svg parsing/rendering regressions ( #2887 )
...
* fix regression in svg parsing
* Added tests to catch regression
* Update parser.js
* Update parser.js
2016-04-13 01:44:15 +02:00
Andrea Bogazzi
5aa0ad1b8c
remove warning of deprecated functions about imageSmoothingEnabled
2016-04-11 15:46:51 +02:00
Andrea Bogazzi
c6815892f3
Check presence of originalElement before taking src ( #2878 )
...
* check presence of originalElement before taking src
* add test for image with null element
* Update image.js
* Update image.js
2016-04-11 15:30:35 +02:00
Andrea Bogazzi
036bc9ab84
Various IText Fixes
...
Added keyup events, moved "CTRL + Key" combination on keyup so i cancel the event if the textarea consumes the event with other ( real copy and cut )
Added Ctrl+C for copy.
Added compositionUpdate event.
SetShadow was expecting some parameters, we add them at style declaration
Moving the textArea position when editing
managing japanese IME ( and maybe others )
Fixes property of object leaking on style objects
Fixes edge browser different behaviour with different selectionDirection
2016-04-10 14:48:04 +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
a28651e761
Merge pull request #2820 from abruzzihraig/fix_IME_bug
...
fix(itext): fix bug that IME can not be inputted
2016-03-29 07:04:08 +02:00
Andrea Bogazzi
a4047d3043
Merge pull request #2858 from asturur/fix-text-bug2
...
fix bug introduced in 2f19e25ef2
2016-03-27 23:59:48 +02:00
Andrea Bogazzi
d1973113a2
fix bug introduced in 2f19e25ef2
2016-03-27 23:51:42 +02:00
Andrea Bogazzi
ad732f078d
Proper fix for style detection
2016-03-27 23:44:43 +02:00
Andrea Bogazzi
719746e58d
Revert "Textboxspaces"
2016-03-27 23:25:39 +02:00
Andrea Bogazzi
f1cd8bf5b6
Merge pull request #2853 from asturur/textboxspaces
...
Textboxspaces
2016-03-27 23:04:00 +02:00
Andrea Bogazzi
7059e34e9b
Merge pull request #2854 from asturur/shadowflip
...
Flip back shadow if needed
2016-03-27 23:02:32 +02:00
Andrea Bogazzi
6891d2cde7
Update shadow.class.js
2016-03-26 13:41:34 +01:00
Andrea Bogazzi
e3e8984ec9
fixes trailing spaces
2016-03-26 13:00:37 +01:00
Andrea Bogazzi
0785bd9a32
check properly if there is style on the line
2016-03-26 12:47:20 +01:00
Andrea Bogazzi
55da566d37
Update textbox.class.js
2016-03-26 12:44:11 +01:00
Andrea Bogazzi
f5f51938f7
add check for this.styles[i]
2016-03-26 12:42:03 +01:00
Andrea Bogazzi
c1e3ad5b85
Merge pull request #2852 from asturur/textboxspaces
...
adding lineStarted logic to _wrapLine function
2016-03-26 11:52:34 +01:00
Andrea Bogazzi
2a1842af02
adding lineStarted logic to _wrapLine function
...
The error was considering line === '' as a line that just started. This messed up consecutive spaces.
Consecutive spaces create words with 0 lenght and they leave the line with no infix and no characters.
2016-03-26 11:41:49 +01: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
16f358cbfa
Merge pull request #2827 from asturur/newtextshadow
...
Fix SVG for new text shadows
2016-03-11 18:57:06 +01:00
Andrea Bogazzi
a700376e82
improved docs
2016-03-11 11:09:12 +01:00
Andrea Bogazzi
fb69e9bc89
Do not call 2 times this.getSvgFilter()
2016-03-11 10:52:20 +01:00
Andrea Bogazzi
ab4721427e
Merge pull request #2817 from asteriskman7/fix_offset_1x1_rect
...
Change location of rect in 1x1 case
2016-03-11 08:33:00 +01:00
Andrea Bogazzi
bb9aef9726
do not output useless empty style declaration
2016-03-11 08:28:20 +01:00
Andrea Bogazzi
cc9d826d4c
add ability to skip shadow to style export
...
This is necessary for text now.
2016-03-11 06:16:42 +01:00
Andrea Bogazzi
a3fd9061ef
Add shadow to outer group of text
2016-03-11 06:14:40 +01:00
Juriy Zaytsev
1324c73c2e
Merge pull request #2806 from asturur/fix-retina-again
...
Fix retina scaling shadows and data url
2016-03-01 17:45:51 -05:00
Abruzzi
ecd5c15fe9
fix(lint): remove useless variable 'e' for lint
2016-03-01 20:45:27 +08:00
Abruzzi
e3e81195c9
fix(itext): fix bug that IME can not be inputted
2016-03-01 05:35:58 +08:00
asteriskman
47776c55fd
Change location of rect in 1x1 case
...
As can be seen in this jsfiddle, https://jsfiddle.net/asteriskman/kk6v0tu4/ , the 1x1 rectangle was being placed incorrectly. It must be offset by -0.5 in the x and y direction to line up with other rects.
2016-02-26 22:51:56 -05:00
Andrea Bogazzi
91bf1fbacf
Update object.class.js
2016-02-25 08:10:38 +01:00
Andrea Bogazzi
9c41f0923d
Update itext.class.js
2016-02-25 02:59:04 +01:00
Andrea Bogazzi
2f19e25ef2
Update itext.class.js
2016-02-25 02:48:20 +01:00
Andrea Bogazzi
f15b7f5d3c
Update text.class.js
2016-02-25 02:46:05 +01:00
Andrea Bogazzi
b4f99d96a9
Update canvas_dataurl_exporter.mixin.js
2016-02-25 00:52:51 +01:00
Andrea Bogazzi
bd345a39d5
Update object.class.js
2016-02-25 00:50:10 +01:00
Andrea Bogazzi
873abee422
fixes lint
2016-02-25 00:30:49 +01:00
Andrea Bogazzi
df1cffaade
add retina scaling effect to dataUrl exporter
...
Add retina scaling as a normal dataurl multiplier.
Removed setWidth and setHeight in favor of setDimensions
Removed rescaling back of canvas because setDimension will clear the transform anyway.
2016-02-24 08:47:27 +01:00
Andrea Bogazzi
db068d59c9
enlarge shadow if retina scaling is active
2016-02-24 08:45:15 +01:00
Andrea Bogazzi
381f959f54
move retina logic check in a function
2016-02-24 08:44:21 +01:00
Juriy Zaytsev
053cbc3466
Merge pull request #2790 from mochidusk/pr_styleDecl_refactor
...
Use internal _getStyleDeclaration method for style declarations.
2016-02-19 12:30:32 -05:00
Juriy Zaytsev
3adaec2aae
Merge pull request #2797 from asturur/svg-text-f
...
Add font faces to svg
2016-02-18 12:15:53 -05:00
Andrea Bogazzi
e8335054ee
add some format to Itext svg export
2016-02-18 11:55:30 +01:00
Andrea Bogazzi
ac92abc3fb
Add font face markup for styles and all text classes
2016-02-18 11:10:24 +01:00
Dusk Ho
38e7b5b98a
Use internal _getStyleDeclaration method for style declarations. See #2780 .
2016-02-13 04:20:07 +00:00
Andrea Bogazzi
fb42a34bcd
Change canvasEl to work on browser and node.
2016-02-08 15:20:18 +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
Juriy Zaytsev
20221a3243
Merge pull request #2770 from asturur/pass-image-to-callback
...
pass image/img to callback
2016-02-04 14:47:51 -05:00
Andrea Bogazzi
42da3a5689
pass image/img to constructor
2016-02-04 15:10:03 +01:00
Juriy Zaytsev
9dfa164c16
Merge pull request #2738 from asturur/svg-pars
...
Svg pars
2016-02-01 01:43:13 -05:00
Todd Christensen
0cdd9416b6
Fallback to styleElement.text for IE9.
...
IE9 doesn't provide a `textContent` property on this object. This caused
errors when trying to import SVG files with `<style>` inside them.
2016-01-26 10:51:14 -08:00
Andrea Bogazzi
55a106ea58
add optional space between transform list
2016-01-17 16:13:46 +01:00
Juriy Zaytsev
3336c625a7
Merge pull request #2720 from asturur/rotatedgroup
...
shift click with generally transformed active groups
2016-01-04 14:52:27 -08:00
Andrea Bogazzi
6fd4082896
Merge pull request #12 from asturur/rotatedgroup
...
update _normalizePointer
2016-01-03 16:49:47 +01:00
Andrea Bogazzi
143e3ee66a
update _normalizePointer
2015-12-30 16:24:02 +01:00
Juriy Zaytsev
09dd12bff3
Merge pull request #2719 from asturur/textflip
...
Textflip
2015-12-30 10:14:24 -05:00
Andrea Bogazzi
b8b8cadfff
correct docs
2015-12-30 15:36:14 +01:00
Andrea Bogazzi
434f21b200
remove text flipping.
2015-12-30 15:35:31 +01:00
Juriy Zaytsev
7235f36856
Merge pull request #2627 from asturur/clean-polygon
...
Clean polygon class
2015-12-27 11:35:34 -05: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
60a63faa12
Update removewhite_filter.class.js
2015-12-27 00:29:39 +01:00
Andrea Bogazzi
957b5b3a76
Update canvas.class.js
2015-12-26 13:08:55 +01: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
Juriy Zaytsev
7fc9d307af
Fix typo
2015-12-24 10:45:49 -05:00
Juriy Zaytsev
79278468a8
Merge pull request #2316 from mbrzuzy/master
...
IE9 bugfix for loading SVGs from URL that contain <text> nodes
2015-12-24 10:42:00 -05:00
Juriy Zaytsev
ae0aa7f981
Merge pull request #2689 from asturur/qrDecompone
...
use atan2 instead of atan and manual checks
2015-12-24 10:26:20 -05:00
Juriy Zaytsev
6f0cc79c47
Merge pull request #2703 from asturur/fill-opacity
...
Fill opacity and stroke opacity
2015-12-23 22:15:07 -05:00
Andrea Bogazzi
280746592c
check for default color property if attribute is not present
2015-12-22 01:29:11 +01:00
Andrea Bogazzi
7b3da5008f
use atan2 instead of atan and manual checks
2015-12-16 15:48:23 +01:00
Gábor Tóth
dfa5b4a103
fix for #2622
2015-12-15 15:50:00 +01:00
Andrea Bogazzi
bdb4f67f38
fixed error
...
of course i was testing with square image.
2015-12-13 03:11:04 +01:00
Juriy Zaytsev
0255ce9892
Merge pull request #2674 from asturur/justify-text-to-svg
...
Justify text to svg
2015-12-10 12:10:39 -05:00
Andrea Bogazzi
1f41cb3f13
Update text.class.js
2015-12-09 23:05:55 +01:00
Andrea Bogazzi
db0b026eef
Update itext.class.js
2015-12-09 09:42:23 +01:00
Andrea Bogazzi
185d8e2d31
Update text.class.js
2015-12-09 09:41:37 +01:00
Andrea Bogazzi
a79177e05b
Update shadow.class.js
2015-12-09 08:16:27 +01:00
Andrea Bogazzi
61daf81470
Update text.class.js
2015-12-08 19:53:44 +01:00
Andrea Bogazzi
411c8b446a
Update shadow.class.js
2015-12-08 12:20:45 +01:00
Andrea Bogazzi
2dfc5b9fbd
use NUM_FRACTION_DIGIT
2015-12-08 11:56:58 +01:00
Andrea Bogazzi
41a3aa8a4c
Update text.class.js
2015-12-08 11:52:07 +01:00
Andrea Bogazzi
f7f64d9ea2
Update misc.js
2015-12-07 22:55:18 +01:00
Andrea Bogazzi
b037095d6b
Update misc.js
2015-12-07 22:42:23 +01:00
Andrea Bogazzi
d9b7becb67
Update misc.js
2015-12-07 22:33:43 +01:00
Andrea Bogazzi
815b0acb20
Update shadow.class.js
2015-12-07 22:24:48 +01:00
Andrea Bogazzi
b93a46b353
Update misc.js
2015-12-07 22:19:37 +01:00
Juriy Zaytsev
35668b529b
Merge pull request #2645 from rodovich/rotate-anchor
...
Fix importing paths with `rotate` transforms with anchor coordinates.
2015-12-03 10:37:02 -08:00
Juriy Zaytsev
c415792eca
Merge pull request #2642 from asturur/svg-viewport
...
Svg viewport transform fixes
2015-12-02 15:18:31 -08:00
Juriy Zaytsev
6aeabcb10c
Merge pull request #2656 from asturur/groupopacity
...
Group opacity not delegated
2015-11-30 14:33:12 -05:00