123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250 |
- import {
- g
- } from "./chunk-IN44RUPP.js";
- import {
- l as l2,
- m,
- s as s2,
- u as u2
- } from "./chunk-NXF22CVW.js";
- import {
- L,
- N
- } from "./chunk-DRPR56GA.js";
- import "./chunk-LX2NI53X.js";
- import "./chunk-IZUZZJS7.js";
- import "./chunk-56OWH4DC.js";
- import "./chunk-7B57NUGF.js";
- import {
- An,
- mn
- } from "./chunk-P24XEEHY.js";
- import "./chunk-SAJAEMIJ.js";
- import "./chunk-I4RYNNL6.js";
- import {
- i
- } from "./chunk-WWXZOC2Y.js";
- import {
- p
- } from "./chunk-ZOKNWEG3.js";
- import "./chunk-SZFMKPVM.js";
- import {
- U,
- a
- } from "./chunk-TJV6ODRM.js";
- import {
- v as v2
- } from "./chunk-JUWKPBLS.js";
- import {
- c as c2
- } from "./chunk-WLSB4F4I.js";
- import {
- d
- } from "./chunk-GLSWDDR3.js";
- import {
- O
- } from "./chunk-MIQGEDET.js";
- import "./chunk-DUEMJ5XS.js";
- import "./chunk-VRLXUHP2.js";
- import "./chunk-3LVSQLWJ.js";
- import {
- c
- } from "./chunk-4ONPMX2F.js";
- import "./chunk-CRGY2SDS.js";
- import "./chunk-4T5ZGMEN.js";
- import {
- t as t4
- } from "./chunk-PLWDAYK7.js";
- import "./chunk-VGWC3IKZ.js";
- import "./chunk-2H5MD622.js";
- import "./chunk-3RSFVUKZ.js";
- import "./chunk-5N7JLUJJ.js";
- import "./chunk-P3XKUGLS.js";
- import "./chunk-2ZSOO377.js";
- import "./chunk-YUA3AHKR.js";
- import "./chunk-LU5IJZB4.js";
- import "./chunk-7IBV2TRE.js";
- import "./chunk-ZLNEXZAN.js";
- import "./chunk-5UVJ64RB.js";
- import "./chunk-SFEFRQCL.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 {
- v2 as v
- } from "./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 {
- U as U2
- } from "./chunk-DVUG3KID.js";
- import "./chunk-FWSQEIAR.js";
- import {
- j as j2
- } from "./chunk-VEGAOVMY.js";
- import {
- o
- } from "./chunk-6T6G6LCQ.js";
- import "./chunk-YEJL5NEF.js";
- import {
- r as r2
- } from "./chunk-PQFTYGF5.js";
- import {
- e,
- l3 as l,
- n5 as n,
- t2,
- t5 as t3,
- u2 as u,
- y3 as y2
- } from "./chunk-2Z2TG5CU.js";
- import "./chunk-6KZ2LTDA.js";
- import "./chunk-U2XHEJM7.js";
- import "./chunk-SQOPWYIT.js";
- import {
- w
- } from "./chunk-V6P2MAQQ.js";
- import {
- s3 as s
- } from "./chunk-E5O6P5I2.js";
- import {
- y
- } from "./chunk-SPWQ3AWG.js";
- import "./chunk-2TIUKVZN.js";
- import {
- q,
- r,
- t
- } from "./chunk-YXWMMD76.js";
- import "./chunk-S5KM4IGW.js";
- // node_modules/@arcgis/core/layers/support/SceneModification.js
- var m2;
- var y3 = m2 = class extends l {
- constructor(e2) {
- super(e2), this.geometry = null, this.type = "clip";
- }
- writeGeometry(e2, r3, o2, s3) {
- if (s3.layer && s3.layer.spatialReference && !s3.layer.spatialReference.equals(this.geometry.spatialReference)) {
- if (!An(e2.spatialReference, s3.layer.spatialReference))
- return void (s3 && s3.messages && s3.messages.push(new t3("scenemodification:unsupported", "Scene modifications with incompatible spatial references are not supported", { modification: this, spatialReference: s3.layer.spatialReference, context: s3 })));
- const p2 = new v();
- mn(e2, p2, s3.layer.spatialReference), r3[o2] = p2.toJSON(s3);
- } else
- r3[o2] = e2.toJSON(s3);
- delete r3[o2].spatialReference;
- }
- clone() {
- return new m2({ geometry: y(this.geometry), type: this.type });
- }
- };
- e([y2({ type: v }), g()], y3.prototype, "geometry", void 0), e([r2(["web-scene", "portal-item"], "geometry")], y3.prototype, "writeGeometry", null), e([y2({ type: ["clip", "mask", "replace"], nonNullable: true }), g()], y3.prototype, "type", void 0), y3 = m2 = e([n("esri.layers.support.SceneModification")], y3);
- var f = y3;
- // node_modules/@arcgis/core/layers/support/SceneModifications.js
- var a2;
- var n2 = a2 = class extends u(j.ofType(f)) {
- constructor(r3) {
- super(r3), this.url = null;
- }
- clone() {
- return new a2({ url: this.url, items: this.items.map((r3) => r3.clone()) });
- }
- toJSON(r3) {
- return this.toArray().map((o2) => o2.toJSON(r3)).filter((r4) => !!r4.geometry);
- }
- static fromJSON(r3, o2) {
- const t5 = new a2();
- for (const e2 of r3)
- t5.add(f.fromJSON(e2, o2));
- return t5;
- }
- static async fromUrl(r3, t5, e2) {
- const c3 = { url: j2(r3), origin: "service" }, p2 = await U2(r3, { responseType: "json", signal: q(e2, "signal") }), n3 = t5.toJSON(), l4 = [];
- for (const o2 of p2.data)
- l4.push(f.fromJSON({ ...o2, geometry: { ...o2.geometry, spatialReference: n3 } }, c3));
- return new a2({ url: r3, items: l4 });
- }
- };
- e([y2({ type: String })], n2.prototype, "url", void 0), n2 = a2 = e([n("esri.layers.support.SceneModifications")], n2);
- var l3 = n2;
- // node_modules/@arcgis/core/layers/IntegratedMeshLayer.js
- var b2 = class extends N(p(c2(v2(t4(O(i(b))))))) {
- constructor(...e2) {
- super(...e2), this._handles = new t2(), this.geometryType = "mesh", this.operationalLayerType = "IntegratedMeshLayer", this.type = "integrated-mesh", this.nodePages = null, this.materialDefinitions = null, this.textureSetDefinitions = null, this.geometryDefinitions = null, this.serviceUpdateTimeStamp = null, this.profile = "mesh-pyramids", this.modifications = null, this._modificationsSource = null, this.elevationInfo = null, this.path = null;
- }
- destroy() {
- this._handles.destroy();
- }
- initialize() {
- this._handles.add(a(() => this.modifications, "after-changes", () => this.modifications = this.modifications, U));
- }
- normalizeCtorArgs(e2, t5) {
- return "string" == typeof e2 ? { url: e2, ...t5 } : e2;
- }
- readModifications(e2, t5, r3) {
- this._modificationsSource = { url: c(e2, r3), context: r3 };
- }
- async load(e2) {
- return this.addResolvingPromise(this._doLoad(e2)), this;
- }
- async _doLoad(e2) {
- const t5 = q(e2, "signal");
- try {
- await this.loadFromPortal({ supportedTypes: ["Scene Service"] }, e2);
- } catch (r3) {
- w(r3);
- }
- if (await this._fetchService(t5), r(this._modificationsSource)) {
- const t6 = await l3.fromUrl(this._modificationsSource.url, this.spatialReference, e2);
- this.setAtOrigin("modifications", t6, this._modificationsSource.context.origin), this._modificationsSource = null;
- }
- await this._fetchIndexAndUpdateExtent(this.nodePages, t5);
- }
- beforeSave() {
- if (!t(this._modificationsSource))
- return this.load().then(() => {
- }, () => {
- });
- }
- async saveAs(e2, t5) {
- return this._debouncedSaveOperations(L.SAVE_AS, { ...t5, getTypeKeywords: () => this._getTypeKeywords(), portalItemLayerType: "integrated-mesh" }, e2);
- }
- async save() {
- const e2 = { getTypeKeywords: () => this._getTypeKeywords(), portalItemLayerType: "integrated-mesh" };
- return this._debouncedSaveOperations(L.SAVE, e2);
- }
- validateLayer(e2) {
- if (e2.layerType && "IntegratedMesh" !== e2.layerType)
- throw new s("integrated-mesh-layer:layer-type-not-supported", "IntegratedMeshLayer does not support this layer type", { layerType: e2.layerType });
- if (isNaN(this.version.major) || isNaN(this.version.minor))
- throw new s("layer:service-version-not-supported", "Service version is not supported.", { serviceVersion: this.version.versionString, supportedVersions: "1.x" });
- if (this.version.major > 1)
- throw new s("layer:service-version-too-new", "Service version is too new.", { serviceVersion: this.version.versionString, supportedVersions: "1.x" });
- }
- _getTypeKeywords() {
- return ["IntegratedMeshLayer"];
- }
- };
- e([y2({ type: String, readOnly: true })], b2.prototype, "geometryType", void 0), e([y2({ type: ["show", "hide"] })], b2.prototype, "listMode", void 0), e([y2({ type: ["IntegratedMeshLayer"] })], b2.prototype, "operationalLayerType", void 0), e([y2({ json: { read: false }, readOnly: true })], b2.prototype, "type", void 0), e([y2({ type: s2, readOnly: true })], b2.prototype, "nodePages", void 0), e([y2({ type: [l2], readOnly: true })], b2.prototype, "materialDefinitions", void 0), e([y2({ type: [u2], readOnly: true })], b2.prototype, "textureSetDefinitions", void 0), e([y2({ type: [m], readOnly: true })], b2.prototype, "geometryDefinitions", void 0), e([y2({ readOnly: true })], b2.prototype, "serviceUpdateTimeStamp", void 0), e([y2({ type: l3 }), g({ origins: ["web-scene", "portal-item"], type: "resource", prefix: "modifications" })], b2.prototype, "modifications", void 0), e([o(["web-scene", "portal-item"], "modifications")], b2.prototype, "readModifications", null), e([y2(d)], b2.prototype, "elevationInfo", void 0), e([y2({ type: String, json: { origins: { "web-scene": { read: true, write: true }, "portal-item": { read: true, write: true } }, read: false } })], b2.prototype, "path", void 0), b2 = e([n("esri.layers.IntegratedMeshLayer")], b2);
- var A = b2;
- export {
- A as default
- };
- //# sourceMappingURL=IntegratedMeshLayer-7YTE5FG5.js.map
|