chunk-PLQUCCQV.js 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. import {
  2. L
  3. } from "./chunk-3RSFVUKZ.js";
  4. import {
  5. E
  6. } from "./chunk-PQFTYGF5.js";
  7. import {
  8. t
  9. } from "./chunk-YXWMMD76.js";
  10. // node_modules/@arcgis/core/rest/query/operations/editsZScale.js
  11. function t2(e, n, o) {
  12. if (null == e.hasM || e.hasZ)
  13. for (const t3 of n)
  14. for (const e2 of t3)
  15. e2.length > 2 && (e2[2] *= o);
  16. }
  17. function i(e, o, t3) {
  18. if (!e && !o || !t3)
  19. return;
  20. const i2 = L(t3);
  21. s(e, t3, i2), s(o, t3, i2);
  22. }
  23. function s(e, n, o) {
  24. if (e)
  25. for (const t3 of e)
  26. f(t3.geometry, n, o);
  27. }
  28. function f(i2, s2, f2) {
  29. if (t(i2) || !i2.spatialReference || E(i2.spatialReference, s2))
  30. return;
  31. const r = L(i2.spatialReference) / f2;
  32. if (1 !== r) {
  33. if ("x" in i2)
  34. null != i2.z && (i2.z *= r);
  35. else if ("rings" in i2)
  36. t2(i2, i2.rings, r);
  37. else if ("paths" in i2)
  38. t2(i2, i2.paths, r);
  39. else if ("points" in i2 && (null == i2.hasM || i2.hasZ))
  40. for (const e of i2.points)
  41. e.length > 2 && (e[2] *= r);
  42. }
  43. }
  44. export {
  45. i
  46. };
  47. //# sourceMappingURL=chunk-PLQUCCQV.js.map