@geoinsight/react-components 1.0.6 → 1.0.8
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/.pnp.cjs +1488 -1484
- package/.yarn/install-state.gz +0 -0
- package/dist/cjs/index.js +40 -40
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +41 -41
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/cjs/components/map/index.d.ts +0 -4
- package/dist/cjs/components/map/index.stories.d.ts +0 -12
- package/dist/cjs/components/map/index.types.d.ts +0 -135
- package/dist/cjs/components/map/map-deckgl.d.ts +0 -4
- package/dist/cjs/components/map/map-mapbox.d.ts +0 -11
- package/dist/cjs/components/map/map-popup.d.ts +0 -12
- package/dist/cjs/components/map/map-toc.d.ts +0 -13
- package/dist/cjs/components/map-control/index.d.ts +0 -4
- package/dist/cjs/components/map-control/index.types.d.ts +0 -11
- package/dist/esm/components/map/index.d.ts +0 -4
- package/dist/esm/components/map/index.stories.d.ts +0 -12
- package/dist/esm/components/map/index.types.d.ts +0 -135
- package/dist/esm/components/map/map-deckgl.d.ts +0 -4
- package/dist/esm/components/map/map-mapbox.d.ts +0 -11
- package/dist/esm/components/map/map-popup.d.ts +0 -12
- package/dist/esm/components/map/map-toc.d.ts +0 -13
- package/dist/esm/components/map-control/index.d.ts +0 -4
- package/dist/esm/components/map-control/index.types.d.ts +0 -11
- /package/.yarn/unplugged/{@swc-core-virtual-a4869543ec → @swc-core-virtual-5a2568d98e}/node_modules/@swc/core/.ready +0 -0
- /package/.yarn/unplugged/{@swc-core-virtual-a4869543ec → @swc-core-virtual-5a2568d98e}/node_modules/@swc/core/CHANGELOG.md +0 -0
- /package/.yarn/unplugged/{@swc-core-virtual-a4869543ec → @swc-core-virtual-5a2568d98e}/node_modules/@swc/core/LICENSE +0 -0
- /package/.yarn/unplugged/{@swc-core-virtual-a4869543ec → @swc-core-virtual-5a2568d98e}/node_modules/@swc/core/README.md +0 -0
- /package/.yarn/unplugged/{@swc-core-virtual-a4869543ec → @swc-core-virtual-5a2568d98e}/node_modules/@swc/core/Visitor.d.ts +0 -0
- /package/.yarn/unplugged/{@swc-core-virtual-a4869543ec → @swc-core-virtual-5a2568d98e}/node_modules/@swc/core/Visitor.js +0 -0
- /package/.yarn/unplugged/{@swc-core-virtual-a4869543ec → @swc-core-virtual-5a2568d98e}/node_modules/@swc/core/binding.d.ts +0 -0
- /package/.yarn/unplugged/{@swc-core-virtual-a4869543ec → @swc-core-virtual-5a2568d98e}/node_modules/@swc/core/binding.js +0 -0
- /package/.yarn/unplugged/{@swc-core-virtual-a4869543ec → @swc-core-virtual-5a2568d98e}/node_modules/@swc/core/bindings/README.md +0 -0
- /package/.yarn/unplugged/{@swc-core-virtual-a4869543ec → @swc-core-virtual-5a2568d98e}/node_modules/@swc/core/bindings/binding_core_wasm/package.json +0 -0
- /package/.yarn/unplugged/{@swc-core-virtual-a4869543ec → @swc-core-virtual-5a2568d98e}/node_modules/@swc/core/index.d.ts +0 -0
- /package/.yarn/unplugged/{@swc-core-virtual-a4869543ec → @swc-core-virtual-5a2568d98e}/node_modules/@swc/core/index.js +0 -0
- /package/.yarn/unplugged/{@swc-core-virtual-a4869543ec → @swc-core-virtual-5a2568d98e}/node_modules/@swc/core/package.json +0 -0
- /package/.yarn/unplugged/{@swc-core-virtual-a4869543ec → @swc-core-virtual-5a2568d98e}/node_modules/@swc/core/postinstall.js +0 -0
- /package/.yarn/unplugged/{@swc-core-virtual-a4869543ec → @swc-core-virtual-5a2568d98e}/node_modules/@swc/core/spack.d.ts +0 -0
- /package/.yarn/unplugged/{@swc-core-virtual-a4869543ec → @swc-core-virtual-5a2568d98e}/node_modules/@swc/core/spack.js +0 -0
- /package/.yarn/unplugged/{@swc-core-virtual-a4869543ec → @swc-core-virtual-5a2568d98e}/node_modules/@swc/core/util.d.ts +0 -0
- /package/.yarn/unplugged/{@swc-core-virtual-a4869543ec → @swc-core-virtual-5a2568d98e}/node_modules/@swc/core/util.js +0 -0
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
import { ReactNode, ReactElement } from "react";
|
|
2
|
-
import { Viewport } from "@deck.gl/core/typed";
|
|
3
|
-
import { LayerProps } from "@deck.gl/core/typed";
|
|
4
|
-
import { AnyLayer, AnySourceData } from "mapbox-gl";
|
|
5
|
-
import { Deck } from "@deck.gl/core/src";
|
|
6
|
-
import { MapboxProps } from "react-map-gl/dist/esm/mapbox/mapbox";
|
|
7
|
-
export type MapAsDeckgl = Map & {
|
|
8
|
-
/**
|
|
9
|
-
* Props of the visualization framework
|
|
10
|
-
*/
|
|
11
|
-
mapProps?: Deck;
|
|
12
|
-
};
|
|
13
|
-
export type MapAsMapbox = Map & {
|
|
14
|
-
/**
|
|
15
|
-
* Props of the visualization framework
|
|
16
|
-
*/
|
|
17
|
-
mapProps?: MapboxProps;
|
|
18
|
-
};
|
|
19
|
-
export interface Map {
|
|
20
|
-
/**
|
|
21
|
-
* Basemap attribution
|
|
22
|
-
*/
|
|
23
|
-
attribution?: string | ReactElement;
|
|
24
|
-
/**
|
|
25
|
-
* Basemap tile
|
|
26
|
-
*/
|
|
27
|
-
basemap?: string;
|
|
28
|
-
/**
|
|
29
|
-
* If basemap needs token
|
|
30
|
-
*/
|
|
31
|
-
basemapToken?: string;
|
|
32
|
-
/**
|
|
33
|
-
* Component's children
|
|
34
|
-
*/
|
|
35
|
-
children?: ReactNode;
|
|
36
|
-
/**
|
|
37
|
-
* Viewport of the map
|
|
38
|
-
*/
|
|
39
|
-
initialViewState?: Viewport;
|
|
40
|
-
/**
|
|
41
|
-
* Type of the visualization framework
|
|
42
|
-
*/
|
|
43
|
-
framework?: "deck.gl" | "mapboxgl";
|
|
44
|
-
/**
|
|
45
|
-
* if it has switch basemap button
|
|
46
|
-
*/
|
|
47
|
-
hasSwitchBasemap?: boolean;
|
|
48
|
-
/**
|
|
49
|
-
* if it has switch projection button (only works on mapboxgl framework)
|
|
50
|
-
*/
|
|
51
|
-
hasSwitchProjection?: boolean;
|
|
52
|
-
/**
|
|
53
|
-
* Access token for mapbox (only works on mapboxgl framework)
|
|
54
|
-
*/
|
|
55
|
-
mapboxAccessToken?: string;
|
|
56
|
-
/**
|
|
57
|
-
* Layers to be used on deck.gl
|
|
58
|
-
*/
|
|
59
|
-
layers?: {
|
|
60
|
-
type: string;
|
|
61
|
-
layer: LayerProps;
|
|
62
|
-
}[];
|
|
63
|
-
/**
|
|
64
|
-
* Popup upon on click
|
|
65
|
-
*/
|
|
66
|
-
popup?: {
|
|
67
|
-
data?: {
|
|
68
|
-
fields: string[];
|
|
69
|
-
values: any[];
|
|
70
|
-
};
|
|
71
|
-
isDefault?: boolean;
|
|
72
|
-
render?: ReactElement;
|
|
73
|
-
};
|
|
74
|
-
/**
|
|
75
|
-
* Controls you want to add
|
|
76
|
-
*/
|
|
77
|
-
renderControls?: Controls;
|
|
78
|
-
/**
|
|
79
|
-
* Sources to be used on mapbox
|
|
80
|
-
*/
|
|
81
|
-
sources?: (AnySourceData & {
|
|
82
|
-
id?: string;
|
|
83
|
-
children?: any;
|
|
84
|
-
layers?: AnyLayer[];
|
|
85
|
-
})[];
|
|
86
|
-
/**
|
|
87
|
-
* Table of contents (toc needs to be inside a provider, so you need to call <MapProvider />)
|
|
88
|
-
*/
|
|
89
|
-
toc?: any;
|
|
90
|
-
}
|
|
91
|
-
export type Controls = {
|
|
92
|
-
[key in keyof Position]: ReactNode;
|
|
93
|
-
};
|
|
94
|
-
export interface Position {
|
|
95
|
-
"top-left"?: ReactNode;
|
|
96
|
-
"top-center"?: ReactNode;
|
|
97
|
-
"top-right"?: ReactNode;
|
|
98
|
-
"center-left"?: ReactNode;
|
|
99
|
-
center?: ReactNode;
|
|
100
|
-
"center-right"?: ReactNode;
|
|
101
|
-
"bottom-left"?: ReactNode;
|
|
102
|
-
"bottom-center"?: ReactNode;
|
|
103
|
-
"bottom-right"?: ReactNode;
|
|
104
|
-
}
|
|
105
|
-
export interface PopupData {
|
|
106
|
-
info: {
|
|
107
|
-
[key: string]: any;
|
|
108
|
-
};
|
|
109
|
-
model: {
|
|
110
|
-
data: {
|
|
111
|
-
fields: string[];
|
|
112
|
-
values: ((v?: any) => string | number)[];
|
|
113
|
-
};
|
|
114
|
-
isDefault?: boolean;
|
|
115
|
-
render?: ReactElement;
|
|
116
|
-
};
|
|
117
|
-
}
|
|
118
|
-
export interface Toc {
|
|
119
|
-
defaultIds?: string[];
|
|
120
|
-
parents: ParentsToc;
|
|
121
|
-
}
|
|
122
|
-
export interface ParentsToc {
|
|
123
|
-
[key: string]: {
|
|
124
|
-
title: string;
|
|
125
|
-
icon: ReactElement;
|
|
126
|
-
children: ChildrenToc;
|
|
127
|
-
};
|
|
128
|
-
}
|
|
129
|
-
export interface ChildrenToc {
|
|
130
|
-
[key: string]: ChildToc;
|
|
131
|
-
}
|
|
132
|
-
export interface ChildToc {
|
|
133
|
-
label: string;
|
|
134
|
-
icon: ReactElement;
|
|
135
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { MapAsDeckgl } from "./index.types";
|
|
2
|
-
import "./index.css";
|
|
3
|
-
export declare function MapDeckgl({ attribution, basemap, basemapToken, initialViewState, hasSwitchBasemap, layers, mapProps, renderControls, toc, }: MapAsDeckgl): import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
export default MapDeckgl;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Viewport } from "maplibre-gl";
|
|
2
|
-
import { MapAsMapbox } from "./index.types";
|
|
3
|
-
export interface MapboxMapProps {
|
|
4
|
-
basemap?: string;
|
|
5
|
-
initialViewState?: Viewport;
|
|
6
|
-
hasSwitchBasemap?: boolean;
|
|
7
|
-
hasSwitchProjection?: boolean;
|
|
8
|
-
mapboxAccessToken: string;
|
|
9
|
-
}
|
|
10
|
-
declare function MapMapbox({ basemap, mapProps, hasSwitchBasemap, hasSwitchProjection, renderControls, sources, toc, }: MapAsMapbox): import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export default MapMapbox;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import "./index.css";
|
|
2
|
-
import { PopupData } from "./index.types";
|
|
3
|
-
import { Dispatch, SetStateAction } from "react";
|
|
4
|
-
type MapPopupProps = {
|
|
5
|
-
framework?: "deck.gl" | "mapboxgl";
|
|
6
|
-
latitude: number;
|
|
7
|
-
longitude: number;
|
|
8
|
-
setPopupData?: Dispatch<SetStateAction<PopupData | undefined>>;
|
|
9
|
-
popup?: PopupData;
|
|
10
|
-
};
|
|
11
|
-
declare const MapPopup: ({ popup, framework, setPopupData, longitude, latitude, }: MapPopupProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
export default MapPopup;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import "./index.css";
|
|
2
|
-
import { ChildToc, Toc } from "./index.types";
|
|
3
|
-
interface TocProps {
|
|
4
|
-
items: Toc;
|
|
5
|
-
selected: ChildToc & {
|
|
6
|
-
id: string;
|
|
7
|
-
};
|
|
8
|
-
setSelected: (layer: ChildToc & {
|
|
9
|
-
id: string;
|
|
10
|
-
}) => void;
|
|
11
|
-
}
|
|
12
|
-
declare function MapToc({ items, selected, setSelected }: TocProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
export default MapToc;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export interface MapControl {
|
|
3
|
-
/**
|
|
4
|
-
* Position of the control
|
|
5
|
-
*/
|
|
6
|
-
position?: "top-left" | "top-center" | "top-right" | "center-left" | "center" | "center-right" | "bottom-left" | "bottom-center" | "bottom-right";
|
|
7
|
-
/**
|
|
8
|
-
* Children inside the control
|
|
9
|
-
*/
|
|
10
|
-
children?: React.ReactNode;
|
|
11
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|