/*
All material copyright Esri, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
*/
function e(e,n){if("freehandPolygon"===n||"freehandPolyline"===n)return"freehand";return e??("rectangle"===n||"circle"===n?"hybrid":"click")}function n(e){switch(e){case"freehandPolygon":return"polygon";case"freehandPolyline":return"polyline";case"text":return"point";default:return e}}function t(e){return!!e&&("draw-2d"===e.type||"draw-3d"===e.type)}function r(e){if(e.length>1)return!1;const n=e.at(0)?.geometry;return"point"===n?.type||"multipoint"===n?.type&&n.points.length<2}export{n as getDrawToolGeometryTypeFromCreateTool,e as getModeFromCreateOptions,r as graphicsHaveTooFewVerticesForBox,t as isDrawGraphicTool};
