/*
All material copyright Esri, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
*/
import{deprecated as e}from"../../../core/deprecate.js";import{isRelativeVertexSpace as r}from"../meshVertexSpaceUtils.js";function o(e,r){return e.isGeographic||e.isWebMercator&&(r??!0)}function t(o,t,i,a){if(void 0!==a){e(o(),"option: geographic",{replacement:"Use mesh `vertexSpace` and spatial reference to control how operations are performed instead.",version:"4.30",warnOnce:!0});const c="local"===t.type;if(!r(t)||a===c)return i.isGeographic||i.isWebMercator&&a;o().warnOnce(`Specifying the 'geographic' parameter (${a}) for a Mesh vertex space of type "${t.type}" is not supported. This parameter will be ignored.`)}switch(t.type){case"georeferenced":return i.isGeographic;case"local":return i.isGeographic||i.isWebMercator}}export{o as isGlobal,t as performGlobalOperation};
