/*
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/vec3f64","../../geometry/support/aaBoundingBox"],(function(e,n,t,r){"use strict";function o(e,{isPrimitive:n,width:r,depth:o,height:u}){const i=n?10:1;if(null==r&&null==u&&null==o)return[i*e[0],i*e[1],i*e[2]];const s=t.fromValues(r,o,u);let l;for(let t=0;t<3;t++){const n=s[t];if(null!=n){l=n/e[t];break}}for(let t=0;t<3;t++)null==s[t]&&(s[t]=e[t]*l);return s}const u=r.fromValues(-.5,-.5,-.5,.5,.5,.5),i=r.fromValues(-.5,-.5,0,.5,.5,1),s=r.fromValues(-.5,-.5,0,.5,.5,.5);function l(e){switch(e){case"sphere":case"cube":case"diamond":return u;case"cylinder":case"cone":case"inverted-cone":return i;case"tetrahedron":return s;default:return}}const c=["butt","square","round"],a=[...c,"none"],_=["miter","bevel","round"];e.OBJECT_SYMBOL_LAYER_BOUNDING_BOX_TETRAHEDRON=s,e.OBJECT_SYMBOL_LAYER_BOUNDING_BOX_UNIT_CUBE=u,e.OBJECT_SYMBOL_LAYER_BOUNDING_BOX_UNIT_CYLINDER=i,e.lineCaps=c,e.lineJoins=_,e.objectSymbolLayerPrimitiveBoundingBox=l,e.objectSymbolLayerSizeWithResourceSize=o,e.pathCaps=a,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
