/*
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","../../../../core/mathUtils","../../../../core/maybe","../../../../chunks/mat3","../../../../chunks/mat3f32","../DisplayObject"],(function(t,e,a,s,i,n,r){"use strict";let o=function(t){function r(){var e;return(e=t.apply(this,arguments)||this)._displayData=null,e}e._inheritsLoose(r,t);var o=r.prototype;return o.clear=function(){s.isSome(this._displayData)&&(this._displayData.detach(),this._displayData=null,this.requestRender())},o.setTransform=function(t){const{displayData:e}=this;if(s.isNone(e))return;const n=e.extent.xmin,r=e.extent.ymax,o=[0,0];t.toScreen(o,[n,r]);const l=(e.extent.xmax-e.extent.xmin)/e.size[0]/t.resolution,c=a.deg2rad(t.rotation),{dvs:u}=this.transforms;i.fromTranslation(u,[-1,1,0]),i.scale(u,u,[2/(t.size[0]*t.pixelRatio),-2/(t.size[1]*t.pixelRatio),1]),i.translate(u,u,[o[0],o[1],0]),i.rotate(u,u,c),i.scale(u,u,[l*t.pixelRatio,l*t.pixelRatio,1])},o._createTransforms=function(){return{dvs:n.create()}},e._createClass(r,[{key:"displayData",get:function(){return this._displayData},set:function(t){this._displayData=t,this.requestRender()}}]),r}(r.DisplayObject);t.FlowDisplayObject=o,Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
