Commit graph

2716 commits

Author SHA1 Message Date
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
Andrea Bogazzi
1a0bceb079 check for object editability 2015-11-29 10:02:32 +01:00
Andrea Bogazzi
37fb2c1e2d Update group.class.js 2015-11-29 09:31:18 +01:00
Jim Rodovich
17c4962e19 Fix importing paths with rotate transforms with anchor coordinates. 2015-11-23 13:25:04 -06:00
Andrea Bogazzi
041e2747ab Update static_canvas.class.js 2015-11-23 16:49:25 +01:00
Andrea Bogazzi
6aa09fc567 fix grammar typo 2015-11-22 14:34:00 +01:00
Andrea Bogazzi
842af5d993 change svg header to use viewbox 2015-11-22 14:32:11 +01:00
Juriy Zaytsev
a25459ceab Merge pull request #2634 from asturur/convolutefilte
General code clean up for convolute filter
2015-11-18 08:14:02 -08:00
Andrea Bogazzi
fe7462cf46 General code clean up
we do not need to create a temporary canvas to call its createImageData, when normal canvas we are filtering can provide same method.
Removed 2 unused variables ( w and sw, h and sh where copies of each other and used in read only)
2015-11-18 14:23:52 +01:00
Juriy Zaytsev
540ecc6a39 Merge pull request #2632 from asturur/fixcontrols
Fixcontrols
2015-11-17 19:24:28 -08:00
Andrea Bogazzi
cc8ed6bac8 Update canvas.class.js 2015-11-17 21:29:39 +01:00
Andrea Bogazzi
cd9ae6e9a3 Update static_canvas.class.js 2015-11-17 21:28:50 +01:00
Andrea Bogazzi
1c9932f97f Update polygon.class.js 2015-11-16 11:25:27 +01:00
Andrea Bogazzi
345c403a8e Update polygon.class.js 2015-11-16 01:26:54 +01:00
Juriy Zaytsev
ae1ee007a3 Merge pull request #2568 from asturur/fix-shadow
Update shadow.class.js
2015-11-13 11:04:51 +01:00
Juriy Zaytsev
7cb4f17833 Merge pull request #2625 from asturur/multitouch
Fix multi touch scaling speed
2015-11-13 11:03:28 +01:00
Juriy Zaytsev
8f80fe632a Merge pull request #2623 from asturur/retina-on-scale
reinit retina scaling on canvas element dimensions change
2015-11-13 09:33:06 +01:00
Juriy Zaytsev
ad12e534a8 Merge pull request #2624 from asturur/image-border-0
change default strokewidth to 0  for images
2015-11-13 09:32:48 +01:00
Andrea Bogazzi
d16ef6b124 Update canvas_gestures.mixin.js
we need to use transformed dimensions to include effect of skew. but we need to divide by current scale and use just the initial scale plus the scaling factor of gesture.
2015-11-13 01:44:07 +01:00
Andrea Bogazzi
d96c94dc4f change default strokewidth to 0 2015-11-13 00:27:39 +01:00
Andrea Bogazzi
6317d95254 Update static_canvas.class.js 2015-11-13 00:22:45 +01:00
Andrea Bogazzi
931ef7d58f Add missing parameter to _ScaleObjectBy 2015-11-02 11:09:42 +01:00
Juriy Zaytsev
86bb0c773d Merge pull request #2580 from asturur/retina-scaling
fix bug with retina scaling
2015-10-24 17:46:37 +02:00
Juriy Zaytsev
faf18bfba1 Merge pull request #2549 from asturur/fix-group-transform
[WIP] Handle group transformation with skew and rotate + scale
2015-10-24 17:46:16 +02:00
Andrea Bogazzi
41d247d700 Update static_canvas.class.js 2015-10-24 16:16:34 +02:00
Andrea Bogazzi
e1b165b983 switch to save and restore methods 2015-10-24 16:04:53 +02:00
Andrea Bogazzi
45150e39c1 Update group.class.js 2015-10-24 15:41:37 +02:00
Andrea Bogazzi
701a62053d make group transform support general transforms 2015-10-24 15:38:46 +02:00
Andrea Bogazzi
0836408035 remove duplicate logic 2015-10-21 12:58:59 +02:00
Andrea Bogazzi
026388d93c Add missin coma 2015-10-21 11:38:20 +02:00
Andrea Bogazzi
d4bae8230d Update shadow.class.js
add affectStroke to toObject
2015-10-21 11:10:34 +02:00
Andrea Bogazzi
753e67bce2 Reset viewport transform at the end of render all 2015-10-16 10:19:03 +02:00
asturur
ff79ab1aca first changes to group transform handling 2015-10-14 08:48:03 +02:00
Andrea Bogazzi
07234dfdf6 Update canvas.class.js 2015-10-13 00:29:26 +02:00
DanieleSassoli
f3268cf855 bugfix, sometimes the mask was stretched. 2015-10-08 15:17:24 +02:00
DanieleSassoli
e2a56bb254 Fixed bug that caused image to be corrupted when a mask was applyed only if the image was bigger the mask. 2015-10-07 16:52:45 +02:00
Juriy Zaytsev
b4a2bf694e Merge pull request #2502 from asturur/fix-ite
Fix itext onInput with selected text
2015-10-05 10:22:02 -04:00
Juriy Zaytsev
9549631cfa Merge pull request #2503 from asturur/obj.selectab
Fix object selectable with shift click and itext mouse cursor click.
2015-09-29 09:57:44 -04:00
Juriy Zaytsev
33cdaa1289 Merge pull request #2491 from asturur/fix-object.toDataURL
Update canvas_dataurl_exporter.mixin.js
2015-09-27 12:02:53 -04:00
Andrea Bogazzi
6426a02758 Update canvas_grouping.mixin.js 2015-09-27 17:50:57 +02:00
Andrea Bogazzi
26cf009c98 Update canvas.class.js 2015-09-27 17:44:25 +02:00
Andrea Bogazzi
b020b243e9 removed some duplicate code 2015-09-27 17:00:16 +02:00
Andrea Bogazzi
49b876a704 Update textbox_behavior.mixin.js 2015-09-27 16:58:15 +02:00
Andrea Bogazzi
c943d369a2 Update itext_key_behavior.mixin.js
Remove cancelOnInput logic, a normal e.preventDefault + stopPropagation is enough.
Take in account already selected text when deciding how much text we are inserting during input event
2015-09-27 16:37:32 +02:00
Andrea Bogazzi
520e8e6179 Update canvas_dataurl_exporter.mixin.js 2015-09-23 00:23:21 +02:00
Juriy Zaytsev
6886d377b7 Merge pull request #2487 from asturur/fix-object.toDataURL
Fix object.to data url
2015-09-19 18:52:31 -04:00
Andrea Bogazzi
69d0071536 move toDataURL to lower canvas, if it has to work on staticCanvas. 2015-09-20 00:44:31 +02:00
Andrea Bogazzi
bbae1aa9f6 Add gradient transform to toObject method 2015-09-19 08:25:17 +02:00
KULDIP PIPALIYA
66e4efb847 added textAlign possible value in doc block
https://github.com/kangax/fabricjs.com/pull/96
2015-09-18 00:31:39 +05:30
Juriy Zaytsev
4a6001e356 Merge pull request #2479 from nibynool/bugfix/GestureOriginChange
After rendering a gesture set the origin back to its initial value
2015-09-17 12:52:01 -04:00
Juriy Zaytsev
6d99aafd60 Merge pull request #2482 from asturur/skew2
Add global support for skewing
2015-09-17 12:46:11 -04:00
Andrea Bogazzi
960a763d75 fix wrong english 2015-09-17 18:41:28 +02:00
Juriy Zaytsev
f92f56c27a Merge pull request #2400 from asturur/delete-double-rendering-on-renderTop
Delete double rendering on rendertop
2015-09-17 12:17:58 -04:00
Andrea Bogazzi
07fce195ce Add missing function the extended object 2015-09-17 14:35:41 +02:00
Andrea Bogazzi
cda0611326 Add support for skew objects. 2015-09-17 14:22:12 +02:00
Juriy Zaytsev
7f713d2092 Merge pull request #2462 from bedeoverend/master
Check for host in getScrollLeftTop
2015-09-16 08:14:44 -04:00
Bede
4e21a4ace3 Add explanation as to .host check 2015-09-16 16:41:33 +10:00
Michael Lambert
8d561eaf52 After rendering a gesture set the origin back to its initial value 2015-09-16 09:47:13 +10:00
Juriy Zaytsev
941f97d606 Merge pull request #2466 from asturur/fix-checkTarget
check for obj.selectable
2015-09-02 21:57:21 -04:00
Andrea Bogazzi
48529ff2ae check for obj.selectable 2015-09-02 21:52:22 +02:00
Bede
f9d904a9c7 Check for host in getScrollLeftTop 2015-09-02 10:59:22 +10:00
Andrea Bogazzi
7d4aa20435 Update itext.class.js 2015-08-30 16:36:13 +02:00
Andrea Bogazzi
3cb426454e Merge pull request #34 from kangax/master
update to master
2015-08-30 16:34:53 +02:00
Andrea Bogazzi
9362acc9d3 correct value of e.button
as per https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/button
2015-08-30 16:09:01 +02:00
Juriy Zaytsev
9fbb246e66 Merge pull request #2406 from asturur/bug-in-getElement-polyfill
Bug in getElementById polyfill
2015-08-21 17:23:24 -04:00
Juriy Zaytsev
0ff9198010 Merge pull request #2434 from asturur/bugfix
Bugfix
2015-08-21 14:03:38 -04:00
Andrea Bogazzi
66e87bb728 Update itext.class.js 2015-08-21 16:17:55 +02:00
Andrea Bogazzi
848471fd02 Update itext.class.js 2015-08-21 16:09:01 +02:00
Andrea Bogazzi
3520a51d21 Fix getElementByID polyfill and added failing test for it 2015-08-21 14:44:23 +02:00
Andrea Bogazzi
66f492f50b Update textbox.class.js 2015-08-21 11:42:14 +02:00
Juriy Zaytsev
bf420d4a15 Merge pull request #2423 from asturur/textbox-optimization
Textbox optimization on wraptext
2015-08-20 13:04:12 -04:00
Andrea Bogazzi
dc24c48d81 Update textbox.class.js 2015-08-20 17:04:05 +02:00
Andrea Bogazzi
2a53b69e5b Update itext.class.js 2015-08-20 16:04:12 +02:00
Andrea Bogazzi
19da6a7968 Update itext_behavior.mixin.js 2015-08-20 16:02:44 +02:00
Andrea Bogazzi
68360b81a3 Update textbox.class.js 2015-08-20 15:55:44 +02:00
Andrea Bogazzi
d6da75a1f1 Update textbox.class.js 2015-08-20 15:16:35 +02:00
Andrea Bogazzi
c8bfd7f5de Add short circuit for block char insertion 2015-08-18 13:19:55 +02:00
Andrea Bogazzi
1bbc356393 Optimize use of cache, use standard method to retrieve char width 2015-08-18 12:38:36 +02:00
Andrea Bogazzi
ed3b701712 Removed some itext duplicated code 2015-08-17 17:21:08 +02:00
Andrea Bogazzi
8b491480b4 Optimize _wrapText's use of _measureText 2015-08-17 15:37:42 +02:00
Juriy Zaytsev
db343783d4 Merge pull request #2407 from asturur/deep-clo
Deep clone transformMatrix, strokeDashArray and styles properties
2015-08-13 16:34:08 -04:00
Andrea Bogazzi
8ff217c59a Update object.class.js 2015-08-13 22:28:06 +02:00
Andrea Bogazzi
37acc8a602 Set offset to 0 if attribute not present 2015-08-12 14:18:50 +02:00
Andrea Bogazzi
dae413f745 Update itext.class.js 2015-08-12 07:09:05 +02:00
Andrea Bogazzi
5966b5e319 toObject returns deep cloning if necessary 2015-08-11 11:10:51 +02:00
Andrea Bogazzi
ba8e97dd33 Update object.class.js 2015-08-10 15:45:14 +02:00
Juriy Zaytsev
821c29a2da Merge pull request #2401 from asturur/fix-gradient-creation
Fix gradient creation
2015-08-09 20:28:19 -04:00
Andrea Bogazzi
3c132945c2 Update object.class.js 2015-08-10 01:54:17 +02:00
Juriy Zaytsev
7c81f464b8 Merge pull request #2399 from asturur/parse-x-y-svg-atttrs
Parse x y svg attributes
2015-08-09 19:29:59 -04:00
Andrea Bogazzi
66bf218885 Update object.class.js 2015-08-10 01:29:57 +02:00
Andrea Bogazzi
cf19c6f6cc Update parser.js 2015-08-10 01:21:56 +02:00
Andrea Bogazzi
e612d4c495 Update static_canvas.class.js 2015-08-10 00:48:28 +02:00
Juriy Zaytsev
d742cc6ea6 Merge pull request #2393 from asturur/fix-text-enter-edit-on-corner
Fix text enter edit on corner
2015-08-09 17:30:20 -04:00
Juriy Zaytsev
7c6bdd9be5 Merge pull request #2395 from asturur/fix-itext-paste
Fix itext paste performance
2015-08-09 15:49:44 -04:00
Juriy Zaytsev
0715f15f28 Merge pull request #2364 from asturur/fix-svgBaseMarkup
Fix svg base markup
2015-08-09 15:49:09 -04:00
Andrea Bogazzi
0edd147b0e Update group.class.js 2015-08-08 14:30:24 +02:00
Andrea Bogazzi
0a550efcd3 Update itext_behavior.mixin.js 2015-08-08 10:49:28 +02:00
Andrea Bogazzi
94ab565da9 Update object_interactivity.mixin.js 2015-08-07 11:09:11 +02:00
Andrea Bogazzi
1dc1271495 Update itext_click_behavior.mixin.js 2015-08-07 11:05:17 +02:00
Juriy Zaytsev
fe087a0ceb Merge pull request #2389 from asturur/fix-double-measu
Removed unnecessary call to ctx.measureText
2015-08-06 10:37:11 -04:00
Andrea Bogazzi
36554dbcaa Update itext.class.js 2015-08-06 09:23:26 +02:00
Juriy Zaytsev
5dcedda455 Build dist, update packages 2015-08-04 19:31:27 -04:00
Juriy Zaytsev
44eb376fc8 Merge pull request #2370 from asturur/fix-textboxcursor
Remove duplicate code and fix justify style issue
2015-07-31 13:28:48 -04:00
Andrea Bogazzi
27b5d2b0fd Update textbox.class.js 2015-07-29 13:04:25 +02:00
Juriy Zaytsev
f1e59c0d14 Merge pull request #2368 from asturur/fix-textboxcursor
Fix text itext code
2015-07-29 01:34:27 -04:00
Andrea Bogazzi
2518a486c3 Update textbox.class.js 2015-07-28 19:20:14 +02:00
Andrea Bogazzi
29f601512b Update text.class.js
Removed direct use of __lineWidths
2015-07-28 19:05:21 +02:00
Andrea Bogazzi
43500f77f4 Update object_geometry.mixin.js 2015-07-24 10:12:45 +02:00
Juriy Zaytsev
3b99fc11ff Merge pull request #2353 from asturur/simpler-setCoords
Simpler setCoords
2015-07-22 08:59:28 -04:00
Juriy Zaytsev
2cedb1cc90 Merge pull request #2354 from asturur/fix-text-glitche
Fix text glitche
2015-07-22 08:40:25 -04:00
Andrea Bogazzi
22d9f8d62a Update text.class.js 2015-07-22 11:01:45 +02:00
Andrea Bogazzi
76284b27cd Update text.class.js
draft
2015-07-22 10:57:16 +02:00
Andrea Bogazzi
a9c054d58b Update object_interactivity.mixin.js 2015-07-21 17:48:27 +02:00
Andrea Bogazzi
538d4eed50 Update object_geometry.mixin.js 2015-07-21 17:47:14 +02:00
Andrea Bogazzi
4b387b744f Update itext_key_behavior.mixin.js 2015-07-21 17:14:33 +02:00
Andrea Bogazzi
c545075122 Update itext_key_behavior.mixin.js 2015-07-21 14:35:41 +02:00
Andrea Bogazzi
520324d261 Update object_geometry.mixin.js 2015-07-21 14:34:34 +02:00
Juriy Zaytsev
3907853048 Update textbox documenation 2015-07-20 13:56:26 -04:00
Juriy Zaytsev
20e97924f4 Make sure image props are output properly 2015-07-20 13:56:20 -04:00
Juriy Zaytsev
614878d133 Merge pull request #2350 from asturur/exportTransformMa
export Transfor Matrix in toObject
2015-07-20 11:45:08 -04:00
Juriy Zaytsev
aba1b0e8f8 Merge pull request #2347 from asturur/fixes-textbox
Some fixes to textbox
2015-07-20 11:11:59 -04:00
Andrea Bogazzi
215ed8b9b8 Merge pull request #24 from kangax/master
asd
2015-07-20 01:23:17 +02:00
Andrea Bogazzi
8573c755b6 Update object.class.js 2015-07-18 00:50:56 +02:00
Juriy Zaytsev
2171dd1379 Output less irrelevant information in fabric.Image#toObject 2015-07-17 17:42:30 -04:00
Juriy Zaytsev
1499d34b1e Merge pull request #2348 from asturur/fix-pathgroup-parsing
Fix parsing pathgroup dimensions from inner paths
2015-07-17 11:31:42 -04:00
Andrea Bogazzi
21d9ddf9e4 Update path_group.class.js 2015-07-17 17:27:28 +02:00
Juriy Zaytsev
f45291cf42 Merge pull request #2345 from asturur/restore-parser
Restore parsing svg elements as a parent in caso of use tag plus svg tag
2015-07-17 10:43:31 -04:00
Juriy Zaytsev
4c915f17c6 Merge pull request #2349 from asturur/shadowcolor-su
add support for shadow colors in svg
2015-07-17 10:35:24 -04:00
Andrea Bogazzi
8f14daaba8 Update textbox.class.js 2015-07-17 14:17:53 +02:00
Andrea Bogazzi
e41088329d Update shadow.class.js 2015-07-17 14:13:21 +02:00
Andrea Bogazzi
f519bd422a Update parser.js 2015-07-17 11:36:41 +02:00
Andrea Bogazzi
d9d8c715fd Update parser.js 2015-07-17 09:48:46 +02:00
Juriy Zaytsev
5fe5db377b Merge pull request #2340 from asturur/fix-itextcopypaste
Fix itextcopypaste
2015-07-15 13:31:04 -04:00
Andrea Bogazzi
5be39487e9 Update itext_key_behavior.mixin.js 2015-07-15 19:03:43 +02:00
Juriy Zaytsev
73eb7a6ac8 Merge pull request #2342 from asturur/fix-shiftclick-activegroup
Fix shiftclick activegroup
2015-07-15 12:41:52 -04:00
Andrea Bogazzi
d36945f6e2 Update path.class.js 2015-07-15 16:50:25 +02:00
Andrea Bogazzi
a1b853e1d7 Update canvas.class.js 2015-07-15 15:08:54 +02:00
Juriy Zaytsev
18e87d9d59 Merge pull request #2337 from asturur/master
fix imageSmoothing glitches
2015-07-14 11:00:29 -04:00
Andrea Bogazzi
1e7616009d fix imageSmoothing glitches 2015-07-14 16:51:43 +02:00
Juriy Zaytsev
ed3264a72e Merge pull request #2335 from asturur/fix-pattern-toObject
Fix pattern to object
2015-07-14 10:29:11 -04:00
Juriy Zaytsev
033402d06d Merge pull request #2336 from asturur/itext-paste
Itext paste
2015-07-14 10:27:37 -04:00
Andrea Bogazzi
8f547d91c1 Update itext_key_behavior.mixin.js 2015-07-14 13:09:13 +02:00
Andrea Bogazzi
fbd3f174b5 Update pattern.class.js 2015-07-14 12:23:23 +02:00
Juriy Zaytsev
8791741c9f Merge pull request #2237 from inssein/textbox
Textbox Implementation - from Jaffer Haider
2015-07-13 18:34:58 -04:00
Juriy Zaytsev
c7c9d24ebb Fix linter 2015-07-10 16:04:34 -04:00
Juriy Zaytsev
713c19335a Merge pull request #2328 from ChrisBuergi/animate-color
Added simple color animation utility.
2015-07-10 15:49:48 -04:00
Juriy Zaytsev
fb22168f48 Add support for hidpi rendering on retina screens
Closes #316
2015-07-10 11:13:51 -04:00
mbrzuzy
5ddcce5687 Fix errors made when porting over IE9 Fix
- When fix was added, I was still referencing element.textContent instead of the modified textContent
2015-07-08 16:19:04 -04:00
Chris Buergi
971166978c Added simple color animation utility. 2015-07-08 15:04:16 +02:00
Juriy Zaytsev
65c29807b6 Merge pull request #2310 from asturur/fix-text-opacity
Fix text opacity
2015-07-03 12:50:10 -04:00
mbrzuzy
1ecebe38ee IE9 bugfix for loading SVGs from URL that contain <text> nodes 2015-07-01 09:04:25 -04:00
Andrea Bogazzi
2315fafde1 Update parser.js 2015-06-26 12:07:03 +02:00
Andrea Bogazzi
23eff30d1b Update text.class.js 2015-06-26 11:47:04 +02:00
inssein
e7b01abf73 fix CS 2015-06-18 20:06:32 -07:00
inssein
3902442ebf finally installed jscs and ran it to fix all errors 2015-06-16 13:54:03 -07:00
inssein
5daab00d69 fix off by one errors when calculating the offset 2015-06-16 13:19:41 -07:00
inssein
5824a48268 bringing over fixes from application textbox 2015-06-16 10:34:08 -07:00
Juriy Zaytsev
ebd2135b08 Merge pull request #2278 from sapics/fix-undefined-function
fix undefined function call
2015-06-16 13:01:07 -04:00
Hussein Jafferjee
deecc9df4c fix callSuper()'s inside mixins 2015-06-15 14:04:42 -07:00
Hussein Jafferjee
43668e3571 Fix cursor location to include spaces that are removed 2015-06-15 14:01:57 -07:00
Hussein Jafferjee
4c17f358e5 Properly detect where a click happens inside a textbox 2015-06-15 13:57:40 -07:00
Hussein Jafferjee
1db7e953c2 Fix bug in stylemap generation 2015-06-15 13:55:12 -07:00
Hussein Jafferjee
ea81c0f1e9 Account for removed space's at end of line when wrapping 2015-06-12 10:26:36 -07:00
Hussein Jafferjee
c158e311df Update textbox.class.js
Overlooked simple case - do not add word that is too long onto a line that already contains text.
2015-06-12 09:26:21 -07:00
sapics
f5b4605032 remove unused variables 2015-06-12 13:40:39 +09:00
inssein
26bba123af dont wrap when its smaller than a single word. 2015-06-11 20:00:23 -07:00
Juriy Zaytsev
74d05ed8f3 Merge pull request #2274 from asturur/clean-origins
forgot some cleaning
2015-06-11 22:07:06 -04:00
inssein
079a6f4e30 fix styles when measuring 2015-06-11 10:55:18 -07:00
inssein
7b581b4753 CS 2015-06-11 10:25:43 -07:00
inssein
0cf09986ee fix insertCharStyleObject so that it deletes properly 2015-06-11 10:21:37 -07:00
Juriy Zaytsev
2d2712c784 Merge pull request #2128 from asturur/pointer-in-scrollable
fix getScrollLeftTop
2015-06-11 10:46:54 -04:00
inssein
ce1023e709 whoops 2015-06-11 00:01:37 -07:00
Andrea Bogazzi
47dbb2303b Update object_origin.mixin.js 2015-06-11 08:19:08 +02:00
sapics
f556ab9411 function name fix 2015-06-11 13:45:01 +09:00
sapics
7e9f17186f just code simpler 2015-06-11 11:16:41 +09:00
inssein
9eb597c729 Use this.styles as if it's not affected by line-wraps. 2015-06-10 17:12:54 -07:00
Andrea Bogazzi
6ca7a5969c Update object_origin.mixin.js 2015-06-10 18:05:24 +02:00
Juriy Zaytsev
0d83da0e29 Merge pull request #2269 from asturur/fix-rotated-poi
Fix rotated pointer
2015-06-10 11:59:22 -04:00
Juriy Zaytsev
2d38f9eb22 Merge pull request #2257 from asturur/clean-origins
Clean origins
2015-06-09 01:30:00 -04:00
Andrea Bogazzi
a745e41849 Added rotation logic to getLocalPointer, removed no more usefull getLocalRotatedPointer 2015-06-08 07:59:07 +02:00
Andrea Bogazzi
b22ae4f37a Update object_origin.mixin.js 2015-06-08 00:32:03 +02:00
Andrea Bogazzi
6cc36ccdff Update object_origin.mixin.js 2015-06-07 10:04:00 +02:00
inssein
4843a61a84 need to figure out how to get phpstorm to auto format these mistakes 2015-06-03 17:07:42 -07:00
inssein
4987b55ed6 formatted 2015-06-03 16:49:38 -07:00
inssein
bf7f2ea731 1) adjust index when clicking on end of line
2) measure text in a line properly
2015-06-03 16:39:10 -07:00
inssein
2b3c75b6b1 fix selection and up + down movements 2015-06-03 11:31:02 -07:00
Juriy Zaytsev
d817ae6f63 Merge pull request #2256 from asturur/fix-style-parsing
Fix style parsing
2015-06-03 14:13:38 -04:00
sapics
e07350c9e7 fix group initialization 2015-06-03 08:45:19 +09:00
Andrea Bogazzi
3b460d9034 Fix fore removing last ; followed by spaces 2015-06-02 22:31:54 +02:00
inssein
d08dabc2ab forgot setOnGroup additions 2015-05-31 22:45:33 -07:00
inssein
3e57b2a835 changes requested by kangax 2015-05-31 15:44:44 -07:00
inssein
a641dbf8f9 silly formatting rules :P 2015-05-28 22:41:23 -07:00
inssein
b9aa3500a2 formatting 2015-05-27 21:30:17 -07:00
inssein
8934b93bc7 Change the get2DCursorLocation() function to return appropriately. Added additional comments for clarity. 2015-05-27 20:24:06 -07:00
inssein
5991fb085b use _splitTextIntoLines() everywhere 2015-05-27 20:16:26 -07:00
inssein
b7275de184 adhere to 120 character limit 2015-05-27 15:30:40 -07:00
inssein
30a95ae1e4 forgot to set proper style guide when auto-formatting 2015-05-27 15:30:40 -07:00
inssein
4cb3923279 typo.. 2015-05-27 15:30:40 -07:00
inssein
1718c266bd missed main textbox class, and autoformatted changes. 2015-05-27 15:30:40 -07:00
inssein
489eb1bddf Textbox implementaion from Jaffer Haider, with one minor change in textbox_key_behavior 2015-05-27 15:30:40 -07:00
inssein
502259a946 Fix bug with image.class.js not properly calling _initConfig when initializing. 2015-05-27 13:47:06 -07:00
Juriy Zaytsev
4c2dd702d3 Merge pull request #2223 from asturur/master
Fix deleting forward at end of text.
2015-05-21 11:51:14 -04:00
kangax
ff1b4e206c Fix JSHint warnings, make it catch console.log 2015-05-21 11:47:12 -04:00
Andrea Bogazzi
04d398e675 Update itext_key_behavior.mixin.js 2015-05-21 15:08:20 +02:00
Andrea Bogazzi
93c9018580 Update itext_click_behavior.mixin.js 2015-05-19 23:36:01 +02:00
Andrea Bogazzi
d659f16a44 Update itext_click_behavior.mixin.js 2015-05-19 23:24:09 +02:00
Juriy Zaytsev
106b0a551c Merge pull request #2206 from asturur/boundingboxes
dimensions code refactor
2015-05-18 15:57:15 -04:00
Andrea Bogazzi
a4cb8879fc Update object_interactivity.mixin.js 2015-05-18 21:44:12 +02:00
Juriy Zaytsev
37720eaeab Merge pull request #2204 from asturur/fixtextstylec
Add a bool to force cache clear on next render
2015-05-18 11:54:44 -04:00
kangax
c35ec9459d Fix fabric.Circle#setRadius not returning circle. Closes #2196 2015-05-18 11:15:09 -04:00
Andrea Bogazzi
cfd7521482 Update text.class.js 2015-05-18 08:16:04 +02:00
Ulrich Sossou
a60adb6e41 Set default value of strokeDashArray so SVG is valid 2015-05-17 09:12:55 +01:00
kangax
bf0bdd4c59 Add isDrawingMode to docs. Closes #2072 2015-05-14 08:30:11 -04:00
Juriy Zaytsev
ca50ab90a5 Merge pull request #2163 from kibao/fix/node-segmentation-fault
node.js segmentation fault when image couldn't be loaded
2015-05-13 11:47:06 -04:00
Milan Wanielik
e5e15e4390 fix code style error, that somehow got reintroduced by merge 2015-05-13 10:43:14 +02:00
Milan Wanielik
2cb0de11e1 Merge branch 'master' into fix/duplicate-line-styles
Conflicts:
	src/mixins/itext_behavior.mixin.js
	test/unit/itext.js
