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
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
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
Kureev Alexey
09836dc2c7
Copy/paste old browsers support check
2014-06-01 21:51:41 +02: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