From e6fda9da8f777786a98c9351f33823241ce864fd Mon Sep 17 00:00:00 2001 From: Ulrich-Matthias Schäfer Date: Fri, 10 Apr 2020 15:15:29 +1000 Subject: added tests for Mask --- src/elements/Mask.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/elements/Mask.js b/src/elements/Mask.js index 64caca5..3d2119e 100644 --- a/src/elements/Mask.js +++ b/src/elements/Mask.js @@ -33,6 +33,10 @@ registerMethods({ }, Element: { // Distribute mask to svg element + masker () { + return this.reference('mask') + }, + maskWith (element) { // use given mask or create a new one var masker = element instanceof Mask @@ -46,10 +50,6 @@ registerMethods({ // Unmask element unmask () { return this.attr('mask', null) - }, - - masker () { - return this.reference('mask') } } }) -- cgit v1.2.3