/*
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.24/esri/copyright.txt for details.
*/
define(["exports","../../../../chunks/_rollupPluginBabelHelpers","../../../../chunks/mat3f32","./RasterBitmap","../webgl/TiledDisplayObject"],(function(t,e,s,i,n){"use strict";let a=function(t){function n(e,s,n,a,r,l=null){var o;return(o=t.call(this,e,s,n,a,r)||this).bitmap=new i.RasterBitmap(l,null,null),o.bitmap.coordScale=[a,r],o.bitmap.once("isReady",(()=>o.ready())),o}e._inheritsLoose(n,t);var a=n.prototype;return a.destroy=function(){t.prototype.destroy.call(this),this.bitmap.destroy(),this.bitmap=null,this.stage=null},a.setTransform=function(e,s){t.prototype.setTransform.call(this,e,s),this.bitmap.transforms.dvs=this.transforms.dvs},a._createTransforms=function(){return{dvs:s.create(),tileMat3:s.create()}},a.onAttach=function(){this.bitmap.stage=this.stage},a.onDetach=function(){this.bitmap.stage=null},e._createClass(n,[{key:"stencilRef",get:function(){return this.bitmap.stencilRef},set:function(t){this.bitmap.stencilRef=t}}]),n}(n.TiledDisplayObject);t.RasterTile=a,Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
