chunk-XZA4MVET.js 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. // node_modules/@arcgis/core/geometry/geometryAdapters/json.js
  2. var t = { convertToGEGeometry: s, exportPoint: n, exportPolygon: o, exportPolyline: a, exportMultipoint: c, exportExtent: m };
  3. function s(t2, s2) {
  4. return s2 == null ? null : t2.convertJSONToGeometry(s2);
  5. }
  6. var i = class {
  7. constructor(t2, s2, i2) {
  8. this.x = t2, this.y = s2, this.spatialReference = i2, this.z = void 0, this.m = void 0;
  9. }
  10. };
  11. function n(t2, s2, n2) {
  12. const e2 = new i(t2.getPointX(s2), t2.getPointY(s2), n2), o2 = t2.hasZ(s2), h2 = t2.hasM(s2);
  13. return o2 && (e2.z = t2.getPointZ(s2)), h2 && (e2.m = t2.getPointM(s2)), e2;
  14. }
  15. var e = class {
  16. constructor(t2, s2, i2, n2) {
  17. this.rings = t2, this.spatialReference = s2, this.hasZ = void 0, this.hasM = void 0, i2 && (this.hasZ = i2), n2 && (this.hasM = n2);
  18. }
  19. };
  20. function o(t2, s2, i2) {
  21. return new e(t2.exportPaths(s2), i2, t2.hasZ(s2), t2.hasM(s2));
  22. }
  23. var h = class {
  24. constructor(t2, s2, i2, n2) {
  25. this.paths = t2, this.spatialReference = s2, this.hasZ = void 0, this.hasM = void 0, i2 && (this.hasZ = i2), n2 && (this.hasM = n2);
  26. }
  27. };
  28. function a(t2, s2, i2) {
  29. return new h(t2.exportPaths(s2), i2, t2.hasZ(s2), t2.hasM(s2));
  30. }
  31. var r = class {
  32. constructor(t2, s2, i2, n2) {
  33. this.points = t2, this.spatialReference = s2, this.hasZ = void 0, this.hasM = void 0, i2 && (this.hasZ = i2), n2 && (this.hasM = n2);
  34. }
  35. };
  36. function c(t2, s2, i2) {
  37. return new r(t2.exportPoints(s2), i2, t2.hasZ(s2), t2.hasM(s2));
  38. }
  39. var x = class {
  40. constructor(t2, s2, i2, n2, e2) {
  41. this.xmin = t2, this.ymin = s2, this.xmax = i2, this.ymax = n2, this.spatialReference = e2, this.zmin = void 0, this.zmax = void 0, this.mmin = void 0, this.mmax = void 0;
  42. }
  43. };
  44. function m(t2, s2, i2) {
  45. const n2 = t2.hasZ(s2), e2 = t2.hasM(s2), o2 = new x(t2.getXMin(s2), t2.getYMin(s2), t2.getXMax(s2), t2.getYMax(s2), i2);
  46. if (n2) {
  47. const i3 = t2.getZExtent(s2);
  48. o2.zmin = i3.vmin, o2.zmax = i3.vmax;
  49. }
  50. if (e2) {
  51. const i3 = t2.getMExtent(s2);
  52. o2.mmin = i3.vmin, o2.mmax = i3.vmax;
  53. }
  54. return o2;
  55. }
  56. export {
  57. t
  58. };
  59. //# sourceMappingURL=chunk-XZA4MVET.js.map