From 36b65881bd090e105d19952d10b3681313daf2af Mon Sep 17 00:00:00 2001 From: Ulrich-Matthias Schäfer Date: Wed, 8 Apr 2020 12:38:07 +1000 Subject: added tests for ClipPath --- src/elements/ClipPath.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') 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') } } }) -- cgit v1.2.3