/*
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.24/esri/copyright.txt for details.
*/
define(["exports","../../../../geometry","../../../../Viewpoint","../../ViewState","../../../../geometry/Point"],(function(e,t,i,n,r){"use strict";const l=.125;let a=function(){function e(){this._renderParams={context:null,drawPhase:1,state:new n({viewpoint:new i({targetGeometry:new r(0,0),scale:1,rotation:0}),size:[256,256]}),stationary:!0,pixelRatio:1,displayLevel:-1,requiredLevel:-1,globalOpacity:1,renderPass:"background",styleLayer:null,styleLayerUID:-1,painter:null,glyphMosaic:null,spriteMosaic:null,profiler:null,renderingOptions:null,requestRender:null,deltaTime:-1,timeline:null,time:0,hasClipping:!1,blendMode:null,dataUploadCounter:0,effects:null,inFadeTransition:!1,requireFBO:!1}}var t=e.prototype;return t.dispose=function(){this._renderParams=null},t.render=function(e,t,i,n,r,a,s,o,u,d){const p=a.adjustLevel(t[0]),c=this._renderParams;c.context=e,c.painter=n,c.glyphMosaic=n.glyphMosaic,c.spriteMosaic=n.spriteMosaic,c.pixelRatio=d,c.displayLevel=p,c.requiredLevel=p;const g=a.getScale(t[0]),[y,f]=a.getShift(t,s*g),h=l*s*g/u,m=i.transforms.dvs;m[0]=h,m[4]=-h,m[6]=-1-y-o[0]*s*2,m[7]=1+f+(1-o[1])*s*2-2,c.state.size[0]=u,c.state.size[1]=u,i.stage||i.attachWithContext(e),i.triangleCount=0,n.drawTile(c,i,r)},e}();e.VectorTileRendererHelper3D=a,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
