@mcp-b/geo-support 0.2.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.
Files changed (91) hide show
  1. package/LICENSE +21 -0
  2. package/dist/base/geo-map-element.d.ts +60 -0
  3. package/dist/base/geo-map-element.d.ts.map +1 -0
  4. package/dist/base/geo-map-element.js +100 -0
  5. package/dist/base/geo-map-element.js.map +1 -0
  6. package/dist/classification/algorithms.d.ts +26 -0
  7. package/dist/classification/algorithms.d.ts.map +1 -0
  8. package/dist/classification/algorithms.js +101 -0
  9. package/dist/classification/algorithms.js.map +1 -0
  10. package/dist/classification/channel.d.ts +16 -0
  11. package/dist/classification/channel.d.ts.map +1 -0
  12. package/dist/classification/channel.js +18 -0
  13. package/dist/classification/channel.js.map +1 -0
  14. package/dist/classification/classify-style.d.ts +25 -0
  15. package/dist/classification/classify-style.d.ts.map +1 -0
  16. package/dist/classification/classify-style.js +70 -0
  17. package/dist/classification/classify-style.js.map +1 -0
  18. package/dist/classification/color-schemes.d.ts +18 -0
  19. package/dist/classification/color-schemes.d.ts.map +1 -0
  20. package/dist/classification/color-schemes.js +193 -0
  21. package/dist/classification/color-schemes.js.map +1 -0
  22. package/dist/classification/index.d.ts +5 -0
  23. package/dist/classification/index.d.ts.map +1 -0
  24. package/dist/classification/index.js +5 -0
  25. package/dist/classification/index.js.map +1 -0
  26. package/dist/components/classify-panel/classify-panel.d.ts +70 -0
  27. package/dist/components/classify-panel/classify-panel.d.ts.map +1 -0
  28. package/dist/components/classify-panel/classify-panel.js +273 -0
  29. package/dist/components/classify-panel/classify-panel.js.map +1 -0
  30. package/dist/components/classify-panel/classify-panel.styles.d.ts +3 -0
  31. package/dist/components/classify-panel/classify-panel.styles.d.ts.map +1 -0
  32. package/dist/components/classify-panel/classify-panel.styles.js +96 -0
  33. package/dist/components/classify-panel/classify-panel.styles.js.map +1 -0
  34. package/dist/components/legend/legend.d.ts +49 -0
  35. package/dist/components/legend/legend.d.ts.map +1 -0
  36. package/dist/components/legend/legend.js +129 -0
  37. package/dist/components/legend/legend.js.map +1 -0
  38. package/dist/components/legend/legend.styles.d.ts +3 -0
  39. package/dist/components/legend/legend.styles.d.ts.map +1 -0
  40. package/dist/components/legend/legend.styles.js +76 -0
  41. package/dist/components/legend/legend.styles.js.map +1 -0
  42. package/dist/docs/custom-elements.json +1796 -0
  43. package/dist/events/classify.d.ts +23 -0
  44. package/dist/events/classify.d.ts.map +1 -0
  45. package/dist/events/classify.js +12 -0
  46. package/dist/events/classify.js.map +1 -0
  47. package/dist/events/feature.d.ts +21 -0
  48. package/dist/events/feature.d.ts.map +1 -0
  49. package/dist/events/feature.js +17 -0
  50. package/dist/events/feature.js.map +1 -0
  51. package/dist/events/index.d.ts +5 -0
  52. package/dist/events/index.d.ts.map +1 -0
  53. package/dist/events/index.js +5 -0
  54. package/dist/events/index.js.map +1 -0
  55. package/dist/events/layer.d.ts +17 -0
  56. package/dist/events/layer.d.ts.map +1 -0
  57. package/dist/events/layer.js +15 -0
  58. package/dist/events/layer.js.map +1 -0
  59. package/dist/events/map.d.ts +42 -0
  60. package/dist/events/map.d.ts.map +1 -0
  61. package/dist/events/map.js +43 -0
  62. package/dist/events/map.js.map +1 -0
  63. package/dist/index.d.ts +7 -0
  64. package/dist/index.d.ts.map +1 -0
  65. package/dist/index.js +7 -0
  66. package/dist/index.js.map +1 -0
  67. package/dist/styles/map-host.styles.d.ts +4 -0
  68. package/dist/styles/map-host.styles.d.ts.map +1 -0
  69. package/dist/styles/map-host.styles.js +17 -0
  70. package/dist/styles/map-host.styles.js.map +1 -0
  71. package/dist/types/coordinates.d.ts +13 -0
  72. package/dist/types/coordinates.d.ts.map +1 -0
  73. package/dist/types/coordinates.js +2 -0
  74. package/dist/types/coordinates.js.map +1 -0
  75. package/dist/types/geojson.d.ts +18 -0
  76. package/dist/types/geojson.d.ts.map +1 -0
  77. package/dist/types/geojson.js +3 -0
  78. package/dist/types/geojson.js.map +1 -0
  79. package/dist/types/index.d.ts +5 -0
  80. package/dist/types/index.d.ts.map +1 -0
  81. package/dist/types/index.js +5 -0
  82. package/dist/types/index.js.map +1 -0
  83. package/dist/types/map.d.ts +17 -0
  84. package/dist/types/map.d.ts.map +1 -0
  85. package/dist/types/map.js +2 -0
  86. package/dist/types/map.js.map +1 -0
  87. package/dist/types/style.d.ts +48 -0
  88. package/dist/types/style.d.ts.map +1 -0
  89. package/dist/types/style.js +2 -0
  90. package/dist/types/style.js.map +1 -0
  91. package/package.json +103 -0
