sapics
d922771915
Add @param comment
2015-04-16 18:47:04 +09:00
sapics
64529b4562
fix of @asturur suggestion
2015-04-16 18:31:52 +09:00
sapics
05316fc0f9
fix path initialize function for option left=0 or top=0
2015-04-16 17:11:06 +09:00
Andrea Bogazzi
d593d209aa
Update path.class.js
2015-04-08 08:20:49 +02:00
Andrea Bogazzi
a7271aaf9f
Update path.class.js
2015-04-04 13:50:39 +02:00
kangax
db8aa87dae
Extract method from fabric.Path#initialize
2015-02-07 13:47:08 +01:00
Juriy Zaytsev
49d68723cb
Merge pull request #1935 from asturur/shoadow2
...
Missing space was breaking path single shape export.
2015-01-20 01:51:41 +01:00
Andrea Bogazzi
79d9618352
Fix single path toSVG export.
2015-01-20 01:49:16 +01:00
Jim Rodovich
c71b1378df
Make corresponding fixes for relative curve bounding box calculations.
2015-01-08 09:46:10 -06:00
Jim Rodovich
e83816446c
Fix else style.
2015-01-07 18:34:56 -06:00
Jim Rodovich
cf344c2ba7
Fix reflecting relative quadratic curves after absolute quadratic curves.
2015-01-07 17:36:43 -06:00
Jim Rodovich
aee62cb047
Don't let cubic or distant-past curves infect reflected quadratic curves.
2015-01-07 17:34:30 -06:00
Jim Rodovich
c96c6b27f7
Don't let quadratic curves infect reflected cubic curves.
2015-01-07 17:34:30 -06:00
Andrea Bogazzi
cf3bd70479
Update path.class.js
2014-11-05 19:56:12 +01:00
Andrea Bogazzi
f8e6ae9461
Update parser.js
...
Allow first example of stroke svg import to work properly
2014-09-26 09:52:33 +02:00
Andrea Bogazzi
71aea4db4d
Update path.class.js
2014-09-18 14:51:46 +02:00
Andrea Bogazzi
4e737abcde
Update path.class.js
...
Fixes == with ===
2014-09-13 14:05:12 +02:00
Andrea Bogazzi
28784dc9b3
Update path.class.js
...
Like any other shape in fabric, when exported to svg, the shape has to be translated around origin.
This additional translation brings it there.
Fixes svg export of paths OUTSIDE of path-gropus. Inside was already ok.
2014-09-13 13:14:58 +02:00
kangax
a3d40878d6
Update JSCS to 1.6, fix errors, hook up travis
2014-08-30 13:18:43 +04:00
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