Andrea Bogazzi
01d8392ae3
Update to 1.7.3 ( #3603 )
...
* build v173
2017-01-08 11:07:41 +01:00
Andrea Bogazzi
5ed0b83d45
fix tests ( #3602 )
2017-01-03 01:08:14 +01:00
Andrea Bogazzi
ab68d3a4ab
Reuse come code between object and canvas ( #3600 )
...
* try to reuse code
* some fixes
* fixed errors
* Update util.js
2017-01-01 18:07:56 +01:00
Andrea Bogazzi
88b9f7ef21
Changes to canvas svg export ( #3599 )
...
* change to parser
* fixed broken function;
* some changes to code reuse
2017-01-01 16:11:54 +01:00
Andrea Bogazzi
edb90be547
WIP Patternload ( #3598 )
...
* make pattern load async
* made all object loadable asyncronously ( filters )
2016-12-30 22:41:16 +01:00
Andrea Bogazzi
1cb047bb66
fix space for cache canvas for thin lines ( #3596 )
...
* fix space for cache canvas
* add the fixed padding to cache canvas
* update group test
2016-12-30 18:19:18 +01:00
Andrea Bogazzi
3c0fe81b77
be more strict on when not to re render ( #3594 )
...
* add more check to first return false
* fix ;
* fix ; in tests
* fix test
2016-12-28 13:22:23 +01:00
Andrea Bogazzi
700ee14ff5
send up to group the change on dirty flag ( #3564 )
...
* send up to group the change on dirty flag
* added tests
2016-12-26 18:54:53 +01:00
Andrea Bogazzi
549ea1776b
fixes deep cloning of style ( #3502 )
...
* fixes deep cloning of style
* better fix and tests
2016-12-06 09:50:51 +01:00
Andrea Bogazzi
b775323424
fix includeDefaultValues ( #3497 )
...
* fix includeDefaultValues
* Update group.class.js
* Update group.js
* Update group.js
2016-12-05 14:51:06 +01:00
Andrea Bogazzi
8a6b17cac6
add custom props to pattern and gradient ( #3477 )
2016-12-01 23:39:25 +01:00
Andrea Bogazzi
a4a8f71fd7
Release 170 ( #3437 )
...
* build 170
* fix default values
* fix text not rendering
* other fixes
* finished fixing
2016-11-21 12:09:25 +01:00
Andrea Bogazzi
2c814db928
Better deep object cloning and savestate check ( #3434 )
...
* fixed deep cloning with function removed array ordering
* added tests
2016-11-20 19:11:20 +01:00
Andrea Bogazzi
9422fd39be
Objectcaching ( #3317 )
2016-11-13 21:00:10 +01:00
Marcin
f26a2dc8aa
Word widths on justified line of text were calculated incorrectly. ( #3408 )
...
* Calculation of word widths on justified line will now correctly take styles into account
* fix lint
2016-11-13 00:35:40 +01:00
Andrea Bogazzi
c5f60743f5
To object origin ( #3416 )
...
* deleted double default cleaning
* rework object export
* fixed tests
* fix fabric2 api change.
* removed unused var
2016-11-12 23:54:42 +01:00
Andrea Bogazzi
1278677a97
includeDefaults for background and overlay ( #3415 )
...
* reuse code for _toObject
* added small test
2016-11-12 18:20:20 +01:00
Andrea Bogazzi
28c2654a23
Ver166 ( #3350 )
...
* ver 166
2016-10-16 23:40:02 +02:00
Timo Höpfner
37976d55b3
FIX for toDataURL cropping ( #3335 )
...
* FIX for toDataURL cropping
* Unit test for toDataURL cropping
2016-10-11 11:05:20 +02:00
Andrea Bogazzi
8783b2132c
change how itext handle removal handlers ( #3332 )
...
* change how itext handle removal handlers
* fix test lint
2016-10-09 09:25:43 +02:00
Jeremy Shipman
d0c32acf7f
Introduced testem test runner ( #3327 )
...
* Introduced testem test runner.
Install testem via 'npm install -g testem'
Run testem via 'testem'
* Fixed fixture image paths in tests
2016-10-05 09:12:26 +02:00
Andrea Bogazzi
49c7858596
changed to dataurl export ( #3314 )
...
* changed to dataurl
2016-10-02 19:37:20 +02:00
Andrea Bogazzi
b46c5b4ca3
remove unused function in staticCanvas ( #3313 )
...
* remove unused function in static
* fixed svg export
2016-10-02 12:12:42 +02:00
Andrea Bogazzi
cd4c465f4c
fix text minimum dimensions ( #3312 )
...
* fix text dim
* add tests
2016-10-02 11:00:17 +02:00
Andrea Bogazzi
43813adbdf
Update clear methd ( #3305 )
...
* Update clear method
2016-10-01 14:23:27 +02:00
Andrea Bogazzi
bda846b41a
reverted font changes ( #3276 )
2016-09-19 09:44:42 +02:00
Andrea Bogazzi
07094a4ec5
fixed behaviour of shift click and shift keys ( #3274 )
...
removed some glitches, removed duplicate code
2016-09-18 23:22:49 +02:00
Andrea Bogazzi
437eea118f
allow for deep state check and save ( #3262 )
2016-09-15 12:49:25 +02:00
Andrea Bogazzi
c34027cdfd
fixed selection, added test ( #3254 )
2016-09-11 21:28:48 +02:00
Andrea Bogazzi
aa53e08a6b
isContainedWithinObject on coords instead of bounding rect ( #3252 )
...
* update function and test
* fix interset with object and overlap
2016-09-11 16:01:23 +02:00
Andrea Bogazzi
5d0bf5a166
add custom properties to bg and overlay ( #3250 )
2016-09-11 12:40:57 +02:00
Andrea Bogazzi
08f60adbea
switch to eslint ( #3229 )
...
* switch to eslint 2.x
* fix src
* fix tests
2016-09-10 15:14:23 +02:00
Asturur
4fc347e73d
disable failing test in nodejs
2016-09-01 22:16:30 +02:00
Asturur
a1e5d518bf
fixed tests for browser
2016-09-01 08:31:56 +02:00
Andrea Bogazzi
bba8b3a705
bring callback toapplyfilters ( #3210 )
...
* bring callback toapplyfilters
2016-08-28 22:42:41 +02:00
neopheus
2570b548a7
Lerp - lock t between 0 and 1 ( #3188 )
...
* lock t between 0 and 1
* Add New Unit Test for lerp (min, max t)
2016-08-26 15:41:22 +02:00
neopheus
a6bc04ce8d
Add Hex Color RGBa ( #3202 )
...
* Add RGBa (8 digits, #FF5544CC, 4 digits #F54C);
2016-08-26 10:46:14 +02:00
Andrea Bogazzi
17d7f929d5
Update collection.mixin.js ( #3174 )
...
* Update collection.mixin.js
2016-08-22 11:51:59 +02:00
Andrea Bogazzi
702126eb85
Change getFontDeclaration ( #3191 )
...
* Change getFontDeclaration
2016-08-22 11:27:34 +02:00
Kyle Herock
181cdec80c
give getSrc a better role in this class. ( #3189 )
2016-08-22 10:43:17 +02:00
Asturur
3938c83080
build dist
2016-08-18 09:34:02 +02:00
Andrea Bogazzi
46624d3f50
Textspacing ( #3097 )
...
Introduce charspacing.
2016-08-14 23:19:42 +02:00
Andrea Bogazzi
cf5f327f55
Extending test coverage ( #3148 )
...
* adding tests
2016-08-14 11:05:44 +02:00
Andrea Bogazzi
a2b4ef564b
Add enableRetinaScaling to cloneAsImage ( #3147 )
...
* Add enableRetinaScaling to cloneAsImage
* added test
2016-08-08 07:17:39 +02:00
Andrea Bogazzi
ad7e56422a
Get pointer change ( #3144 )
...
* fix normalized pointer
* more tests
2016-08-07 17:00:58 +02:00
Andrea Bogazzi
9e4ed9565f
fix cursor left without shift ( #3135 )
...
* fix cursor left and added missing test
2016-07-31 23:32:10 -04:00
Andrea Bogazzi
d93f91febc
Start to cleant setSelections ( #3119 )
2016-07-31 12:21:52 -04:00
Andrea Bogazzi
948019f622
add object scaling function ( #3134 )
...
* add object scaling function
* Update object.class.js
2016-07-30 12:04:38 -04:00
Andrea Bogazzi
9e5f3ab7b9
numeric origin ( #3121 )
...
* Numeric object origin add tets
2016-07-25 10:07:50 -04:00
Andrea Bogazzi
7dad30c156
support style merging from css ( #3114 )
...
* supportstylemerging
* added test
2016-07-18 08:56:40 +02:00
Andrea Bogazzi
6601af9340
gradientInfinity ( #3082 )
...
* gradientInfinity
* updated tests
2016-07-17 10:31:51 +02:00
Andrea Bogazzi
72a6c273bf
remove lastRendered logic ( #3111 )
2016-07-17 08:35:18 +02:00
Andrea Bogazzi
51995a73d8
fix perPixelTargetFind ( #3109 )
2016-07-16 17:25:34 +02:00
Andrea Bogazzi
98f2d1b3dd
ignore svg namespace ( #3081 )
...
* ignore svg namespace
2016-07-03 23:52:25 +02:00
Andrea Bogazzi
725d48771f
Bump to 1.6.3 ( #3080 )
2016-07-03 13:52:08 +02:00
Andrea Bogazzi
4433809cb1
fix lineheight < 1 ( #3078 )
2016-07-02 19:23:36 +02:00
Andrea Bogazzi
be8dfae17e
Various fixes ( #3057 )
...
Fixes hidden textarea positioning, rendering fixes during canvas zoom.
2016-06-19 23:33:54 +02:00
Andrea Bogazzi
77dab21155
Additional method for centering objects ( #3044 )
2016-06-11 14:10:20 +02:00
Andrea Bogazzi
9ef51ff77d
load from options after the load backroung in the callback ( #3029 )
...
moved the load of the custom properties load after the callback
Added tests
2016-06-05 17:08:19 +02:00
Andrea Bogazzi
b52ca6ff55
add some failing tests on canvas ( #3025 )
2016-06-02 10:58:02 +02:00
Andrea Bogazzi
0c6a665bcb
Target in group ( #2997 )
...
Added gorup.subTargetCheck, fixed transparent target selected on mouse up, fix text grouping while editing
2016-05-31 11:41:02 +02:00
Andrea Bogazzi
d4e723e49d
update area clearing during rendering ( #3016 )
...
* update area clearing during rendering
* register event in correct way
* re render selection or cursor only if selectionStart changes
2016-05-30 23:22:55 +02:00
Andrea Bogazzi
dd3e6a81e2
do not set background or overlay image if the load fails. ( #3003 )
2016-05-23 14:53:09 +02:00
Andrea Bogazzi
eb9b7f45b9
Add ID to svg export ( #2993 )
2016-05-21 15:07:04 +02:00
Andrea Bogazzi
f425966162
give text its own dimension function ( #2992 )
...
* give text its own dimension function
* updated tests after verifying that the svg import from element is better than previous
2016-05-21 13:05:59 +02:00
Andrea Bogazzi
143c0758a7
add excludeFromExport property ( #2976 )
...
* add excludeFromExport property
* added test for SVG and JSON
2016-05-17 12:56:34 +02:00
Andrea Bogazzi
a0ba49ea5d
Use reviver also for background and overlay image in svg export ( #2975 )
...
* Use reviver also for background and overlay image
2016-05-17 02:56:25 +02:00
Andrea Bogazzi
cb0c71e1fe
* Remove rounding for minScaleLimit, added test.
...
* Remove rounding for minScaleLimit
2016-05-14 18:38:48 +02:00
Andrea Bogazzi
56ef2d2612
Update svg export to do not output colors in rgba format.
2016-05-09 12:41:48 +02:00
Andrea Bogazzi
a9cf96b9be
fix imageToObject with resize filters ( #2954 )
...
width and height get stored as before filtering in case of filters with type resize.
2016-05-09 12:11:48 +02:00
Andrea Bogazzi
e032cae7d1
Set line dash in external function ( #2928 )
...
* move dashed code in function for later reuse in controls
* Added functionTest
2016-05-02 11:33:09 +02:00
Andrea Bogazzi
17775fa567
Make iText fires object:modified on text change on exit editing ( #2927 )
...
added some tests also.
2016-05-02 08:25:03 +02:00
Andrea Bogazzi
015af249fa
Update canvas loadFromJSON to restore includeProperties ( #2921 )
...
added test also.
2016-04-30 13:51:12 +02:00
Andrea Bogazzi
940db388a8
Use sendToBack, bringToFront, bringForward, sendBackwards for multiple selections ( #2908 )
...
Use sendToBack, bringToFront, bringForward, sendBackwards for activeGroups.
Visually there is no effect if preserveObjectStacking is set to false.
2016-04-28 11:21:48 +02:00
Andrea Bogazzi
32b963bc0c
perPixelTargetFind shiftClick deselection fix
...
Make possible to shiftclick and remove object from active group while using perPixelTargetFind
2016-04-23 02:00:24 +02:00
Andrea Bogazzi
fd95729692
Safer event deleting ( #2883 )
...
made handler removal safer.
Add edge cases for event handler adding and deleting.
2016-04-14 00:05:46 +02:00
Andrea Bogazzi
a5192e487f
Fix svg parsing/rendering regressions ( #2887 )
...
* fix regression in svg parsing
* Added tests to catch regression
* Update parser.js
* Update parser.js
2016-04-13 01:44:15 +02:00
Andrea Bogazzi
c6815892f3
Check presence of originalElement before taking src ( #2878 )
...
* check presence of originalElement before taking src
* add test for image with null element
* Update image.js
* Update image.js
2016-04-11 15:30:35 +02:00
Andrea Bogazzi
2df1c1d37f
Canvas dispose unwrap the lowercanvas element back to its original place
...
Added unwrap logic to canvas.dispose()
Added tests.
2016-04-09 16:02:42 +02:00
Andrea Bogazzi
4dd392ca56
Added tests for flipped object
2016-03-27 22:58:02 +02:00
Juriy Zaytsev
3adaec2aae
Merge pull request #2797 from asturur/svg-text-f
...
Add font faces to svg
2016-02-18 12:15:53 -05:00
Andrea Bogazzi
8ec69e19de
Update itext.js
2016-02-18 12:19:40 +01:00
Andrea Bogazzi
c16b525d41
Update itext.js
2016-02-18 12:01:50 +01:00
Andrea Bogazzi
c04eb03acb
Update itext.js
2016-02-18 11:48:01 +01:00
Andrea Bogazzi
99ef58ad78
Update canvas_static.js
2016-02-08 15:25:10 +01:00
Juriy Zaytsev
c79e872ea2
Merge pull request #2712 from asturur/transformMatrix
...
Restore green check on tests
2016-02-07 17:37:44 -05:00
Andrea Bogazzi
84f75b5e9f
Update canvas_static.js
2016-02-07 18:36:28 +01:00
Andrea Bogazzi
4030b18d9f
add test for dataurl
2016-02-07 18:31:05 +01:00
Andrea Bogazzi
dfc574c099
Fix tests removing extra context.Restore();
2016-02-07 18:23:14 +01:00
Andrea Bogazzi
a8b56e783e
Update group.js
2015-12-26 14:27:37 +01:00
Andrea Bogazzi
917e7afa6a
Update parser.js
2015-12-26 14:11:10 +01:00
Juriy Zaytsev
8c2a882e64
Fix some unit tests
2015-12-24 11:22:00 -05:00
Andrea Bogazzi
127df5f000
Update parser.js
2015-12-22 01:34:45 +01:00
Juriy Zaytsev
0255ce9892
Merge pull request #2674 from asturur/justify-text-to-svg
...
Justify text to svg
2015-12-10 12:10:39 -05:00
Andrea Bogazzi
f63cd9862f
Update text.js
2015-12-10 09:36:24 +01:00
Juriy Zaytsev
9fbd20a076
Merge pull request #2671 from asturur/shadow_to_s
...
Fix shadow to SVG
2015-12-07 17:00:33 -05:00
Andrea Bogazzi
27ee9d3f70
add test for rotated object
2015-12-07 22:40:24 +01:00
Andrea Bogazzi
025f02397e
update test for non delegated opacity
2015-12-06 20:46:32 +01:00
Andrea Bogazzi
842af5d993
change svg header to use viewbox
2015-11-22 14:32:11 +01:00
Juriy Zaytsev
ae1ee007a3
Merge pull request #2568 from asturur/fix-shadow
...
Update shadow.class.js
2015-11-13 11:04:51 +01:00
Andrea Bogazzi
4a979633e4
Update canvas_static.js
2015-11-13 00:45:48 +01:00
Andrea Bogazzi
0ea43f9175
Update image.js
2015-11-13 00:32:33 +01:00
Andrea Bogazzi
701a62053d
make group transform support general transforms
2015-10-24 15:38:46 +02:00
Andrea Bogazzi
63c4187939
Update shadow.js
2015-10-21 11:32:48 +02:00
Andrea Bogazzi
436ce5a70c
add test for gradient Transform
2015-09-19 08:27:28 +02:00
Andrea Bogazzi
cda0611326
Add support for skew objects.
2015-09-17 14:22:12 +02:00
Andrea Bogazzi
7a8c69e0ff
Merge pull request #35 from kangax/master
...
synct to master
2015-09-02 21:26:53 +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
Andrea Bogazzi
3520a51d21
Fix getElementByID polyfill and added failing test for it
2015-08-21 14:44:23 +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
c3b1af63e0
add failing test for missing stop attribute
2015-08-12 14:23:42 +02:00
Andrea Bogazzi
5966b5e319
toObject returns deep cloning if necessary
2015-08-11 11:10:51 +02:00
Andrea Bogazzi
2118ff5042
Update rect.js
2015-08-11 03:12:38 +02:00
Andrea Bogazzi
0841c886b0
Update object.js
2015-08-10 01:38:28 +02:00
Andrea Bogazzi
0edd147b0e
Update group.class.js
2015-08-08 14:30:24 +02:00
Juriy Zaytsev
bd09021b3b
Fix tests
2015-07-20 13:53:38 -04:00
Andrea Bogazzi
f805e57297
Update rect.js
2015-07-20 12:57:13 +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
e41088329d
Update shadow.class.js
2015-07-17 14:13:21 +02:00
Andrea Bogazzi
d9d8c715fd
Update parser.js
2015-07-17 09:48:46 +02:00
Juriy Zaytsev
61d4f4d59c
Merge pull request #2344 from asturur/emptypath
...
Allow to create path with empty path
2015-07-15 11:30:48 -04:00
Andrea Bogazzi
d36945f6e2
Update path.class.js
2015-07-15 16:50:25 +02:00
Juriy Zaytsev
0e154be1a3
Fix tests
2015-07-14 16:45:29 -04:00
Juriy Zaytsev
121c7faddd
Fix tests linting
2015-07-10 14:34:15 -04:00
Andrea Bogazzi
7df9caa17a
Update parser.js
2015-06-26 12:33:10 +02:00
Andrea Bogazzi
f998fa496e
Update test.js
2015-06-07 10:02:48 +02: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
452383594a
Update parser.js
2015-06-02 23:05:54 +02:00
sapics
79db396d3a
fix unit test error in google chrome
2015-05-23 08:47:42 +09:00
Andrea Bogazzi
286e018e3a
Update itext.js
...
fix test for browser
2015-05-18 22:58:21 +02:00
kangax
316861cd57
Fix pattern test
2015-05-18 12:11:56 -04:00
kangax
c35ec9459d
Fix fabric.Circle#setRadius not returning circle. Closes #2196
2015-05-18 11:15:09 -04:00
Ulrich Sossou
4603ec9581
Replace empty values of stroke-dasharray in unit tests by 'none'
2015-05-18 07:00:36 +01: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
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
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
5259cdbb2e
add unit test for IText functions insertNewlineStyleObject and shiftLineStyles
2015-05-12 11:57:41 +02:00
Andrea Bogazzi
1f84378565
obect stroke restoring was missing
2015-05-09 11:05:05 +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
afcf7c1285
Update group.js
2015-05-05 12:53:55 +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
Juriy Zaytsev
91897de495
Merge pull request #2153 from asturur/iTextGlitch
...
I text glitches fix
2015-04-29 13:17:17 +02:00
Andrea Bogazzi
4bed22f4a9
iText clean up and style fixes
2015-04-29 08:27:56 +02:00
sapics
0e18219bda
remove first start() call
2015-04-28 14:13:06 +09:00
Juriy Zaytsev
6c92681cf9
Merge pull request #2136 from sapics/fix_unit_test_shadow
...
Fix unit test for shadow
2015-04-23 12:40:08 +02:00
kangax
94f7035624
Lint unit tests and fix errors/warnings
2015-04-23 11:47:35 +02:00
sapics
0d23eb8c21
fix test/unit/canvas.js just remove character "c"
2015-04-22 20:37:50 +09: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
Andrea Bogazzi
bd2f99b271
Update group.js
2015-04-22 06:37:49 +02:00
sapics
c15e40117c
Fix unit test of shadow
2015-04-21 14:23:04 +09:00
Andrea Bogazzi
a5e9ae8372
Added test for object sorting
2015-04-21 00:45:46 +02:00
sapics
60d7495608
unit test for detect path initialize bug
2015-04-16 17:01:06 +09:00
Incuuu
4907861edb
Add tests for setBackgroundImage options parameter
2015-04-07 13:38:26 +04: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
Andrea Bogazzi
08a1c6b418
Fix path group toSvg method.
...
now respect current originX and originY
2015-03-01 23:27:17 +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
asturur
6a6b74aae1
Fixes svg rendering rules
2015-02-03 14:24:11 +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
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
Andrea Bogazzi
6605880f4b
Update shadow.js
2015-01-18 17:29:37 +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
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
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
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
Andrea Bogazzi
b9f37586b3
Update text.js
2014-10-26 22:42:55 +01:00
Andrea Bogazzi
4054b99fe5
Update group.js
2014-10-21 12:18:14 +02:00
Andrea Bogazzi
cf6030d9db
Update group.js
2014-10-20 18:11:25 +02:00
Andrea Bogazzi
9ebd84bd39
Update group.js
2014-10-20 17:28:26 +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
Andrea Bogazzi
49f449ee4f
Update image.class.js
2014-10-11 21:56:38 +02:00
Juriy Zaytsev
77183cb2d2
Merge pull request #1731 from asturur/fix-travis
...
Block qunit version to 0.7.2 to fix Travis hanging.
2014-10-07 11:21:04 +02:00
Andrea Bogazzi
e5e1aef378
Update parser.js
...
Fix parser test after change in skew matrix.
We should think about using some toFixed with number of decimals ( 6 at least ? )
2014-10-07 10:58:44 +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
ebe4bd7286
Update line.class.js
2014-09-30 23:13:34 +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
10666e9006
Update parser.js
2014-09-26 14:03:11 +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
Andrea Bogazzi
af1138a686
Divided FillRule from globalCompositeOperation
2014-09-23 08:53:56 +02:00
Andrea Bogazzi
18a23cf690
Update parser.js
2014-09-21 01:16:59 +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
0a6600ecb7
Update path.js
2014-09-18 14:54:36 +02:00
Andrea Bogazzi
0a958de01e
Update canvas_static.js
2014-09-18 14:54:16 +02:00
Andrea Bogazzi
8aae7dec4a
Update canvas.js
2014-09-18 14:53:08 +02:00
Andrea Bogazzi
2f1b412f32
Update circle.js
...
Added start and end Angle to tests.
2014-09-18 01:34:32 +02:00
Joe Rozek
d2b146c21c
support for preserving object stacking
2014-09-04 12:01:48 -07:00
Andrea Bogazzi
c1bd4ea4a3
Update polyline.js
2014-09-03 22:40:45 +02:00
Andrea Bogazzi
2e6fb2c411
Update polygon.js
2014-09-03 22:39:54 +02:00
Andrea Bogazzi
a9e2211780
Update gradient.js
2014-08-16 08:16:12 +02:00
Juriy Zaytsev
4c7ad6a82d
Merge pull request #1567 from asturur/SVG-EXPORT
...
Better SVG export
2014-08-07 20:42:56 +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
3064d5e569
Updated test for text
2014-08-05 13:22:12 +02:00
Andrea Bogazzi
0538fe68c9
Fixes tests for rects
2014-08-05 13:19:53 +02:00
Andrea Bogazzi
78a5221143
Mirrored tests from polygons
2014-08-05 13:19:07 +02:00
Andrea Bogazzi
c5a5ce3ce9
fixed differences for new transforms
2014-08-05 13:16:12 +02:00
Andrea Bogazzi
99cb87bfca
fixes test for ellipses
2014-08-05 13:15:10 +02:00
Andrea Bogazzi
d2da5956cd
fix tests for circle
2014-08-05 13:11:59 +02:00
Andrea Bogazzi
8500f28f8f
removed x and y no more used for rect
2014-08-05 13:08:40 +02:00
Andrea Bogazzi
491b4d1c33
Fixed test for rect, x and y are no more used.
2014-08-05 13:07:01 +02:00
Jim Rodovich
9b74583532
fabric.Polygon.fromElement() shouldn't throw an error.
...
It can just return `null`.
2014-08-04 15:40:02 -05:00
Andrea Bogazzi
b27cba8921
Update gradient.js
...
Add test for imported transform
2014-08-03 20:55:04 +02:00
Bnaya Peretz
f7fa1a874a
tests
2014-07-31 18:19:19 +03:00
Andrea Bogazzi
78561cc257
Update parser.js
2014-07-26 19:34:30 +02:00
Andrea Bogazzi
4d74abaa53
Update parser.js
2014-07-26 19:19:59 +02:00
asturur
93aafb9d7a
Update parser.js
...
modified test.
2014-07-21 06:48:49 +02:00
asturur
6ceb1123b6
Update util.js
2014-07-18 19:54:50 +02:00
asturur
c346d297ad
Update util.js
...
Any svg return a pathgroup
2014-07-18 19:43:42 +02:00
asturur
ddbcb47d23
Update text.js
...
So tests don't fail.
2014-07-18 18:03:21 +02:00
kangax
17bf29616d
Try fixing char width for travis again
2014-07-18 14:43:54 +02:00
kangax
7de2aedf7c
Try fixing char width for travis again
2014-07-18 14:33:50 +02:00
kangax
3e294fee94
Try fixing char width for travis
2014-07-18 14:27:25 +02:00
kangax
3df3c396a2
Fix unit tests
2014-07-18 13:11:18 +02:00
kangax
da0037447b
Change height in itext test
2014-07-18 12:19:51 +02:00
Stefan Kienzle
306a040fef
Fix initialization of viewportTransform array
...
Add unit tests
JSDoc tweaks
2014-07-17 13:28:55 +02:00
Paul Kaplan
a1cde528dc
Add test for whitespace between commas
2014-07-14 09:57:14 -05:00
asturur
a95897313f
Update object.js
...
i need bigger spacebar.
or better i need to stick something on comma key that press even space after it.
Something that can bend down in one direction but not in the other, so when i press comma it push spacebar down, and when i press spacebar i don't fire a comma!
2014-06-24 15:34:18 +02:00
asturur
62d281bd3d
Update object.js
...
I'm not sure, i'm sorry i tried to guess.
2014-06-24 14:12:39 +02:00
Jim Rodovich
7d0c9ebb28
Add spec for multiple M/m commands being preserved.
...
This wasn't ever broken, but taken with the previous spec it makes more clear that there's a difference between `M 1,2 3,4` and `M 1,2 M 3,4`.
2014-06-06 10:37:24 -05:00
Jim Rodovich
ac095b9bd7
Add spec for multiple M/m coordinates being converted to L/l.
2014-05-30 10:16:02 -05: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
Stefan Kienzle
e0ee99caa4
Initialize "Noise" and "Brightness" filter with 0 instead of 100.
...
Closes issue #1257
2014-05-12 16:44:12 +02:00
kangax
9b964b7fbf
Fix unit tests
2014-05-12 11:23:48 +02:00
kangax
87b0f2da35
Add support for transparent value in fabric.Color
2014-05-09 22:55:33 +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
849cfde78d
Add test for parsing numbers with no digits before the decimal point.
2014-05-08 14:08:17 -05:00
Jim Rodovich
63fa09e8ee
Update unit tests to use degrees for imported SVG rotations.
2014-05-08 13:53:00 -05:00
Ross Wilson
2c8641ff6d
test build
2014-04-21 11:29:18 -06:00
Ross Wilson
89f784d27f
Update test for fix of #1237
2014-04-21 11:13:26 -06:00
kangax
c8164959c8
Add support for SVG "visibility: hidden"
2014-04-16 14:05:34 -04:00
kangax
d6a73aa7f5
Make isSameColor cave-insensitive. Closes #1272
2014-04-14 12:17:06 -04:00
Anders Lisspers
f5ba67541e
Adds test case for rgba percentages with decimals
2014-02-27 10:19:42 +01:00
XhmikosR
d8b1eca014
Trim trailing spaces.
2014-02-23 20:16:20 +02:00
Maciej Filip Szkodziński
7d72d0500f
Removed Line._getCenterToCenter helpers
...
Pre-rendering context translation for lines in path-groups uses the
pre-existing getCenterPoint.
Removed tests for removed code.
2014-02-05 17:33:20 +01:00