aboutsummaryrefslogtreecommitdiffstats
path: root/src/element.js
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2013-01-22 17:54:28 +0100
committerwout <wout@impinc.co.uk>2013-01-22 17:54:28 +0100
commitb72373cf2fc024714825da95c59879ce9cbb4521 (patch)
tree1f3b260f9d2da54d1df7bca7b540bb15a0863e55 /src/element.js
parent6ae497706394d96b87e045afa8c7260790c4a7f1 (diff)
downloadsvg.js-b72373cf2fc024714825da95c59879ce9cbb4521.tar.gz
svg.js-b72373cf2fc024714825da95c59879ce9cbb4521.zip
Fix in offset for SVG.Wrap
Diffstat (limited to 'src/element.js')
-rw-r--r--src/element.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/element.js b/src/element.js
index e7161c0..c23ea49 100644
--- a/src/element.js
+++ b/src/element.js
@@ -33,6 +33,7 @@ SVG.Element = function Element(node) {
skewX: 0,
skewY: 0
};
+
};
//
@@ -71,6 +72,10 @@ SVG.extend(SVG.Element, {
clone.child.trans = this.child.trans;
clone.child.attr(this.child.attrs).transform({});
+ /* re-plot shape */
+ if (clone.plot)
+ clone.plot(this.child.attrs[this.child instanceof SVG.Path ? 'd' : 'points']);
+
} else {
var name = this.node.nodeName;
@@ -104,6 +109,10 @@ SVG.extend(SVG.Element, {
doc: function() {
return this._parent(SVG.Doc);
},
+ // Get parent nested document
+ nested: function() {
+ return this._parent(SVG.Nested);
+ },
// Set svg element attribute
attr: function(a, v, n) {
if (arguments.length < 2) {