aboutsummaryrefslogtreecommitdiffstats
path: root/src/element.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/element.js')
-rw-r--r--src/element.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/element.js b/src/element.js
index e7701ce..6eea786 100644
--- a/src/element.js
+++ b/src/element.js
@@ -159,6 +159,20 @@ SVG.extend(SVG.Element, {
};
},
+ // show element
+ show: function() {
+ this.node.style.display = '';
+
+ return this;
+ },
+
+ // hide element
+ hide: function() {
+ this.node.style.display = 'none';
+
+ return this;
+ },
+
// private: find svg parent
_parent: function(pt) {
var e = this;