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
Andrea Bogazzi
e284fc0ec3
Update gradient.class.js
2014-09-13 17:03:56 +02:00
Andrea Bogazzi
ef18a5b9f1
Update polyline.class.js
2014-09-13 16:48:38 +02:00
Andrea Bogazzi
66c2714df8
Update polyline.class.js
2014-09-13 16:39:40 +02:00
Andrea Bogazzi
e05a5a78e3
Update polygon.class.js
2014-09-13 16:38:42 +02:00
Andrea Bogazzi
4e737abcde
Update path.class.js
...
Fixes == with ===
2014-09-13 14:05:12 +02:00
Andrea Bogazzi
28784dc9b3
Update path.class.js
...
Like any other shape in fabric, when exported to svg, the shape has to be translated around origin.
This additional translation brings it there.
Fixes svg export of paths OUTSIDE of path-gropus. Inside was already ok.
2014-09-13 13:14:58 +02:00
Juriy Zaytsev
e6db38bb85
Merge pull request #1654 from zigotica/patch-1
...
bugfix: add toObject so Blend can be serialized
2014-09-12 17:58:25 +04:00
Sergi Meseguer
bc4c1c0c6d
bugfix: add toObject so Blend can be serialized (added missing ;)
2014-09-12 15:53:59 +02:00
Juriy Zaytsev
071c63135e
Merge pull request #1639 from asturur/Polygons-and-Polylines-top-and-left-property-precendece
...
Polygons and polylines top and left property precedence
2014-09-11 10:58:42 +04:00
Sergi Meseguer
879bfbbb62
bugfix: add toObject so Blend can be serialized (extend not needed)
2014-09-10 13:59:22 +02:00
Sergi Meseguer
af2b6c70b4
bugfix: add toObject so Blend can be serialized
2014-09-10 13:46:14 +02:00
Andrea Bogazzi
7cbe8a965e
Update arc.js
...
Fix useless optimization of code that was rendering arcs not correctly
2014-09-09 14:17:44 +02:00
Chris Buergi
fb573607e2
Merge branch 'master' into scaling-strokewidth-fix
2014-09-08 10:45:42 +02:00
Chris Buergi
0739f4cad8
Only use strokeWidth in object scaling when stroke is set.
...
Also only use half of the strokeWidth, this matters especially when the strokeWidth is large compared to the object size.
2014-09-08 10:43:55 +02:00
Andrea Bogazzi
c2820bfcd5
Update polygon.class.js
...
!options..left would fail in case of left = 0.
2014-09-05 23:04:12 +02:00
Andrea Bogazzi
67a4be50a2
Update polyline.class.js
...
Mirror polygon changes
2014-09-04 22:59:24 +02:00
Andrea Bogazzi
aff2c4f313
Update polygon.class.js
...
Now polygon Top and Left can be setted in the contructor call or calculated by the points.
2014-09-04 22:37:25 +02:00
Joe Rozek
d2b146c21c
support for preserving object stacking
2014-09-04 12:01:48 -07:00
Juriy Zaytsev
791c74a82e
Merge pull request #1631 from asturur/Gradient-Fix-Part-2
...
Fix gradient rendering
2014-09-04 01:57:37 +04:00
Juriy Zaytsev
74bc327011
Merge pull request #1635 from asturur/Polygons-and-Polylines
...
Fix polygons and polylines rendering
2014-09-04 01:55:29 +04:00
Juriy Zaytsev
f250b259ec
Merge pull request #1616 from asturur/Itext-firefox-squares-and-new-keys
...
Add support for control keys
2014-09-04 01:18:11 +04:00
Andrea Bogazzi
917d83b139
Update polyline.class.js
2014-09-03 22:49:47 +02:00
Andrea Bogazzi
6afc4dbc3a
Update polygon.class.js
2014-09-03 22:49:04 +02:00
Andrea Bogazzi
2dd8884129
Update gradient.class.js
...
why it didn't tell me all togheter is a mistery.
Code style fix part 2.
2014-09-02 22:51:44 +02:00
Andrea Bogazzi
f854db4e4c
Update gradient.class.js
...
code styles error fixed.
2014-09-02 22:47:49 +02:00
Andrea Bogazzi
55f9a5947b
Update rect.class.js
2014-09-02 22:40:49 +02:00
Andrea Bogazzi
d87af17aa4
Update gradient.class.js
2014-09-02 22:40:00 +02:00
Juriy Zaytsev
cefc838e90
Merge pull request #1628 from asturur/text-export-fpr-groups
...
Update text.class.js
2014-08-30 14:57:13 +04:00
kangax
da3184aaae
Fix style error
2014-08-30 13:22:19 +04:00
kangax
a3d40878d6
Update JSCS to 1.6, fix errors, hook up travis
2014-08-30 13:18:43 +04:00
Juriy Zaytsev
392d3e9a7e
Merge pull request #1624 from asturur/missing-width-or-height
...
Update parser.js
2014-08-29 13:15:05 +04:00
Andrea Bogazzi
3b911a9882
Update text.class.js
...
Fixes exporting of text simple group.
Thanks to Chris Buergi to make me notice
2014-08-28 22:28:28 +02:00
Chris Buergi
7db0fe0aa2
Allow to opt out from the viewport transformation of the SVG output.
2014-08-28 13:43:36 +02:00
Andrea Bogazzi
b43492554a
Update parser.js
...
Added comment for future reference
2014-08-28 00:04:07 +02:00
Andrea Bogazzi
4c4ba5bfe0
Update parser.js
...
Added comment for future reference
2014-08-27 23:09:31 +02:00
Andrea Bogazzi
cd7bea6183
Update parser.js
...
Better than getting 0px width and height.
Specs say that when they are missing we should consider 100%, in our case 100% will be 100px because we don't have anything to compare the SVG to before adding the SVG into a canvas.
Otherwise we could take canvas widht and height.
2014-08-27 14:17:33 +02:00
Andrea Bogazzi
18b17b4170
Update itext_key_behavior.mixin.js
...
Sorry, i missed that.
2014-08-25 15:14:19 +02:00
Andrea Bogazzi
f83636acb1
Update itext_key_behavior.mixin.js
...
Better behaviour of selection with keyboard.
Now you can cross from select direction LEFT to RIGHT and back.
2014-08-25 15:10:12 +02:00
Andrea Bogazzi
41b53f53e4
Update itext_key_behavior.mixin.js
2014-08-25 12:21:59 +02:00
Andrea Bogazzi
bce8d4f847
Update itext_key_behavior.mixin.js
2014-08-25 12:02:16 +02:00
Ulrich Sossou
dc7266bc1d
Fix coding style
2014-08-24 18:25:58 +01:00
Ulrich Sossou
2541b7b69b
Properly calculate width of whitespace characters when text is justified
2014-08-24 15:41:51 +01:00
Ulrich Sossou
f02622ea26
Merge branch 'master' into hotfix/printable-characters-not-working
...
Conflicts:
src/mixins/itext_key_behavior.mixin.js
2014-08-23 18:58:29 +01:00
Juriy Zaytsev
060a4f6b12
Merge pull request #1604 from sorich87/hotfix/top-cursor-boundary-calculation
...
Use _getTopOffset to calculate top cursor boundary
2014-08-23 19:53:01 +02:00
Juriy Zaytsev
29c0448235
Merge pull request #1573 from brexis/patch-1
...
Update itext_key_behavior.mixin.js
2014-08-23 18:46:11 +02:00
Ulrich Sossou
9d8cd6ebb2
Accept all printable characters
2014-08-20 14:09:47 +01:00
Marc Galang
7111e6f2cc
Merge remote-tracking branch 'upstream/master'
2014-08-20 15:58:28 +03:00
Ulrich Sossou
a9933a5450
Use _getTopOffset to calculate top cursor boundary
...
Left cursor boundary is calculated with _getLeftOffset,
top cursor boundary should also be calculated with the corresponding offset method
2014-08-20 13:51:17 +01:00
Juriy Zaytsev
ac7ceedd83
Merge pull request #1590 from asturur/Clean-fix-for-ar
...
Update arc.js
2014-08-20 14:41:27 +02:00
Andrea Bogazzi
29b6ae03e5
Update gradient.class.js
2014-08-19 15:07:33 +02:00
Andrea Bogazzi
92604f1ee4
Update gradient.class.js
...
Fixed some errore introduced with commit.
2014-08-19 13:59:26 +02:00
Andrea Bogazzi
cf5062b072
Update gradient.class.js
2014-08-16 17:17:00 +02:00
Andrea Bogazzi
2fe200e178
Update parser.js
...
Forgot one variable.
2014-08-16 16:26:08 +02:00
Andrea Bogazzi
98b4bdccaf
Update object.class.js
2014-08-16 16:23:02 +02:00
Andrea Bogazzi
74a9ac9d48
Update parser.js
...
Changed variable names, For loop in While loop and typing error.
2014-08-16 16:18:48 +02:00
Andrea Bogazzi
dc4d4a4205
Update gradient.class.js
...
JSDOC and Variable names
2014-08-16 16:11:43 +02:00
Andrea Bogazzi
1e49598693
Update elements_parser.js
...
Fixing spaces
2014-08-16 16:05:16 +02:00
Andrea Bogazzi
f955969e76
Update object.class.js
...
added gradienttransfor rendering
2014-08-16 08:15:47 +02:00
Andrea Bogazzi
78db91225f
Update parser.js
...
Changed parsegradient to consider href element
2014-08-16 08:15:07 +02:00
Andrea Bogazzi
011674707a
Update gradient.class.js
2014-08-16 08:13:20 +02:00
Andrea Bogazzi
77911424ce
Update elements_parser.js
...
Changed Resolvegradient function for fill and stroke
2014-08-16 08:11:50 +02:00
Juriy Zaytsev
3405d0e2ac
Merge pull request #1584 from asturur/Lock-Scale-Flipping
...
Lock scale flipping
2014-08-13 19:44:36 +02:00
Juriy Zaytsev
2cc901f2f7
Merge pull request #1595 from asturur/Load-Gradient-before-reviver
...
Load gradient before reviver
2014-08-13 19:14:48 +02:00
Andrea Bogazzi
70b879b8b9
Update elements_parser.js
...
Added mono-object resolveGradient function. to be called befor reviver function.
2014-08-13 11:46:39 +02:00
Andrea Bogazzi
e157437476
Update parser.js
...
Delete function from parser. moved in element parser.
2014-08-13 11:40:20 +02:00
Andrea Bogazzi
6cc42ca43c
Update object.class.js
2014-08-12 23:33:08 +02:00
Andrea Bogazzi
66621bb37f
Update canvas.class.js
2014-08-12 23:02:55 +02:00
Andrea Bogazzi
9fc736c022
Update arc.js
...
Corrected arcs drawing and extended caching logic to have a chache hit more often.
Function is more or less 20 lines of code shorter, but i really cannot figure out if this implementation has more calculation
than the previous. I couldn't manage to find the error in the old one, i had to overwrite it.
in the picture , the multi colored arcs, are all on cache it after calculating the red one.
It will happen rarely, but why miss it?

