123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254 |
- import {
- g
- } from "./chunk-IN44RUPP.js";
- import {
- c as c3
- } from "./chunk-JNESCGQR.js";
- import "./chunk-IZUZZJS7.js";
- import {
- un
- } from "./chunk-P24XEEHY.js";
- import "./chunk-SAJAEMIJ.js";
- import "./chunk-I4RYNNL6.js";
- import {
- i,
- l as l2
- } from "./chunk-JOYXMSKE.js";
- import {
- c,
- m as m2,
- u as u2
- } from "./chunk-ECY35CJI.js";
- import {
- l,
- w
- } from "./chunk-TJV6ODRM.js";
- import {
- c as c2
- } from "./chunk-WLSB4F4I.js";
- import "./chunk-GLSWDDR3.js";
- import {
- O
- } from "./chunk-MIQGEDET.js";
- import {
- x
- } from "./chunk-DUEMJ5XS.js";
- import "./chunk-VRLXUHP2.js";
- import "./chunk-3LVSQLWJ.js";
- import "./chunk-4ONPMX2F.js";
- import "./chunk-CRGY2SDS.js";
- import "./chunk-4T5ZGMEN.js";
- import "./chunk-VGWC3IKZ.js";
- import "./chunk-2H5MD622.js";
- import "./chunk-3RSFVUKZ.js";
- import {
- n as n2,
- t as t2
- } from "./chunk-ZAY3CMAZ.js";
- import "./chunk-P3XKUGLS.js";
- import "./chunk-ZLNEXZAN.js";
- import {
- b
- } from "./chunk-DXVOOCG4.js";
- import "./chunk-3GZSQU56.js";
- import "./chunk-RYY6632W.js";
- import "./chunk-DW42UVIT.js";
- import "./chunk-YAEIHDJH.js";
- import "./chunk-TJNOJH33.js";
- import "./chunk-OSHI574D.js";
- import "./chunk-ETGAZ7LF.js";
- import "./chunk-75U5LM2V.js";
- import "./chunk-RMDDCMKS.js";
- import "./chunk-VCH45Q2I.js";
- import {
- j
- } from "./chunk-LBW34VZ2.js";
- import "./chunk-GSSTTHIT.js";
- import "./chunk-YFSLJIO4.js";
- import "./chunk-IM3LVQXV.js";
- import "./chunk-55RWC67C.js";
- import "./chunk-HZRKBTHJ.js";
- import "./chunk-DVUG3KID.js";
- import "./chunk-FWSQEIAR.js";
- import "./chunk-VEGAOVMY.js";
- import {
- w as w2
- } from "./chunk-6T6G6LCQ.js";
- import "./chunk-YEJL5NEF.js";
- import "./chunk-PQFTYGF5.js";
- import {
- e,
- m,
- n5 as n,
- u2 as u,
- y3 as y2
- } from "./chunk-2Z2TG5CU.js";
- import "./chunk-6KZ2LTDA.js";
- import "./chunk-U2XHEJM7.js";
- import "./chunk-SQOPWYIT.js";
- import "./chunk-V6P2MAQQ.js";
- import "./chunk-E5O6P5I2.js";
- import "./chunk-SPWQ3AWG.js";
- import "./chunk-2TIUKVZN.js";
- import {
- e as e2,
- o,
- r,
- t,
- y
- } from "./chunk-YXWMMD76.js";
- import "./chunk-S5KM4IGW.js";
- // node_modules/@arcgis/core/analysis/featureReferenceUtils.js
- function t3(e3, t4) {
- return l3(e3) === l3(t4);
- }
- function l3(t4) {
- if (t(t4))
- return null;
- const l4 = null != t4.layer ? t4.layer.id : "";
- let r5 = null;
- return r5 = null != t4.objectId ? t4.objectId : null != t4.layer && "objectIdField" in t4.layer && null != t4.layer.objectIdField && null != t4.attributes ? t4.attributes[t4.layer.objectIdField] : t4.uid, null == r5 ? null : `o-${l4}-${r5}`;
- }
- var r2 = { json: { write: { writer: n3, target: { "feature.layerId": { type: [Number, String] }, "feature.objectId": { type: [Number, String] } } }, origins: { "web-scene": { read: u3 } } } };
- function n3(t4, l4) {
- var _a;
- t(t4) || null == ((_a = t4.layer) == null ? void 0 : _a.objectIdField) || null == t4.attributes || (l4.feature = { layerId: t4.layer.id, objectId: t4.attributes[t4.layer.objectIdField] });
- }
- function u3(e3) {
- if (null != e3.layerId && null != e3.objectId)
- return { uid: null, layer: { id: e3.layerId, objectIdField: "ObjectId" }, attributes: { ObjectId: e3.objectId } };
- }
- // node_modules/@arcgis/core/analysis/LineOfSightAnalysisObserver.js
- var f = class extends u(i(m)) {
- constructor(o2) {
- super(o2), this.position = null, this.elevationInfo = null, this.feature = null;
- }
- equals(o2) {
- return y(this.position, o2.position) && y(this.elevationInfo, o2.elevationInfo) && t3(this.feature, o2.feature);
- }
- };
- e([y2({ type: w2 }), g()], f.prototype, "position", void 0), e([y2({ type: x }), g()], f.prototype, "elevationInfo", void 0), e([y2(r2)], f.prototype, "feature", void 0), f = e([n("esri.analysis.LineOfSightAnalysisObserver")], f);
- var u4 = f;
- // node_modules/@arcgis/core/analysis/LineOfSightAnalysisTarget.js
- var m3 = class extends u(l2) {
- constructor(o2) {
- super(o2), this.position = null, this.elevationInfo = null, this.feature = null;
- }
- equals(o2) {
- return y(this.position, o2.position) && y(this.elevationInfo, o2.elevationInfo) && t3(this.feature, o2.feature);
- }
- };
- e([y2({ type: w2 }), g()], m3.prototype, "position", void 0), e([y2({ type: x }), g()], m3.prototype, "elevationInfo", void 0), e([y2(r2)], m3.prototype, "feature", void 0), m3 = e([n("esri.analysis.LineOfSightAnalysisTarget")], m3);
- var f2 = m3;
- // node_modules/@arcgis/core/support/elevationInfoUtils.js
- function r4(e3) {
- return e3 ? E : Z;
- }
- function u5(t4, n4) {
- return t(n4) || !n4.mode ? r4(t4).mode : n4.mode;
- }
- function i3(e3, n4) {
- return u5(!!r(e3) && e3.hasZ, n4);
- }
- var E = { mode: "absolute-height", offset: 0 };
- var Z = { mode: "on-the-ground", offset: null };
- // node_modules/@arcgis/core/analysis/LineOfSightAnalysis.js
- var b2 = j.ofType(f2);
- var x2 = class extends c3 {
- constructor(t4) {
- super(t4), this.type = "line-of-sight", this.observer = null, this.extent = null;
- }
- initialize() {
- this.addHandles(l(() => this._computeExtent(), (t4) => {
- (t(t4) || t(t4.pending)) && this._set("extent", r(t4) ? t4.extent : null);
- }, w));
- }
- get targets() {
- return this._get("targets") || new b2();
- }
- set targets(t4) {
- this._set("targets", n2(t4, this.targets, b2));
- }
- get spatialReference() {
- return r(this.observer) && r(this.observer.position) ? this.observer.position.spatialReference : null;
- }
- get requiredPropertiesForEditing() {
- return [o(this.observer, (t4) => t4.position)];
- }
- async waitComputeExtent() {
- const t4 = this._computeExtent();
- return r(t4) ? e2(t4.pending) : null;
- }
- _computeExtent() {
- const t4 = this.spatialReference;
- if (t(this.observer) || t(this.observer.position) || t(t4))
- return null;
- const e3 = (t5) => "absolute-height" === i3(t5.position, t5.elevationInfo), r5 = this.observer.position, o2 = u2(r5.x, r5.y, r5.z, r5.x, r5.y, r5.z);
- for (const i4 of this.targets)
- if (r(i4.position)) {
- const e4 = un(i4.position, t4);
- if (r(e4.pending))
- return { pending: e4.pending, extent: null };
- if (r(e4.geometry)) {
- const { x: t5, y: r6, z: s2 } = e4.geometry;
- c(o2, [t5, r6, s2]);
- }
- }
- const s = m2(o2, t4);
- return e3(this.observer) && this.targets.every(e3) || (s.zmin = null, s.zmax = null), { pending: null, extent: s };
- }
- clear() {
- this.observer = null, this.targets.removeAll();
- }
- };
- e([y2({ type: ["line-of-sight"] })], x2.prototype, "type", void 0), e([y2({ type: u4, json: { read: true, write: true } })], x2.prototype, "observer", void 0), e([y2({ cast: t2, type: b2, nonNullable: true, json: { read: true, write: true } })], x2.prototype, "targets", null), e([y2({ value: null, readOnly: true })], x2.prototype, "extent", void 0), e([y2({ readOnly: true })], x2.prototype, "spatialReference", null), e([y2({ readOnly: true })], x2.prototype, "requiredPropertiesForEditing", null), x2 = e([n("esri.analysis.LineOfSightAnalysis")], x2);
- var O2 = x2;
- // node_modules/@arcgis/core/layers/LineOfSightLayer.js
- var f3 = j.ofType(f2);
- var g2 = class extends c2(O(b)) {
- constructor(e3) {
- super(e3), this.type = "line-of-sight", this.operationalLayerType = "LineOfSightLayer", this.analysis = new O2(), this.opacity = 1;
- }
- initialize() {
- this.addHandles(l(() => this.analysis, (e3, t4) => {
- r(t4) && t4.parent === this && (t4.parent = null), r(e3) && (e3.parent = this);
- }, w));
- }
- async load() {
- return r(this.analysis) && this.addResolvingPromise(this.analysis.waitComputeExtent()), this;
- }
- get observer() {
- return o(this.analysis, (e3) => e3.observer);
- }
- set observer(e3) {
- o(this.analysis, (t4) => t4.observer = e3);
- }
- get targets() {
- return r(this.analysis) ? this.analysis.targets : new j();
- }
- set targets(e3) {
- var _a;
- n2(e3, (_a = this.analysis) == null ? void 0 : _a.targets);
- }
- get fullExtent() {
- return r(this.analysis) ? this.analysis.extent : null;
- }
- get spatialReference() {
- return r(this.analysis) ? e2(this.analysis.spatialReference) : null;
- }
- releaseAnalysis(e3) {
- this.analysis === e3 && (this.analysis = new O2());
- }
- };
- e([y2({ json: { read: false }, readOnly: true })], g2.prototype, "type", void 0), e([y2({ type: ["LineOfSightLayer"] })], g2.prototype, "operationalLayerType", void 0), e([y2({ type: u4, json: { read: true, write: { ignoreOrigin: true } } })], g2.prototype, "observer", null), e([y2({ type: f3, json: { read: true, write: { ignoreOrigin: true } } })], g2.prototype, "targets", null), e([y2({ nonNullable: true, json: { read: false, write: false } })], g2.prototype, "analysis", void 0), e([y2({ readOnly: true })], g2.prototype, "fullExtent", null), e([y2({ readOnly: true })], g2.prototype, "spatialReference", null), e([y2({ readOnly: true, json: { read: false, write: false, origins: { service: { read: false, write: false }, "portal-item": { read: false, write: false }, "web-document": { read: false, write: false } } } })], g2.prototype, "opacity", void 0), e([y2({ type: ["show", "hide"] })], g2.prototype, "listMode", void 0), g2 = e([n("esri.layers.LineOfSightLayer")], g2);
- var j2 = g2;
- export {
- j2 as default
- };
- //# sourceMappingURL=LineOfSightLayer-NFAKQGCH.js.map
|