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
8d6f7addec
Update .travis.yml
2014-08-07 16:11:48 +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
319c99a2f3
Update .travis.yml
...
Chi lascia la strada vecchia per quella nuova, sa quello che lascia ma non sa quello che trova.
2014-08-06 23:48:41 +02: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
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
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
Juriy Zaytsev
686fa25ce9
Merge pull request #1564 from rodovich/empty-polygon-points
...
Fix importing polygons with empty `points` attributes
2014-08-05 00:54:36 +02:00
Jim Rodovich
642a577ba1
Check for points existing before trying to do anything with them.
2014-08-04 15:41:39 -05: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
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
Andrea Bogazzi
b27cba8921
Update gradient.js
...
Add test for imported transform
2014-08-03 20:55:04 +02:00
kangax
818ab118b3
JSCS changes; Prepare for JSCS ignore support; down to 51 failures
2014-08-03 16:47:27 +02:00
kangax
922caa74c2
Version 1.4.10
2014-07-31 20:39:15 +02:00
Juriy Zaytsev
1d97a33299
Merge pull request #1505 from Bnaya/enhanced-set-dimensions
...
Enhanced set dimensions
2014-07-31 18:16:15 +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
Juriy Zaytsev
d720ea5fd6
Merge pull request #1544 from mgalang/master
...
Add image blend filter
2014-07-30 20:02:20 +02:00
Marc Galang
47d06c0cad
Use createCanvasElement instead of createElement. Fix indentations.
2014-07-30 20:04:57 +03:00
Juriy Zaytsev
1427a3a914
Merge pull request #1545 from sorich87/hotfix/guidelines-broken-by-origin-and-zoom
...
Fix aligning and centering guidelines broken by origin and zoom
2014-07-30 13:47:07 +02:00
Juriy Zaytsev
0477eaf1dd
Merge pull request #1546 from sorich87/feature/editorconfig
...
Add editorconfig (http://editorconfig.org/ ) to enforce coding style
2014-07-30 13:45:45 +02:00
Ulrich Sossou
3e1cde60bf
Add editorconfig ( http://editorconfig.org/ ) to enforce coding style
2014-07-30 08:57:54 +01:00
Ulrich Sossou
28dd7ec582
Use rounded values to compare position of object to center of the canvas because object x and y after zoom may not be integers
2014-07-30 08:52:25 +01:00
Ulrich Sossou
f45cff11c5
Fix guidelines drawing when canvas zoomed
2014-07-30 08:50:18 +01:00