2014-08-11 12:14:02 +02:00
Andrea Bogazzi
e8013f4964
Update object.class.js
...
Just grammar
2014-08-10 19:40:58 +02:00
Andrea Bogazzi
ebc1cf9604
Update object.class.js
...
added lockScalingFlip, if set to true you cannot flip by accident an objec while scaling it.
2014-08-10 00:38:44 +02:00
Andrea Bogazzi
2242b2a994
Update canvas.class.js
...
Added lockScaleFlip variable to scale object method
2014-08-10 00:37:01 +02:00
Juriy Zaytsev
5e65dd54b2
Merge pull request #1574 from asturur/tag-symbol
...
Tag symbol
2014-08-09 00:31:17 +02:00
Juriy Zaytsev
4c7ad6a82d
Merge pull request #1567 from asturur/SVG-EXPORT
...
Better SVG export
2014-08-07 20:42:56 +02:00
Andrea Bogazzi
ea942e3580
Update parser.js
...
This was missing.
Now if width and height get parse correctly.
They were even before but if it was width 18pt ( so 18 * 1.33 pixels ) and wievbox was 18, before no scaling was calculated.
2014-08-07 16:23:09 +02:00
Andrea Bogazzi
8eaba61b17
Update parser.js
...
Add support to catch attributes from symbol nodes.
This is a quick hack.
To have full support symbol should managed as defs and then copied as g, without display attribute.
But before adding tons of code, let's just make it work.
2014-08-07 16:11:31 +02:00
brexis
8f9a84351b
Update itext_key_behavior.mixin.js
...
Some characters don't work in Mac OS X such as dot ".", opened parenthesis "(" and others. The key events return key codes witch are in _keysmap variable and so those characters are not rendered. Ex : '.' event key code return 46.
2014-08-07 12:45:58 +01:00
Andrea Bogazzi
3f75ce7f1b
Update line.class.js
...
Just cosmetic.
2014-08-06 23:48:07 +02:00
Andrea Bogazzi
6367e30dba
Update line.class.js
...
Don't ask why. For me half dimension was more than enough.
2014-08-06 19:20:13 +02:00
Juriy Zaytsev
4bcfef6277
Merge pull request #1557 from asturur/gradient-transform-impor
...
attribute gradientTransform import
2014-08-06 16:49:06 +02:00
Andrea Bogazzi
c4b3d1881d
Update image.class.js
...
Fixed rendering of borders and svg transformation
2014-08-06 13:54:04 +02:00
Andrea Bogazzi
c02315f36b
remove normalize func not more used
2014-08-05 13:03:04 +02:00
Andrea Bogazzi
74f796fe3e
Fixed toSVG for text.
2014-08-05 13:01:51 +02:00
Andrea Bogazzi
ff2a24c3ae
Simplified rect class and fixed SVG export
2014-08-05 12:58:50 +02:00
Andrea Bogazzi
ac7c208e4d
Polyline: Fixes toSVG method, remove normalization
2014-08-05 12:57:32 +02:00
Andrea Bogazzi
ece0c1549f
Polygon: Fixes toSVG method, removed normalization
2014-08-05 12:56:08 +02:00
Andrea Bogazzi
4a54069532
pathgroup: fixes toSVG method
2014-08-05 12:54:08 +02:00
Andrea Bogazzi
eef2e21c07
changed toSvg method
2014-08-05 12:51:20 +02:00
Andrea Bogazzi
f84091054f
Object: Moved globalAlpha here, changes in render
2014-08-05 12:50:39 +02:00
Andrea Bogazzi
d40deb6d58
Fixed toSVG for line, changes in rendering logic
2014-08-05 12:49:34 +02:00
Andrea Bogazzi
32278413e3
Update image.class.js
...
Removed render method, added support for x and y positioning, fixed toSVG
2014-08-05 12:48:29 +02:00
Andrea Bogazzi
09ba1e115b
ToSvg , added some \n
2014-08-05 12:45:07 +02:00
Andrea Bogazzi
15b6798d0e
Simplified ellipse class and fixed SVG export
2014-08-05 12:44:19 +02:00
Andrea Bogazzi
c120242865
Simplified circle class and fixed SVG export
2014-08-05 12:43:51 +02:00
Andrea Bogazzi
5e0dc2211b
Update parser.js
...
Adding scaling of translating that was wiped by some commit
2014-08-05 12:42:58 +02:00
Andrea Bogazzi
fc1b9b96a9
Update object.svg_export.js
...
Added missing properties and transforMatrx export.
2014-08-05 12:42:06 +02:00
Jim Rodovich
642a577ba1
Check for points existing before trying to do anything with them.
2014-08-04 15:41:39 -05:00
Marc Galang
b39ed5b9c6
Add darken, lighten, subtract modes to blend filter
2014-08-03 23:42:06 +03:00
Andrea Bogazzi
740047a98b
Update gradient.class.js
...
Added import of gradient transform
2014-08-03 20:55:45 +02:00
kangax
818ab118b3
JSCS changes; Prepare for JSCS ignore support; down to 51 failures
2014-08-03 16:47:27 +02:00
Bnaya Peretz
f7fa1a874a
tests
2014-07-31 18:19:19 +03:00
Bnaya Peretz
9f70f78411
Option to set css & backstore dimensions separatly
...
Introduced options param to the dimensions setters, options.backstoreOnly & options.cssOnly
When backstoreOnly set to true, only the value of the canvas element width & height will be changed.
When cssOnly set to true, only the css width & height of the involved DOM elements will be changed,
and you should include the unit of measure (px/%/em) with the passed value (eg '100px' '100%') and not just 100
2014-07-31 18:19:19 +03:00
Marc Galang
47d06c0cad
Use createCanvasElement instead of createElement. Fix indentations.
2014-07-30 20:04:57 +03:00
Marc Galang
541393b991
Add blend filter. Implements several image blend modes (can add more later)
2014-07-30 10:14:02 +03:00
Juriy Zaytsev
6769228d18
Merge pull request #1532 from boonkerz/patch-1
...
Update to Fix select text in itext last letter issue #1429
2014-07-29 10:15:44 +02:00
Andrea Bogazzi
221dc595a5
Update parser.js
2014-07-27 16:58:54 +02:00
boonkerz
c20a3b1482
Fix for Linter
...
Fix for Linter #1429
2014-07-27 02:21:24 +02:00
kangax
e77a810774
Few JSCS fixes
2014-07-26 21:29:09 +02:00
Juriy Zaytsev
1e5b347987
Merge pull request #1536 from asturur/Style-sheet-parsing-and-test
...
Better stylesheet parsing
2014-07-26 19:38:15 +02:00
Juriy Zaytsev
1f9f70ce9b
Merge pull request #1533 from asturur/circle-bounding-box
...
Fix circle radius during initialization
2014-07-26 19:36:21 +02:00
Andrea Bogazzi
ce2530661c
Update parser.js
2014-07-26 19:19:22 +02:00
Andrea Bogazzi
d9f8a2f9da
Update object_interactivity.mixin.js
2014-07-26 15:24:02 +02:00
Andrea Bogazzi
7b15e8b461
Update circle.class.js
2014-07-26 15:21:48 +02:00
boonkerz
39618701c2
Update to Fix select text in itext last letter issue #1429
...
This fixes the select issue.
Currently i have not understand why this line exists.
After delete nothing happen except the issue is fixt :)
2014-07-26 13:17:30 +02:00
Juriy Zaytsev
8425968f05
Merge pull request #1526 from boonkerz/patch-1
...
Fix Firefox keypress rendering arrow keys in itext. Closes #1434
2014-07-25 12:47:00 +02:00
kreig
d3f28eb1f0
globalCompositeOperation support (fillRule)
...
Fixes fillRule settings for text object as it was mentioned in https://github.com/kangax/fabric.js/pull/1172/files
2014-07-25 05:23:53 +03:00
boonkerz
e2633955e6
Update to Fix Firefox keypress arrow keys in itext symbols are shown #1434
...
Update to fix the issue #1434
2014-07-25 00:01:57 +02:00
Juriy Zaytsev
c0bfbce182
Merge pull request #1511 from asturur/passing-colorattributes
...
Passing colorattributes
2014-07-22 13:36:46 +02:00
Stefan Kienzle
045ce8b6bf
Fix freedrawing (bug exists since commit #6b5f049bb0a459dd29e2927ed99094b3e7baec66)
2014-07-22 11:52:18 +02:00
asturur
cf1aa0049a
Update parser.js
...
if we delete it , it won't pass to child graphic elements.
if this fillopacity is specified on a container element, it will change color of container element and then disappear. Color would then go to child element.
But if fill is specified on child element and fillopacity on parent element, this has to stay.
2014-07-21 06:47:40 +02:00
asturur
d78451a6b9
Update parser.js
...
Don't miss A tags, they behave like g tags.
2014-07-20 14:38:22 +02:00
asturur
85ba574458
Update parser.js
...
Restored parseUseDirectives functionality, maintaining getElementsByTagName and changing logic of running trought the list.
2014-07-20 13:44:44 +02:00
asturur
481b40549e
Update parser.js
...
I should not multiply the translating values.
Fixes mathformla that was still outside the screen
2014-07-20 13:36:52 +02:00
Juriy Zaytsev
de42013e3f
Merge pull request #1504 from asturur/various-fixes
...
Various SVG rendering fixes
2014-07-19 19:19:37 +02:00
asturur
21591588d5
Update parser.js
...
remove statements (2?) for travis
2014-07-19 10:23:06 +02:00
asturur
12f5c6356e
Update parser.js
2014-07-18 20:42:21 +02:00
asturur
da99193ad6
Update text.class.js
2014-07-18 20:37:32 +02:00
asturur
fbbd763eb0
Update object.class.js
...
Fix border in case of stroke=color but strokewidth=0.
2014-07-18 20:14:51 +02:00
asturur
a52e081c25
Update parser.js
...
I forgot to delete one piece.
2014-07-18 20:07:24 +02:00
asturur
20df73c362
Update polyline.class.js
...
never touch too much.
2014-07-18 17:49:29 +02:00
asturur
c58abe2698
Update polygon.class.js
...
Never touch too much.
2014-07-18 17:48:28 +02:00
asturur
56b4caebbe
Update parser.js
2014-07-18 16:37:55 +02:00
asturur
2495d58523
Update line.class.js
2014-07-18 16:28:29 +02:00
asturur
f610ffe9de
Update path.class.js
2014-07-18 16:27:29 +02:00
asturur
4db2d6c5ed
Update text.class.js
2014-07-18 16:24:34 +02:00
asturur
3bf7fbc619
Update text.class.js
2014-07-18 16:24:15 +02:00
asturur
0c36a1a7cc
Update polygon.class.js
2014-07-18 16:13:46 +02:00
asturur
58e318f214
Update polyline.class.js
2014-07-18 16:12:39 +02:00
Juriy Zaytsev
b2377f4195
Merge pull request #1502 from asturur/fix-ordering-of-the-pieces
...
Fix ordering of SVG parsing
2014-07-18 16:10:53 +02:00
asturur
7d3aa1cbef
Update misc.js
...
Always return a pathgroup if we parse a svg.
2014-07-18 16:10:11 +02:00
asturur
848005c61b
Update elements_parser.js
2014-07-18 15:13:19 +02:00
kangax
3df3c396a2
Fix unit tests
2014-07-18 13:11:18 +02:00
Stefan Kienzle
6b5f049bb0
JSDoc + JSCS tweaks - Part 2
2014-07-18 11:16:23 +02:00
asturur
347debb677
Update elements_parser.js
...
slicing one by one, doesn't make the array bigger. so the index value is still effective.
If you slice by 0 the array grows up and so index loose meaning.
2014-07-18 07:19:37 +02:00
Juriy Zaytsev
61853dd275
Merge pull request #1495 from Kienz/issue1494
...
Fix initialization of viewportTransform array
2014-07-17 18:54:27 +02:00
Juriy Zaytsev
2c6cafe34f
Merge pull request #1496 from Kienz/jsdocFixes
...
JSDoc + JSCS tweaks - Part 1
2014-07-17 18:52:54 +02:00
asturur
795d8a7aa5
Update misc.js
...
some more polishing, for me and for toFixed.
2014-07-17 16:38:09 +02:00
asturur
5ca64ad636
Update parser.js
2014-07-17 16:25:59 +02:00
asturur
dfbd1887bf
Update misc.js
...
some more polishing
2014-07-17 16:24:46 +02:00
Stefan Kienzle
b34387d10e
JSDoc + JSCS tweaks - Part 1
2014-07-17 16:18:57 +02:00
Stefan Kienzle
43b029e8a4
Just do slice() for cloning
2014-07-17 14:35:28 +02:00
Stefan Kienzle
306a040fef
Fix initialization of viewportTransform array
...
Add unit tests
JSDoc tweaks
2014-07-17 13:28:55 +02:00
asturur
0bb156f308
Update misc.js
...
it had some problem with len of string 0 and slicing from 0 to -0 , or calculating len of ''.
now is ok, rects went crazy and i didn't notice.
2014-07-17 07:44:03 +02:00
asturur
d34f970ffb
Update misc.js
2014-07-17 00:42:31 +02:00
asturur
81092715c1
Update misc.js
...
added missing space.
2014-07-17 00:38:55 +02:00
asturur
d78996194b
Update misc.js
2014-07-17 00:37:27 +02:00
asturur
bd4c7a0c4d
Update parser.js
2014-07-16 18:56:10 +02:00
asturur
0d4320c018
Update parser.js
...
Use parseUnit to normalize pt,pc,mm,in,cm to px.
2014-07-16 15:34:54 +02:00
asturur
bf4fa0091f
Update misc.js
...
add parseUnit function to normalize mm,cm,in,pt,pc to pixels.
res is setted to 96dpi is not real screen resolution dependant.
2014-07-16 15:29:41 +02:00
kangax
69fdc220e1
Add JSDoc validation in JSCS. Few style/doc fixes.
2014-07-16 11:45:50 +02:00
Mike Shaver
825bec65df
More doc-comment fixes.
2014-07-15 15:59:53 -07:00
Juriy Zaytsev
49a783bb2a
Merge pull request #1484 from shaver/doc-comment-fixes
...
Fix some doc comment errors that were preventing build.
2014-07-16 00:47:47 +02:00
Mike Shaver
095ee86e37
Fix some doc comment errors that were preventing build.
2014-07-15 15:34:06 -07:00
Juriy Zaytsev
26a964f241
Merge pull request #1476 from twffy/upstream
...
Fix positioning of controls for lines
2014-07-15 19:17:05 +02:00
Paul Kaplan
bbd1dd2d99
Simplify point parsing logic
...
The SVG spec basically allows delimiting numbers and pairs of numbers
with either whitespace or commas, so convert all commas to whitespace,
split on whitespace and remove the `asPairs` logic
2014-07-14 09:59:03 -05:00
Paul Kaplan
112dce71a3
Allow whitespace around commas in point parsing
...
Per the SVG spec:
http://www.w3.org/TR/SVG/shapes.html#PointsBNF
2014-07-12 18:08:03 -05:00
Tom French
9bbb4911c9
Brace style and JSHint
2014-07-11 18:29:17 +01:00
Tom French
91c642b0fa
Fix controls for lines while scaling
2014-07-11 13:24:26 +01:00
Tom French
154b1cf5a3
Fix controls for scaled lines
2014-07-11 13:12:38 +01:00
Tom French
1434daac47
Fix controls for lines without caps
2014-07-11 13:12:13 +01:00
asturur
a453ba83d7
Update ellipse.class.js
...
Fixes border without killing opacity. Opacity need to be moved in render function maybe, not in _render.
2014-07-10 12:09:47 +02:00
Tom French
c40cada006
Merge remote-tracking branch 'upstream/master'
2014-07-09 20:12:38 +01:00
Tom French
23ab51b733
Fixes for stroked objects
2014-07-09 19:51:28 +01:00
Juriy Zaytsev
1663b5644c
Merge pull request #1466 from simvan/IE8-IsVML-issue
...
isVML causing an issue in IE8 when filling in the corners of rectangles
2014-07-09 12:26:38 +02:00
Stefan Kienzle
9ad2279e8a
Revert JSCS tweaks for single-line return statements.
2014-07-08 13:32:58 +02:00
Simon van Lankveld
6df9412bf7
Changing isVML to a function so that the G_vmlCanvasManager can be evaluated when needed instead a single time at the beginning.
2014-07-08 21:49:20 +12:00
Stefan Kienzle
de99a508c2
Make setCursor public.
...
JSCS tweaks.
2014-07-07 16:18:31 +02:00
Tom French
8cf9642fe4
Transform point given to zoomToPoint
2014-07-05 20:18:23 +01:00
Tom French
6b8ce5c1ce
JSHint
2014-07-05 18:06:21 +01:00
Tom French
300de3be0d
Correct rendering of active group
2014-07-04 20:07:04 +01:00
Tom French
d5f8d88bfc
Fix ToSVG scaling
2014-07-04 17:47:25 +01:00
Tom French
ec0dcbfeb0
JSHint
2014-07-04 17:33:37 +01:00
Tom French
f6161f8713
ToSVG respects viewport transformation
2014-07-04 11:29:48 +01:00
Tom French
6fbd5df49c
Fix FromObject
2014-07-04 11:29:48 +01:00
Tom French
42ce906e0d
Fix group coordinates
2014-07-04 11:29:30 +01:00
Tom French
a4129c31e8
Merge remote-tracking branch 'upstream/master'
...
Conflicts:
dist/fabric.min.js
dist/fabric.min.js.gz
dist/fabric.require.js
src/canvas.class.js
2014-07-03 16:02:43 +01:00
Chris Buergi
9a867f893f
Fire 'selection:changed' on IText object.
...
Previously the 'text:selection:changed' was only fired on the canvas, but not on the object.
2014-07-03 10:02:47 +02:00
Stefan Kienzle
6e97a70469
Reset backgroundColor with null value
2014-07-01 18:29:06 +02:00
Chris Buergi
dda68b44dd
Render IText correctly when only fontWeight or fontStyle changes
...
Fixes rendering of characters that only have the styles "fontWeight" and/or "fontStyle" set. Previously _hasStyleChanged() did not detect a change if only one of those two styles have been set.
2014-06-30 16:19:35 +02:00
Juriy Zaytsev
0f2e306a64
Merge pull request #1425 from asturur/use-tag-use
...
Support use tag
2014-06-25 12:25:06 +02:00
asturur
b21820cc6b
Update parser.js
...
Changed getElementsByTagName with queryselectorall, allow to go just on "use" node , but all of them ( getElementsByTagName doesn't , it select just first level of child.
Removed tagname check now useless.
2014-06-25 08:02:42 +02:00
Stefan Kienzle
50e3fd717c
Merge pull request #1427 from asturur/shadow-return-null
...
Update shadow.class.js - `objects.setShadow(null)` removes the sahdow
Closes #1422
2014-06-24 15:48:16 +02:00
asturur
12c2fb82c3
Update shadow.class.js
...
At the end was a bad idea. If we call new fabric.Shadow() we should get a shadow whatever we pass as an argument.
2014-06-24 15:39:31 +02:00
asturur
22b0149e49
Update object.class.js
...
as suggested by Kienz.
2014-06-24 15:38:14 +02:00
asturur
4ccc2c83ba
Update parser.js
...
Moved in a separate function.
Tried to fix sneaky tabs and spaces.
2014-06-24 15:17:59 +02:00
kangax
492253e5ca
JSCS tweaks. Down to 114 failures.
2014-06-24 14:12:17 +02:00
asturur
79d035d27e
Update shadow.class.js
...
Shadow return null if null is passed.
Makes .setShadow(null) works.
2014-06-24 13:16:42 +02:00
asturur
52c9792e15
Use of tag use
...
Deep cloning nodes that should be used before normal document parsing.
2014-06-24 13:12:27 +02:00
asturur
049259cc09
style parsing fix
...
code style should be ok this time
2014-06-22 20:51:04 +02:00
kangax
715fda8e94
Revert "Update path.class.js"
...
This reverts commit 77dd88569d .
2014-06-21 19:23:44 +02:00
kangax
62eb4e39f5
Revert "Build dist"
...
This reverts commit ac006b837f .
2014-06-21 19:15:10 +02:00
kangax
ac006b837f
Build dist
2014-06-21 19:10:20 +02:00
Juriy Zaytsev
48247712c7
Merge pull request #1415 from asturur/master
...
Update path.class.js
2014-06-21 19:07:57 +02:00
asturur
587d527bb8
Update arc.js
...
while investigating why some arcs fails, reduced the number of calls to math.sin and math.cos, not by that much.
2014-06-21 17:45:50 +02:00
asturur
77dd88569d
Update path.class.js
...
Modified path positioning, fixes svg 170, debian logo, change some errors in different errors.
2014-06-21 17:03:54 +02:00
Juriy Zaytsev
713f3ad7b1
Merge pull request #1407 from asturur/master
...
Ellipse positioning fix
2014-06-21 16:30:37 +02:00
asturur
35eebc0376
Update parser.js
2014-06-21 14:22:10 +02:00
asturur
54f5cf11e5
Update parser.js
...
Get rid of error stopping the parser for elements that doesn't have a parent with visible defined.
2014-06-21 14:19:31 +02:00
asturur
8294fd42ab
Update circle.class.js
...
Same kind of modification from ellipse.
2014-06-21 10:37:31 +02:00
asturur
beb3fc205f
Update ellipse.class.js
...
just extra space.
2014-06-21 10:31:04 +02:00
asturur
4729d104c8
Update ellipse.class.js
...
As crazy as it looks like. Translate the ellipse just if it doesn't have a transformMatrix.
I have the feeling that the problem is somewhere else, but i cannot fix it different way.
2014-06-21 10:29:22 +02:00
asturur
1257754d5b
Update circle.class.js
...
Forgot those changes.
2014-06-20 09:17:34 +02:00
asturur
402c2a6f3a
Update ellipse.class.js
...
Fixed some error i could not find but stopped the js to work.
2014-06-20 09:07:35 +02:00
asturur
efa6579450
Update path.class.js
2014-06-19 23:47:21 +02:00
asturur
fd658ce29b
remove path positioning fixes
...
in different branch.
2014-06-19 23:46:06 +02:00
asturur
9c444b4ecb
Path positioning
...
This path positioning change renders correctly the svg 170 ( the many red triangles ) and change the visualization of issue #1363 . Need extensive testing. Consider that viewbox has to be implemented better, so don't take too much negatively the errors on svgs that have viewbox with negative numbers.
if this is not a solution i hope at least it can inspire someone
2014-06-19 23:33:12 +02:00
asturur
2dc5e298a3
Update ellipse.class.js
2014-06-19 21:38:26 +02:00
asturur
66d6b633ba
Update ellipse.class.js
2014-06-19 21:37:33 +02:00
asturur
3f47559589
Start to fix the position of ellipses
...
Till this library won't use ctx.ellipse() this weird transformation will be a huge mess.
This little fix imroves position of not transformed ellipses.
You can see the fixes on the example i will post below.
It needs improvement to work with other transformMatrix.
2014-06-19 21:05:39 +02:00
asturur
190973f6c9
Update ellipse.class.js
...
Always transparency rendering related.
2014-06-19 17:14:36 +02:00
asturur
8482c1c29b
Update polygon.class.js
...
Apply opacity property to poligon class.
2014-06-19 10:42:55 +02:00
asturur
572038b0e5
Update path.class.js
...
apply opacity property on paths.
2014-06-19 10:42:05 +02:00
Tom French
5f8e0ee6ee
Fixes for group coordinates (coordinates now also generated before group is added to canvas)
2014-06-13 11:23:13 +01:00
Tom French
02b0b20343
Zoom overlay and background images
2014-06-12 13:10:42 +01:00
Tom French
b13e5763b6
Calculate group coordinates when initializing
2014-06-12 12:37:20 +01:00
Tom French
cd4d8b2c17
Fix group.hasMoved
2014-06-12 10:13:08 +01:00
Tom French
6924df7154
Replaced viewport-moving functions.
2014-06-06 20:46:34 +01:00
Jim Rodovich
1201cfb1e1
Make closepath commands update current x/y coordinates.
...
Per the SVG spec,
> If a "closepath" is followed immediately by any other command, then
> the next subpath starts at the same initial point as the current
> subpath.
2014-06-06 13:50:54 -05:00
Tom French
8c826a3204
Fixes for controlsAboveOverlay
2014-06-06 17:36:17 +01:00
Jim Rodovich
ff04efdc76
Don't ever draw lines to explicit M/m commands.
...
#1365 converted multiple M/m coordinates to L/l commands when importing paths. The `_render` function was already attempting to connect those coordinates, but that's no longer necessary as the only consecutive M/m commands in `_render` were explicitly defined as M/m commands.
2014-06-06 10:31:54 -05:00
Kienz
c258b08f48
Add IE support for copy / paste events
...
Fix for `cut` event if nothing is selected
2014-06-05 00:56:34 +02:00
Stefan Kienzle
41933ccf20
Merge pull request #1348 from Kureev/copy/paste
...
Copy/Paste from/to external resources
2014-06-05 00:45:17 +02:00
Tom French
ef01083cab
Stray console.log removed.
2014-06-03 08:36:00 +01:00
Kureev Alexey
09836dc2c7
Copy/paste old browsers support check
2014-06-01 21:51:41 +02:00
Tom French
009c5389bf
JSHint, restoring .gitignore
2014-05-31 18:08:33 +01:00
Tom French
b4746e6bf2
Merge remote-tracking branch 'upstream/master'
2014-05-31 17:33:28 +01:00
Tom French
0d8db88e71
Merge remote-tracking branch 'upstream/master'
...
Conflicts:
.gitignore
dist/fabric.js
dist/fabric.require.js
src/brushes/circle_brush.class.js
src/canvas.class.js
src/mixins/canvas_events.mixin.js
src/mixins/object_geometry.mixin.js
src/mixins/object_interactivity.mixin.js
src/shapes/group.class.js
src/shapes/image.class.js
src/shapes/object.class.js
src/shapes/path_group.class.js
src/shapes/text.class.js
2014-05-31 17:29:55 +01:00
Jim Rodovich
6f8444c86a
Convert extra "moveto" coordinates to "lineto" commands.
...
Per the [SVG spec](http://www.w3.org/TR/SVG11/paths.html#PathDataMovetoCommands ):
> If a moveto is followed by multiple pairs of coordinates, the
> subsequent pairs are treated as implicit lineto commands. Hence,
> implicit lineto commands will be relative if the moveto is relative,
> and absolute if the moveto is absolute."
2014-05-30 10:08:03 -05:00
Jim Rodovich
7e8dc3a91f
Fix slow clicks (> 100 ms) focusing previously-deselected IText.
2014-05-27 15:44:58 -05:00
Kureev Alexey
741e8cf43d
Copy/Paste from/to external resources
2014-05-25 18:15:54 +04:00
Stefan Kienzle
a2512b2cd0
Fix IText canvas handler initialization
2014-05-22 10:48:02 +02:00
Jim Rodovich
74b0329abd
Fix error when parsing empty SVG document.
...
And don't forget to call the callback.
2014-05-15 16:31:01 -05:00
Matt Harrison
bfb33fb1f7
Removed 'return this', not needed for private method
2014-05-15 15:18:37 +01:00
Matt Harrison
b7f03b8a6c
Added smoothing option on fabric.StaticCanvas to support setting imageSmoothingEnabled
2014-05-14 09:05:15 +01:00
Stefan Kienzle
cbf59d577c
JSON object without "objects" property throws "TypeError: Cannot read property 'length' of null" - Should now be fixed.
...
Add unit test.
Closes issue #1235
2014-05-13 13:32:55 +02:00
Juriy Zaytsev
91c32d89a7
Merge pull request #1323 from Kienz/issue-1257
...
Initialize "Noise" and "Brightness" filter with 0 instead of 100
2014-05-12 20:50:49 +02:00
Kienz
5ea264ae3d
fabric.Object.setAngle consider different originX/originY values other than "center"
...
Closes issue #1093
2014-05-12 20:36:59 +02:00
Stefan Kienzle
e0ee99caa4
Initialize "Noise" and "Brightness" filter with 0 instead of 100.
...
Closes issue #1257
2014-05-12 16:44:12 +02:00
yuri
99a3a77267
Added Multiply filter
2014-05-12 00:39:02 +03:00
kangax
f5691b4b4f
Set default originX as center. Closes #974
2014-05-09 23:29:11 +02:00
kangax
87b0f2da35
Add support for transparent value in fabric.Color
2014-05-09 22:55:33 +02:00
Juriy Zaytsev
916b35b93d
Merge pull request #1314 from rodovich/round-rect-arcs
...
Use a cubic bezier approximation for rounded rectangle corners.
2014-05-09 00:32:41 +02:00
Juriy Zaytsev
a20e329213
Merge pull request #1317 from rodovich/leading-decimal
...
Be able to parse numbers with no digits before the decimal point.
2014-05-09 00:31:46 +02:00
Jim Rodovich
6a478e6791
Use a cubic bezier approximation for rounded rectangle corners.
...
According to the SVG spec these corners are supposed to be elliptical arcs. HTML canvas does not have methods for elliptical arcs, but a cubic approximation can get within 0.02%.
Using the "magic number" from http://itc.ktu.lt/itc354/Riskus354.pdf .
2014-05-08 14:20:13 -05:00
Jim Rodovich
5b54f83548
Be able to parse viewbox numbers with no digits before the decimal.
2014-05-08 11:28:11 -05:00
Jim Rodovich
ed0b91109d
Be able to parse numbers with no digits before the decimal point.
...
Per the [SVG spec](http://www.w3.org/TR/SVG11/types.html#DataTypeNumber ), non-integer number values do not necessarily have any digits before the decimal point.
2014-05-08 11:20:56 -05:00
Jim Rodovich
95fd97fa63
Perform imported SVG rotations in degrees, per the SVG spec.
...
http://www.w3.org/TR/SVG11/coords.html#TransformAttribute
2014-05-08 10:56:32 -05:00
Jim Rodovich
76314abd95
Optimize for common case of radius 0.
2014-05-07 19:02:18 -05:00
Jim Rodovich
7b4455f29a
Constrain rounded rect radii to half the width & height.
2014-05-07 10:25:34 -05:00
Grzegorz Godlewski
ce786cc3ad
Transform matrix and isInPathGroup fix for images
2014-04-28 21:37:52 +02:00
kangax
9113b27e77
Revert _searchPossibleTargets optimization. Closes #1188
2014-04-24 10:33:33 -04:00
Juriy Zaytsev
c7b4b52981
Merge pull request #1282 from wilsonwc/master
...
Fix for #1237
2014-04-22 14:28:02 -04:00
kangax
314e06db6d
Fix fontWeight parsing
2014-04-18 16:07:59 -04:00
kangax
b3600e62a4
Add support for text-anchor's
2014-04-18 16:07:49 -04:00
Ross Wilson
14338a9559
Fix for #1237
...
Only set crossorigin on the element if something is specified
2014-04-16 13:03:02 -06:00
kangax
c8164959c8
Add support for SVG "visibility: hidden"
2014-04-16 14:05:34 -04:00
kangax
5e385e5ed0
Fix text offsets and size in SVG
2014-04-16 13:39:32 -04:00
kangax
f3b7884827
Add support for "evenodd" fill rule. Closes #1021
2014-04-15 20:09:01 -04:00
kangax
d6a73aa7f5
Make isSameColor cave-insensitive. Closes #1272
2014-04-14 12:17:06 -04:00
kangax
a48ed5b31b
Add support for display=none. Closes #1256
2014-04-10 17:47:36 -04:00
kangax
cfd71e9550
Fix viewBox parsing
2014-04-10 13:57:24 -04:00
kangax
3e06f4127d
Fix typo. Closes #1265
2014-04-09 18:02:20 -04:00
Juriy Zaytsev
63ea7b0c34
Merge pull request #1260 from Webbgaraget/toJSON-currentTransform-bugfix
...
Moves the resetting of _currentTransform.target inside `if (activeGroup)`-block
2014-04-08 17:03:50 -04:00
Anders Lisspers
46100b24bd
Moves the resetting of _currentTransform.target inside if (activeGroup)
...
This solves a problem that occurred if you were transforming (moving, scaling, rotating) a single object
when toJSON()/toObject() was run.
2014-04-03 16:20:05 +02:00
Ken Thompson
fa8bd1f40b
added "_this" reference for setTimeout
2014-03-27 20:49:43 -05:00
kangax
3f14a96c5a
Fix multiplier<1 export
2014-03-13 20:27:42 -04:00
Dennis Eijpe
b8dec2ddf0
Fix event listeners for multi-input devices
2014-03-09 17:14:06 +01:00
Max Kaplan
54f9c0428f
add spaces before {
2014-03-07 17:32:09 -05:00
Max Kaplan
fd38b8f4a4
formatting for fixes
2014-03-07 01:15:56 -05:00
Max Kaplan
6f3f1ff7c9
Fix loadFromJSON 404s breaking fabric (Image)
...
Prevent image 404s in Images from loadFromJSON from breaking everything
trying to get attributes of a source which is null, while passing it
upwards to allow dealing with images which failed to load outside of
Fabric.JS Issue #1079
2014-03-07 01:12:50 -05:00
Max Kaplan
f2943ef2bb
Fix loadFromJSON 404s breaking fabric (Pattern)
...
Prevent image 404s in patterns from loadFromJSON from breaking
everything trying to get attributes of a source which is null, while
passing it upwards to allow dealing with images which failed to load
outside of Fabric.JS
2014-03-07 00:19:35 -05:00
kangax
eb919f9a04
Fix ellipse borders. Closes #1099 Thanks @xnramx
2014-03-06 19:47:55 -05:00
kangax
2acdc7e85b
Fix few bracketless statements. Down to 257 failures on JSCS.
2014-02-27 15:00:42 -05:00
kangax
eb75f4b491
Restore _currentTransform.target after toJSON. Closes #1159
2014-02-27 15:00:42 -05:00
Juriy Zaytsev
e15047016d
Merge pull request #1203 from Webbgaraget/allow-decimals-in-rgba-colors
...
Allow decimals in rgba colors.
2014-02-27 12:41:13 -05:00
Anders Lisspers
11a21f10ee
Allows rgba() colors to have decimals, i.e. rgba(45.2342%, 88.2342%, 83.5%)
2014-02-27 09:17:59 +01:00
Jeff Talbot
918d4dd5de
Initialize variable with the correct name that is actually used
2014-02-24 10:47:22 -06:00
XhmikosR
67e9c8829c
Remove extra commas.
2014-02-23 20:25:23 +02:00
kangax
1d4356008a
Revert scroll detection change.
2014-02-21 15:04:42 -05:00
kangax
52a60769ee
Update docs, specifying ms.
2014-02-20 13:59:27 -05:00
kangax
8e75acf836
Expose cursorMap. Closes #1179
2014-02-19 15:26:07 -05:00
kangax
c85a33752b
Fix iText stealing focus
2014-02-19 15:25:50 -05:00
kangax
0dbf03835d
Fix typo, build dist
2014-02-19 14:59:50 -05:00
Juriy Zaytsev
8f2d29f5d6
Merge pull request #1172 from kreig/patch-1
...
fabric.Object.fillRule support using globalCompositeOperation
2014-02-19 14:44:05 -05:00
kangax
0eed619d98
Make isContainedWithinObject check for equality as well. Closes #1177
2014-02-18 17:07:37 -05:00
kangax
6798111f03
Build distribution
2014-02-18 15:14:06 -05:00
kangax
32368ecbad
Fix require typo
2014-02-18 14:53:59 -05:00
Juriy Zaytsev
7ded46ce7f
Merge pull request #1168 from aspectit/css-scale-new
...
Fix mouse handling if the canvas has been scaled via CSS.
2014-02-18 11:58:29 -05:00
Michael Sievers
3faf5f0bae
Added missing semicolon
2014-02-18 13:44:02 +01:00
Michael Sievers
bd2a235b12
Move ElementsParser instance methods to prototype
2014-02-18 13:44:01 +01:00
Michael Sievers
d44bde4605
Added semicolon to satisfy jshint
2014-02-18 13:43:20 +01:00