2015-05-13 09:46:35 +02:00
Juriy Zaytsev
d596089884 Merge pull request #2191 from milan-w/fix/insertNewlineStyleObject
Fix insertNewlineStyleObject failing, when lineIndex is not present in style object
2015-05-13 02:39:47 -04:00
Juriy Zaytsev
905b21826a Merge pull request #2186 from asturur/fix-elementByID-ie9
Add alternative to get elementById for ie9
2015-05-13 02:32:23 -04:00
Andrea Bogazzi
734cea4780 Update parser.js 2015-05-13 08:27:23 +02:00
Andrea Bogazzi
de4449231d Add alternative to get elementById 2015-05-13 07:53:13 +02:00
Milan Wanielik
5192f72762 adjust code style 2015-05-12 13:47:58 +02:00
Milan Wanielik
2086e28f14 fix code style error 2015-05-12 13:46:55 +02:00
Milan Wanielik
0d5ad0cec4 remove insertNewlineStyleObject fixes, one issue per branch 2015-05-12 12:04:55 +02:00
Milan Wanielik
b3c57385f2 remove shiftLineStyles fixes, one issue per branch 2015-05-12 12:02:15 +02:00
Milan Wanielik
c824c8a8da fixes mainly for fabric on canvas: fix insertNewlineStyleObject, check if currentChar lineIndex exists; fix shiftLineStyles, delete previous lines after shifting 2015-05-11 18:46:44 +02:00
Juriy Zaytsev
c71a1c2049 Merge pull request #2183 from asturur/Fix-patterns-for-text
Fix patterns offset for text
2015-05-10 23:26:22 -04:00
Andrea Bogazzi
5b429185f7 Update text.class.js
avoid ruining the stack on offsetX and offsetY equal to 0
2015-05-10 18:51:31 +02:00
Andrea Bogazzi
323c648961 Update text.class.js 2015-05-09 11:05:54 +02:00
Andrea Bogazzi
1f84378565 obect stroke restoring was missing 2015-05-09 11:05:05 +02:00
Juriy Zaytsev
934fe4782f Merge pull request #2175 from asturur/fix-itext-selection
fix selection itext transformatrix
2015-05-08 18:27:35 -04:00
Juriy Zaytsev
264d73cdbf Merge pull request #2178 from sapics/fix-stroke-width-calculation
Fix stroke width calculation. Closes #2177
2015-05-08 18:05:41 -04:00
Juriy Zaytsev
04722f976d Merge pull request #2173 from asturur/object-restore
Avoid restoring properties manually that are handled by canvas save stack
2015-05-08 17:59:44 -04:00
sapics
d459a87ae2 Fix stroke width calculation 2015-05-08 16:29:14 +09:00
Andrea Bogazzi
9691acdc2c Update object.class.js 2015-05-08 08:29:03 +02:00
Andrea Bogazzi
902b44dbda a 2015-05-07 08:40:54 +02:00
kibao
69d616ad23 Node.js Invoke loadImage callback if there is no data or a network error 2015-05-06 21:34:41 +02:00
Andrea Bogazzi
5ba6b54787 Update dom_misc.js 2015-05-05 14:05:04 +02:00
Andrea Bogazzi
02dca44656 Update group.class.js 2015-05-05 12:54:53 +02:00
Juriy Zaytsev
68915cbcb6 Merge pull request #2164 from asturur/Fix-Image-from-Object
Fix image resize filter from object
2015-05-05 11:47:57 +02:00
Andrea Bogazzi
ed5b1b66b0 Fix image resize filter from object 2015-05-05 08:32:30 +02:00
Andrea Bogazzi
80c3012646 Update object_origin.mixin.js 2015-05-02 19:13:44 +02:00
kibao
7515fcedbe Don't create image data Buffer when data is empty
Fix for segmentation fault when image couldn't be loaded
2015-04-30 19:51:47 +02:00
Juriy Zaytsev
91897de495 Merge pull request #2153 from asturur/iTextGlitch
I text glitches fix
2015-04-29 13:17:17 +02:00
Andrea Bogazzi
bedc38ec19 fix spaces 2015-04-29 13:10:25 +02:00
Andrea Bogazzi
ba94729f29 removed global var and split(''); 2015-04-29 12:51:25 +02:00
Andrea Bogazzi
4bed22f4a9 iText clean up and style fixes 2015-04-29 08:27:56 +02:00
Paul Kaplan
34d490c1a0 Don't import elements declared within <metadata>
Some SVG files declare elements inside of the metadata block. Don’t
import them.
2015-04-28 16:12:50 -05:00
Incuuu
21df5e8fe7 Change the firing order of mouse:out/mouse:over events 2015-04-24 18:44:02 +04:00
Incuuu
935fd4f39d Add MouseEvent in mouse:over/mouse:out events 2015-04-23 14:32:17 +04:00
Juriy Zaytsev
46cd6ab505 Merge pull request #2137 from jafferhaider/Issue510PullRequest
Added missing events in multi-touch gestures. Closes #510
2015-04-22 15:07:23 +02:00
Juriy Zaytsev
150216ebf5 Merge pull request #2127 from asturur/fix-_getLeftTop
Change getTopLeftCoords
2015-04-22 13:23:24 +02:00
Juriy Zaytsev
3586cb26f7 Merge pull request #2141 from asturur/fixThis.Canvas
Make .canvas property always present
2015-04-22 13:17:38 +02:00
Juriy Zaytsev
54211dd349 Merge pull request #2130 from asturur/ActiveGroupSorter
Fix sortedObjects
2015-04-22 13:05:53 +02:00
Jaffer Haider
8a73c34e7c code style errors 2015-04-22 09:12:59 +05:00
Andrea Bogazzi
5ab3b331c7 Update static_canvas.class.js 2015-04-22 05:50:11 +02:00
Andrea Bogazzi
0465729c15 Update group.class.js 2015-04-22 05:49:23 +02:00
Jaffer Haider
0897ff1d16 Added missing events from gestures 2015-04-21 14:40:18 +05:00
Andrea Bogazzi
906ee8684e Update static_canvas.class.js 2015-04-21 09:09:16 +02:00
Andrea Bogazzi
344f4c9f41 Update static_canvas.class.js 2015-04-21 08:56:38 +02:00
sapics
fe65503e11 fix only coding style 2015-04-21 09:53:19 +09:00
Andrea Bogazzi
09d13c6e7c Fix sortedObjects 2015-04-20 12:48:37 +02:00
sapics
563ec42196 fix space and linebreak 2015-04-20 09:51:32 +09:00
Andrea Bogazzi
5d75b53ab4 fix getScrollLeftTop 2015-04-19 20:30:46 +02:00
Andrea Bogazzi
6d1f9a3f08 Update object_origin.mixin.js 2015-04-19 20:25:23 +02:00
Juriy Zaytsev
a5baf7ae39 Merge pull request #2117 from sapics/fix_path_initialize
Fix path initialize
2015-04-19 18:01:39 +02:00
Juriy Zaytsev
a07e0c2367 Merge pull request #2121 from asturur/group-init
Group init
2015-04-17 13:13:08 +02:00
Andrea Bogazzi
ef1036b58e Update group.class.js 2015-04-17 03:35:59 +02:00
Andrea Bogazzi
6c24ec06f6 Update object.class.js 2015-04-17 01:24:05 +02:00
Andrea Bogazzi
75142bd9c0 Update object.class.js 2015-04-16 21:11:02 +02:00
sapics
d922771915 Add @param comment 2015-04-16 18:47:04 +09:00
sapics
64529b4562 fix of @asturur suggestion 2015-04-16 18:31:52 +09:00
sapics
05316fc0f9 fix path initialize function for option left=0 or top=0 2015-04-16 17:11:06 +09:00
Juriy Zaytsev
b2ee0b14c6 Merge pull request #2102 from asturur/fix-cursor
Fix cursor AND selection
2015-04-14 18:15:14 +02:00
Juriy Zaytsev
c1dfa0ed4b Merge pull request #1856 from finfin/master
Fix requireJS compatibility issue
2015-04-14 18:07:10 +02:00
Andrea Bogazzi
5cdecb27d0 Update text.class.js
removed unused method
2015-04-14 17:57:44 +02:00
Andrea Bogazzi
fb50a4f366 Fix cursor AND selection 2015-04-14 15:41:32 +02:00
Juriy Zaytsev
d71eb73364 Merge pull request #2099 from asturur/fix-shadow-svg
simple correction on shadow toSVG
2015-04-08 18:40:20 +02:00
Andrea Bogazzi
f505e753ca simple correction 2015-04-08 15:41:35 +02:00
Juriy Zaytsev
20f44aa033 Merge pull request #2093 from asturur/drawBorders
avoid unnecesary save and restore per object
2015-04-08 09:35:24 +02:00
Andrea Bogazzi
d7f0fea8a2 avoid unnecesary save and restore per object 2015-04-08 09:08:05 +02:00
Andrea Bogazzi
d593d209aa Update path.class.js 2015-04-08 08:20:49 +02:00
Juriy Zaytsev
8dfaaab514 Merge pull request #2091 from asturur/multiplyMatrice
Shorter version of multiply transform matrix
2015-04-07 18:55:17 +02:00
Juriy Zaytsev
ac6b3d21e0 Merge pull request #2090 from Incuuu/bug/setBackgroundImage
Fix bug with options of image instance in setBackgroundImage
2015-04-07 14:14:43 +02:00
Incuuu
fa5bba0df7 Fix problem with empty options 2015-04-07 15:00:11 +04:00
Andrea Bogazzi
320a08faa1 bunch of spaces for jscs 2015-04-06 23:29:29 +02:00
Andrea Bogazzi
364bc29a5e Shorter version of multiply transform matrix 2015-04-06 23:18:15 +02:00
Juriy Zaytsev
506f4dfa47 Merge pull request #2069 from asturur/svgParsing
Parse svg with 100% dimension or missing dimensions
2015-04-06 21:24:47 +02:00
Juriy Zaytsev
75452223e8 Merge pull request #2089 from asturur/fix-text-parser
Clean text from svg
2015-04-06 18:44:52 +02:00
Incuuu
84adc7b4d3 Fix bug with options of image instance in setBackgroundImage 2015-04-06 18:54:51 +04:00
Andrea Bogazzi
426ce2a31a Update text.class.js 2015-04-06 14:24:26 +02:00
Andrea Bogazzi
45273cd04c Clean text from svg 2015-04-06 14:17:51 +02:00
Andrea Bogazzi
ddbf256d94 Update path_group.class.js 2015-04-06 12:57:09 +02:00
Andrea Bogazzi
affb15d7ec Update path_group.class.js 2015-04-06 12:24:32 +02:00
Juriy Zaytsev
5f988a2600 Merge pull request #2083 from asturur/changes-in-rendering
Changes in rendering
2015-04-06 02:52:41 +02:00
Juriy Zaytsev
caaa99b553 Merge pull request #2086 from asturur/transformPoint
Correct transformPoint Function
2015-04-06 02:51:38 +02:00
Andrea Bogazzi
48e83f4a7a Update parser.js 2015-04-06 01:36:00 +02:00
Andrea Bogazzi
8747ed1bd6 Update misc.js 2015-04-05 21:34:58 +02:00
Juriy Zaytsev
e932be0a15 Merge pull request #2081 from asturur/renderCursor
Render cursor - fix for viewportTransfrom
2015-04-05 18:00:50 +02:00
Juriy Zaytsev
29b7701142 Merge pull request #2082 from asturur/drawControl-change
Update drawControl
2015-04-04 15:17:05 +02:00
Andrea Bogazzi
e15fcd4056 Update group.class.js 2015-04-04 14:17:22 +02:00
Andrea Bogazzi
1550c9d154 Update object.class.js 2015-04-04 14:12:02 +02:00
Andrea Bogazzi
a7271aaf9f Update path.class.js 2015-04-04 13:50:39 +02:00
Andrea Bogazzi
b932cc2eb1 Update path_group.class.js 2015-04-04 13:48:07 +02:00
Andrea Bogazzi
26b91222e9 Update object.class.js 2015-04-04 13:45:50 +02:00
Andrea Bogazzi
3e96328c26 Update text.class.js 2015-04-04 13:45:21 +02:00
Andrea Bogazzi
37d5e63380 Update itext.class.js 2015-04-04 13:22:37 +02:00
Andrea Bogazzi
dff6ab94eb Update drawControl 2015-04-04 12:36:18 +02:00
Andrea Bogazzi
50e1d574e5 fixes cursor position with viewporttransform 2015-04-04 11:24:38 +02:00
Andrea Bogazzi
b6687f069a Update itext.class.js 2015-04-02 13:23:37 +02:00
Juriy Zaytsev
ebe2f687c1 Merge pull request #2075 from asturur/fixSVGimpor
Fix transform matrix of particular complex situation
2015-04-01 01:16:01 +02:00
Andrea Bogazzi
950fdbd89e Fix transform matrix of particular complex situation 2015-03-31 23:59:18 +02:00
Jim Rodovich
5d4fa49cd3 Fix hit detection on the active group after zooming. 2015-03-31 11:51:04 -05:00
Juriy Zaytsev
1257c52a87 Merge pull request #2065 from asturur/renderCursor
Render cursor on upper canvas
2015-03-31 13:38:57 +02:00
Juriy Zaytsev
e43ebdfea7 Merge pull request #2068 from asturur/fix-jscs
attemp to fix jscs crash
2015-03-31 12:57:31 +02:00
Andrea Bogazzi
f03c9d244b Modify cursor tick 2015-03-31 01:47:53 +02:00
Andrea Bogazzi
568e2ed2c0 attemp to fix jscs crash 2015-03-31 01:46:38 +02:00
kangax
92154f7a16 Update JSCS, fix style issues 2015-03-30 12:05:49 +02:00
sapics
c90062c78e Remove overlap definition of setAngle in jsdoc 2015-03-30 10:27:08 +09:00
sapics
f52eee78e4 remove unused variable 2015-03-30 10:26:48 +09:00
Juriy Zaytsev
889efa1c4a Merge pull request #1999 from StileEducation/PR_toJSON_selection
Make toJSON/toSVG behave sensibly with an active selection group
2015-03-25 13:02:22 +01:00
KJ Tsanaktsidis
7453776856 Call set() when unwinding the group transform
set() is called when the group transform is realized by the group
on the object, so set needs to be called when the inverse operation
is done too so that things watching these properties see both the
action and the undo.
2015-03-25 11:23:25 +11:00
Jeff Parsons
a0a4d77272 Track IText instances per-canvas, not globally.
Previously instances of the IText shape were added to a globally-shared
array when they were created. There are two problems with this approach:

