diff options
author | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2020-04-10 15:15:29 +1000 |
---|---|---|
committer | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2020-04-10 15:15:29 +1000 |
commit | e6fda9da8f777786a98c9351f33823241ce864fd (patch) | |
tree | fa68aff91188cd079b4dda2057e02ed9f8744b26 /src | |
parent | 373b78a10b3255104e221c64494e3139d11d058b (diff) | |
download | svg.js-e6fda9da8f777786a98c9351f33823241ce864fd.tar.gz svg.js-e6fda9da8f777786a98c9351f33823241ce864fd.zip |
added tests for Mask
Diffstat (limited to 'src')
-rw-r--r-- | src/elements/Mask.js | 8 |
1 files changed, 4 insertions, 4 deletions
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') } } }) |