/* COPYRIGHT Esri - https://js.arcgis.com/5.1.2/LICENSE.txt */
import{create as t}from"../../../../core/libs/gl-matrix-2/factories/mat3f32.js";import{RasterBitmap as s}from"./RasterBitmap.js";import{TiledDisplayObject as e}from"../webgl/TiledDisplayObject.js";class i extends e{constructor(t,e,i,a,r,l,n=null){super(t,e,i,a,r,l),this.bitmap=null,this.bitmap=new s(n,null,null),this.bitmap.coordScale=[r,l],this.bitmap.once("isReady",()=>this.ready())}destroy(){super.destroy(),this.bitmap.destroy(),this.bitmap=null,this.stage=null}set stencilRef(t){this.bitmap.stencilRef=t}get stencilRef(){return this.bitmap.stencilRef}setTransform(t){super.setTransform(t),this.bitmap.transforms.displayViewScreenMat3=this.transforms.displayViewScreenMat3}_createTransforms(){return{displayViewScreenMat3:t(),tileMat3:t()}}onAttach(){this.bitmap.stage=this.stage}onDetach(){this.bitmap.stage=null}}export{i as RasterTile};
