aboutsummaryrefslogtreecommitdiffstats
path: root/src/default.js
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2013-03-24 19:19:06 +0100
committerwout <wout@impinc.co.uk>2013-03-24 19:19:06 +0100
commit67d367e0d74b3287956130da0077e42c6483dd2f (patch)
treebb2d23315e39c89b79cb8c52e7a5db54636e08ad /src/default.js
parentff09596144c3fd6770d1dc64178a10c2432396ca (diff)
downloadsvg.js-67d367e0d74b3287956130da0077e42c6483dd2f.tar.gz
svg.js-67d367e0d74b3287956130da0077e42c6483dd2f.zip
Bumped to v0.11
- removed SVG.Wrap on SVG.Polyline, SVG.Polygon and SVG.Path - added delay on SVG.FX module - made x(), y(), cx() and cy() as getters - added SGB.get() method, to get elements by a DOM id - fixed bug in remove() method on container elements - added jasmine test suite to repo
Diffstat (limited to 'src/default.js')
-rw-r--r--src/default.js44
1 files changed, 22 insertions, 22 deletions
diff --git a/src/default.js b/src/default.js
index abcac88..4efc226 100644
--- a/src/default.js
+++ b/src/default.js
@@ -4,28 +4,28 @@ SVG.default = {
matrix: '1,0,0,1,0,0'
// Default attribute values
-, attrs: function() {
- return {
- /* fill and stroke */
- 'fill-opacity': 1
- , 'stroke-opacity': 1
- , 'stroke-width': 0
- , fill: '#000'
- , stroke: '#000'
- , opacity: 1
- /* position */
- , x: 0
- , y: 0
- , cx: 0
- , cy: 0
- /* size */
- , width: 0
- , height: 0
- /* radius */
- , r: 0
- , rx: 0
- , ry: 0
- }
+, attrs: {
+ /* fill and stroke */
+ 'fill-opacity': 1
+ , 'stroke-opacity': 1
+ , 'stroke-width': 0
+ , fill: '#000'
+ , stroke: '#000'
+ , opacity: 1
+ /* position */
+ , x: 0
+ , y: 0
+ , cx: 0
+ , cy: 0
+ /* size */
+ , width: 0
+ , height: 0
+ /* radius */
+ , r: 0
+ , rx: 0
+ , ry: 0
+ /* gradient */
+ , offset: 0
}
// Default transformation values