Fixed clipping issue for PIXI v5.

This commit is contained in:
Severin Opel 2019-10-01 15:40:55 +02:00
parent cbe6613c56
commit ba54969990
1 changed files with 1 additions and 2 deletions

View File

@ -386,11 +386,10 @@ export class DeepZoomImage extends PIXI.Container {
if (deepZoomInfo.clip) {
let mask = new PIXI.Graphics()
mask.beginFill(1, 1)
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
}