Commit graph

2072 commits

Author SHA1 Message Date
Tom French
116a630def JShint 2014-05-31 17:59:31 +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
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
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
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
Juriy Zaytsev
4cc1a0138a Merge pull request #1324 from Kienz/setAngleCenteredRotation
`fabric.Object.setAngle` now considers different originX/originY values other than "center". Closes #1093
2014-05-12 20:50:25 +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
Kienz
2c2ffb3187 Merge branch 'master' of https://github.com/kangax/fabric.js into setAngleCenteredRotation 2014-05-12 19:46:32 +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
Juriy Zaytsev
e8f2be82f5 Merge pull request #1321 from MeLight/master
Add Multiply filter
2014-05-12 15:13:33 +02:00
kangax
9b964b7fbf Fix unit tests 2014-05-12 11:23:48 +02:00
yuri
99a3a77267 Added Multiply filter 2014-05-12 00:39:02 +03:00
Kienz
2ce95c89ae Merge branch 'master' into setAngleCenteredRotation 2014-05-10 09:51:50 +02:00
kangax
a637800bda Build dist 2014-05-09 23:31:19 +02:00
kangax
f5691b4b4f Set default originX as center. Closes #974 2014-05-09 23:29:11 +02:00
kangax
4664b2985d Build dist 2014-05-09 22:55:33 +02:00
kangax
87b0f2da35 Add support for transparent value in fabric.Color 2014-05-09 22:55:33 +02:00
Kienz
dab103cafe Add coverage to .gitignore 2014-05-09 20:12:57 +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
Juriy Zaytsev
db015d2d47 Merge pull request #1316 from rodovich/degree-rotation
Perform imported SVG rotations in degrees, per the SVG spec.
2014-05-09 00:30:55 +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
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
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
Juriy Zaytsev
5dd7032aad Merge pull request #1312 from rodovich/round-rect-radii
Constrain rounded rect radii to half the width & height.
2014-05-08 02:09:38 +02:00