/*
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","../../engine/Bitmap","../../engine/BitmapContainer"],(function(t,e,i,a){"use strict";let n=function(t){function a(a){var n;return(n=t.call(this)||this).requestRender=n.requestRender.bind(e._assertThisInitialized(n)),n._layerView=a,n._canvas=document.createElement("canvas"),n._context=n._canvas.getContext("2d"),n._bitmap=new i.Bitmap(null,"standard",!1),n.addChild(n._bitmap),n}e._inheritsLoose(a,t);var n=a.prototype;return n.doRender=function(e){const i=e.state,a=this._createCustomRenderParams(e),n=this._canvas,o=this._bitmap,r=window.devicePixelRatio;n.width=i.size[0]*r,n.height=i.size[1]*r,o.resolution=i.resolution;const s=i.clone();s.pixelRatio=r,o.pixelRatio=r,a.state=s,o.x=i.viewpoint.targetGeometry.x-Math.abs(i.extent.xmax-i.extent.xmin)/2,o.y=i.viewpoint.targetGeometry.y+Math.abs(i.extent.ymax-i.extent.ymin)/2,this._layerView.render(a),o.source=n,o.rotation=i.rotation,t.prototype.doRender.call(this,{...e,state:s})},n._createCustomRenderParams=function(t){return{globalOpacity:t.globalOpacity,state:t.state,stationary:t.stationary,pixelRatio:window.devicePixelRatio,context:this._context}},a}(a.BitmapContainer);t.Display=n,Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