1) Interactions with one canvas affect others. I would never expect
   text in one canvas to exit edit mode just because I interacted with
   some otherwise-unrelated canvas.

2) Every IText instance leaks. There is no mechanism to clean up references
   to IText instances in the global array, so every such instance will
   hang around in memory forever, regardless of whether it is removed from
   the canvas or if the canvas itself is removed.

Discovered while profiling memory usage in Chrome.
2015-03-24 14:14:43 +11:00
Juriy Zaytsev
de85900c8f Merge pull request #2050 from asturur/iText-clearing-cache-on-style-change
Clear cache on setStyle on itext
2015-03-21 15:39:27 +01:00
Andrea Bogazzi
84bd8bbda0 Update itext.class.js 2015-03-21 12:17:34 +01:00
gordyr
7b6cca5136 Fixed whitespace for Travis build 2015-03-11 23:55:18 +00:00
gordyr
657945f9fd Fixes Mouse hit detection on active groups
Skips the checking of grouped objects within _searchPossibleTargets since we already check the group as a whole target itself.  Failing to do so would lead to grouped objects being picked up as targets outside of the group since their coordinates change temporarily while grouped.
2015-03-11 23:29:45 +00:00
Andrea Bogazzi
bc5343adb7 Update resize_filter.class.js
Add better to toObject support
2015-03-09 03:19:56 +01:00
Juriy Zaytsev
63180f24a9 Merge pull request #2024 from asturur/Fix-iText-position-bug-when-style-is-empty
Textwidth for jusitfied align
2015-03-08 19:14:06 +01:00
Andrea Bogazzi
51c2cd7e74 Update text.class.js 2015-03-08 12:32:33 +01:00
Juriy Zaytsev
a13cca92d9 Merge pull request #2020 from asturur/Fix-iText-position-bug-when-style-is-empty
Fix gradient for IText. Closes #2013
2015-03-07 17:48:47 +01:00
Andrea Bogazzi
9ee71616bf Update itext.class.js 2015-03-07 15:57:04 +01:00
Andrea Bogazzi
0933c6f5c2 Update gradient.class.js 2015-03-07 15:56:24 +01:00
kangax
1dff79c2ad Make fabric.Image#fromUrl callback optional 2015-03-05 14:20:55 +01:00
Juriy Zaytsev
51c8cd8b56 Merge pull request #2007 from asturur/itext-selection-on-canvas
Itext selection on canvas
2015-03-02 13:56:34 +01:00
Andrea Bogazzi
0e384be263 Update itext_behavior.mixin.js 2015-03-02 13:54:08 +01:00
Andrea Bogazzi
57329b39be Update itext_behavior.mixin.js 2015-03-02 13:48:55 +01:00
Andrea Bogazzi
dda96f9b81 Allow user to select text moving mouse outside itext bounding box 2015-03-02 00:43:25 +01:00
Juriy Zaytsev
2877af6310 Merge pull request #2006 from asturur/fix-pathgroup-toSvg
Fix path group toSvg method.
2015-03-01 23:37:17 +01:00
Andrea Bogazzi
08a1c6b418 Fix path group toSvg method.
now respect current originX and originY
2015-03-01 23:27:17 +01:00
Juriy Zaytsev
16d636e1de Merge pull request #2005 from asturur/Fix-iText-position-bug-when-style-is-empty
Fix misplacement of some iText
2015-03-01 19:27:28 +01:00
Andrea Bogazzi
b89bc01847 Fix misplacement of some iText 2015-03-01 19:05:50 +01:00
Andrea Bogazzi
5fc82e34e2 Fix cache canghe bug.
Create a copy of the cache instead of modify it.
2015-03-01 18:58:04 +01:00
Andrea Bogazzi
4ad253ffba Merge pull request #1998 from kangax/revert-1961-fix-EnterEdit
Revert "Add forcedfocus on enterEditing"
2015-03-01 18:24:35 +01:00
sapics
ca10ee0d28 support check for setLineDash 2015-02-28 21:42:24 +09:00
Andrea Bogazzi
23b14df20a Update itext_behavior.mixin.js 2015-02-28 13:10:28 +01:00
KJ Tsanaktsidis
a18acd43f5 YET MORE code style errors... 2015-02-27 15:21:00 +11:00
KJ Tsanaktsidis
cf92898071 Fix code style errors 2015-02-27 15:12:47 +11:00
KJ Tsanaktsidis
f16bf53763 Don't clone objects while serialising selection groups
Clone can be async for some object types, so we can't use it during
the serialisation process. Instead, apply the group transforms directly
on the object being serialised, and then undo it after serialising.
2015-02-27 15:04:26 +11:00
KJ Tsanaktsidis
00e6e71e4d Fixed code style error 2015-02-26 14:03:44 +11:00
KJ Tsanaktsidis
ea8bc67ce8 Don't destroy the selection group when doing toJSON
Instead, simulate what would happen to the children of the selection
group if the group were to be released. This is non-destructive on
the state of the canvas from the API user's perspective.
2015-02-26 13:57:58 +11:00
KJ Tsanaktsidis
492a7693c5 Don't destroy the selection group when doing toSVG
toSVG now mirrors the behaviour of toJSON and does not destroy
the active selection group when serialising. Instead, the effect
of the group is simulated on a clone of the object and this is
what gets serialised.
2015-02-26 13:57:58 +11:00
Andrea Bogazzi
69653b1085 Revert "Add forcedfocus on enterEditing" 2015-02-25 17:57:20 +01:00
Juriy Zaytsev
1e5bd1e678 Merge pull request #1989 from StileEducation/PR_cursor_timer
Fixed race condition in the iText cursor flash animation
2015-02-25 14:21:32 +01:00
Juriy Zaytsev
bf40c717a8 Merge pull request #1988 from StileEducation/PR_stroke_dash_array
Fix base throwing error when strokeDashArray unitialized
2015-02-24 12:46:59 +01:00
Andrea Bogazzi
320c7cac6d Update text.class.js
Fix a bug caused by lazy copy paste , replace.
2015-02-24 10:29:03 +01:00
KJ Tsanaktsidis
b0e2caf88f Fixed style errors from linter 2015-02-24 15:09:45 +11:00
KJ Tsanaktsidis
7ea4e6c1cc Fixed race condition in the iText cursor flas animation
The animation that flashes the iText cursor can race its own
cancellation, meaning that you can have two _tick()'s and two
_tickComplete() animations at the same time. On iOS in particular,
most likely due to the lower frequency of timeouts, this can trap
the cursor in a state where its opacity is always <0.1 and is
essentially invisible.
2015-02-24 14:55:58 +11:00
KJ Tsanaktsidis
ef81b23d85 Fix base throwing error when strokeDashArray unitialized
Other places in the codebase guard the call to ctx.setLineDash,
so this should happen here too.
2015-02-24 14:34:47 +11:00
Juriy Zaytsev
c8df694460 Merge pull request #1960 from asturur/fix-shadow-by-zoom-level
Shadow Size fix
2015-02-12 20:35:33 +01:00
Andrea Bogazzi
55d6f300f6 Update object.class.js 2015-02-12 20:27:20 +01:00
kangax
8a48598c68 Check for presence of filter. Closes #1967 2015-02-11 01:30:13 +01:00
kangax
220256c267 Extract regex out of method 2015-02-07 14:14:32 +01:00
kangax
db8aa87dae Extract method from fabric.Path#initialize 2015-02-07 13:47:08 +01:00
Juriy Zaytsev
3b19175a70 Merge pull request #1961 from asturur/fix-EnterEdit
Add forcedfocus on enterEditing
2015-02-05 17:08:16 +01:00
Andrea Bogazzi
f2fa816f49 Update itext_behavior.mixin.js 2015-02-05 16:44:27 +01:00
Juriy Zaytsev
55bc74bc4c Merge pull request #1958 from asturur/Fix-svg-tiny-test-suite
Fixes svg rendering rules
2015-02-05 10:53:41 +01:00
Andrea Bogazzi
f72b55283d Update object.class.js 2015-02-04 21:37:32 +01:00
Andrea Bogazzi
a6f240285c Update object.class.js
Fix the shadow and canvas zoom problem.
2015-02-04 17:29:59 +01:00
Andrea Bogazzi
69880b5104 Update polyline.class.js 2015-02-03 14:28:37 +01:00
Andrea Bogazzi
1fb7a1b914 Update polygon.class.js 2015-02-03 14:28:23 +01:00
asturur
6a6b74aae1 Fixes svg rendering rules 2015-02-03 14:24:11 +01:00
Juriy Zaytsev
95406e0b6b Merge pull request #1882 from asturur/Clean-lines-code
Make cleaner setCoords and geometry code
2015-02-03 00:51:28 +01:00
Andrea Bogazzi
a7022c1bef Clean of setCoords and other corner related methods 2015-02-03 00:16:59 +01:00
Juriy Zaytsev
3b54fd031d Merge pull request #1951 from asturur/transformMatrix-for-pathgroup
Fixes for path-group transformMatrix in svg export
2015-01-28 13:41:15 +01:00
Andrea Bogazzi
0523352dfa Fix pathGroup TransformMatrix
solves missing transformMatrix
2015-01-28 12:41:09 +01:00
Juriy Zaytsev
5903c23634 Merge pull request #1872 from asturur/itext-rendering
text rendering changes
2015-01-27 16:10:09 +01:00
Andrea Bogazzi
0e09961c64 Update to text, rendering and optimization 2015-01-26 02:49:37 +01:00
Andrea Bogazzi
2f6021faea Fix Travis 2015-01-20 16:30:23 +01:00
Juriy Zaytsev
49d68723cb Merge pull request #1935 from asturur/shoadow2
Missing space was breaking path single shape export.
2015-01-20 01:51:41 +01:00
Andrea Bogazzi
79d9618352 Fix single path toSVG export. 2015-01-20 01:49:16 +01:00
Justin Early
39e5f1210a updating condition
Forgot to bring condition along
2015-01-19 13:39:44 -08:00
Justin Early
079248f47d Support HTTPS with different ports not just 443
We would like to make this change to support HTTPS running on different ports other than 443 since user may have 443 used for something else on their machine. 

