123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- import {
- i
- } from "./chunk-JOYXMSKE.js";
- import {
- s
- } from "./chunk-3GZSQU56.js";
- import {
- e,
- m,
- n5 as n,
- u2 as u,
- y3 as y
- } from "./chunk-2Z2TG5CU.js";
- import {
- r
- } from "./chunk-YXWMMD76.js";
- // node_modules/@arcgis/core/analysis/Analysis.js
- var n2 = 0;
- var l = class extends u(i(s(m))) {
- constructor(e2) {
- super(e2), this.id = `${Date.now().toString(16)}-analysis-${n2++}`, this.title = null;
- }
- get parent() {
- return this._get("parent");
- }
- set parent(e2) {
- const t = this.parent;
- if (r(t))
- switch (t.type) {
- case "line-of-sight":
- case "dimension":
- t.releaseAnalysis(this);
- break;
- case "2d":
- case "3d":
- t.analyses.includes(this) && t.analyses.remove(this);
- }
- this._set("parent", e2);
- }
- get isEditable() {
- return this.requiredPropertiesForEditing.every(r);
- }
- };
- 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);
- var c = l;
- export {
- c
- };
- //# sourceMappingURL=chunk-JNESCGQR.js.map
|