@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/enums/stories/index.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/enums/stories/index.js"],"names":[],"mappings":"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ayerConfig["layerConfig"]["legend"]} legendConfig
|
|
6
6
|
* @param {Record<string,unknown>} data
|
|
7
|
+
* @param {Record<string,string[]>} [colormapRegistry]
|
|
7
8
|
*/
|
|
8
|
-
declare function getLegendConfig(legendConfig: import("../components/layer-config").EOxLayerControlLayerConfig["layerConfig"]["legend"], data: Record<string, unknown>): import("../components/layer-legend").LegendConfig[];
|
|
9
|
+
declare function getLegendConfig(legendConfig: import("../components/layer-config").EOxLayerControlLayerConfig["layerConfig"]["legend"], data: Record<string, unknown>, colormapRegistry?: Record<string, string[]>): import("../components/layer-legend").LegendConfig[];
|
|
9
10
|
//# sourceMappingURL=get-legend-config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-legend-config.d.ts","sourceRoot":"","sources":["../../src/helpers/get-legend-config.js"],"names":[],"mappings":";AACA
|
|
1
|
+
{"version":3,"file":"get-legend-config.d.ts","sourceRoot":"","sources":["../../src/helpers/get-legend-config.js"],"names":[],"mappings":";AACA;;;;;;GAMG;AACH,+CAJW,OAAO,4BAA4B,EAAE,0BAA0B,CAAC,aAAa,CAAC,CAAC,QAAQ,CAAC,QACxF,MAAM,CAAC,MAAM,EAAC,OAAO,CAAC,qBACtB,MAAM,CAAC,MAAM,EAAC,MAAM,EAAE,CAAC,uDAyEjC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-start-vals.d.ts","sourceRoot":"","sources":["../../src/helpers/get-start-vals.js"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,2CAJW;IAAC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAC,gBACpB;IAAC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAC,GAClB,MAAM,CAuBlB;AAED;;;;;;GAMG;AACH,oCAJW,OAAO,UAAU,EAAE,KAAK,eACxB,OAAO,4BAA4B,EAAE,0BAA0B,CAAC,aAAa,CAAC,GAC5E,MAAM,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"get-start-vals.d.ts","sourceRoot":"","sources":["../../src/helpers/get-start-vals.js"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,2CAJW;IAAC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAC,gBACpB;IAAC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAC,GAClB,MAAM,CAuBlB;AAED;;;;;;GAMG;AACH,oCAJW,OAAO,UAAU,EAAE,KAAK,eACxB,OAAO,4BAA4B,EAAE,0BAA0B,CAAC,aAAa,CAAC,GAC5E,MAAM,GAAG,IAAI,CAiDzB"}
|
package/types/main.d.ts
CHANGED
|
@@ -73,6 +73,10 @@ export class EOxLayerControl extends LitElement {
|
|
|
73
73
|
attribute: string;
|
|
74
74
|
type: BooleanConstructor;
|
|
75
75
|
};
|
|
76
|
+
colormapRegistry: {
|
|
77
|
+
attribute: boolean;
|
|
78
|
+
type: ObjectConstructor;
|
|
79
|
+
};
|
|
76
80
|
customEditorInterfaces: {
|
|
77
81
|
type: ArrayConstructor;
|
|
78
82
|
};
|
|
@@ -159,6 +163,7 @@ export class EOxLayerControl extends LitElement {
|
|
|
159
163
|
* @type {Array}
|
|
160
164
|
*/
|
|
161
165
|
customEditorInterfaces: any[];
|
|
166
|
+
colormapRegistry: any;
|
|
162
167
|
/**
|
|
163
168
|
* Called when the component is first updated
|
|
164
169
|
* Updated #eoxMap after first update.
|
package/types/main.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../src/main.js"],"names":[],"mappings":"AAeA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH;IAEE
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../src/main.js"],"names":[],"mappings":"AAeA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH;IAEE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAqBE;IAaA;;;;;OAKG;IACH,KAFU,SAAO,WAAW,CAER;IAEpB;;;;OAIG;IACH,mBAAsB;IAEtB;;;;;OAKG;IACH,KAHU,OAAO,IAAI,EAAE,GAAG,CAGX;IAEf;;;;OAIG;IACH,sBAA4B;IAE5B;;;;OAIG;IACH,4BAA+B;IAE/B;;;;OAIG;IACH,OAFU,KAAK,QAAQ,CAEiD;IAExE;;;;OAIG;IACH,2BAA8B;IAE9B;;;;OAIG;IACH,kBAAqB;IAErB;;;;OAIG;IACH,sBAAuB;IAEvB;;;;OAIG;IACH,qBAAwB;IAExB;;;;OAIG;IACH,iCAAoC;IAEpC;;;;OAIG;IACH,yBAA4B;IAE5B;;;;;;OAMG;IACH,8BAAgC;IAChC,sBAA4B;IAG9B;;;OAGG;IACH,qBAEC;IAYD,uBAIC;IARD,kBAEC;IARD,sCAIC;IAoCD,+CAsEC;;CA+CF;;2BAxVgC,KAAK"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-change.d.ts","sourceRoot":"","sources":["../../../src/methods/layer-config/data-change.js"],"names":[],"mappings":";AAGA;;;;;;;;GAQG;AACH,wCALW;IAAC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAC,qDAEpB,OAAO,+BAA+B,EAAE,0BAA0B,
|
|
1
|
+
{"version":3,"file":"data-change.d.ts","sourceRoot":"","sources":["../../../src/methods/layer-config/data-change.js"],"names":[],"mappings":";AAGA;;;;;;;;GAQG;AACH,wCALW;IAAC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAC,qDAEpB,OAAO,+BAA+B,EAAE,0BAA0B,YA2E5E"}
|