Files
ADHA_mobile_project/assets/hydrated-ca5faac2.js
T
2024-02-28 17:06:42 +05:00

2 lines
1.3 KiB
JavaScript

import{aH as r,aI as c,aa as h,aJ as x,ab as m}from"./index-b5c8f851.js";const Z={convertToGEGeometry:g,exportPoint:p,exportPolygon:u,exportPolyline:l,exportMultipoint:M,exportExtent:f};function g(a,e){if(e==null)return null;let t="cache"in e?e.cache._geVersion:void 0;return t==null&&(t=a.convertJSONToGeometry(e),"cache"in e&&(e.cache._geVersion=t)),t}function p(a,e,t){const o=a.hasZ(e),i=a.hasM(e),s=new r({x:a.getPointX(e),y:a.getPointY(e),spatialReference:t});return o&&(s.z=a.getPointZ(e)),i&&(s.m=a.getPointM(e)),s.cache._geVersion=e,s}function u(a,e,t){const o=new c({rings:a.exportPaths(e),hasZ:a.hasZ(e),hasM:a.hasM(e),spatialReference:t});return o.cache._geVersion=e,o}function l(a,e,t){const o=new h({paths:a.exportPaths(e),hasZ:a.hasZ(e),hasM:a.hasM(e),spatialReference:t});return o.cache._geVersion=e,o}function M(a,e,t){const o=new x({hasZ:a.hasZ(e),hasM:a.hasM(e),points:a.exportPoints(e),spatialReference:t});return o.cache._geVersion=e,o}function f(a,e,t){const o=a.hasZ(e),i=a.hasM(e),s=new m({xmin:a.getXMin(e),ymin:a.getYMin(e),xmax:a.getXMax(e),ymax:a.getYMax(e),spatialReference:t});if(o){const n=a.getZExtent(e);s.zmin=n.vmin,s.zmax=n.vmax}if(i){const n=a.getMExtent(e);s.mmin=n.vmin,s.mmax=n.vmax}return s.cache._geVersion=e,s}export{Z as hydratedAdapter};