aboutsummaryrefslogtreecommitdiffstats
path: root/src/elements
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2020-04-08 12:38:07 +1000
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2020-04-08 12:38:07 +1000
commit36b65881bd090e105d19952d10b3681313daf2af (patch)
treed9da811fae1a082c029edef560ef27e722a22f37 /src/elements
parent9a67cc3bbaf2e3f83368dc9706a06ec245a22c6a (diff)
downloadsvg.js-36b65881bd090e105d19952d10b3681313daf2af.tar.gz
svg.js-36b65881bd090e105d19952d10b3681313daf2af.zip
added tests for ClipPath
Diffstat (limited to 'src/elements')
-rw-r--r--src/elements/ClipPath.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/elements/ClipPath.js b/src/elements/ClipPath.js
index 55f9c3d..add119e 100644
--- a/src/elements/ClipPath.js
+++ b/src/elements/ClipPath.js
@@ -33,6 +33,10 @@ registerMethods({
},
Element: {
// Distribute clipPath to svg element
+ clipper () {
+ return this.reference('clip-path')
+ },
+
clipWith (element) {
// use given clip or create a new one
const clipper = element instanceof ClipPath
@@ -46,10 +50,6 @@ registerMethods({
// Unclip element
unclip () {
return this.attr('clip-path', null)
- },
-
- clipper () {
- return this.reference('clip-path')
}
}
})