Thanks,

Justin
2015-01-19 13:18:27 -08:00
Juriy Zaytsev
64515eb3e9 Merge pull request #1931 from asturur/shadow
Fix Shadow svg output
2015-01-18 17:29:35 +01:00
asturur
45ba30bc13 shadow changes 2015-01-18 16:54:35 +01:00
Juriy Zaytsev
a0e13b36b7 Merge pull request #1914 from TomKaltz/master
Allow the use of lineDashArray with the free drawing tool.
2015-01-15 23:24:54 +01:00
Thomas Kaltz III
3f9fc4c745 rename to strokeDashArray 2015-01-15 13:37:28 -08:00
Thomas Kaltz III
092c81272e Rename to strokeDashArray and default to null 2015-01-15 13:36:26 -08:00
kangax
36d947f9e8 Fix docs 2015-01-14 12:35:00 +01:00
kangax
df888e47cc Mention read-only nature of “type” 2015-01-13 12:53:25 +01:00
Jim Rodovich
c71b1378df Make corresponding fixes for relative curve bounding box calculations. 2015-01-08 09:46:10 -06:00
Jim Rodovich
e83816446c Fix else style. 2015-01-07 18:34:56 -06:00
Jim Rodovich
cf344c2ba7 Fix reflecting relative quadratic curves after absolute quadratic curves. 2015-01-07 17:36:43 -06:00
Jim Rodovich
aee62cb047 Don't let cubic or distant-past curves infect reflected quadratic curves. 2015-01-07 17:34:30 -06:00
Jim Rodovich
c96c6b27f7 Don't let quadratic curves infect reflected cubic curves. 2015-01-07 17:34:30 -06:00
Thomas R Kaltz III
a7f233c8f3 Allow the use of lineDashArray with the free drawing tool. 2014-12-30 01:20:53 -05:00
kangax
251cab8a91 Update Event.js to 1.1.5. Closes #1888 2014-12-17 11:10:38 +01:00
Shaw
0a52d59239 toDataURL via StaticCanvas
Fix for `toDataURL` not working without interaction module (issue #1891)
2014-12-12 13:10:59 -06:00
kangax
e780b0a958 Make console.log check more robust; fixes IE8 2014-12-07 13:08:41 +01:00
kangax
77434e6086 Add docs on originX/originY and setCoords 2014-12-07 12:56:57 +01:00
Juriy Zaytsev
c814bd9727 Merge pull request #1868 from asturur/group-init
Use object's set and initializa methods in group
2014-11-30 19:19:54 +01:00
Andrea Bogazzi
4314d30370 Update group.class.js 2014-11-30 18:38:43 +01:00
Andrea Bogazzi
14fdf0c653 Update image.class.js
error in final commit.
2014-11-29 11:28:51 +01:00
Andrea Bogazzi
1bc4d02569 Update object_geometry.mixin.js 2014-11-28 12:20:35 +01:00
Juriy Zaytsev
454c332398 Merge pull request #1834 from asturur/image-resize
Image resize filters
2014-11-27 16:57:38 +01:00
Andrea Bogazzi
057d8e5bd9 Add resize filter functionality 2014-11-27 14:51:06 +01:00
Juriy Zaytsev
d177f7612a Merge pull request #1854 from asturur/fix-text-jump
Fix text jump to top of page
2014-11-27 12:32:09 +01:00
Fin Chen
d13ae118e1 Update requirejs.js 2014-11-26 11:20:04 +08:00
Andrea Bogazzi
b716a56e2c Update style for hidden textbox. Fix page jump 2014-11-25 15:54:37 +01:00
Juriy Zaytsev
9dac555205 Merge pull request #1773 from asturur/fix-itext-multilin
Fix for issue #1264 , export of removed/reinsertd newline on itext
2014-11-24 12:54:57 +01:00
Juriy Zaytsev
e6cfd0d52a Merge pull request #1835 from noslouch/drawingmode-mouseevents
InDrawingMode Mouse Events
2014-11-24 12:46:40 +01:00
Juriy Zaytsev
f125941e21 Merge pull request #1825 from asturur/Line-tests
Line accuracy issue in pathgroup with high zoom level
2014-11-22 14:26:01 +01:00
Juriy Zaytsev
6816fadd87 Merge pull request #1846 from asturur/fix-jsdoc
fix jsdoc of point
2014-11-22 14:24:41 +01:00
Andrea Bogazzi
8302b7032b Update point.class.js
fix jsDoc
2014-11-22 14:20:52 +01:00
Andrea Bogazzi
f4385b2de9 Fix line accuray issue, remove some duplicate code, do not force width = 1 on 0. Fix object render method to render 0-dimensions lines
Check how this version could behave in general rendering.
2014-11-20 22:34:47 +01:00
Brian Whitton
31a2a9c8bf InDrawingMode Mouse Events
This adds event triggers for the InDrawingMode set of mouse event handlers.

I needed to add a mousemove event handler that fired without turning off
free draw, and imagined that others could use this functionality as
well.

Event strings are formatted using the typical non-namespaced DOM format, i.e. without
colons.
2014-11-13 23:22:44 -05:00
kangax
1d8d998ed5 Fire selection:changed event when changing iText selection with keys. Closes #1165 2014-11-08 17:04:04 +01:00
kangax
5a3b5657c5 Check for canvas presence before accessing multiplier 2014-11-07 12:06:24 +01:00
Juriy Zaytsev
112d96be72 Merge pull request #1813 from PosterMyWall/Issue1297PullRequest
Fixed outdated multi-touch gestures code. Added support for longpress.
2014-11-07 12:05:50 +01:00
Jaffer Haider
53a2d88225 fixed Travis styling failures 2014-11-07 09:36:41 +05:00
Jaffer Haider
408c1a713a fixed Travis styling failures 2014-11-07 09:24:15 +05:00
Ibrahim Muhammad
d3224bd5d3 Fix documentation typo 2014-11-06 16:53:41 -08:00
Jaffer Haider
30a2a918d7 Fixed outdated multi-touch gestures code. Added support for longpress. 2014-11-06 08:49:07 +05:00
Juriy Zaytsev
587122112e Merge pull request #1812 from asturur/Free-drawing-position
Free drawing position for paths #1780
2014-11-05 21:25:58 +01:00
Andrea Bogazzi
36905d317f Update pencil_brush.class.js 2014-11-05 19:56:57 +01:00
Andrea Bogazzi
cf3bd70479 Update path.class.js 2014-11-05 19:56:12 +01:00
Juriy Zaytsev
efbb3e40b3 Merge pull request #1770 from asturur/fix-text-toSVG
Fix text top position in svg export
2014-11-05 18:53:38 +01:00
Juriy Zaytsev
1d7cfefba1 Merge pull request #1796 from asturur/Shadow-scaling
Support Shadow scaling for CanvasZoom and ScaleFactor
2014-10-31 13:05:32 +01:00
Juriy Zaytsev
3251048327 Merge pull request #1691 from vamo89/setCoordsBug
Fix setCoords for negative width and/or height
2014-10-30 15:22:58 +01:00
Andrea Bogazzi
ed00d1c5fb Update text.js 2014-10-29 15:25:08 +01:00
Juriy Zaytsev
8f0b9055b1 Merge pull request #1788 from asturur/Some-text-goodies
Some text goodies
2014-10-29 11:41:39 +01:00
Andrea Bogazzi
552c6a833c Update text.js 2014-10-28 17:12:10 +01:00
Andrea Bogazzi
7725227d44 Update text.class.js
fix text top position in svg export
2014-10-26 22:51:26 +01:00
Juriy Zaytsev
00b8aaaab4 Merge pull request #1785 from asturur/fix-filter-box-for-shadows
Fix filter box dimensions for shadows svg export
2014-10-26 22:47:59 +01:00
Andrea Bogazzi
b9f37586b3 Update text.js 2014-10-26 22:42:55 +01:00
Andrea Bogazzi
e3f479ceb9 Update pattern.class.js
Added hack to support repeat and offset to svg export.
2014-10-26 18:49:00 +01:00
Andrea Bogazzi
07b367c2c6 Update itext_behavior.mixin.js
Removed short circuit, fix linebreak remove / reinsert problem.
2014-10-26 15:41:05 +01:00
Andrea Bogazzi
cac97b0a9b Update text.js 2014-10-22 00:46:53 +02:00
Juriy Zaytsev
51fcd6cc52 Merge pull request #1768 from Kienz/setSrcImage
Add `fabric.Image.setSrc`
2014-10-21 15:11:21 +02:00
Stefan Kienzle
362cda0c0d Fixed spelling 2014-10-21 15:02:41 +02:00
Stefan Kienzle
8216ae19f4 Add fabric.Image.setSrc 2014-10-21 14:48:41 +02:00
Juriy Zaytsev
bed84b7e0b Merge pull request #1765 from asturur/fix-for-group-position
Fix position of group for originx/y different from center.
2014-10-21 12:32:00 +02:00
Juriy Zaytsev
98a1eb496d Merge pull request #1644 from ChrisBuergi/scaling-strokewidth-fix
Scaling strokewidth fix
2014-10-21 12:26:17 +02:00
Juriy Zaytsev
327324be2c Merge pull request #1759 from asturur/fix-symbol-render
Fix symbol render
2014-10-21 11:44:20 +02:00
Andrea Bogazzi
035cf52f79 Update group.class.js 2014-10-20 17:55:09 +02:00
Andrea Bogazzi
0d2bac7907 Update canvas_grouping.mixin.js
Removed forced originX/Y from dynamically created groups
2014-10-20 17:31:20 +02:00
Andrea Bogazzi
64531a3905 Update group.class.js 2014-10-20 16:52:07 +02:00
Stefan Kienzle
30e248bf18 Fix opacity for fabric.Text and fabric.IText 2014-10-20 15:49:29 +02:00
Andrea Bogazzi
2fefe13613 Update group.class.js
added managing of  originX/Y to group.
2014-10-20 15:38:05 +02:00
Andrea Bogazzi
c25a152bf9 Update parser.js 2014-10-20 00:51:50 +02:00
Juriy Zaytsev
d1ba16f177 Merge pull request #1720 from asturur/Image-aspec
preserve Aspect Ratio for images support
2014-10-16 18:04:31 +02:00
Stefan Kienzle
c49690d32d Use crossOrigin property in fabric.util.loadImage for background and overlay images
Closes #1752
2014-10-16 10:49:12 +02:00
Juriy Zaytsev
6070030a96 Merge pull request #1742 from asturur/Fix-free-drawing-mode
Fix for free drwaing mode ( pencil ). Closes #1725
2014-10-12 19:36:15 +02:00
Andrea Bogazzi
30876c8c3a Update text.class.js
Added fix for stroke shadow as in object class in normal renderFill method.
2014-10-12 18:50:26 +02:00
Andrea Bogazzi
3257d9a2d9 Update pencil_brush.class.js
Remover UtilMin e UitlMax
2014-10-12 18:18:22 +02:00
Andrea Bogazzi
d48f0833f1 Update pencil_brush.class.js
Simplified path creation process.
This removed calculation are handled by path class anyway.
2014-10-12 18:06:20 +02:00
Andrea Bogazzi
49f449ee4f Update image.class.js 2014-10-11 21:56:38 +02:00
Nazar Mokrynskyi
faec8dc0c8 Fix for IE 2014-10-11 17:39:53 +02:00
Nazar Mokrynskyi
9f6c4d6947 Fix for usage with Polymer Platform
As well as inside of Web Components, and generally code is more correct than previous.
Also, this is a fix for https://github.com/kangax/fabric.js/issues/1712
2014-10-11 13:41:08 +02:00
Stefan Kienzle
679d44d86c Merge pull request #1715 from asturur/flippyng-Y-by-scaling-X-and-viceversa
Flippyng y by scaling x and viceversa
2014-10-07 15:16:27 +02:00
Juriy Zaytsev
c4df8b4689 Merge pull request #1714 from asturur/fix-lines
Fix for line toObject method.
2014-10-06 00:27:17 +02:00
Andrea Bogazzi
30eaf11872 Update parser.js 2014-10-03 08:36:30 +02:00
Andrea Bogazzi
795bb0e70f Update group.class.js 2014-10-01 09:52:37 +02:00
Andrea Bogazzi
9cfb7337b2 Update line.class.js
Add missing spaces ( strange that  travis didn't bother me )
2014-10-01 00:55:45 +02:00
Andrea Bogazzi
ebe4bd7286 Update line.class.js 2014-09-30 23:13:34 +02:00
Andrea Bogazzi
77616eddba Update ellipse.js 2014-09-30 23:10:20 +02:00
Juriy Zaytsev
75921959e6 Merge pull request #1701 from asturur/fix-lines
Fix export of lines with custom width and height
2014-09-29 17:49:35 +02:00
Stefan Kienzle
b58d9a0edb Rename ellipse getRY to getRy 2014-09-29 13:54:19 +02:00
Juriy Zaytsev
7f3f43c94b Merge pull request #1699 from asturur/Ellips-rx-ry
Update ellipse.class.js
2014-09-29 08:41:37 +02:00
Andrea Bogazzi
d0de45e11a Update ellipse.class.js
Mirrored from circle the way it updates width and height following rx and ry of ellipse.
2014-09-29 00:05:04 +02:00
Andrea Bogazzi
b2e2767053 Update getCssRule to exit on empty styles tag.
Test unit added.
2014-09-27 20:05:39 +02:00
Andrea Bogazzi
80b831f0ed Update line.class.js
Fixes custom width and height for svg export in lines
2014-09-26 10:00:05 +02:00
Andrea Bogazzi
f8e6ae9461 Update parser.js
Allow first example of stroke svg import to work properly
2014-09-26 09:52:33 +02:00
Juriy Zaytsev
e524c13521 Merge pull request #1638 from joerozek/stacking
Support for preserving object stacking. Closes #1636.
2014-09-25 13:32:03 +02:00
Andrea Bogazzi
00a442b028 exit from getSvgTransform just for pathGroups.
Fix Svg Export for normal canvas group
2014-09-25 11:05:39 +02:00
Sergi Meseguer
116eb88c43 fixing whitespaces 2014-09-23 12:15:09 +02:00
Sergi Meseguer
4d283d87f0 getPointer bounds for IE8, fixes #1550 #1349 #1693
includes change from @asturur to improve readability
2014-09-23 12:08:10 +02:00
Juriy Zaytsev
ec1db65110 Merge pull request #1694 from asturur/FillRule-misunderstanding
Fill rule misunderstanding
2014-09-23 11:32:06 +02:00
Andrea Bogazzi
af1138a686 Divided FillRule from globalCompositeOperation 2014-09-23 08:53:56 +02:00
kangax
32e8463479 Add requirement for space before function’s { 2014-09-22 20:40:39 +02:00
kangax
0c41880e97 Add maximumLineLength restriction of 120 chars and space after comma 2014-09-22 20:40:39 +02:00
Victor Oliveira
4a51211df9 Fix setCoords for negative width and/or height
Change-Id: I8ddb8ad49325e593bff15396f76623351e2c5de4
2014-09-22 11:12:22 -03:00
Andrea Bogazzi
bdde7151a2 Update canvas.class.js
fix for ie8 missing width and height in bounds
2014-09-21 23:41:07 +02:00
Andrea Bogazzi
673d8584d9 Update object.class.js 2014-09-21 20:54:21 +02:00
Andrea Bogazzi
eef80ebaf2 Update parser.js 2014-09-21 01:16:25 +02:00
Andrea Bogazzi
a70321f9a8 Update elements_parser.js 2014-09-21 01:15:39 +02:00
kangax
066eb54d30 Increase maxstatements, few style fixes 2014-09-19 13:12:12 +02:00
Juriy Zaytsev
e9f310c2ce Merge pull request #1680 from asturur/Fix-Path-BoundingBox
Fix Path bounding box, improve rendering logic
2014-09-19 12:36:58 +02:00
Andrea Bogazzi
f930e2ba65 Update arc.js
Fixed again code style
2014-09-19 00:22:07 +02:00
Andrea Bogazzi
b35f5ace64 Update arc.js 2014-09-19 00:17:04 +02:00
William P. Riley-Land
af0aad23b7 Fix issue with document fragments. 2014-09-18 15:42:32 -05:00
Juriy Zaytsev
4fa24bc0b6 Merge pull request #1672 from asturur/opacity-fix
Fix opacity for groups and nested groups
2014-09-18 20:25:38 +02:00
Andrea Bogazzi
cfbfaf7042 Update arc.js 2014-09-18 14:52:34 +02:00
Andrea Bogazzi
71aea4db4d Update path.class.js 2014-09-18 14:51:46 +02:00
Andrea Bogazzi
d0368e8c27 Update circle.class.js
Code styles error fix
2014-09-18 01:43:39 +02:00
Andrea Bogazzi
675965da4f Update circle.class.js
fixed typo.
2014-09-18 01:39:15 +02:00
Andrea Bogazzi
18c7203335 Update circle.class.js
Add option to circle for start and end angle, to draw an ARC.
in radians, not in degree to avoid writing a setter and getter that does the conversion.
Internally is better radians i think.
2014-09-18 01:23:52 +02:00
Andrea Bogazzi
f6f359e6dd Update object.class.js
Fix opacity for groups.
Before it was working just in simple situation, now it should be ok both in path-group and in normal groups and nested groups.
2014-09-17 10:36:59 +02:00
Juriy Zaytsev
ad94d21541 Merge pull request #1660 from asturur/Fix-paths-toSVG
Update path.class.js
2014-09-14 12:29:15 +04:00
Juriy Zaytsev
1ebe46be41 Merge pull request #1664 from asturur/Polygon-and-Polylines-code-reduction
Polygon and polylines code reduction
2014-09-14 12:13:49 +04:00
Andrea Bogazzi
a4610822b5 Update object.class.js
Fix code style error.
2014-09-13 18:01:19 +02:00
Andrea Bogazzi
2415eec00d Update object.class.js 2014-09-13 17:05:17 +02:00