summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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')
}
}
})