123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171 |
- import {
- r
- } from "./chunk-LLEV4BTU.js";
- import "./chunk-H3QCF24A.js";
- import {
- f,
- u
- } from "./chunk-MNZXIBJ7.js";
- import "./chunk-YJKEIUMW.js";
- import "./chunk-JH3PLIM6.js";
- import "./chunk-FCDUTNBY.js";
- import "./chunk-LL6JU3GU.js";
- import "./chunk-ZIWBDWEW.js";
- import "./chunk-IQNZZCQJ.js";
- import "./chunk-Q4LKAPDF.js";
- import "./chunk-TODU7HVH.js";
- import "./chunk-23ONSYIH.js";
- import "./chunk-3T4BXU2T.js";
- import "./chunk-YLVXZ2PS.js";
- import "./chunk-EE6TL7XD.js";
- import "./chunk-GDB2KX4Y.js";
- import "./chunk-546QCRS4.js";
- import "./chunk-QXZVBSBH.js";
- import "./chunk-773XI6MQ.js";
- import "./chunk-WFSV2B2I.js";
- import "./chunk-J525NRN3.js";
- import "./chunk-MI7HWWFL.js";
- import "./chunk-ZHRMTKME.js";
- import "./chunk-MFFE4I2S.js";
- import "./chunk-LGW7TID4.js";
- import "./chunk-G5AI6ZNE.js";
- import "./chunk-FYNVVMWY.js";
- import "./chunk-Q52DVFYK.js";
- import "./chunk-HBMVUVZX.js";
- import "./chunk-CRGVDJI6.js";
- import "./chunk-6P6NA7JB.js";
- import "./chunk-XLV7RUSE.js";
- import "./chunk-NTUXR253.js";
- import "./chunk-RMX2AZ4P.js";
- import "./chunk-NE3ESGA6.js";
- import {
- U,
- l
- } from "./chunk-YIS6BAC3.js";
- import "./chunk-7XXXCK2A.js";
- import "./chunk-WJW5DUN6.js";
- import "./chunk-PJ7ZQ4VD.js";
- import "./chunk-WDLTDV2L.js";
- import "./chunk-TERAW6FT.js";
- import "./chunk-WEMIK25H.js";
- import "./chunk-7N4X6GF3.js";
- import "./chunk-JXW4QTJA.js";
- import "./chunk-UXF37FQ4.js";
- import "./chunk-ZOEK6QHJ.js";
- import "./chunk-XNLG7T2T.js";
- import "./chunk-IR4PV7VK.js";
- import "./chunk-2Z6LERTI.js";
- import "./chunk-OWVBLVP3.js";
- import {
- n as n2,
- t as t2
- } from "./chunk-AFZ7XSEW.js";
- import "./chunk-YBSUITLL.js";
- import {
- j
- } from "./chunk-ALDCDSPV.js";
- import "./chunk-DT6EAZQ5.js";
- import "./chunk-HNOZUNJ4.js";
- import "./chunk-PDKDCAAD.js";
- import "./chunk-ECW2QABR.js";
- import "./chunk-GCDJLKH4.js";
- import "./chunk-MRJEICT6.js";
- import {
- d,
- e,
- n2 as n
- } from "./chunk-Y3WMVFTW.js";
- import "./chunk-SAS7RONY.js";
- import "./chunk-WSRBH7BF.js";
- import "./chunk-IHXECKQQ.js";
- import "./chunk-ULGDPLM2.js";
- import "./chunk-EMJ4ZSM2.js";
- import "./chunk-IKP3YN53.js";
- import {
- t
- } from "./chunk-GZT4BVFP.js";
- import "./chunk-A5ICIBVI.js";
- // node_modules/@arcgis/core/views/layers/GroupLayerView.js
- var p = class extends u {
- constructor(i2) {
- super(i2), this.type = "group", this.layerViews = new j();
- }
- _allLayerViewVisibility(i2) {
- this.layerViews.forEach((e2) => {
- e2.visible = i2;
- });
- }
- initialize() {
- this.handles.add([this.layerViews.on("change", (i2) => this._layerViewsChangeHandler(i2)), l(() => this.layer.visibilityMode, () => this._applyVisibility(() => this._allLayerViewVisibility(this.visible), () => this._applyExclusiveVisibility(null)), U), l(() => this.visible, (i2) => {
- this._applyVisibility(() => this._allLayerViewVisibility(i2), () => {
- });
- }, U)], "grouplayerview"), this._layerViewsChangeHandler({ target: null, added: this.layerViews.toArray(), removed: [], moved: [] });
- }
- set layerViews(i2) {
- this._set("layerViews", n2(i2, this._get("layerViews")));
- }
- get updatingProgress() {
- return this.layerViews.length === 0 ? 1 : this.layerViews.reduce((i2, e2) => i2 + e2.updatingProgress, 0) / this.layerViews.length;
- }
- isUpdating() {
- return this.layerViews.some((i2) => i2.updating);
- }
- _hasLayerViewVisibleOverrides() {
- return this.layerViews.some((i2) => i2._isOverridden("visible"));
- }
- _findLayerViewForLayer(i2) {
- return i2 && this.layerViews.find((e2) => e2.layer === i2);
- }
- _firstVisibleOnLayerOrder() {
- const i2 = this.layer.layers.find((i3) => this._findLayerViewForLayer(i3)?.visible);
- return i2 && this._findLayerViewForLayer(i2);
- }
- _applyExclusiveVisibility(i2) {
- t(i2) && (i2 = this._firstVisibleOnLayerOrder(), t(i2) && this.layerViews.length > 0 && (i2 = this._findLayerViewForLayer(this.layer.layers.getItemAt(0)))), this.layerViews.forEach((e2) => {
- e2.visible = e2 === i2;
- });
- }
- _layerViewsChangeHandler(i2) {
- this.handles.remove("grouplayerview:visible"), this.handles.add(this.layerViews.map((i3) => l(() => i3.visible, (e3) => this._applyVisibility(() => {
- e3 !== this.visible && (i3.visible = this.visible);
- }, () => this._applyExclusiveVisibility(e3 ? i3 : null)), U)).toArray(), "grouplayerview:visible");
- const e2 = i2.added[i2.added.length - 1];
- this._applyVisibility(() => this._allLayerViewVisibility(this.visible), () => this._applyExclusiveVisibility(e2?.visible ? e2 : null));
- }
- _applyVisibility(i2, e2) {
- this._hasLayerViewVisibleOverrides() && (this.layer?.visibilityMode === "inherited" ? i2() : this.layer?.visibilityMode === "exclusive" && e2());
- }
- };
- e([d({ cast: t2 })], p.prototype, "layerViews", null), e([d({ readOnly: true })], p.prototype, "updatingProgress", null), e([d()], p.prototype, "view", void 0), p = e([n("esri.views.layers.GroupLayerView")], p);
- var n3 = p;
- // node_modules/@arcgis/core/views/2d/layers/GroupLayerView2D.js
- var a = class extends f(n3) {
- constructor() {
- super(...arguments), this.container = new r();
- }
- attach() {
- this._updateStageChildren(), this.handles.add(this.layerViews.on("after-changes", () => this._updateStageChildren()), "grouplayerview2d");
- }
- detach() {
- this.handles.remove("grouplayerview2d"), this.container.removeAllChildren();
- }
- update(e2) {
- }
- moveStart() {
- }
- viewChange() {
- }
- moveEnd() {
- }
- _updateStageChildren() {
- this.container.removeAllChildren(), this.layerViews.forEach((e2, r2) => this.container.addChildAt(e2.container, r2));
- }
- };
- a = e([n("esri.views.2d.layers.GroupLayerView2D")], a);
- var i = a;
- export {
- i as default
- };
- //# sourceMappingURL=GroupLayerView2D-H64XIDHT.js.map
|