Fixed clipping issue for PixiJS v5.

This commit is contained in:
Sebastian Kupke 2019-10-02 09:27:12 +02:00
parent ba54969990
commit 980adbe595
2 changed files with 3 additions and 2 deletions

4
dist/iwmlib.pixi.js vendored
View File

@ -9657,11 +9657,11 @@
if (deepZoomInfo.clip) {
let mask = new PIXI.Graphics();
mask.beginFill(1, 1);
mask.alpha = 0.0000001;
mask.beginFill(0xff0000, 1);
mask.drawRect(0, 0, w, h);
mask.endFill();
this.mask = mask;
mask.alpha = 0;
this.addChild(mask);
this.minimumLevel = deepZoomInfo.baseLevel;
}

View File

@ -386,6 +386,7 @@ export class DeepZoomImage extends PIXI.Container {
if (deepZoomInfo.clip) {
let mask = new PIXI.Graphics()
mask.alpha = 0.0000001
mask.beginFill(0xff0000, 1)
mask.drawRect(0, 0, w, h)
mask.endFill()