chunk-JNESCGQR.js 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. import {
  2. i
  3. } from "./chunk-JOYXMSKE.js";
  4. import {
  5. s
  6. } from "./chunk-3GZSQU56.js";
  7. import {
  8. e,
  9. m,
  10. n5 as n,
  11. u2 as u,
  12. y3 as y
  13. } from "./chunk-2Z2TG5CU.js";
  14. import {
  15. r
  16. } from "./chunk-YXWMMD76.js";
  17. // node_modules/@arcgis/core/analysis/Analysis.js
  18. var n2 = 0;
  19. var l = class extends u(i(s(m))) {
  20. constructor(e2) {
  21. super(e2), this.id = `${Date.now().toString(16)}-analysis-${n2++}`, this.title = null;
  22. }
  23. get parent() {
  24. return this._get("parent");
  25. }
  26. set parent(e2) {
  27. const t = this.parent;
  28. if (r(t))
  29. switch (t.type) {
  30. case "line-of-sight":
  31. case "dimension":
  32. t.releaseAnalysis(this);
  33. break;
  34. case "2d":
  35. case "3d":
  36. t.analyses.includes(this) && t.analyses.remove(this);
  37. }
  38. this._set("parent", e2);
  39. }
  40. get isEditable() {
  41. return this.requiredPropertiesForEditing.every(r);
  42. }
  43. };
  44. e([y({ type: String, constructOnly: true, clonable: false })], l.prototype, "id", void 0), e([y({ type: String })], l.prototype, "title", void 0), e([y({ constructOnly: true })], l.prototype, "type", void 0), e([y({ clonable: false, value: null })], l.prototype, "parent", null), e([y({ readOnly: true })], l.prototype, "isEditable", null), e([y({ readOnly: true })], l.prototype, "requiredPropertiesForEditing", void 0), l = e([n("esri.analysis.Analysis")], l);
  45. var c = l;
  46. export {
  47. c
  48. };
  49. //# sourceMappingURL=chunk-JNESCGQR.js.map