123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177 |
- import {
- r
- } from "./chunk-MEH62CCE.js";
- import {
- u,
- y as y2
- } from "./chunk-ZOTXRPGC.js";
- import "./chunk-MH3GGTFP.js";
- import "./chunk-2ZACOQZJ.js";
- import "./chunk-JBMHQ5RK.js";
- import "./chunk-WBWQJQK4.js";
- import "./chunk-DBT4KOKX.js";
- import "./chunk-2GP5D74I.js";
- import "./chunk-SCZJ2KEY.js";
- import "./chunk-EPMXCACW.js";
- import "./chunk-T2SKWJGU.js";
- import "./chunk-UO3LS2M5.js";
- import "./chunk-H2VOWDMO.js";
- import "./chunk-QISOH77W.js";
- import "./chunk-UWKVAZQ6.js";
- import "./chunk-3WXSWAUV.js";
- import "./chunk-27YO3FKC.js";
- import "./chunk-EQNT4A7P.js";
- import "./chunk-XO5VJRK4.js";
- import "./chunk-4OM3EX6P.js";
- import "./chunk-3OFVLRSL.js";
- import "./chunk-IQBIGNPU.js";
- import "./chunk-K7B6OWCU.js";
- import "./chunk-UDYHZLTE.js";
- import "./chunk-RWQH5X3O.js";
- import "./chunk-4VZNS7N2.js";
- import "./chunk-O3JQY77G.js";
- import "./chunk-E3G7BRZB.js";
- import "./chunk-EDHROVWI.js";
- import "./chunk-3IRT3YKJ.js";
- import "./chunk-RDMCXRET.js";
- import "./chunk-PJNBFKPF.js";
- import "./chunk-C7742RNZ.js";
- import {
- U,
- l
- } from "./chunk-BWATQC2Y.js";
- import "./chunk-3WQOA5CB.js";
- import "./chunk-FZQZIM7U.js";
- import "./chunk-CZBRZ6SU.js";
- import "./chunk-VGWC3IKZ.js";
- import "./chunk-UVVU4UUO.js";
- import "./chunk-X4SA4ELJ.js";
- import {
- n as n2,
- t as t2
- } from "./chunk-PE24J2I5.js";
- import "./chunk-AUOH2VSO.js";
- import "./chunk-ZYRIJWLX.js";
- import "./chunk-RYY6632W.js";
- import "./chunk-DW42UVIT.js";
- import "./chunk-TJNOJH33.js";
- import "./chunk-YAEIHDJH.js";
- import "./chunk-OSHI574D.js";
- import "./chunk-44GMIOGP.js";
- import "./chunk-75U5LM2V.js";
- import "./chunk-ZHRAUKVQ.js";
- import "./chunk-RZK6A2GY.js";
- import {
- j
- } from "./chunk-4NQ74ZR6.js";
- import "./chunk-X4LLOW7U.js";
- import "./chunk-Z4JTBD7M.js";
- import "./chunk-MSBIHK67.js";
- import "./chunk-HZRKBTHJ.js";
- import "./chunk-CXCDYJ5R.js";
- import "./chunk-GAOW3WRZ.js";
- import "./chunk-QCKFNSN2.js";
- import {
- e,
- n5 as n,
- y3 as y
- } from "./chunk-6SOHRC7T.js";
- import "./chunk-U2XHEJM7.js";
- import "./chunk-SQOPWYIT.js";
- import "./chunk-6KZ2LTDA.js";
- import "./chunk-V6P2MAQQ.js";
- import "./chunk-E5O6P5I2.js";
- import "./chunk-SPWQ3AWG.js";
- import "./chunk-2TIUKVZN.js";
- import {
- t
- } from "./chunk-YXWMMD76.js";
- import "./chunk-S5KM4IGW.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 0 === this.layerViews.length ? 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) => {
- var _a;
- return (_a = this._findLayerViewForLayer(i3)) == null ? void 0 : _a.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 == null ? void 0 : e2.visible) ? e2 : null));
- }
- _applyVisibility(i2, e2) {
- var _a, _b;
- this._hasLayerViewVisibleOverrides() && ("inherited" === ((_a = this.layer) == null ? void 0 : _a.visibilityMode) ? i2() : "exclusive" === ((_b = this.layer) == null ? void 0 : _b.visibilityMode) && e2());
- }
- };
- e([y({ cast: t2 })], p.prototype, "layerViews", null), e([y({ readOnly: true })], p.prototype, "updatingProgress", null), e([y()], 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 y2(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-63UXVU7J.js.map
|