//
SVG.Element = function(node) {
/* make stroke value accessible dynamically */
- this._stroke = SVG.default.attrs.stroke
+ this._stroke = SVG.defaults.attrs.stroke
/* initialize style store */
this.styles = {}
/* initialize transformation store with defaults */
- this.trans = SVG.default.trans()
+ this.trans = SVG.defaults.trans()
/* keep reference to the element node */
if (this.node = node) {
} else {
v = this.node.getAttribute(a)
return v == null ?
- SVG.default.attrs[a] :
+ SVG.defaults.attrs[a] :
SVG.regex.test(v, 'isNumber') ?
parseFloat(v) : v
}
o = this.trans
/* add matrix */
- if (o.matrix != SVG.default.matrix)
+ if (o.matrix != SVG.defaults.matrix)
transform.push('matrix(' + o.matrix + ')')
/* add rotation */