/*
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.24/esri/copyright.txt for details.
*/
define(["exports","../../core/has","../../chunks/mat4f64","../../geometry/projection","./externalRenderers/ExternalRendererStore"],(function(e,r,n,t,o){"use strict";const i=new o;function d(e,r){i.add(e,r)}function a(e,r){i.remove(e,r)}function s(e){e._stage.renderView.requestRender()}function c(e,r,n,o,i,d,a){return o=o||e.spatialReference,t.projectBuffer(r,o,n,i,e.renderCoordsHelper.spatialReference,d,a)?i:null}function u(e,r,n,o,i,d,a){return d=d||e.spatialReference,t.projectBuffer(r,e.renderCoordsHelper.spatialReference,n,o,d,i,a)?o:null}function f(e,r,o,i){return i||(i=n.create()),o=o||e.spatialReference,t.computeTranslationToOriginAndRotation(o,r,i,e.renderCoordsHelper.spatialReference)?i:null}function l(e){return e.state.camera.clone()}function R(e){return{add:d.bind(this,e),remove:a.bind(this,e),requestRender:s.bind(this,e),toRenderCoordinates:c.bind(this,e),fromRenderCoordinates:u.bind(this,e),renderCoordinateTransformAt:f.bind(this,e)}}function p(e){r.add("esri-force-webgl",e)}e.add=d,e.bind=R,e.forceWebGLContext=p,e.fromRenderCoordinates=u,e.getRenderCamera=l,e.remove=a,e.renderCoordinateTransformAt=f,e.requestRender=s,e.toRenderCoordinates=c,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
