Fixed clipping issue for PixiJS v5.
This commit is contained in:
Vendored
+2
-2
@@ -9657,11 +9657,11 @@
|
|||||||
|
|
||||||
if (deepZoomInfo.clip) {
|
if (deepZoomInfo.clip) {
|
||||||
let mask = new PIXI.Graphics();
|
let mask = new PIXI.Graphics();
|
||||||
mask.beginFill(1, 1);
|
mask.alpha = 0.0000001;
|
||||||
|
mask.beginFill(0xff0000, 1);
|
||||||
mask.drawRect(0, 0, w, h);
|
mask.drawRect(0, 0, w, h);
|
||||||
mask.endFill();
|
mask.endFill();
|
||||||
this.mask = mask;
|
this.mask = mask;
|
||||||
mask.alpha = 0;
|
|
||||||
this.addChild(mask);
|
this.addChild(mask);
|
||||||
this.minimumLevel = deepZoomInfo.baseLevel;
|
this.minimumLevel = deepZoomInfo.baseLevel;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -386,6 +386,7 @@ export class DeepZoomImage extends PIXI.Container {
|
|||||||
|
|
||||||
if (deepZoomInfo.clip) {
|
if (deepZoomInfo.clip) {
|
||||||
let mask = new PIXI.Graphics()
|
let mask = new PIXI.Graphics()
|
||||||
|
mask.alpha = 0.0000001
|
||||||
mask.beginFill(0xff0000, 1)
|
mask.beginFill(0xff0000, 1)
|
||||||
mask.drawRect(0, 0, w, h)
|
mask.drawRect(0, 0, w, h)
|
||||||
mask.endFill()
|
mask.endFill()
|
||||||
|
|||||||
Reference in New Issue
Block a user