diff options
author | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2020-04-08 12:38:07 +1000 |
---|---|---|
committer | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2020-04-08 12:38:07 +1000 |
commit | 36b65881bd090e105d19952d10b3681313daf2af (patch) | |
tree | d9da811fae1a082c029edef560ef27e722a22f37 /src | |
parent | 9a67cc3bbaf2e3f83368dc9706a06ec245a22c6a (diff) | |
download | svg.js-36b65881bd090e105d19952d10b3681313daf2af.tar.gz svg.js-36b65881bd090e105d19952d10b3681313daf2af.zip |
added tests for ClipPath
Diffstat (limited to 'src')
-rw-r--r-- | src/elements/ClipPath.js | 8 |
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') } } }) |