@eox/layercontrol 1.7.0 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/eox-layercontrol.js +94 -39
- package/dist/eox-layercontrol.umd.cjs +16 -9
- package/package.json +5 -4
- package/src/components/layer-config.js +12 -2
- package/src/components/layer-group.js +4 -0
- package/src/components/layer-list.js +4 -0
- package/src/components/layer-tools.js +9 -0
- package/src/components/layer.js +9 -0
- package/src/enums/index.js +3 -0
- package/src/enums/stories/assets/colormaps.json +50 -0
- package/src/enums/stories/index.js +179 -6
- package/src/helpers/get-legend-config.js +30 -14
- package/src/helpers/get-start-vals.js +23 -11
- package/src/main.js +3 -0
- package/src/methods/layer-config/data-change.js +42 -31
- package/types/components/layer-config.d.ts +12 -0
- package/types/components/layer-config.d.ts.map +1 -1
- package/types/components/layer-group.d.ts +5 -0
- package/types/components/layer-group.d.ts.map +1 -1
- package/types/components/layer-list.d.ts +5 -0
- package/types/components/layer-list.d.ts.map +1 -1
- package/types/components/layer-tools.d.ts +10 -0
- package/types/components/layer-tools.d.ts.map +1 -1
- package/types/components/layer.d.ts +10 -0
- package/types/components/layer.d.ts.map +1 -1
- package/types/enums/index.d.ts +1 -1
- package/types/enums/stories/index.d.ts +442 -176
- package/types/enums/stories/index.d.ts.map +1 -1
- package/types/helpers/get-legend-config.d.ts +2 -1
- package/types/helpers/get-legend-config.d.ts.map +1 -1
- package/types/helpers/get-start-vals.d.ts.map +1 -1
- package/types/main.d.ts +5 -0
- package/types/main.d.ts.map +1 -1
- package/types/methods/layer-config/data-change.d.ts.map +1 -1
- package/src/enums/stories/assets/cropomhusc-feature-collection.json +0 -5274
package/dist/eox-layercontrol.js
CHANGED
|
@@ -1134,7 +1134,7 @@ function kn(e) {
|
|
|
1134
1134
|
}
|
|
1135
1135
|
var An = "1.15.7";
|
|
1136
1136
|
function jn(e) {
|
|
1137
|
-
if (typeof window < "u" && window.navigator) return
|
|
1137
|
+
if (typeof window < "u" && window.navigator) return !!/*@__PURE__*/ navigator.userAgent.match(e);
|
|
1138
1138
|
}
|
|
1139
1139
|
var Mn = jn(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Nn = jn(/Edge/i), Pn = jn(/firefox/i), Fn = jn(/safari/i) && !jn(/chrome/i) && !jn(/android/i), In = jn(/iP(ad|od|hone)/i), Ln = jn(/chrome/i) && jn(/android/i), Rn = {
|
|
1140
1140
|
capture: !1,
|
|
@@ -2617,7 +2617,7 @@ function Va(e, t) {
|
|
|
2617
2617
|
}
|
|
2618
2618
|
//#endregion
|
|
2619
2619
|
//#region ../../node_modules/ol/proj/utm.js
|
|
2620
|
-
var Ha = .9996, Ua = .00669438, Wa = Ua * Ua, Ga = Wa * Ua, Ka = Ua / (1 - Ua), qa = Math.sqrt(1 - Ua), Ja = (1 - qa) / (1 + qa), Ya = Ja * Ja, Xa = Ya * Ja, Za = Xa * Ja, Qa = Za * Ja, $a = 1 - Ua / 4 - 3 * Wa / 64 - 5 * Ga / 256, eo =
|
|
2620
|
+
var Ha = .9996, Ua = .00669438, Wa = Ua * Ua, Ga = Wa * Ua, Ka = Ua / (1 - Ua), qa = Math.sqrt(1 - Ua), Ja = (1 - qa) / (1 + qa), Ya = Ja * Ja, Xa = Ya * Ja, Za = Xa * Ja, Qa = Za * Ja, $a = 1 - Ua / 4 - 3 * Wa / 64 - 5 * Ga / 256, eo = .002514607064228144, to = 26390466021299826e-22, no = 35 * Ga / 3072, ro = 3 / 2 * Ja - 27 / 32 * Xa + 269 / 512 * Qa, io = 21 / 16 * Ya - 55 / 32 * Za, ao = 151 / 96 * Xa - 417 / 128 * Qa, oo = 1097 / 512 * Za, so = 6378137;
|
|
2621
2621
|
function co(e, t, n) {
|
|
2622
2622
|
let r = e - 5e5, i = (n.north ? t : t - 1e7) / Ha / (so * $a), a = i + ro * Math.sin(2 * i) + io * Math.sin(4 * i) + ao * Math.sin(6 * i) + oo * Math.sin(8 * i), o = Math.sin(a), s = o * o, c = Math.cos(a), l = o / c, u = l * l, d = u * u, f = 1 - Ua * s, p = so / Math.sqrt(1 - Ua * s), m = (1 - Ua) / f, h = Ka * c ** 2, g = h * h, _ = r / (p * Ha), v = _ * _, y = v * _, b = y * _, x = b * _, S = x * _, C = a - l / m * (v / 2 - b / 24 * (5 + 3 * u + 10 * h - 4 * g - 9 * Ka)) + S / 720 * (61 + 90 * u + 298 * h + 45 * d - 252 * Ka - 3 * g), w = (_ - y / 6 * (1 + 2 * u + h) + x / 120 * (5 - 2 * h + 28 * u - 3 * g + 8 * Ka + 24 * d)) / c;
|
|
2623
2623
|
return w = _a(w + fa(ho(n.number)), -Math.PI, Math.PI), [da(w), da(C)];
|
|
@@ -4142,17 +4142,22 @@ var hc = class extends pc {
|
|
|
4142
4142
|
return this.gutter_;
|
|
4143
4143
|
}
|
|
4144
4144
|
}, gc = (e, t, n) => {
|
|
4145
|
-
let r = t;
|
|
4146
|
-
|
|
4147
|
-
let
|
|
4148
|
-
|
|
4149
|
-
}
|
|
4150
|
-
|
|
4151
|
-
|
|
4152
|
-
|
|
4145
|
+
let r = t, i = n.layer.getSource();
|
|
4146
|
+
if (i.updateParams) {
|
|
4147
|
+
let t = { ...e };
|
|
4148
|
+
(n.layerConfig.schema?.options?.removeProperties ?? []).forEach((e) => delete t[e]), i.updateParams(t);
|
|
4149
|
+
} else i.getTileUrlFunction && i.getTileUrlFunction() && (r ||= i.getTileUrlFunction(), i.setTileUrlFunction((...t) => {
|
|
4150
|
+
let a = new URL(r(...t)), o = n.layerConfig.schema?.options?.removeProperties ?? [], s = { ...e };
|
|
4151
|
+
return o.forEach((e) => delete s[e]), i instanceof hc && (i._updatedUrl = bn(i.getUrls()[0], s)), o.forEach((e) => a.searchParams.delete(e)), bn(a.href, s);
|
|
4152
|
+
}), i.setKey((/* @__PURE__ */ new Date()).toISOString()));
|
|
4153
|
+
let a = document.querySelector("eox-map");
|
|
4154
|
+
if (a) {
|
|
4155
|
+
let t = a.globe;
|
|
4153
4156
|
if (t) {
|
|
4154
|
-
let r =
|
|
4155
|
-
|
|
4157
|
+
let r = { ...e };
|
|
4158
|
+
(n.layerConfig.schema?.options?.removeProperties ?? []).forEach((e) => delete r[e]);
|
|
4159
|
+
let i = t.planet.layers.filter((e) => e.name == n.layer.get("id"))[0];
|
|
4160
|
+
i && i.setUrl(bn(i.url, r)), window.eoxMapGlobe.refresh();
|
|
4156
4161
|
}
|
|
4157
4162
|
}
|
|
4158
4163
|
return r;
|
|
@@ -4192,14 +4197,20 @@ function yc(e) {
|
|
|
4192
4197
|
}
|
|
4193
4198
|
//#endregion
|
|
4194
4199
|
//#region src/helpers/get-legend-config.js
|
|
4195
|
-
var bc = (e, t) => {
|
|
4200
|
+
var bc = (e, t, n) => {
|
|
4196
4201
|
if (!e) return;
|
|
4197
|
-
let
|
|
4198
|
-
return
|
|
4202
|
+
let r = vc(t), i, a;
|
|
4203
|
+
return a = Array.isArray(e) ? structuredClone(e) : [structuredClone(e)], i = a.filter((e) => {
|
|
4199
4204
|
if (!("boundTo" in e)) return !0;
|
|
4200
|
-
let t = e.boundTo.key,
|
|
4201
|
-
return t in
|
|
4202
|
-
}),
|
|
4205
|
+
let t = e.boundTo.key, n = e.boundTo.value;
|
|
4206
|
+
return t in r && r[t] == n;
|
|
4207
|
+
}), i.length || (i = null), i?.map((e) => {
|
|
4208
|
+
if (delete e.boundTo, e.rangeProperty && n) {
|
|
4209
|
+
let t = r[e.rangeProperty];
|
|
4210
|
+
t && n[t] ? (e.range = n[t], delete e.rangeProperty) : t && (e.range = ["#ffffff", "#000000"]);
|
|
4211
|
+
}
|
|
4212
|
+
return !("domainProperties" in e) || "domain" in e ? e : Object.keys(e)?.reduce((t, n) => (n === "domainProperties" ? t.domain = e[n].map((e) => r[e]) : t[n] = e[n], t), {});
|
|
4213
|
+
}).filter(Boolean);
|
|
4203
4214
|
};
|
|
4204
4215
|
//#endregion
|
|
4205
4216
|
//#region src/helpers/get-start-vals.js
|
|
@@ -4219,18 +4230,25 @@ function Sc(e, t) {
|
|
|
4219
4230
|
if (!t) return null;
|
|
4220
4231
|
let n = {}, r = "updateStyleVariables" in e ? e.style_?.variables : t.style?.variables;
|
|
4221
4232
|
if ((t.type === "style" || t.style) && r) n = r;
|
|
4222
|
-
else if (e.getSource()?.
|
|
4223
|
-
|
|
4233
|
+
else if (e.getSource()?.getParams?.()) n = e.getSource().getParams();
|
|
4234
|
+
else if (e.getSource()?.getTileUrlFunction?.()) try {
|
|
4235
|
+
let t = e.getSource().getTileUrlFunction()([
|
|
4224
4236
|
0,
|
|
4225
4237
|
0,
|
|
4226
4238
|
0
|
|
4227
|
-
])
|
|
4228
|
-
|
|
4229
|
-
|
|
4230
|
-
|
|
4231
|
-
|
|
4239
|
+
]);
|
|
4240
|
+
if (t) {
|
|
4241
|
+
let e = new URL(t);
|
|
4242
|
+
n = {};
|
|
4243
|
+
for (let [t, r] of e.searchParams.entries()) {
|
|
4244
|
+
let i = e.searchParams.getAll(t);
|
|
4245
|
+
n[t] = i.length > 1 ? i : r;
|
|
4246
|
+
}
|
|
4232
4247
|
}
|
|
4233
|
-
}
|
|
4248
|
+
} catch (e) {
|
|
4249
|
+
console.error("Error parsing start values from tile URL", e);
|
|
4250
|
+
}
|
|
4251
|
+
else return null;
|
|
4234
4252
|
let i = xc(t.schema?.properties || t.schema, n);
|
|
4235
4253
|
return Object.keys(i).length ? i : null;
|
|
4236
4254
|
}
|
|
@@ -4547,6 +4565,10 @@ var zc = class extends k {
|
|
|
4547
4565
|
unstyled: { type: Boolean },
|
|
4548
4566
|
noShadow: { type: Boolean },
|
|
4549
4567
|
layerConfig: { attribute: !1 },
|
|
4568
|
+
colormapRegistry: {
|
|
4569
|
+
attribute: !1,
|
|
4570
|
+
type: Object
|
|
4571
|
+
},
|
|
4550
4572
|
customEditorInterfaces: {
|
|
4551
4573
|
attribute: !1,
|
|
4552
4574
|
type: Array
|
|
@@ -4556,11 +4578,11 @@ var zc = class extends k {
|
|
|
4556
4578
|
#t = null;
|
|
4557
4579
|
#n;
|
|
4558
4580
|
constructor() {
|
|
4559
|
-
super(), this.layer = null, this.unstyled = !1, this.noShadow = !1, this.layerConfig = null, this.throttleDataChange = (0, Ic.default)(this.#r, 1e3), this.customEditorInterfaces = [];
|
|
4581
|
+
super(), this.layer = null, this.unstyled = !1, this.noShadow = !1, this.layerConfig = null, this.throttleDataChange = (0, Ic.default)(this.#r, 1e3), this.customEditorInterfaces = [], this.colormapRegistry = null;
|
|
4560
4582
|
}
|
|
4561
4583
|
updated(e) {
|
|
4562
4584
|
if (e.has("layerConfig")) {
|
|
4563
|
-
let e = this.layerConfig
|
|
4585
|
+
let e = this.layerConfig?.type === "style" || this.layerConfig?.style ? 100 : 1e3;
|
|
4564
4586
|
this.throttleDataChange = (0, Ic.default)(this.#r, e), this.requestUpdate();
|
|
4565
4587
|
}
|
|
4566
4588
|
}
|
|
@@ -4594,7 +4616,7 @@ var zc = class extends k {
|
|
|
4594
4616
|
.noShadow=${!0}
|
|
4595
4617
|
.unstyled=${this.unstyled}
|
|
4596
4618
|
.layer=${this.layer}
|
|
4597
|
-
.layerLegend=${bc(this.layerConfig.legend, this.#
|
|
4619
|
+
.layerLegend=${bc(this.layerConfig.legend, this.#t, this.colormapRegistry)}
|
|
4598
4620
|
></eox-layercontrol-layer-legend>
|
|
4599
4621
|
`)}
|
|
4600
4622
|
<!-- Render a JSON form for layer configuration -->
|
|
@@ -4823,6 +4845,10 @@ var Hc = class extends k {
|
|
|
4823
4845
|
type: Boolean
|
|
4824
4846
|
},
|
|
4825
4847
|
embedded: { state: !0 },
|
|
4848
|
+
colormapRegistry: {
|
|
4849
|
+
attribute: !1,
|
|
4850
|
+
type: Object
|
|
4851
|
+
},
|
|
4826
4852
|
customEditorInterfaces: {
|
|
4827
4853
|
attribute: !1,
|
|
4828
4854
|
type: Array
|
|
@@ -4832,7 +4858,7 @@ var Hc = class extends k {
|
|
|
4832
4858
|
super(), this.layer = null, this.tools = [], this.unstyled = !1, this.noShadow = !1, this.toolsAsList = !1, this.open = !1, this.toolsAutoExpand = !1, setTimeout(() => {
|
|
4833
4859
|
let e = this.parentElement || this.getRootNode()?.host;
|
|
4834
4860
|
this.embedded = e?.tagName === "EOX-LAYERCONTROL-LAYER", (this.open === void 0 || this.open === !1 || this.open === null) && (this.open = this.toolsAutoExpand ? !!this.layer?.getVisible() : this.embedded === !1 ? !0 : !!this.layer?.get("layerControlToolsExpand"));
|
|
4835
|
-
}), this.customEditorInterfaces = [];
|
|
4861
|
+
}), this.customEditorInterfaces = [], this.colormapRegistry = null;
|
|
4836
4862
|
}
|
|
4837
4863
|
createRenderRoot() {
|
|
4838
4864
|
return this.noShadow ? this : super.createRenderRoot();
|
|
@@ -4881,6 +4907,7 @@ var Hc = class extends k {
|
|
|
4881
4907
|
.layer=${this.layer}
|
|
4882
4908
|
.noShadow=${!0}
|
|
4883
4909
|
.layerConfig=${this.layer.get("layerConfig")}
|
|
4910
|
+
.colormapRegistry=${this.colormapRegistry}
|
|
4884
4911
|
.unstyled=${this.unstyled}
|
|
4885
4912
|
.customEditorInterfaces=${this.customEditorInterfaces}
|
|
4886
4913
|
@changed=${() => this.requestUpdate()}
|
|
@@ -5067,6 +5094,10 @@ var Uc = (e) => {
|
|
|
5067
5094
|
attribute: "tools-auto-expand",
|
|
5068
5095
|
type: Boolean
|
|
5069
5096
|
},
|
|
5097
|
+
colormapRegistry: {
|
|
5098
|
+
attribute: !1,
|
|
5099
|
+
type: Object
|
|
5100
|
+
},
|
|
5070
5101
|
customEditorInterfaces: {
|
|
5071
5102
|
attribute: !1,
|
|
5072
5103
|
type: Array
|
|
@@ -5074,7 +5105,7 @@ var Uc = (e) => {
|
|
|
5074
5105
|
};
|
|
5075
5106
|
currLayerVisibilityBasedOnZoom = !0;
|
|
5076
5107
|
constructor() {
|
|
5077
|
-
super(), this.layer = null, this.layerType = void 0, this.map = null, this.titleProperty = "title", this.showLayerZoomState = !1, this.tools = [], this.unstyled = !1, this.noShadow = !1, this.toolsAsList = !1, this.toolsAutoExpand = !1, this.globallyExclusiveLayers = !1, this.customEditorInterfaces = [];
|
|
5108
|
+
super(), this.layer = null, this.layerType = void 0, this.map = null, this.titleProperty = "title", this.showLayerZoomState = !1, this.tools = [], this.unstyled = !1, this.noShadow = !1, this.toolsAsList = !1, this.toolsAutoExpand = !1, this.globallyExclusiveLayers = !1, this.customEditorInterfaces = [], this.colormapRegistry = null;
|
|
5078
5109
|
}
|
|
5079
5110
|
#e(e) {
|
|
5080
5111
|
return this.layer?.get(e);
|
|
@@ -5230,6 +5261,7 @@ var Uc = (e) => {
|
|
|
5230
5261
|
.unstyled=${this.unstyled}
|
|
5231
5262
|
.toolsAsList=${this.toolsAsList}
|
|
5232
5263
|
.toolsAutoExpand=${this.toolsAutoExpand}
|
|
5264
|
+
.colormapRegistry=${this.colormapRegistry}
|
|
5233
5265
|
.customEditorInterfaces=${this.customEditorInterfaces}
|
|
5234
5266
|
></eox-layercontrol-layer-tools>
|
|
5235
5267
|
`)}
|
|
@@ -5266,13 +5298,17 @@ var Kc = class extends k {
|
|
|
5266
5298
|
attribute: "tools-auto-expand",
|
|
5267
5299
|
type: Boolean
|
|
5268
5300
|
},
|
|
5301
|
+
colormapRegistry: {
|
|
5302
|
+
attribute: !1,
|
|
5303
|
+
type: Object
|
|
5304
|
+
},
|
|
5269
5305
|
customEditorInterfaces: {
|
|
5270
5306
|
attribute: !1,
|
|
5271
5307
|
type: Array
|
|
5272
5308
|
}
|
|
5273
5309
|
};
|
|
5274
5310
|
constructor() {
|
|
5275
|
-
super(), this.group = null, this.idProperty = "id", this.map = null, this.titleProperty = "title", this.showLayerZoomState = !1, this.tools = [], this.unstyled = !1, this.noShadow = !1, this.toolsAsList = !1, this.toolsAutoExpand = !1, this.globallyExclusiveLayers = !1, this.customEditorInterfaces = [];
|
|
5311
|
+
super(), this.group = null, this.idProperty = "id", this.map = null, this.titleProperty = "title", this.showLayerZoomState = !1, this.tools = [], this.unstyled = !1, this.noShadow = !1, this.toolsAsList = !1, this.toolsAutoExpand = !1, this.globallyExclusiveLayers = !1, this.customEditorInterfaces = [], this.colormapRegistry = null;
|
|
5276
5312
|
}
|
|
5277
5313
|
createRenderRoot() {
|
|
5278
5314
|
return this.noShadow ? this : super.createRenderRoot();
|
|
@@ -5322,6 +5358,7 @@ var Kc = class extends k {
|
|
|
5322
5358
|
.toolsAsList=${this.toolsAsList}
|
|
5323
5359
|
.globallyExclusiveLayers=${this.globallyExclusiveLayers}
|
|
5324
5360
|
.toolsAutoExpand=${this.toolsAutoExpand}
|
|
5361
|
+
.colormapRegistry=${this.colormapRegistry}
|
|
5325
5362
|
.customEditorInterfaces=${this.customEditorInterfaces}
|
|
5326
5363
|
@changed=${() => this.requestUpdate()}
|
|
5327
5364
|
></eox-layercontrol-layer>
|
|
@@ -5340,6 +5377,7 @@ var Kc = class extends k {
|
|
|
5340
5377
|
.toolsAsList=${this.toolsAsList}
|
|
5341
5378
|
.globallyExclusiveLayers=${this.globallyExclusiveLayers}
|
|
5342
5379
|
.toolsAutoExpand=${this.toolsAutoExpand}
|
|
5380
|
+
.colormapRegistry=${this.colormapRegistry}
|
|
5343
5381
|
.customEditorInterfaces=${this.customEditorInterfaces}
|
|
5344
5382
|
@changed=${() => this.requestUpdate()}
|
|
5345
5383
|
></eox-layercontrol-layer-list>
|
|
@@ -5456,13 +5494,17 @@ var qc = /* @__PURE__ */ c((/* @__PURE__ */ o(((e, t) => {
|
|
|
5456
5494
|
attribute: "tools-auto-expand",
|
|
5457
5495
|
type: Boolean
|
|
5458
5496
|
},
|
|
5497
|
+
colormapRegistry: {
|
|
5498
|
+
attribute: !1,
|
|
5499
|
+
type: Object
|
|
5500
|
+
},
|
|
5459
5501
|
customEditorInterfaces: {
|
|
5460
5502
|
attribute: !1,
|
|
5461
5503
|
type: Array
|
|
5462
5504
|
}
|
|
5463
5505
|
};
|
|
5464
5506
|
constructor() {
|
|
5465
|
-
super(), this.idProperty = "id", this.layers = null, this.map = null, this.tools = void 0, this.titleProperty = "title", this.showLayerZoomState = !1, this.unstyled = !1, this.noShadow = !1, this.toolsAsList = !1, this.toolsAutoExpand = !1, this.globallyExclusiveLayers = !1, this.customEditorInterfaces = [];
|
|
5507
|
+
super(), this.idProperty = "id", this.layers = null, this.map = null, this.tools = void 0, this.titleProperty = "title", this.showLayerZoomState = !1, this.unstyled = !1, this.noShadow = !1, this.toolsAsList = !1, this.toolsAutoExpand = !1, this.globallyExclusiveLayers = !1, this.customEditorInterfaces = [], this.colormapRegistry = null;
|
|
5466
5508
|
}
|
|
5467
5509
|
firstUpdated() {
|
|
5468
5510
|
Jc(this);
|
|
@@ -5498,6 +5540,7 @@ var qc = /* @__PURE__ */ c((/* @__PURE__ */ o(((e, t) => {
|
|
|
5498
5540
|
.toolsAsList=${this.toolsAsList}
|
|
5499
5541
|
.globallyExclusiveLayers=${this.globallyExclusiveLayers}
|
|
5500
5542
|
.toolsAutoExpand=${this.toolsAutoExpand}
|
|
5543
|
+
.colormapRegistry=${this.colormapRegistry}
|
|
5501
5544
|
.customEditorInterfaces=${this.customEditorInterfaces}
|
|
5502
5545
|
@changed=${() => this.requestUpdate()}
|
|
5503
5546
|
>
|
|
@@ -5515,6 +5558,7 @@ var qc = /* @__PURE__ */ c((/* @__PURE__ */ o(((e, t) => {
|
|
|
5515
5558
|
.toolsAsList=${this.toolsAsList}
|
|
5516
5559
|
.globallyExclusiveLayers=${this.globallyExclusiveLayers}
|
|
5517
5560
|
.toolsAutoExpand=${this.toolsAutoExpand}
|
|
5561
|
+
.colormapRegistry=${this.colormapRegistry}
|
|
5518
5562
|
.customEditorInterfaces=${this.customEditorInterfaces}
|
|
5519
5563
|
@changed=${() => this.requestUpdate()}
|
|
5520
5564
|
></eox-layercontrol-layer>
|
|
@@ -5832,11 +5876,17 @@ var al = (e, t) => {
|
|
|
5832
5876
|
}, sl = (e) => {
|
|
5833
5877
|
let t;
|
|
5834
5878
|
if (typeof e == "string") {
|
|
5835
|
-
let n = (t) =>
|
|
5836
|
-
|
|
5837
|
-
|
|
5838
|
-
|
|
5839
|
-
|
|
5879
|
+
let n = (e, t) => {
|
|
5880
|
+
let r = e.querySelector(t);
|
|
5881
|
+
if (r) return r;
|
|
5882
|
+
let i = e.querySelectorAll("*");
|
|
5883
|
+
for (let e = 0; e < i.length; e++) {
|
|
5884
|
+
let a = i[e];
|
|
5885
|
+
if (a.shadowRoot && (r = n(a.shadowRoot, t), r)) return r;
|
|
5886
|
+
}
|
|
5887
|
+
return null;
|
|
5888
|
+
};
|
|
5889
|
+
t = n(document, e) || void 0;
|
|
5840
5890
|
} else t = e;
|
|
5841
5891
|
return t;
|
|
5842
5892
|
}, cl = (e) => {
|
|
@@ -5878,6 +5928,10 @@ var ll = class extends k {
|
|
|
5878
5928
|
attribute: "tools-auto-expand",
|
|
5879
5929
|
type: Boolean
|
|
5880
5930
|
},
|
|
5931
|
+
colormapRegistry: {
|
|
5932
|
+
attribute: !1,
|
|
5933
|
+
type: Object
|
|
5934
|
+
},
|
|
5881
5935
|
customEditorInterfaces: { type: Array }
|
|
5882
5936
|
};
|
|
5883
5937
|
#e;
|
|
@@ -5889,7 +5943,7 @@ var ll = class extends k {
|
|
|
5889
5943
|
"config",
|
|
5890
5944
|
"remove",
|
|
5891
5945
|
"sort"
|
|
5892
|
-
], this.addExternalLayers = !1, this.unstyled = !1, this.styleOverride = "", this.toolsAsList = !1, this.globallyExclusiveLayers = !1, this.toolsAutoExpand = !1, this.customEditorInterfaces = [];
|
|
5946
|
+
], this.addExternalLayers = !1, this.unstyled = !1, this.styleOverride = "", this.toolsAsList = !1, this.globallyExclusiveLayers = !1, this.toolsAutoExpand = !1, this.customEditorInterfaces = [], this.colormapRegistry = null;
|
|
5893
5947
|
}
|
|
5894
5948
|
firstUpdated() {
|
|
5895
5949
|
this.eoxMap = cl(this);
|
|
@@ -5948,6 +6002,7 @@ var ll = class extends k {
|
|
|
5948
6002
|
.toolsAsList=${this.toolsAsList}
|
|
5949
6003
|
.globallyExclusiveLayers=${this.globallyExclusiveLayers}
|
|
5950
6004
|
.toolsAutoExpand=${this.toolsAutoExpand}
|
|
6005
|
+
.colormapRegistry=${this.colormapRegistry}
|
|
5951
6006
|
.customEditorInterfaces=${this.customEditorInterfaces}
|
|
5952
6007
|
@changed=${this.#t}
|
|
5953
6008
|
@datetime:updated=${(e) => Ac(e, this)}
|