/*
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","./Bitmap","./webgl/TiledDisplayObject"],(function(t,e,i,n,s){"use strict";let r=function(t){function s(e,i,s,r,a,o=null){var l;return(l=t.call(this,e,i,s,r,a)||this).bitmap=new n.Bitmap(o,"standard",!1),l.bitmap.coordScale=[r,a],l.bitmap.once("isReady",(()=>l.ready())),l}e._inheritsLoose(s,t);var r=s.prototype;return r.destroy=function(){t.prototype.destroy.call(this),this.bitmap.destroy()},r.beforeRender=function(e){t.prototype.beforeRender.call(this,e),this.bitmap.beforeRender(e)},r.afterRender=function(e){t.prototype.afterRender.call(this,e),this.bitmap.afterRender(e)},r._createTransforms=function(){return{dvs:i.create(),tileMat3:i.create()}},r.setTransform=function(e,i){t.prototype.setTransform.call(this,e,i),this.bitmap.transforms.dvs=this.transforms.dvs},r.onAttach=function(){this.bitmap.stage=this.stage},r.onDetach=function(){this.bitmap&&(this.bitmap.stage=null)},e._createClass(s,[{key:"stencilRef",get:function(){return this.bitmap.stencilRef},set:function(t){this.bitmap.stencilRef=t}}]),s}(s.TiledDisplayObject);t.BitmapTile=r,Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
