@leafer-ui/mask 1.0.0-rc.22 → 1.0.0-rc.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +5 -5
  2. package/src/index.ts +3 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leafer-ui/mask",
3
- "version": "1.0.0-rc.22",
3
+ "version": "1.0.0-rc.24",
4
4
  "description": "@leafer-ui/mask",
5
5
  "author": "Chao (Leafer) Wan",
6
6
  "license": "MIT",
@@ -22,11 +22,11 @@
22
22
  "leaferjs"
23
23
  ],
24
24
  "dependencies": {
25
- "@leafer/core": "1.0.0-rc.22",
26
- "@leafer-ui/draw": "1.0.0-rc.22"
25
+ "@leafer/core": "1.0.0-rc.24",
26
+ "@leafer-ui/draw": "1.0.0-rc.24"
27
27
  },
28
28
  "devDependencies": {
29
- "@leafer/interface": "1.0.0-rc.22",
30
- "@leafer-ui/interface": "1.0.0-rc.22"
29
+ "@leafer/interface": "1.0.0-rc.24",
30
+ "@leafer-ui/interface": "1.0.0-rc.24"
31
31
  }
32
32
  }
package/src/index.ts CHANGED
@@ -24,7 +24,7 @@ Group.prototype.__renderMask = function (canvas: ILeaferCanvas, options: IRender
24
24
 
25
25
  // mask start
26
26
 
27
- if (child.__.maskType === 'path') {
27
+ if (child.__.mask === 'path') {
28
28
 
29
29
  if (child.opacity < 1) {
30
30
 
@@ -40,7 +40,7 @@ Group.prototype.__renderMask = function (canvas: ILeaferCanvas, options: IRender
40
40
 
41
41
  child.__clip(contentCanvas || canvas, options)
42
42
 
43
- } else {
43
+ } else { // pixel
44
44
 
45
45
  currentMask = 'alpha'
46
46
  if (!maskCanvas) maskCanvas = getCanvas(canvas)
@@ -49,7 +49,7 @@ Group.prototype.__renderMask = function (canvas: ILeaferCanvas, options: IRender
49
49
 
50
50
  }
51
51
 
52
- if (child.__.maskType !== 'clipping') continue
52
+ if (child.__.mask !== 'clipping') continue
53
53
  }
54
54
 
55
55
  if (excludeRenderBounds(child, options)) continue