neopheus
3544b727be
Update code v2 ( #3180 )
...
* update JSDOC - v4
* update JSDOC -v5
2016-08-20 17:58:16 +02:00
zntus
d4f0b52f18
Fix Rect imported from svg is invisible when display = "none" ( #3106 )
2016-07-18 10:05:14 +02:00
Andrea Bogazzi
eb9b7f45b9
Add ID to svg export ( #2993 )
2016-05-21 15:07:04 +02:00
asteriskman
47776c55fd
Change location of rect in 1x1 case
...
As can be seen in this jsfiddle, https://jsfiddle.net/asteriskman/kk6v0tu4/ , the 1x1 rectangle was being placed incorrectly. It must be offset by -0.5 in the x and y direction to line up with other rects.
2016-02-26 22:51:56 -05:00
kangax
ff1b4e206c
Fix JSHint warnings, make it catch console.log
2015-05-21 11:47:12 -04:00
asturur
6a6b74aae1
Fixes svg rendering rules
2015-02-03 14:24:11 +01:00
Andrea Bogazzi
00a442b028
exit from getSvgTransform just for pathGroups.
...
Fix Svg Export for normal canvas group
2014-09-25 11:05:39 +02:00
Andrea Bogazzi
55f9a5947b
Update rect.class.js
2014-09-02 22:40:49 +02:00
kangax
a3d40878d6
Update JSCS to 1.6, fix errors, hook up travis
2014-08-30 13:18:43 +04:00
Andrea Bogazzi
ff2a24c3ae
Simplified rect class and fixed SVG export
2014-08-05 12:58:50 +02:00
Stefan Kienzle
b34387d10e
JSDoc + JSCS tweaks - Part 1
2014-07-17 16:18:57 +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
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
kangax
631226d26b
More JSCS fixes; down to 295 failures
2014-02-17 11:55:54 -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
92b0d5e282
Optimize rendering of 1x1 rectangles
2014-01-04 15:02:51 -05:00
kangax
e3b0f666fb
More precise path-group check. Closes #964
2013-11-14 19:22:45 +01: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
ec120452c5
Add x/y in fabric.Rect#stateProperties. Make toObject remove them when includeDefaultValues=false.
2013-09-28 23:47:53 +02:00
kangax
41ab3a0064
Doc additions
2013-09-26 14:12:02 +02:00
kangax
eeb0f72bd4
Move fabric.Rect's stateProperties to prototype for more efficient memory usage
2013-09-14 13:54:18 +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
kangax
d89dea62ac
Only use quadraticCurveTo when rendering rectangle with rounded corners. Closes #691
2013-06-10 15:30:17 +02:00
kangax
044f5ed483
Fix rect positioning when loading from JSON. Closes #522
2013-06-03 02:24:41 +02:00
kangax
b53209437f
Move shape classes (circle, line, rect, path, etc.) to /shapes dir
2013-05-30 21:53:49 +02:00