aboutsummaryrefslogtreecommitdiffstats
path: root/src/container.js
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2013-03-25 21:33:50 +0100
committerwout <wout@impinc.co.uk>2013-03-25 21:33:50 +0100
commit7b0ba313154e6990fe0d11caa981dc4102193e5e (patch)
treed9940c0af72b587adc3f0b246dc95e021026d957 /src/container.js
parent264c100153fc45cedf94a8cc8a0174fae12e1fe8 (diff)
downloadsvg.js-7b0ba313154e6990fe0d11caa981dc4102193e5e.tar.gz
svg.js-7b0ba313154e6990fe0d11caa981dc4102193e5e.zip
Updated README
Diffstat (limited to 'src/container.js')
-rw-r--r--src/container.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/container.js b/src/container.js
index 08a52c8..ac5d685 100644
--- a/src/container.js
+++ b/src/container.js
@@ -126,6 +126,10 @@ SVG.extend(SVG.Container, {
, mask: function() {
return this.defs().put(new SVG.Mask)
}
+ // Create clipping element
+, clip: function() {
+ return this.defs().put(new SVG.Clip)
+ }
// Get first child, skipping the defs node
, first: function() {
return this.children()[0] instanceof SVG.Defs ? this.children()[1] : this.children()[0]