Commit graph

1973 commits

Author SHA1 Message Date
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