@@ -0,0 +1,23 @@
1
+ import type { ClassificationMethod, ColorSchemeType } from "../types/style.js";
2
+ export interface ClassifyChangeDetail {
3
+ property: string;
4
+ method: ClassificationMethod;
5
+ schemeType: ColorSchemeType;
6
+ scheme: string;
7
+ numClasses: number;
8
+ }
9
+ /**
10
+ * Fired by `<sigvelo-geo-classify-panel>` when any classification setting changes.
11
+ *
12
+ * @event sigvelo-classify-change
13
+ */
14
+ export declare class SigveloClassifyChangeEvent extends Event {
15
+ readonly detail: ClassifyChangeDetail;
16
+ constructor(detail: ClassifyChangeDetail);
17
+ }
18
+ declare global {
19
+ interface GlobalEventHandlersEventMap {
20
+ "sigvelo-classify-change": SigveloClassifyChangeEvent;
21
+ }
22
+ }
23
+ //# sourceMappingURL=classify.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"classify.d.ts","sourceRoot":"","sources":["../../src/events/classify.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAE/E,MAAM,WAAW,oBAAoB;IACnC,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,oBAAoB,CAAC;IAC7B,UAAU,EAAE,eAAe,CAAC;IAC5B,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;;;GAIG;AACH,qBAAa,0BAA2B,SAAQ,KAAK;IACnD,QAAQ,CAAC,MAAM,EAAE,oBAAoB,CAAC;gBAE1B,MAAM,EAAE,oBAAoB;CAIzC;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,2BAA2B;QACnC,yBAAyB,EAAE,0BAA0B,CAAC;KACvD;CACF"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Fired by `<sigvelo-geo-classify-panel>` when any classification setting changes.
3
+ *
4
+ * @event sigvelo-classify-change
5
+ */
6
+ export class SigveloClassifyChangeEvent extends Event {
7
+ constructor(detail) {
8
+ super("sigvelo-classify-change", { bubbles: true, cancelable: false, composed: true });
9
+ this.detail = detail;
10
+ }
11
+ }
12
+ //# sourceMappingURL=classify.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"classify.js","sourceRoot":"","sources":["../../src/events/classify.ts"],"names":[],"mappings":"AAUA;;;;GAIG;AACH,MAAM,OAAO,0BAA2B,SAAQ,KAAK;IAGnD,YAAY,MAA4B;QACtC,KAAK,CAAC,yBAAyB,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;QACvF,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;CACF"}
@@ -0,0 +1,21 @@
1
+ import type { LatLng } from "../types/coordinates.js";
2
+ import type { GeoJsonFeature } from "../types/geojson.js";
3
+ /** Emitted when a map feature is clicked. */
4
+ export declare class SigveloFeatureClickEvent extends Event {
5
+ readonly feature: GeoJsonFeature;
6
+ readonly latlng: LatLng;
7
+ constructor(feature: GeoJsonFeature, latlng: LatLng);
8
+ }
9
+ /** Emitted when the pointer hovers over a map feature. */
10
+ export declare class SigveloFeatureHoverEvent extends Event {
11
+ readonly feature: GeoJsonFeature | null;
12
+ readonly latlng: LatLng;
13
+ constructor(feature: GeoJsonFeature | null, latlng: LatLng);
14
+ }
15
+ declare global {
16
+ interface GlobalEventHandlersEventMap {
17
+ "sigvelo-feature-click": SigveloFeatureClickEvent;
18
+ "sigvelo-feature-hover": SigveloFeatureHoverEvent;
19
+ }
20
+ }
21
+ //# sourceMappingURL=feature.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"feature.d.ts","sourceRoot":"","sources":["../../src/events/feature.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAE1D,6CAA6C;AAC7C,qBAAa,wBAAyB,SAAQ,KAAK;IACjD,QAAQ,CAAC,OAAO,EAAE,cAAc,CAAC;IACjC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;gBACZ,OAAO,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM;CAKpD;AAED,0DAA0D;AAC1D,qBAAa,wBAAyB,SAAQ,KAAK;IACjD,QAAQ,CAAC,OAAO,EAAE,cAAc,GAAG,IAAI,CAAC;IACxC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;gBACZ,OAAO,EAAE,cAAc,GAAG,IAAI,EAAE,MAAM,EAAE,MAAM;CAK3D;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,2BAA2B;QACnC,uBAAuB,EAAE,wBAAwB,CAAC;QAClD,uBAAuB,EAAE,wBAAwB,CAAC;KACnD;CACF"}
@@ -0,0 +1,17 @@
1
+ /** Emitted when a map feature is clicked. */
2
+ export class SigveloFeatureClickEvent extends Event {
3
+ constructor(feature, latlng) {
4
+ super("sigvelo-feature-click", { bubbles: true, cancelable: false, composed: true });
5
+ this.feature = feature;
6
+ this.latlng = latlng;
7
+ }
8
+ }
9
+ /** Emitted when the pointer hovers over a map feature. */
10
+ export class SigveloFeatureHoverEvent extends Event {
11
+ constructor(feature, latlng) {
12
+ super("sigvelo-feature-hover", { bubbles: true, cancelable: false, composed: true });
13
+ this.feature = feature;
14
+ this.latlng = latlng;
15
+ }
16
+ }
17
+ //# sourceMappingURL=feature.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"feature.js","sourceRoot":"","sources":["../../src/events/feature.ts"],"names":[],"mappings":"AAGA,6CAA6C;AAC7C,MAAM,OAAO,wBAAyB,SAAQ,KAAK;IAGjD,YAAY,OAAuB,EAAE,MAAc;QACjD,KAAK,CAAC,uBAAuB,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;QACrF,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;CACF;AAED,0DAA0D;AAC1D,MAAM,OAAO,wBAAyB,SAAQ,KAAK;IAGjD,YAAY,OAA8B,EAAE,MAAc;QACxD,KAAK,CAAC,uBAAuB,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;QACrF,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;CACF"}
@@ -0,0 +1,5 @@
1
+ export * from "./map.js";
2
+ export * from "./feature.js";
3
+ export * from "./layer.js";
4
+ export * from "./classify.js";
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/events/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC"}
@@ -0,0 +1,5 @@
1
+ export * from "./map.js";
2
+ export * from "./feature.js";
3
+ export * from "./layer.js";
4
+ export * from "./classify.js";
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/events/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC"}
@@ -0,0 +1,17 @@
1
+ /** Emitted when a layer is added to the map. */
2
+ export declare class SigveloLayerAddEvent extends Event {
3
+ readonly layerId: string;
4
+ constructor(layerId: string);
5
+ }
6
+ /** Emitted when a layer is removed from the map. */
7
+ export declare class SigveloLayerRemoveEvent extends Event {
8
+ readonly layerId: string;
9
+ constructor(layerId: string);
10
+ }
11
+ declare global {
12
+ interface GlobalEventHandlersEventMap {
13
+ "sigvelo-layer-add": SigveloLayerAddEvent;
14
+ "sigvelo-layer-remove": SigveloLayerRemoveEvent;
15
+ }
16
+ }
17
+ //# sourceMappingURL=layer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"layer.d.ts","sourceRoot":"","sources":["../../src/events/layer.ts"],"names":[],"mappings":"AAAA,gDAAgD;AAChD,qBAAa,oBAAqB,SAAQ,KAAK;IAC7C,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;gBACb,OAAO,EAAE,MAAM;CAI5B;AAED,oDAAoD;AACpD,qBAAa,uBAAwB,SAAQ,KAAK;IAChD,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;gBACb,OAAO,EAAE,MAAM;CAI5B;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,2BAA2B;QACnC,mBAAmB,EAAE,oBAAoB,CAAC;QAC1C,sBAAsB,EAAE,uBAAuB,CAAC;KACjD;CACF"}
@@ -0,0 +1,15 @@
1
+ /** Emitted when a layer is added to the map. */
2
+ export class SigveloLayerAddEvent extends Event {
3
+ constructor(layerId) {
4
+ super("sigvelo-layer-add", { bubbles: true, cancelable: false, composed: true });
5
+ this.layerId = layerId;
6
+ }
7
+ }
8
+ /** Emitted when a layer is removed from the map. */
9
+ export class SigveloLayerRemoveEvent extends Event {
10
+ constructor(layerId) {
11
+ super("sigvelo-layer-remove", { bubbles: true, cancelable: false, composed: true });
12
+ this.layerId = layerId;
13
+ }
14
+ }
15
+ //# sourceMappingURL=layer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"layer.js","sourceRoot":"","sources":["../../src/events/layer.ts"],"names":[],"mappings":"AAAA,gDAAgD;AAChD,MAAM,OAAO,oBAAqB,SAAQ,KAAK;IAE7C,YAAY,OAAe;QACzB,KAAK,CAAC,mBAAmB,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;QACjF,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;CACF;AAED,oDAAoD;AACpD,MAAM,OAAO,uBAAwB,SAAQ,KAAK;IAEhD,YAAY,OAAe;QACzB,KAAK,CAAC,sBAAsB,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;QACpF,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;CACF"}
@@ -0,0 +1,42 @@
1
+ import type { LatLng } from "../types/coordinates.js";
2
+ /** Emitted when the map is clicked. */
3
+ export declare class SigveloMapClickEvent extends Event {
4
+ readonly latlng: LatLng;
5
+ readonly originalEvent: MouseEvent;
6
+ constructor(latlng: LatLng, originalEvent: MouseEvent);
7
+ }
8
+ /** Emitted when the map center changes during movement. */
9
+ export declare class SigveloMapMoveEvent extends Event {
10
+ readonly center: LatLng;
11
+ constructor(center: LatLng);
12
+ }
13
+ /** Emitted when map movement ends. */
14
+ export declare class SigveloMapMoveEndEvent extends Event {
15
+ readonly center: LatLng;
16
+ constructor(center: LatLng);
17
+ }
18
+ /** Emitted when the map zoom level changes. */
19
+ export declare class SigveloMapZoomEvent extends Event {
20
+ readonly zoom: number;
21
+ constructor(zoom: number);
22
+ }
23
+ /** Emitted when zooming ends. */
24
+ export declare class SigveloMapZoomEndEvent extends Event {
25
+ readonly zoom: number;
26
+ constructor(zoom: number);
27
+ }
28
+ /** Emitted when the map has finished loading. */
29
+ export declare class SigveloMapLoadEvent extends Event {
30
+ constructor();
31
+ }
32
+ declare global {
33
+ interface GlobalEventHandlersEventMap {
34
+ "sigvelo-map-click": SigveloMapClickEvent;
35
+ "sigvelo-map-move": SigveloMapMoveEvent;
36
+ "sigvelo-map-moveend": SigveloMapMoveEndEvent;
37
+ "sigvelo-map-zoom": SigveloMapZoomEvent;
38
+ "sigvelo-map-zoomend": SigveloMapZoomEndEvent;
39
+ "sigvelo-map-load": SigveloMapLoadEvent;
40
+ }
41
+ }
42
+ //# sourceMappingURL=map.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"map.d.ts","sourceRoot":"","sources":["../../src/events/map.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAEtD,uCAAuC;AACvC,qBAAa,oBAAqB,SAAQ,KAAK;IAC7C,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,aAAa,EAAE,UAAU,CAAC;gBACvB,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,UAAU;CAKtD;AAED,2DAA2D;AAC3D,qBAAa,mBAAoB,SAAQ,KAAK;IAC5C,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;gBACZ,MAAM,EAAE,MAAM;CAI3B;AAED,sCAAsC;AACtC,qBAAa,sBAAuB,SAAQ,KAAK;IAC/C,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;gBACZ,MAAM,EAAE,MAAM;CAI3B;AAED,+CAA+C;AAC/C,qBAAa,mBAAoB,SAAQ,KAAK;IAC5C,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;gBACV,IAAI,EAAE,MAAM;CAIzB;AAED,iCAAiC;AACjC,qBAAa,sBAAuB,SAAQ,KAAK;IAC/C,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;gBACV,IAAI,EAAE,MAAM;CAIzB;AAED,iDAAiD;AACjD,qBAAa,mBAAoB,SAAQ,KAAK;;CAI7C;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,2BAA2B;QACnC,mBAAmB,EAAE,oBAAoB,CAAC;QAC1C,kBAAkB,EAAE,mBAAmB,CAAC;QACxC,qBAAqB,EAAE,sBAAsB,CAAC;QAC9C,kBAAkB,EAAE,mBAAmB,CAAC;QACxC,qBAAqB,EAAE,sBAAsB,CAAC;QAC9C,kBAAkB,EAAE,mBAAmB,CAAC;KACzC;CACF"}
@@ -0,0 +1,43 @@
1
+ /** Emitted when the map is clicked. */
2
+ export class SigveloMapClickEvent extends Event {
3
+ constructor(latlng, originalEvent) {
4
+ super("sigvelo-map-click", { bubbles: true, cancelable: false, composed: true });
5
+ this.latlng = latlng;
6
+ this.originalEvent = originalEvent;
7
+ }
8
+ }
9
+ /** Emitted when the map center changes during movement. */
10
+ export class SigveloMapMoveEvent extends Event {
11
+ constructor(center) {
12
+ super("sigvelo-map-move", { bubbles: true, cancelable: false, composed: true });
13
+ this.center = center;
14
+ }
15
+ }
16
+ /** Emitted when map movement ends. */
17
+ export class SigveloMapMoveEndEvent extends Event {
18
+ constructor(center) {
19
+ super("sigvelo-map-moveend", { bubbles: true, cancelable: false, composed: true });
20
+ this.center = center;
21
+ }
22
+ }
23
+ /** Emitted when the map zoom level changes. */
24
+ export class SigveloMapZoomEvent extends Event {
25
+ constructor(zoom) {
26
+ super("sigvelo-map-zoom", { bubbles: true, cancelable: false, composed: true });
27
+ this.zoom = zoom;
28
+ }
29
+ }
30
+ /** Emitted when zooming ends. */
31
+ export class SigveloMapZoomEndEvent extends Event {
32
+ constructor(zoom) {
33
+ super("sigvelo-map-zoomend", { bubbles: true, cancelable: false, composed: true });
34
+ this.zoom = zoom;
35
+ }
36
+ }
37
+ /** Emitted when the map has finished loading. */
38
+ export class SigveloMapLoadEvent extends Event {
39
+ constructor() {
40
+ super("sigvelo-map-load", { bubbles: true, cancelable: false, composed: true });
41
+ }
42
+ }
43
+ //# sourceMappingURL=map.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"map.js","sourceRoot":"","sources":["../../src/events/map.ts"],"names":[],"mappings":"AAEA,uCAAuC;AACvC,MAAM,OAAO,oBAAqB,SAAQ,KAAK;IAG7C,YAAY,MAAc,EAAE,aAAyB;QACnD,KAAK,CAAC,mBAAmB,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;QACjF,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACrC,CAAC;CACF;AAED,2DAA2D;AAC3D,MAAM,OAAO,mBAAoB,SAAQ,KAAK;IAE5C,YAAY,MAAc;QACxB,KAAK,CAAC,kBAAkB,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;QAChF,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;CACF;AAED,sCAAsC;AACtC,MAAM,OAAO,sBAAuB,SAAQ,KAAK;IAE/C,YAAY,MAAc;QACxB,KAAK,CAAC,qBAAqB,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;QACnF,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;CACF;AAED,+CAA+C;AAC/C,MAAM,OAAO,mBAAoB,SAAQ,KAAK;IAE5C,YAAY,IAAY;QACtB,KAAK,CAAC,kBAAkB,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;QAChF,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;CACF;AAED,iCAAiC;AACjC,MAAM,OAAO,sBAAuB,SAAQ,KAAK;IAE/C,YAAY,IAAY;QACtB,KAAK,CAAC,qBAAqB,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;QACnF,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;CACF;AAED,iDAAiD;AACjD,MAAM,OAAO,mBAAoB,SAAQ,KAAK;IAC5C;QACE,KAAK,CAAC,kBAAkB,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;IAClF,CAAC;CACF"}
@@ -0,0 +1,7 @@
1
+ export { GeoMapElement } from "./base/geo-map-element.js";
2
+ export * from "./events/index.js";
3
+ export * from "./types/index.js";
4
+ export * from "./classification/index.js";
5
+ export { SigveloGeoLegend } from "./components/legend/legend.js";
6
+ export { SigveloGeoClassifyPanel } from "./components/classify-panel/classify-panel.js";
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,2BAA2B,CAAC;AAC1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,uBAAuB,EAAE,MAAM,+CAA+C,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,7 @@
1
+ export { GeoMapElement } from "./base/geo-map-element.js";
2
+ export * from "./events/index.js";
3
+ export * from "./types/index.js";
4
+ export * from "./classification/index.js";
5
+ export { SigveloGeoLegend } from "./components/legend/legend.js";
6
+ export { SigveloGeoClassifyPanel } from "./components/classify-panel/classify-panel.js";
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,2BAA2B,CAAC;AAC1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,uBAAuB,EAAE,MAAM,+CAA+C,CAAC"}
@@ -0,0 +1,4 @@
1
+ /** Shared styles for all map container components. */
2
+ declare const _default: import("lit").CSSResult;
3
+ export default _default;
4
+ //# sourceMappingURL=map-host.styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"map-host.styles.d.ts","sourceRoot":"","sources":["../../src/styles/map-host.styles.ts"],"names":[],"mappings":"AAEA,sDAAsD;;AACtD,wBAaE"}
@@ -0,0 +1,17 @@
1
+ import { css } from "lit";
2
+ /** Shared styles for all map container components. */
3
+ export default css `
4
+ :host {
5
+ display: block;
6
+ position: relative;
7
+ min-height: 300px;
8
+ }
9
+
10
+ .map-host {
11
+ width: 100%;
12
+ height: 100%;
13
+ position: absolute;
14
+ inset: 0;
15
+ }
16
+ `;
17
+ //# sourceMappingURL=map-host.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"map-host.styles.js","sourceRoot":"","sources":["../../src/styles/map-host.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,sDAAsD;AACtD,eAAe,GAAG,CAAA;;;;;;;;;;;;;CAajB,CAAC"}
@@ -0,0 +1,13 @@
1
+ export interface LatLng {
2
+ lat: number;
3
+ lng: number;
4
+ }
5
+ export interface LngLatBounds {
6
+ north: number;
7
+ south: number;
8
+ east: number;
9
+ west: number;
10
+ }
11
+ /** [west, south, east, north] */
12
+ export type BoundingBox = [west: number, south: number, east: number, north: number];
13
+ //# sourceMappingURL=coordinates.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"coordinates.d.ts","sourceRoot":"","sources":["../../src/types/coordinates.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,MAAM;IACrB,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd;AAED,iCAAiC;AACjC,MAAM,MAAM,WAAW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=coordinates.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"coordinates.js","sourceRoot":"","sources":["../../src/types/coordinates.ts"],"names":[],"mappings":""}
@@ -0,0 +1,18 @@
1
+ /** Minimal GeoJSON types used by geo-support events. */
2
+ export type GeoJsonGeometryType = "Point" | "MultiPoint" | "LineString" | "MultiLineString" | "Polygon" | "MultiPolygon" | "GeometryCollection";
3
+ export interface GeoJsonGeometry {
4
+ type: GeoJsonGeometryType;
5
+ coordinates: unknown;
6
+ }
7
+ export interface GeoJsonFeature {
8
+ type: "Feature";
9
+ geometry: GeoJsonGeometry;
10
+ properties: Record<string, unknown> | null;
11
+ id?: string | number;
12
+ }
13
+ export interface GeoJsonFeatureCollection {
14
+ type: "FeatureCollection";
15
+ features: GeoJsonFeature[];
16
+ }
17
+ export type GeoJsonData = GeoJsonFeature | GeoJsonFeatureCollection;
18
+ //# sourceMappingURL=geojson.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"geojson.d.ts","sourceRoot":"","sources":["../../src/types/geojson.ts"],"names":[],"mappings":"AAAA,wDAAwD;AAExD,MAAM,MAAM,mBAAmB,GAC3B,OAAO,GACP,YAAY,GACZ,YAAY,GACZ,iBAAiB,GACjB,SAAS,GACT,cAAc,GACd,oBAAoB,CAAC;AAEzB,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,mBAAmB,CAAC;IAC1B,WAAW,EAAE,OAAO,CAAC;CACtB;AAED,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,SAAS,CAAC;IAChB,QAAQ,EAAE,eAAe,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IAC3C,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,mBAAmB,CAAC;IAC1B,QAAQ,EAAE,cAAc,EAAE,CAAC;CAC5B;AAED,MAAM,MAAM,WAAW,GAAG,cAAc,GAAG,wBAAwB,CAAC"}
@@ -0,0 +1,3 @@
1
+ /** Minimal GeoJSON types used by geo-support events. */
2
+ export {};
3
+ //# sourceMappingURL=geojson.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"geojson.js","sourceRoot":"","sources":["../../src/types/geojson.ts"],"names":[],"mappings":"AAAA,wDAAwD"}
@@ -0,0 +1,5 @@
1
+ export * from "./coordinates.js";
2
+ export * from "./geojson.js";
3
+ export * from "./map.js";
4
+ export * from "./style.js";
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC"}
@@ -0,0 +1,5 @@
1
+ export * from "./coordinates.js";
2
+ export * from "./geojson.js";
3
+ export * from "./map.js";
4
+ export * from "./style.js";
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC"}
@@ -0,0 +1,17 @@
1
+ import type { LatLng, LngLatBounds } from "./coordinates.js";
2
+ export interface ViewState {
3
+ center: LatLng;
4
+ zoom: number;
5
+ bearing?: number;
6
+ pitch?: number;
7
+ }
8
+ export interface FlyToOptions extends ViewState {
9
+ duration?: number;
10
+ }
11
+ export interface FitBoundsOptions {
12
+ bounds: LngLatBounds;
13
+ padding?: number;
14
+ duration?: number;
15
+ maxZoom?: number;
16
+ }
17
+ //# sourceMappingURL=map.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"map.d.ts","sourceRoot":"","sources":["../../src/types/map.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAE7D,MAAM,WAAW,SAAS;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,YAAa,SAAQ,SAAS;IAC7C,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,YAAY,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=map.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"map.js","sourceRoot":"","sources":["../../src/types/map.ts"],"names":[],"mappings":""}
@@ -0,0 +1,48 @@
1
+ import type { GeoJsonFeature } from "./geojson.js";
2
+ /** Style properties that can be applied to a single GeoJSON feature. */
3
+ export interface FeatureStyle {
4
+ fillColor?: string;
5
+ fillOpacity?: number;
6
+ strokeColor?: string;
7
+ strokeWidth?: number;
8
+ strokeOpacity?: number;
9
+ }
10
+ /**
11
+ * A function that receives a GeoJSON feature and returns style overrides.
12
+ * Returning `undefined` falls back to the component's static style props.
13
+ */
14
+ export type StyleFunction = (feature: GeoJsonFeature) => FeatureStyle | undefined;
15
+ export type ClassificationMethod = "equalInterval" | "quantile" | "naturalBreaks";
16
+ export type ColorSchemeType = "sequential" | "diverging" | "qualitative";
17
+ /** Result of {@link createClassifyStyle}, containing both the style function and legend data. */
18
+ export interface ClassifyResult {
19
+ /** The style function to pass to a geojson component's `styleFunction` property. */
20
+ styleFunction: StyleFunction;
21
+ /** The computed break points (`numClasses + 1` values: `[min, break1, ..., max]`). */
22
+ breaks: number[];
23
+ /** The colors for each class (`numClasses` values). */
24
+ colors: string[];
25
+ /** The property name used for classification. */
26
+ property: string;
27
+ /** The classification method used. */
28
+ method: ClassificationMethod;
29
+ }
30
+ export interface ClassifyStyleOptions {
31
+ /** The property key to read from feature.properties. */
32
+ property: string;
33
+ /** Classification method. */
34
+ method: ClassificationMethod;
35
+ /** Number of classes (typically 3-9). */
36
+ numClasses: number;
37
+ /** Color scheme name (must exist in the color schemes registry). */
38
+ colorScheme: string;
39
+ /** Fill opacity (0-1). Default 0.7. */
40
+ fillOpacity?: number;
41
+ /** Stroke color. */
42
+ strokeColor?: string;
43
+ /** Stroke width in pixels. */
44
+ strokeWidth?: number;
45
+ /** Stroke opacity (0-1). */
46
+ strokeOpacity?: number;
47
+ }
48
+ //# sourceMappingURL=style.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../src/types/style.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAEnD,wEAAwE;AACxE,MAAM,WAAW,YAAY;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,EAAE,cAAc,KAAK,YAAY,GAAG,SAAS,CAAC;AAElF,MAAM,MAAM,oBAAoB,GAAG,eAAe,GAAG,UAAU,GAAG,eAAe,CAAC;AAElF,MAAM,MAAM,eAAe,GAAG,YAAY,GAAG,WAAW,GAAG,aAAa,CAAC;AAEzE,iGAAiG;AACjG,MAAM,WAAW,cAAc;IAC7B,oFAAoF;IACpF,aAAa,EAAE,aAAa,CAAC;IAC7B,sFAAsF;IACtF,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,uDAAuD;IACvD,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,iDAAiD;IACjD,QAAQ,EAAE,MAAM,CAAC;IACjB,sCAAsC;IACtC,MAAM,EAAE,oBAAoB,CAAC;CAC9B;AAED,MAAM,WAAW,oBAAoB;IACnC,wDAAwD;IACxD,QAAQ,EAAE,MAAM,CAAC;IACjB,6BAA6B;IAC7B,MAAM,EAAE,oBAAoB,CAAC;IAC7B,yCAAyC;IACzC,UAAU,EAAE,MAAM,CAAC;IACnB,oEAAoE;IACpE,WAAW,EAAE,MAAM,CAAC;IACpB,uCAAuC;IACvC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,oBAAoB;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,8BAA8B;IAC9B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,4BAA4B;IAC5B,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=style.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"style.js","sourceRoot":"","sources":["../../src/types/style.ts"],"names":[],"mappings":""}
package/package.json ADDED
@@ -0,0 +1,103 @@
1
+ {
2
+ "name": "@mcp-b/geo-support",
3
+ "version": "0.2.0",
4
+ "description": "Shared base classes, events, types, and styles for Sigvelo geo component libraries.",
5
+ "keywords": [
6
+ "geospatial",
7
+ "gis",
8
+ "lit-element",
9
+ "maps",
10
+ "web-components"
11
+ ],
12
+ "license": "MIT",
13
+ "repository": {
14
+ "type": "git",
15
+ "url": "git+https://github.com/WebMCP-org/design-system.git",
16
+ "directory": "packages/geo-support"
17
+ },
18
+ "files": [
19
+ "dist"
20
+ ],
21
+ "type": "module",
22
+ "types": "dist/index.d.ts",
23
+ "exports": {
24
+ ".": {
25
+ "types": "./dist/index.d.ts",
26
+ "import": "./dist/index.js"
27
+ },
28
+ "./base/*": {
29
+ "types": "./dist/base/*.d.ts",
30
+ "import": "./dist/base/*.js"
31
+ },
32
+ "./events": {
33
+ "types": "./dist/events/index.d.ts",
34
+ "import": "./dist/events/index.js"
35
+ },
36
+ "./events/*": {
37
+ "types": "./dist/events/*.d.ts",
38
+ "import": "./dist/events/*.js"
39
+ },
40
+ "./types": {
41
+ "types": "./dist/types/index.d.ts",
42
+ "import": "./dist/types/index.js"
43
+ },
44
+ "./types/*": {
45
+ "types": "./dist/types/*.d.ts",
46
+ "import": "./dist/types/*.js"
47
+ },
48
+ "./styles/*": {
49
+ "types": "./dist/styles/*.d.ts",
50
+ "import": "./dist/styles/*.js"
51
+ },
52
+ "./classification": {
53
+ "types": "./dist/classification/index.d.ts",
54
+ "import": "./dist/classification/index.js"
55
+ },
56
+ "./classification/*": {
57
+ "types": "./dist/classification/*.d.ts",
58
+ "import": "./dist/classification/*.js"
59
+ },
60
+ "./components/legend/legend": {
61
+ "types": "./dist/components/legend/legend.d.ts",
62
+ "import": "./dist/components/legend/legend.js"
63
+ },
64
+ "./components/classify-panel/classify-panel": {
65
+ "types": "./dist/components/classify-panel/classify-panel.d.ts",
66
+ "import": "./dist/components/classify-panel/classify-panel.js"
67
+ },
68
+ "./custom-elements.json": "./dist/docs/custom-elements.json"
69
+ },
70
+ "publishConfig": {
71
+ "access": "public"
72
+ },
73
+ "dependencies": {
74
+ "@mcp-b/wc-support": "0.2.0"
75
+ },
76
+ "devDependencies": {
77
+ "@custom-elements-manifest/analyzer": "^0.10.4",
78
+ "@storybook/addon-a11y": "^10.5.2",
79
+ "@storybook/addon-docs": "^10.5.2",
80
+ "@storybook/addon-vitest": "^10.5.2",
81
+ "@storybook/web-components-vite": "10.5.2",
82
+ "@wc-toolkit/cem-inheritance": "^1.2.2",
83
+ "@wc-toolkit/cem-sorter": "^1.0.1",
84
+ "@wc-toolkit/type-parser": "^1.2.0",
85
+ "lit": "^3.3.2",
86
+ "lit-html": "^3.3.2",
87
+ "storybook": "^10.5.2",
88
+ "typescript": "^6.0.3"
89
+ },
90
+ "peerDependencies": {
91
+ "lit": "^3.0.0",
92
+ "lit-html": "^3.0.0"
93
+ },
94
+ "customElements": "dist/docs/custom-elements.json",
95
+ "scripts": {
96
+ "analyze": "cem analyze",
97
+ "analyze:dev": "cem analyze --watch",
98
+ "build": "node --eval \"require('node:fs').rmSync('dist', { force: true, recursive: true })\" && tsc -p tsconfig.prod.json && vp run analyze",
99
+ "storybook": "vp run @mcp-b/web-components#storybook",
100
+ "test": "vp run @mcp-b/web-components#test",
101
+ "typecheck": "tsc --noEmit"
102
+ }
103
+ }