Andrea Bogazzi
eef2e21c07
changed toSvg method
2014-08-05 12:51:20 +02:00
kangax
818ab118b3
JSCS changes; Prepare for JSCS ignore support; down to 51 failures
2014-08-03 16:47:27 +02:00
asturur
f610ffe9de
Update path.class.js
2014-07-18 16:27:29 +02:00
Stefan Kienzle
b34387d10e
JSDoc + JSCS tweaks - Part 1
2014-07-17 16:18:57 +02:00
Tom French
a4129c31e8
Merge remote-tracking branch 'upstream/master'
...
Conflicts:
dist/fabric.min.js
dist/fabric.min.js.gz
dist/fabric.require.js
src/canvas.class.js
2014-07-03 16:02:43 +01:00
kangax
715fda8e94
Revert "Update path.class.js"
...
This reverts commit 77dd88569d .
2014-06-21 19:23:44 +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
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
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
Tom French
8c826a3204
Fixes for controlsAboveOverlay
2014-06-06 17:36:17 +01: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
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
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
kangax
2acdc7e85b
Fix few bracketless statements. Down to 257 failures on JSCS.
2014-02-27 15:00:42 -05:00
kangax
d2f6a9033e
Add JSCS validation & change bunch of things for conformance. Down to 333 failures from ~1000.
2014-02-16 16:36:14 -05:00
kangax
dbbfb992cb
Add all properties onto prototype (not to invalidate hidden classes)
2014-01-23 10:49:23 -05:00
Kienz
61f65bc206
Fix path regExp for compressed path commands
...
Fix regExp for e^x numbers
Add unit test for e^x numbers
2014-01-12 13:50:03 +01:00
kangax
e0aed05c3d
Build distribution
2013-12-31 09:29:14 -05:00
kangax
ea811cbb23
Fix fabric.Path#path being "cloned" by reference
2013-12-31 09:29:14 -05:00
kangax
d478482a19
Fix number parsing in paths. Closes #961
2013-12-18 11:29:44 +01:00
Tom French
3cc191bdfb
Fixed control and group selection rendering
2013-12-06 13:40:17 +00:00
Tom French
ce4809d1e8
Merge branch 'master' of https://github.com/kangax/fabric.js
...
Conflicts:
dist/all.js
dist/all.require.js
src/brushes/circle_brush.class.js
src/brushes/spray_brush.class.js
src/canvas.class.js
src/mixins/canvas_events.mixin.js
src/mixins/object_interactivity.mixin.js
src/shapes/group.class.js
src/shapes/image.class.js
src/shapes/object.class.js
src/util/misc.js
2013-12-05 19:45:39 +00:00
kangax
81e9535ef0
Small code cleanup
2013-11-20 12:47:03 +01:00
Tom French
08d575422c
Fixes to zoom for groups and brushes.
2013-11-19 16:21:29 +00:00
Tom French
328f14f388
Add zoom
2013-10-31 17:36:18 +00:00
kangax
9e6fc35ffe
Refactor fill setting into a separate method
2013-10-25 11:49:47 +02:00
kangax
ffe45dc702
Refactor stroke setting into a separate method
2013-10-25 11:34:47 +02:00
kangax
93d2ab3400
Refactor _getCoordsFromCommand
2013-10-25 11:23:24 +02:00
kangax
f67b78a984
Refactor _parseDimensions
2013-10-25 11:18:44 +02:00
kangax
476da71e92
Doc changes
2013-10-25 09:05:39 +02:00
Kienz
be86429b32
Add reviver function to fabric.Canvas.toSVG.
...
Reviver function accepts one parameter (svg string representation of object instance) and should return svg string.
Add qunit test.
2013-09-29 09:22:44 +02:00
kangax
f2ad6e5be6
[BACK_INCOMPAT] Move "backgroundColor" from fabric.Text to fabric.Object (only works with text for now). Remove fabric.Object#overlayFill. Remove fabric.Canvas.toGrayscale, fabric.Object#toGrayscale, and fabric.Object#overlayFill. Version 1.3.5
2013-09-28 23:47:53 +02:00
Kienz
fa2f18a77a
Add more docs.
...
Examples, tutorial and demo links.
2013-09-28 12:31:32 +02:00
Kienz
92bdebfde7
Doc fixes, Update README (1800+ unit tests)
2013-08-08 18:31:26 +02:00
kangax
7a46482328
Add shadow toSVG support. Version 1.2.7
2013-07-25 19:39:21 +02:00
Kienz
c9d866dcf9
Fixed fabric.PathGroup.fromObject - use fabric.util.enlivenObjects to instatiate fabric.Path objects
...
Corrected jsdoc tags for fabric.PathGroup.fromObject, fabric.Path.fromObject and fabric.Path.fromElement
Fixed quint tests for fabric.Path and fabric.PathGroup
2013-07-18 22:21:19 +02:00
kangax
8a0e9bd6b4
Fix fabric.Path.fromElement. Version 1.2.5
2013-07-13 20:15:35 +02:00
kangax
8f02189d50
Fix fabric.Path/fabric.PathGroup fromObject
2013-07-13 18:56:41 +02:00
kangax
c8cab03aac
[BACK_INCOMPAT] fabric.Path.fromObject is now async. fabric.Canvas#loadFromDatalessJSON is deprecated.
2013-07-12 22:38:21 +02:00
Wouter Commandeur
b2b305e90b
fix path behaviour with top/left offsets, fixes #663
2013-06-16 11:56:35 +02:00
kangax
5792521c7a
Remove bottom/right from fabric.Path#_parseDimensions, as it's incorrect and not used anywhere. Build distribution. Closes #666
2013-06-10 15:44:23 +02:00
kangax
55eeed181b
Move drawArc to utils. Simplify and speed up fabric.Point
2013-06-06 02:49:42 +02:00
kangax
b53209437f
Move shape classes (circle, line, rect, path, etc.) to /shapes dir
2013-05-30 21:53:49 +02:00