Commit graph

2090 commits

Author SHA1 Message Date
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
Juriy Zaytsev
81d2f2b21e Merge pull request #1397 from tmpvar/browserify-support
Allow browserify to run over fabric.js
2014-06-18 23:35:47 +02:00
Elijah Insua
4deb11d2dc ignore canvas/jsdom/xmldom when browserifying 2014-06-17 20:04:30 -07:00
kangax
069f6412b0 Update istanbul 2014-06-16 16:24:51 +02:00
kangax
03b2e73429 Try to update node-canvas again 2014-06-08 18:53:26 +02:00
kangax
1c6dc804e6 Version 1.4.7 2014-06-08 12:37:12 +02:00
kangax
43a4fe6b15 Build dist 2014-06-07 11:07:43 +02:00
Juriy Zaytsev
a6aca98fe0 Merge pull request #1381 from rodovich/closepath
Make closepath commands update current x/y coordinates.
2014-06-07 01:49:42 +02:00
kangax
29f9033c96 Build dist 2014-06-07 01:04:58 +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
Juriy Zaytsev
a11e69de47 Merge pull request #1380 from rodovich/explicit-moveto
Don't draw lines for consecutive explicit "moveto" commands
2014-06-06 20:25:33 +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
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
Stefan Kienzle
feef3c2ea6 Merge pull request #1374 from bountysource-support/patch-1
Add Bountysource badge to README
2014-06-05 09:49:25 +02:00
bountysource-support
f939d1bca3 Add Bountysource badge to README
Because you have some open bounties, we thought you might want to display this badge in your README!
2014-06-04 16:20:16 -07:00
Kienz
bdc4a7a943 no message 2014-06-05 01:00:27 +02: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
Juriy Zaytsev
eba7cec18c Merge pull request #1365 from rodovich/implicit-lineto
Convert extra "moveto" coordinates to implicit "lineto" commands
2014-05-31 11:49:32 +02:00
Jim Rodovich
ac095b9bd7 Add spec for multiple M/m coordinates being converted to L/l. 2014-05-30 10:16:02 -05: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
Juriy Zaytsev
bda5ab8611 Merge pull request #1354 from rodovich/slow-click
Fix slow clicks (> 100 ms) focusing previously-deselected IText.
2014-05-28 18:04:47 +02: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
Juriy Zaytsev
7fad64242c Merge pull request #1347 from Kureev/bower.json
Add more ignore files in bower.json
2014-05-25 15:39:48 +02:00
Kureev Alexey
8e313b190e bower.json: add to ignore build.js, build_all, build.sh, create_build_scripts.js, test.js and HEADER.js files 2014-05-25 17:36:06 +04:00
Kureev Alexey
7dffd480fc remove ./**.* filter 2014-05-25 17:20:28 +04:00
kangax
53bf9d3213 Version 1.4.6 2014-05-25 15:12:32 +02:00
Kureev Alexey
61df766476 bower.json: missed files fix 2014-05-25 17:11:16 +04:00
Juriy Zaytsev
447a510a56 Merge pull request #1342 from Kienz/issue-1341
Fix IText canvas handler initialization
2014-05-22 17:23:14 +02:00
Stefan Kienzle
a2512b2cd0 Fix IText canvas handler initialization 2014-05-22 10:48:02 +02:00
Juriy Zaytsev
926f5242d4 Merge pull request #1335 from rodovich/empty-svg
Fix error when parsing empty SVG document.
2014-05-18 15:26:09 +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
kangax
a8b5bb0993 Update CHANGELOG 2014-05-15 16:28:21 +02:00
Stefan Kienzle
d3faed1c87 Merge pull request #1332 from mtharrison/feature-image_smoothing_setting
Removed 'return this', not needed for private method
2014-05-15 16:21:47 +02:00
Matt Harrison
bfb33fb1f7 Removed 'return this', not needed for private method 2014-05-15 15:18:37 +01:00
Juriy Zaytsev
c685f8e3f2 Merge pull request #1328 from mtharrison/feature-image_smoothing_setting
Add imageSmoothingEnabled option on fabric.StaticCanvas
2014-05-15 15:56:25 +02:00
Matt Harrison
b7f03b8a6c Added smoothing option on fabric.StaticCanvas to support setting imageSmoothingEnabled 2014-05-14 09:05:15 +01:00
Stefan Kienzle
d86ec421fd Update CHANGELOG.md 2014-05-13 14:49:14 +02:00
Stefan Kienzle
3e131c8ee4 Update changelog 2014-05-13 14:48:48 +02:00
Juriy Zaytsev
7a6a09581c Merge pull request #1325 from Kienz/issue-1235
JSON object without "objects" property throws "TypeError: Cannot read property 'length' of null"
2014-05-13 13:35:12 +02: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