@macrostrat/map-interface 1.0.9 → 1.0.11
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/CHANGELOG.md +11 -0
- package/dist/main.cjs +70 -23
- package/dist/main.cjs.map +1 -1
- package/dist/main.css +12 -2
- package/dist/main.css.map +1 -1
- package/dist/module.css +12 -2
- package/dist/module.css.map +1 -1
- package/dist/module.mjs +72 -25
- package/dist/module.mjs.map +1 -1
- package/dist/types.d.ts +52 -57
- package/dist/types.d.ts.map +1 -1
- package/package.json +4 -2
- package/src/container.ts +3 -3
- package/src/context-panel/index.ts +52 -9
- package/src/context-panel/main.module.sass +10 -2
- package/src/dev/map-page.ts +9 -6
- package/src/helpers.ts +20 -2
- package/src/main.module.sass +6 -1
package/dist/types.d.ts
CHANGED
|
@@ -17,33 +17,40 @@ type MapPosition = {
|
|
|
17
17
|
camera: CameraPosition;
|
|
18
18
|
target?: TargetPosition;
|
|
19
19
|
};
|
|
20
|
-
export function LoadingButton({ isLoading, onClick, active, icon, }: {
|
|
21
|
-
isLoading?: boolean;
|
|
22
|
-
onClick: any;
|
|
23
|
-
active?: boolean;
|
|
24
|
-
icon?: string;
|
|
25
|
-
}): import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
26
|
-
export function MapLoadingButton(props: any): import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
27
|
-
type AnyChildren = React.ReactNode | React.ReactFragment;
|
|
28
|
-
export function FloatingNavbar({ className, children, statusElement, }: {
|
|
29
|
-
className?: string;
|
|
30
|
-
children?: AnyChildren;
|
|
31
|
-
statusElement?: AnyChildren;
|
|
32
|
-
}): import("react").ReactElement<{
|
|
33
|
-
className: string;
|
|
34
|
-
}, string | import("react").JSXElementConstructor<any>>;
|
|
35
20
|
declare namespace InfiniteScrollView {
|
|
36
21
|
var defaultProps: {
|
|
37
22
|
hasMore(res: any): boolean;
|
|
38
23
|
getItems(d: any): any;
|
|
39
24
|
getCount(d: any): any;
|
|
40
25
|
getNextParams(response: any, params: any): any;
|
|
41
|
-
placeholder: (p: APIPlaceholderProps) => React.
|
|
26
|
+
placeholder: (p: APIPlaceholderProps) => React.ReactNode;
|
|
42
27
|
};
|
|
43
28
|
}
|
|
44
29
|
declare namespace ThreeColumnLayout {
|
|
45
30
|
var Panels: typeof SidePanel;
|
|
46
31
|
}
|
|
32
|
+
export function LoadingButton({ isLoading, onClick, active, large, icon, style, }: {
|
|
33
|
+
isLoading?: boolean;
|
|
34
|
+
onClick: any;
|
|
35
|
+
active?: boolean;
|
|
36
|
+
large?: boolean;
|
|
37
|
+
icon?: string;
|
|
38
|
+
style: any;
|
|
39
|
+
}): any;
|
|
40
|
+
export function MapLoadingButton(props: any): import("react").ReactNode;
|
|
41
|
+
type AnyChildren = React.ReactNode | React.ReactFragment;
|
|
42
|
+
export interface FloatingNavbarProps {
|
|
43
|
+
className?: string;
|
|
44
|
+
children: AnyChildren;
|
|
45
|
+
headerElement?: AnyChildren;
|
|
46
|
+
title?: AnyChildren;
|
|
47
|
+
statusElement?: AnyChildren;
|
|
48
|
+
rightElement?: AnyChildren;
|
|
49
|
+
height: number | string;
|
|
50
|
+
width: number | string;
|
|
51
|
+
style?: object;
|
|
52
|
+
}
|
|
53
|
+
export function FloatingNavbar({ className, children, headerElement, title, statusElement, rightElement, height, width, style, }: FloatingNavbarProps): any;
|
|
47
54
|
interface LocationHashParams {
|
|
48
55
|
x?: string;
|
|
49
56
|
y?: string;
|
|
@@ -53,8 +60,8 @@ interface LocationHashParams {
|
|
|
53
60
|
}
|
|
54
61
|
export function applyMapPositionToHash(args: LocationHashParams, mapPosition: MapPosition | null): void;
|
|
55
62
|
export function getMapPositionForHash(hashData: ParsedQuery<string>, centerPosition: LatLng | null): MapPosition;
|
|
56
|
-
export function ValueWithUnit(props: any): import("react").
|
|
57
|
-
export function DegreeCoord(props: any):
|
|
63
|
+
export function ValueWithUnit(props: any): import("react").ReactNode;
|
|
64
|
+
export function DegreeCoord(props: any): any;
|
|
58
65
|
export interface LngLatProps {
|
|
59
66
|
/** Map position */
|
|
60
67
|
position: [number, number] | {
|
|
@@ -69,12 +76,8 @@ export interface LngLatProps {
|
|
|
69
76
|
/** Function to format coordinates */
|
|
70
77
|
format?: (val: number, precision: number) => string;
|
|
71
78
|
}
|
|
72
|
-
export function LngLatCoords(props: LngLatProps):
|
|
73
|
-
|
|
74
|
-
}, string | import("react").JSXElementConstructor<any>>;
|
|
75
|
-
export function Elevation(props: any): import("react").ReactElement<{
|
|
76
|
-
className: any;
|
|
77
|
-
}, string | import("react").JSXElementConstructor<any>>;
|
|
79
|
+
export function LngLatCoords(props: LngLatProps): any;
|
|
80
|
+
export function Elevation(props: any): any;
|
|
78
81
|
interface InfoDrawerHeaderProps {
|
|
79
82
|
onClose: () => void;
|
|
80
83
|
position: mapboxgl.LngLat;
|
|
@@ -82,15 +85,15 @@ interface InfoDrawerHeaderProps {
|
|
|
82
85
|
elevation?: number;
|
|
83
86
|
showCopyPositionButton?: boolean;
|
|
84
87
|
}
|
|
85
|
-
export function InfoDrawerContainer(props: any): import("react").
|
|
88
|
+
export function InfoDrawerContainer(props: any): import("react").ReactNode;
|
|
86
89
|
interface BaseInfoDrawerProps extends InfoDrawerHeaderProps {
|
|
87
90
|
className?: string;
|
|
88
91
|
title?: string;
|
|
89
92
|
headerElement?: JSX.Element;
|
|
90
93
|
children?: React.ReactNode;
|
|
91
94
|
}
|
|
92
|
-
export function BaseInfoDrawer(props: BaseInfoDrawerProps):
|
|
93
|
-
export function LocationPanel(props: any):
|
|
95
|
+
export function BaseInfoDrawer(props: BaseInfoDrawerProps): any;
|
|
96
|
+
export function LocationPanel(props: any): any;
|
|
94
97
|
interface XRayOptions {
|
|
95
98
|
color?: string;
|
|
96
99
|
inDarkMode?: boolean;
|
|
@@ -120,20 +123,18 @@ type InspectorStyleOptions = XRayOptions & {
|
|
|
120
123
|
export function buildInspectorStyle(baseStyle: mapboxgl.Style | string, overlayStyle?: mapboxgl.Style | string | null, params?: InspectorStyleOptions): Promise<mapboxgl.Style>;
|
|
121
124
|
export function MapBottomControls({ children }: {
|
|
122
125
|
children: any;
|
|
123
|
-
}): import("react").
|
|
124
|
-
export const PanelCard: (props: any) =>
|
|
126
|
+
}): import("react").ReactNode;
|
|
127
|
+
export const PanelCard: (props: any) => ReactNode;
|
|
125
128
|
export enum DetailPanelStyle {
|
|
126
129
|
FIXED = "fixed",
|
|
127
130
|
FLOATING = "floating"
|
|
128
131
|
}
|
|
129
|
-
export const MapAreaContainer: (props: any) =>
|
|
132
|
+
export const MapAreaContainer: (props: any) => ReactNode;
|
|
130
133
|
interface MapContainerProps {
|
|
131
134
|
className?: string;
|
|
132
135
|
children?: ReactNode;
|
|
133
136
|
}
|
|
134
|
-
export function MapStyledContainer({ className, children }: MapContainerProps):
|
|
135
|
-
className: string;
|
|
136
|
-
}, string | import("react").JSXElementConstructor<any>>;
|
|
137
|
+
export function MapStyledContainer({ className, children }: MapContainerProps): any;
|
|
137
138
|
export function getMapPadding(ref: any, parentRef: any): {
|
|
138
139
|
left: number;
|
|
139
140
|
top: number;
|
|
@@ -148,8 +149,9 @@ interface MapPaddingManagerProps {
|
|
|
148
149
|
containerRef: React.RefObject<HTMLDivElement>;
|
|
149
150
|
parentRef: React.RefObject<HTMLDivElement>;
|
|
150
151
|
infoMarkerPosition: mapboxgl.LngLatLike;
|
|
152
|
+
debounceTime?: number;
|
|
151
153
|
}
|
|
152
|
-
export function MapPaddingManager({ containerRef, parentRef, infoMarkerPosition, }: MapPaddingManagerProps): any;
|
|
154
|
+
export function MapPaddingManager({ containerRef, parentRef, infoMarkerPosition, debounceTime, }: MapPaddingManagerProps): any;
|
|
153
155
|
export function MapMovedReporter({ onMapMoved }: {
|
|
154
156
|
onMapMoved?: any;
|
|
155
157
|
}): any;
|
|
@@ -164,6 +166,7 @@ export function MapMarker({ position, setPosition, centerMarker }: {
|
|
|
164
166
|
setPosition: any;
|
|
165
167
|
centerMarker?: boolean;
|
|
166
168
|
}): any;
|
|
169
|
+
export function useBasicStylePair(): "mapbox://styles/mapbox/dark-v10" | "mapbox://styles/mapbox/light-v10";
|
|
167
170
|
type MapboxCoreOptions = Omit<mapboxgl.MapboxOptions, "container">;
|
|
168
171
|
export interface MapViewProps extends MapboxCoreOptions {
|
|
169
172
|
showLineSymbols?: boolean;
|
|
@@ -182,9 +185,7 @@ export interface MapViewProps extends MapboxCoreOptions {
|
|
|
182
185
|
export interface MapboxOptionsExt extends MapboxCoreOptions {
|
|
183
186
|
mapPosition?: MapPosition;
|
|
184
187
|
}
|
|
185
|
-
export function MapView(props: MapViewProps):
|
|
186
|
-
ref: import("react").MutableRefObject<HTMLDivElement>;
|
|
187
|
-
}, string | import("react").JSXElementConstructor<any>>;
|
|
188
|
+
export function MapView(props: MapViewProps): any;
|
|
188
189
|
export function MapTerrainManager({ mapUse3D, terrainSourceID, }: {
|
|
189
190
|
mapUse3D?: boolean;
|
|
190
191
|
terrainSourceID?: string;
|
|
@@ -198,30 +199,24 @@ export function TileExtentLayer({ tile, color, }: {
|
|
|
198
199
|
tile: TileIndex | null;
|
|
199
200
|
color?: string;
|
|
200
201
|
}): any;
|
|
201
|
-
export function PanelSubhead(props: any):
|
|
202
|
-
export function ExpansionPanelSummary(props: any):
|
|
203
|
-
export function InfoPanelSection(props: any):
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
export function
|
|
207
|
-
export function SubExpansionPanel(props: any): import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
208
|
-
export function ExpandableDetailsPanel(props: any): import("react").ReactElement<{
|
|
209
|
-
className: any;
|
|
210
|
-
}, string | import("react").JSXElementConstructor<any>>;
|
|
202
|
+
export function PanelSubhead(props: any): any;
|
|
203
|
+
export function ExpansionPanelSummary(props: any): any;
|
|
204
|
+
export function InfoPanelSection(props: any): any;
|
|
205
|
+
export function ExpansionPanel(props: any): import("react").ReactNode;
|
|
206
|
+
export function SubExpansionPanel(props: any): import("react").ReactNode;
|
|
207
|
+
export function ExpandableDetailsPanel(props: any): any;
|
|
211
208
|
export function ExpansionBody({ title, className, children }: {
|
|
212
209
|
title: any;
|
|
213
210
|
className: any;
|
|
214
211
|
children: any;
|
|
215
|
-
}):
|
|
216
|
-
className: any;
|
|
217
|
-
}, string | import("react").JSXElementConstructor<any>>;
|
|
212
|
+
}): any;
|
|
218
213
|
export function FeatureProperties({ data, ...rest }: {
|
|
219
214
|
[x: string]: any;
|
|
220
215
|
data: any;
|
|
221
|
-
}): import("react").
|
|
216
|
+
}): import("react").ReactNode;
|
|
222
217
|
export function FeatureRecord({ feature }: {
|
|
223
218
|
feature: any;
|
|
224
|
-
}): import("react").
|
|
219
|
+
}): import("react").ReactNode;
|
|
225
220
|
export function FeatureSelectionHandler({ selectedLocation, setFeatures, radius, }: {
|
|
226
221
|
selectedLocation: mapboxgl.LngLat;
|
|
227
222
|
setFeatures: (features: mapboxgl.MapboxGeoJSONFeature[]) => void;
|
|
@@ -231,17 +226,17 @@ export function TileInfo({ feature, showExtent, setShowExtent }: {
|
|
|
231
226
|
feature: any;
|
|
232
227
|
showExtent: any;
|
|
233
228
|
setShowExtent: any;
|
|
234
|
-
}): import("react").
|
|
229
|
+
}): import("react").ReactNode;
|
|
235
230
|
export function FeaturePanel({ features, focusedSource, focusedSourceTitle, }: {
|
|
236
231
|
features: any;
|
|
237
232
|
focusedSource?: any;
|
|
238
233
|
focusedSourceTitle?: any;
|
|
239
|
-
}): import("react").
|
|
234
|
+
}): import("react").ReactNode;
|
|
240
235
|
export function Features({ features }: {
|
|
241
236
|
features: any;
|
|
242
|
-
}):
|
|
237
|
+
}): any;
|
|
243
238
|
export const h: import("@macrostrat/hyper").Hyper;
|
|
244
|
-
export function MapInspector({ title, headerElement, transformRequest, mapPosition, mapboxToken, overlayStyle, children, style, focusedSource, focusedSourceTitle, fitViewport,
|
|
239
|
+
export function MapInspector({ title, headerElement, transformRequest, mapPosition, mapboxToken, overlayStyle, children, style, focusedSource, focusedSourceTitle, fitViewport, }: {
|
|
245
240
|
headerElement?: React.ReactElement;
|
|
246
241
|
transformRequest?: mapboxgl.TransformRequestFunction;
|
|
247
242
|
title?: string;
|
|
@@ -254,7 +249,7 @@ export function MapInspector({ title, headerElement, transformRequest, mapPositi
|
|
|
254
249
|
projection?: string;
|
|
255
250
|
mapPosition?: MapPosition;
|
|
256
251
|
fitViewport?: boolean;
|
|
257
|
-
}):
|
|
252
|
+
}): any;
|
|
258
253
|
export const DevMapPage: typeof MapInspector;
|
|
259
254
|
|
|
260
255
|
//# sourceMappingURL=types.d.ts.map
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";;;ACGA,cAAqB;IACnB,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,sBAAsB,MAAM,GAAG;IAC7B,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,sBAAsB,MAAM,GAAG;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,mBAA0B;IACxB,MAAM,EAAE,cAAc,CAAC;IACvB,MAAM,CAAC,EAAE,cAAc,CAAC;CACzB,CAAC;AaXF,8BAA8B,EAC5B,SAAiB,EACjB,OAAO,EACP,MAAc,EACd,IAAa,GACd;;;;;CAAA,0FASA;AAED,iCAAiC,KAAK,KAAA,0FAIrC;AAED,mBAAmB,MAAM,SAAS,GAAG,MAAM,aAAa,CAAC;AAEzD,+BAA+B,EAC7B,SAAS,EACT,QAAQ,EACR,aAAoB,GACrB,EAAE;IACD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,WAAW,CAAC;IACvB,aAAa,CAAC,EAAE,WAAW,CAAC;CAC7B;;wDAWA;kBmBoHQ,kBAAkB;;;;;;yBA2KR,mBAAmB;;;kBwBpO7B,i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,0FAKpC;AC9LD,OAAO,MAAM,oCAAwB,CAAC;AAEtC,6BAA6B,EAC3B,KAAuB,EACvB,aAAoB,EACpB,gBAAuB,EACvB,WAAkB,EAClB,WAAkB,EAClB,YAAmB,EACnB,QAAQ,EACR,KAAK,EACL,aAAoB,EACpB,kBAAyB,EACzB,WAAkB,EAClB,UAAiB,GAClB,EAAE;IACD,aAAa,CAAC,EAAE,MAAM,YAAY,CAAC;IACnC,gBAAgB,CAAC,EAAE,SAAS,wBAAwB,CAAC;IACrD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,SAAS,KAAK,GAAG,MAAM,CAAC;IAChC,QAAQ,CAAC,EAAE,MAAM,SAAS,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,SAAS,KAAK,GAAG,MAAM,CAAC;IACvC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,0FA0HA;AAGD,OAAO,MAAM,+BAAyB,CAAC","sources":["packages/map-interface/mapbox-utils/src/labels.ts","packages/map-interface/mapbox-utils/src/position.ts","packages/map-interface/mapbox-utils/src/preprocess-styles.ts","packages/map-interface/mapbox-utils/src/utils.ts","packages/map-interface/mapbox-utils/src/view-info.ts","packages/map-interface/mapbox-utils/src/style-helpers.ts","packages/map-interface/mapbox-utils/src/index.ts","packages/map-interface/mapbox-react/src/context.ts","packages/map-interface/mapbox-react/src/hooks.ts","packages/map-interface/mapbox-react/src/controls.ts","packages/map-interface/mapbox-react/src/terrain.ts","packages/map-interface/mapbox-react/src/debugger.ts","packages/map-interface/mapbox-react/src/focus-state.ts","packages/map-interface/mapbox-react/src/index.ts","packages/map-interface/src/src/context-panel/index.ts","packages/map-interface/ui-components/src/api/types.ts","packages/map-interface/ui-components/src/util/query-string.ts","packages/map-interface/ui-components/src/util/state-hooks.ts","packages/map-interface/ui-components/src/util/layout-hooks.ts","packages/map-interface/ui-components/src/util/local-storage.ts","packages/map-interface/ui-components/src/util/json-view.ts","packages/map-interface/ui-components/src/util/scroll-helpers.ts","packages/map-interface/ui-components/src/util/migration-helpers.ts","packages/map-interface/ui-components/src/util/box-model.ts","packages/map-interface/ui-components/src/util/event-hooks.ts","packages/map-interface/ui-components/src/util/flexbox.ts","packages/map-interface/ui-components/src/util/index.ts","packages/map-interface/ui-components/src/api/provider.ts","packages/map-interface/ui-components/src/api/data-provider.ts","packages/map-interface/ui-components/src/api/indexing.ts","packages/map-interface/ui-components/src/api/frontend.ts","packages/map-interface/ui-components/src/api/paged.ts","packages/map-interface/ui-components/src/api/index.ts","packages/map-interface/ui-components/src/infinite-scroll.ts","packages/map-interface/ui-components/src/buttons/delete-button.ts","packages/map-interface/ui-components/src/buttons/index.ts","packages/map-interface/ui-components/src/collapse-panel/index.ts","packages/map-interface/ui-components/src/link-card.ts","packages/map-interface/ui-components/src/file-upload/index.ts","packages/map-interface/ui-components/src/image.ts","packages/map-interface/ui-components/src/model-editor.ts","packages/map-interface/ui-components/src/toaster.ts","packages/map-interface/ui-components/src/citations/author-list.ts","packages/map-interface/ui-components/src/citations/index.ts","packages/map-interface/ui-components/src/geodeepdive/reference-card.ts","packages/map-interface/ui-components/src/geodeepdive/index.ts","packages/map-interface/ui-components/src/text.ts","packages/map-interface/ui-components/src/dark-mode.ts","packages/map-interface/ui-components/src/form-controls/slider.ts","packages/map-interface/ui-components/src/form-controls/index.ts","packages/map-interface/ui-components/src/settings/index.ts","packages/map-interface/ui-components/src/error-boundary.ts","packages/map-interface/ui-components/src/patterns/composite-image.ts","packages/map-interface/ui-components/src/patterns/index.ts","packages/map-interface/ui-components/src/collapse-card.ts","packages/map-interface/ui-components/src/modal-panel/draggable-overlay.ts","packages/map-interface/ui-components/src/modal-panel/index.ts","packages/map-interface/ui-components/src/page-layouts/index.ts","packages/map-interface/ui-components/src/dev-panel/_inner.ts","packages/map-interface/ui-components/src/dev-panel/index.ts","packages/map-interface/ui-components/src/index.ts","packages/map-interface/src/src/location-info/utils.ts","packages/map-interface/src/src/location-info/hash-string.ts","packages/map-interface/src/src/location-info/index.ts","packages/map-interface/src/src/location-panel/header.ts","packages/map-interface/src/src/location-panel/index.ts","packages/map-interface/src/src/dev/xray.ts","packages/map-interface/src/src/controls.ts","packages/map-interface/src/src/container.ts","packages/map-interface/src/src/utils.ts","packages/map-interface/src/src/helpers.ts","packages/map-interface/src/src/map-view/terrain.ts","packages/map-interface/src/src/map-view/index.ts","packages/map-interface/src/src/dev/tile-extent.ts","packages/map-interface/src/src/expansion-panel/headers.ts","packages/map-interface/src/src/expansion-panel/index.ts","packages/map-interface/src/src/dev/vector-tile-features.ts","packages/map-interface/src/src/dev/map-page.ts","packages/map-interface/src/src/dev/index.ts","packages/map-interface/src/src/index.ts","packages/map-interface/src/index.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,"export * from \"./context-panel\";\nexport * from \"./location-panel\";\nexport * from \"./dev\";\nexport * from \"./container\";\nexport * from \"./map-view\";\nexport * from \"./controls\";\nexport * from \"./helpers\";\nexport * from \"./utils\";\nexport * from \"./location-info\";\nexport * from \"./expansion-panel\";\n"],"names":[],"version":3,"file":"types.d.ts.map"}
|
|
1
|
+
{"mappings":";;;ACGA,cAAqB;IACnB,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,sBAAsB,MAAM,GAAG;IAC7B,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,sBAAsB,MAAM,GAAG;I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AAY,CAAC;IACnC,gBAAgB,CAAC,EAAE,SAAS,wBAAwB,CAAC;IACrD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,SAAS,KAAK,GAAG,MAAM,CAAC;IAChC,QAAQ,CAAC,EAAE,MAAM,SAAS,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,SAAS,KAAK,GAAG,MAAM,CAAC;IACvC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,OAgIA;AAGD,OAAO,MAAM,+BAAyB,CAAC","sources":["packages/map-interface/mapbox-utils/src/labels.ts","packages/map-interface/mapbox-utils/src/position.ts","packages/map-interface/mapbox-utils/src/preprocess-styles.ts","packages/map-interface/mapbox-utils/src/utils.ts","packages/map-interface/mapbox-utils/src/view-info.ts","packages/map-interface/mapbox-utils/src/style-helpers.ts","packages/map-interface/mapbox-utils/src/index.ts","packages/map-interface/mapbox-react/src/context.ts","packages/map-interface/ui-components/src/api/types.ts","packages/map-interface/ui-components/src/util/query-string.ts","packages/map-interface/ui-components/src/util/state-hooks.ts","packages/map-interface/ui-components/src/util/layout-hooks.ts","packages/map-interface/ui-components/src/util/local-storage.ts","packages/map-interface/ui-components/src/util/json-view.ts","packages/map-interface/ui-components/src/util/scroll-helpers.ts","packages/map-interface/ui-components/src/util/migration-helpers.ts","packages/map-interface/ui-components/src/util/box-model.ts","packages/map-interface/ui-components/src/util/event-hooks.ts","packages/map-interface/ui-components/src/util/flexbox.ts","packages/map-interface/ui-components/src/util/index.ts","packages/map-interface/ui-components/src/api/provider.ts","packages/map-interface/ui-components/src/api/data-provider.ts","packages/map-interface/ui-components/src/api/indexing.ts","packages/map-interface/ui-components/src/api/frontend.ts","packages/map-interface/ui-components/src/api/paged.ts","packages/map-interface/ui-components/src/api/index.ts","packages/map-interface/ui-components/src/infinite-scroll.ts","packages/map-interface/ui-components/src/buttons/delete-button.ts","packages/map-interface/ui-components/src/buttons/index.ts","packages/map-interface/ui-components/src/collapse-panel/index.ts","packages/map-interface/ui-components/src/link-card.ts","packages/map-interface/ui-components/src/file-upload/index.ts","packages/map-interface/ui-components/src/image.ts","packages/map-interface/ui-components/src/model-editor.ts","packages/map-interface/ui-components/src/toaster.ts","packages/map-interface/ui-components/src/citations/author-list.ts","packages/map-interface/ui-components/src/citations/index.ts","packages/map-interface/ui-components/src/geodeepdive/reference-card.ts","packages/map-interface/ui-components/src/geodeepdive/index.ts","packages/map-interface/ui-components/src/text.ts","packages/map-interface/ui-components/src/dark-mode.ts","packages/map-interface/ui-components/src/form-controls/slider.ts","packages/map-interface/ui-components/src/form-controls/index.ts","packages/map-interface/ui-components/src/settings/index.ts","packages/map-interface/ui-components/src/error-boundary.ts","packages/map-interface/ui-components/src/patterns/composite-image.ts","packages/map-interface/ui-components/src/patterns/index.ts","packages/map-interface/ui-components/src/collapse-card.ts","packages/map-interface/ui-components/src/modal-panel/draggable-overlay.ts","packages/map-interface/ui-components/src/modal-panel/index.ts","packages/map-interface/ui-components/src/page-layouts/index.ts","packages/map-interface/ui-components/src/dev-panel/_inner.ts","packages/map-interface/ui-components/src/dev-panel/index.ts","packages/map-interface/ui-components/src/index.ts","packages/map-interface/mapbox-react/src/hooks.ts","packages/map-interface/mapbox-react/src/controls.ts","packages/map-interface/mapbox-react/src/terrain.ts","packages/map-interface/mapbox-react/src/debugger.ts","packages/map-interface/mapbox-react/src/focus-state.ts","packages/map-interface/mapbox-react/src/index.ts","packages/map-interface/src/src/context-panel/index.ts","packages/map-interface/src/src/location-info/utils.ts","packages/map-interface/src/src/location-info/hash-string.ts","packages/map-interface/src/src/location-info/index.ts","packages/map-interface/src/src/location-panel/header.ts","packages/map-interface/src/src/location-panel/index.ts","packages/map-interface/color-utils/src/index.ts","packages/map-interface/src/src/dev/xray.ts","packages/map-interface/src/src/controls.ts","packages/map-interface/src/src/container.ts","packages/map-interface/src/src/utils.ts","packages/map-interface/src/src/helpers.ts","packages/map-interface/src/src/map-view/terrain.ts","packages/map-interface/src/src/map-view/index.ts","packages/map-interface/src/src/dev/tile-extent.ts","packages/map-interface/src/src/expansion-panel/headers.ts","packages/map-interface/src/src/expansion-panel/index.ts","packages/map-interface/src/src/dev/vector-tile-features.ts","packages/map-interface/src/src/dev/map-page.ts","packages/map-interface/src/src/dev/index.ts","packages/map-interface/src/src/index.ts","packages/map-interface/src/index.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,"export * from \"./context-panel\";\nexport * from \"./location-panel\";\nexport * from \"./dev\";\nexport * from \"./container\";\nexport * from \"./map-view\";\nexport * from \"./controls\";\nexport * from \"./helpers\";\nexport * from \"./utils\";\nexport * from \"./location-info\";\nexport * from \"./expansion-panel\";\n"],"names":[],"version":3,"file":"types.d.ts.map"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@macrostrat/map-interface",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.11",
|
|
4
4
|
"description": "Map interface for Macrostrat",
|
|
5
5
|
"main": "dist/main.cjs",
|
|
6
6
|
"module": "dist/module.mjs",
|
|
@@ -50,7 +50,9 @@
|
|
|
50
50
|
"src"
|
|
51
51
|
],
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"parcel": "^2.12.0"
|
|
53
|
+
"parcel": "^2.12.0",
|
|
54
|
+
"postcss": "^8.0.0",
|
|
55
|
+
"postcss-modules": "^4.3.0"
|
|
54
56
|
},
|
|
55
57
|
"repository": {
|
|
56
58
|
"type": "git",
|
package/src/container.ts
CHANGED
|
@@ -32,6 +32,9 @@ export enum DetailPanelStyle {
|
|
|
32
32
|
FLOATING = "floating",
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
+
export const MapAreaContainer = (props) =>
|
|
36
|
+
h(MapProviders, h(_MapAreaContainer, props));
|
|
37
|
+
|
|
35
38
|
function _MapAreaContainer({
|
|
36
39
|
children,
|
|
37
40
|
className,
|
|
@@ -144,9 +147,6 @@ function ContextStack(props: ContextStackProps) {
|
|
|
144
147
|
const MapProviders = ({ children }) =>
|
|
145
148
|
h(ToasterContext, h(MapboxMapProvider, children));
|
|
146
149
|
|
|
147
|
-
export const MapAreaContainer = (props) =>
|
|
148
|
-
h(MapProviders, h(_MapAreaContainer, props));
|
|
149
|
-
|
|
150
150
|
interface MapContainerProps {
|
|
151
151
|
className?: string;
|
|
152
152
|
children?: ReactNode;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { useMemo } from "react";
|
|
2
|
-
import { Navbar, Button,
|
|
2
|
+
import { Navbar, Button, Spinner, Card, Text } from "@blueprintjs/core";
|
|
3
3
|
import hyper from "@macrostrat/hyper";
|
|
4
4
|
import styles from "./main.module.sass";
|
|
5
5
|
import { useMapStatus } from "@macrostrat/mapbox-react";
|
|
6
|
+
import { Spacer } from "@macrostrat/ui-components";
|
|
6
7
|
|
|
7
8
|
const h = hyper.styled(styles);
|
|
8
9
|
|
|
@@ -12,15 +13,18 @@ export function LoadingButton({
|
|
|
12
13
|
isLoading = false,
|
|
13
14
|
onClick,
|
|
14
15
|
active = false,
|
|
16
|
+
large = false,
|
|
15
17
|
icon = "menu",
|
|
18
|
+
style,
|
|
16
19
|
}) {
|
|
17
20
|
return h(Button, {
|
|
18
21
|
className: "loading-button",
|
|
19
22
|
icon: isLoading ? spinnerElement : icon,
|
|
20
|
-
large
|
|
23
|
+
large,
|
|
21
24
|
minimal: true,
|
|
22
25
|
onClick,
|
|
23
26
|
active: active && !isLoading,
|
|
27
|
+
style,
|
|
24
28
|
});
|
|
25
29
|
}
|
|
26
30
|
|
|
@@ -32,18 +36,57 @@ export function MapLoadingButton(props) {
|
|
|
32
36
|
|
|
33
37
|
type AnyChildren = React.ReactNode | React.ReactFragment;
|
|
34
38
|
|
|
39
|
+
export interface FloatingNavbarProps {
|
|
40
|
+
className?: string;
|
|
41
|
+
children: AnyChildren;
|
|
42
|
+
headerElement?: AnyChildren;
|
|
43
|
+
title?: AnyChildren;
|
|
44
|
+
statusElement?: AnyChildren;
|
|
45
|
+
rightElement?: AnyChildren;
|
|
46
|
+
height: number | string;
|
|
47
|
+
width: number | string;
|
|
48
|
+
style?: object;
|
|
49
|
+
}
|
|
50
|
+
|
|
35
51
|
export function FloatingNavbar({
|
|
36
52
|
className,
|
|
37
53
|
children,
|
|
54
|
+
headerElement = null,
|
|
55
|
+
title = null,
|
|
38
56
|
statusElement = null,
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}) {
|
|
44
|
-
|
|
57
|
+
rightElement = null,
|
|
58
|
+
height,
|
|
59
|
+
width,
|
|
60
|
+
style = {},
|
|
61
|
+
}: FloatingNavbarProps) {
|
|
62
|
+
let _rightElement: React.ReactNode | null = null;
|
|
63
|
+
if (rightElement != null) {
|
|
64
|
+
_rightElement = h("div.right-element", rightElement);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
let _headerElement: React.ReactNode | null = headerElement;
|
|
68
|
+
if (title != null && _headerElement == null) {
|
|
69
|
+
if (typeof title === "string") {
|
|
70
|
+
_headerElement = h(Text, { tagName: "h2", ellipsize: true }, title);
|
|
71
|
+
} else {
|
|
72
|
+
_headerElement = title;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
if (_headerElement != null) {
|
|
77
|
+
_headerElement = h([_headerElement, h(Spacer)]);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
return h("div.searchbar-holder", { className, style: { width } }, [
|
|
45
81
|
h("div.navbar-holder", [
|
|
46
|
-
h(
|
|
82
|
+
h(
|
|
83
|
+
Navbar,
|
|
84
|
+
{
|
|
85
|
+
className: "searchbar navbar panel",
|
|
86
|
+
style: { height, ...style },
|
|
87
|
+
},
|
|
88
|
+
[_headerElement, children, _rightElement]
|
|
89
|
+
),
|
|
47
90
|
]),
|
|
48
91
|
h.if(statusElement != null)(
|
|
49
92
|
Card,
|
|
@@ -3,32 +3,40 @@
|
|
|
3
3
|
display: flex
|
|
4
4
|
flex-direction: column
|
|
5
5
|
margin: 0
|
|
6
|
+
|
|
6
7
|
.navbar-holder
|
|
7
8
|
display: flex
|
|
8
9
|
flex-direction: row
|
|
10
|
+
|
|
9
11
|
.searchbar
|
|
10
12
|
width: 100%
|
|
11
13
|
background-color: var(--panel-background-color)
|
|
12
14
|
border-radius: 5px
|
|
13
|
-
padding:
|
|
15
|
+
padding: var(--navbar-padding, 10px)
|
|
14
16
|
display: flex
|
|
15
17
|
flex-direction: row
|
|
16
18
|
align-items: center
|
|
17
19
|
gap: 5px
|
|
20
|
+
|
|
18
21
|
:global(.bp5-input-group)
|
|
19
22
|
flex-grow: 1
|
|
20
23
|
cursor: text
|
|
21
24
|
|
|
22
|
-
|
|
25
|
+
.navbar
|
|
26
|
+
min-height: 50px
|
|
27
|
+
|
|
28
|
+
:global(.bp5-navbar) > .loading-button
|
|
23
29
|
width: 40px
|
|
24
30
|
height: 40px
|
|
25
31
|
|
|
26
32
|
.status-tongue
|
|
27
33
|
background-color: var(--panel-background-color)
|
|
28
34
|
margin: 5px
|
|
35
|
+
margin-bottom: 0
|
|
29
36
|
margin-top: -12px
|
|
30
37
|
padding: 0
|
|
31
38
|
padding-top: 12px
|
|
39
|
+
overflow: hidden
|
|
32
40
|
|
|
33
41
|
@media screen and (max-width: 768px)
|
|
34
42
|
.status-tongue
|
package/src/dev/map-page.ts
CHANGED
|
@@ -33,7 +33,6 @@ export function MapInspector({
|
|
|
33
33
|
focusedSource = null,
|
|
34
34
|
focusedSourceTitle = null,
|
|
35
35
|
fitViewport = true,
|
|
36
|
-
projection = null,
|
|
37
36
|
}: {
|
|
38
37
|
headerElement?: React.ReactElement;
|
|
39
38
|
transformRequest?: mapboxgl.TransformRequestFunction;
|
|
@@ -127,14 +126,18 @@ export function MapInspector({
|
|
|
127
126
|
return h(
|
|
128
127
|
MapAreaContainer,
|
|
129
128
|
{
|
|
130
|
-
navbar: h(FloatingNavbar,
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
h(MapLoadingButton, {
|
|
129
|
+
navbar: h(FloatingNavbar, {
|
|
130
|
+
rightElement: h(MapLoadingButton, {
|
|
131
|
+
large: true,
|
|
134
132
|
active: isOpen,
|
|
135
133
|
onClick: () => setOpen(!isOpen),
|
|
134
|
+
style: {
|
|
135
|
+
marginRight: "-5px",
|
|
136
|
+
},
|
|
136
137
|
}),
|
|
137
|
-
|
|
138
|
+
headerElement,
|
|
139
|
+
title,
|
|
140
|
+
}),
|
|
138
141
|
contextPanel: h(PanelCard, [
|
|
139
142
|
h(Switch, {
|
|
140
143
|
checked: xRay,
|
package/src/helpers.ts
CHANGED
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
useMapDispatch,
|
|
5
5
|
useMapStatus,
|
|
6
6
|
} from "@macrostrat/mapbox-react";
|
|
7
|
-
import { useRef } from "react";
|
|
7
|
+
import { useMemo, useRef } from "react";
|
|
8
8
|
import { debounce } from "underscore";
|
|
9
9
|
import useResizeObserver from "use-resize-observer";
|
|
10
10
|
|
|
@@ -12,6 +12,7 @@ import { getMapPosition } from "@macrostrat/mapbox-utils";
|
|
|
12
12
|
import mapboxgl from "mapbox-gl";
|
|
13
13
|
import { useCallback, useEffect, useState } from "react";
|
|
14
14
|
import { getMapPadding, useMapMarker } from "./utils";
|
|
15
|
+
import { useInDarkMode } from "@macrostrat/ui-components";
|
|
15
16
|
|
|
16
17
|
export function MapResizeManager({ containerRef }) {
|
|
17
18
|
const mapRef = useMapRef();
|
|
@@ -34,12 +35,14 @@ interface MapPaddingManagerProps {
|
|
|
34
35
|
containerRef: React.RefObject<HTMLDivElement>;
|
|
35
36
|
parentRef: React.RefObject<HTMLDivElement>;
|
|
36
37
|
infoMarkerPosition: mapboxgl.LngLatLike;
|
|
38
|
+
debounceTime?: number;
|
|
37
39
|
}
|
|
38
40
|
|
|
39
41
|
export function MapPaddingManager({
|
|
40
42
|
containerRef,
|
|
41
43
|
parentRef,
|
|
42
44
|
infoMarkerPosition,
|
|
45
|
+
debounceTime = 200,
|
|
43
46
|
}: MapPaddingManagerProps) {
|
|
44
47
|
const mapRef = useMapRef();
|
|
45
48
|
|
|
@@ -47,11 +50,16 @@ export function MapPaddingManager({
|
|
|
47
50
|
getMapPadding(containerRef, parentRef)
|
|
48
51
|
);
|
|
49
52
|
|
|
50
|
-
const
|
|
53
|
+
const _updateMapPadding = useCallback(() => {
|
|
51
54
|
const newPadding = getMapPadding(containerRef, parentRef);
|
|
52
55
|
setPadding(newPadding);
|
|
53
56
|
}, [containerRef.current, parentRef.current]);
|
|
54
57
|
|
|
58
|
+
const updateMapPadding = useMemo(
|
|
59
|
+
() => debounce(_updateMapPadding, debounceTime),
|
|
60
|
+
[_updateMapPadding, debounceTime]
|
|
61
|
+
);
|
|
62
|
+
|
|
55
63
|
useEffect(() => {
|
|
56
64
|
const map = mapRef.current;
|
|
57
65
|
if (map == null) return;
|
|
@@ -64,6 +72,9 @@ export function MapPaddingManager({
|
|
|
64
72
|
onResize(sz) {
|
|
65
73
|
updateMapPadding();
|
|
66
74
|
},
|
|
75
|
+
round(n) {
|
|
76
|
+
return Math.round(n);
|
|
77
|
+
},
|
|
67
78
|
});
|
|
68
79
|
|
|
69
80
|
// Ideally, we would not have to do this when we know the infobox is loaded
|
|
@@ -170,3 +181,10 @@ export function MapMarker({ position, setPosition, centerMarker = true }) {
|
|
|
170
181
|
|
|
171
182
|
return null;
|
|
172
183
|
}
|
|
184
|
+
|
|
185
|
+
export function useBasicStylePair() {
|
|
186
|
+
const inDarkMode = useInDarkMode();
|
|
187
|
+
return inDarkMode
|
|
188
|
+
? "mapbox://styles/mapbox/dark-v10"
|
|
189
|
+
: "mapbox://styles/mapbox/light-v10";
|
|
190
|
+
}
|
package/src/main.module.sass
CHANGED
|
@@ -101,6 +101,10 @@
|
|
|
101
101
|
position: absolute
|
|
102
102
|
|
|
103
103
|
|
|
104
|
+
.context-panel-holder>:global(.bp5-card)
|
|
105
|
+
padding: 10px
|
|
106
|
+
background-color: var(--panel-background-color)
|
|
107
|
+
|
|
104
108
|
.panel-card
|
|
105
109
|
padding: 10px
|
|
106
110
|
background-color: var(--panel-background-color)
|
|
@@ -522,7 +526,8 @@
|
|
|
522
526
|
.spacer
|
|
523
527
|
flex: 1
|
|
524
528
|
|
|
525
|
-
|
|
529
|
+
|
|
530
|
+
// Shift UI around to center elements if we're in the global view
|
|
526
531
|
@media only screen and (min-width: 768px)
|
|
527
532
|
.map-container.detail-panel-leave .map-view-container
|
|
528
533
|
margin-right: -14em
|