@xyo-network/react-map-model 4.4.9 → 4.4.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/dist/browser/AnimatedHeatMapSettings.d.ts +2 -0
- package/dist/browser/AnimatedHeatMapSettings.d.ts.map +1 -0
- package/dist/browser/colors/MapColorProps.d.ts +17 -0
- package/dist/browser/colors/MapColorProps.d.ts.map +1 -0
- package/dist/browser/colors/index.d.ts +2 -0
- package/dist/browser/colors/index.d.ts.map +1 -0
- package/dist/browser/contexts/MapboxAccessToken/Context.d.ts +3 -0
- package/dist/browser/contexts/MapboxAccessToken/Context.d.ts.map +1 -0
- package/dist/browser/contexts/MapboxAccessToken/Provider.d.ts +7 -0
- package/dist/browser/contexts/MapboxAccessToken/Provider.d.ts.map +1 -0
- package/dist/browser/contexts/MapboxAccessToken/State.d.ts +7 -0
- package/dist/browser/contexts/MapboxAccessToken/State.d.ts.map +1 -0
- package/dist/browser/contexts/MapboxAccessToken/index.d.ts +5 -0
- package/dist/browser/contexts/MapboxAccessToken/index.d.ts.map +1 -0
- package/dist/browser/contexts/MapboxAccessToken/use.d.ts +2 -0
- package/dist/browser/contexts/MapboxAccessToken/use.d.ts.map +1 -0
- package/dist/browser/contexts/index.d.ts +2 -0
- package/dist/browser/contexts/index.d.ts.map +1 -0
- package/dist/browser/hooks/index.d.ts +3 -0
- package/dist/browser/hooks/index.d.ts.map +1 -0
- package/dist/browser/hooks/useFindHashes.d.ts +2 -0
- package/dist/browser/hooks/useFindHashes.d.ts.map +1 -0
- package/dist/browser/hooks/useHeatMapColors.d.ts +7 -0
- package/dist/browser/hooks/useHeatMapColors.d.ts.map +1 -0
- package/dist/browser/index.d.ts +8 -95
- package/dist/browser/index.d.ts.map +1 -0
- package/dist/browser/lib/MapStyle.d.ts +12 -0
- package/dist/browser/lib/MapStyle.d.ts.map +1 -0
- package/dist/browser/lib/index.d.ts +2 -0
- package/dist/browser/lib/index.d.ts.map +1 -0
- package/dist/browser/settings/DefaultMapSettings.d.ts +3 -0
- package/dist/browser/settings/DefaultMapSettings.d.ts.map +1 -0
- package/dist/browser/settings/MapSetting.d.ts +16 -0
- package/dist/browser/settings/MapSetting.d.ts.map +1 -0
- package/dist/browser/settings/index.d.ts +3 -0
- package/dist/browser/settings/index.d.ts.map +1 -0
- package/dist/browser/types/NetworkLocationAnswerBase.d.ts +25 -0
- package/dist/browser/types/NetworkLocationAnswerBase.d.ts.map +1 -0
- package/dist/browser/types/index.d.ts +2 -0
- package/dist/browser/types/index.d.ts.map +1 -0
- package/package.json +9 -9
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AnimatedHeatMapSettings.d.ts","sourceRoot":"","sources":["../../src/AnimatedHeatMapSettings.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,uBAAuB,+CAAuB,CAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface HeatMapColorProps {
|
|
2
|
+
staticMapColor: string;
|
|
3
|
+
}
|
|
4
|
+
export interface AnimatedHeatMapColorProps extends HeatMapColorProps {
|
|
5
|
+
highUsageColor: string;
|
|
6
|
+
lowUsageColor: string;
|
|
7
|
+
}
|
|
8
|
+
export interface ColorGradientLegendProps {
|
|
9
|
+
endColor: string;
|
|
10
|
+
endLabel: string;
|
|
11
|
+
heading: string;
|
|
12
|
+
startColor: string;
|
|
13
|
+
startLabel: string;
|
|
14
|
+
textColor: string;
|
|
15
|
+
}
|
|
16
|
+
export type LegendProps = ColorGradientLegendProps;
|
|
17
|
+
//# sourceMappingURL=MapColorProps.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MapColorProps.d.ts","sourceRoot":"","sources":["../../../src/colors/MapColorProps.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IAChC,cAAc,EAAE,MAAM,CAAA;CACvB;AAED,MAAM,WAAW,yBAA0B,SAAQ,iBAAiB;IAClE,cAAc,EAAE,MAAM,CAAA;IACtB,aAAa,EAAE,MAAM,CAAA;CACtB;AAED,MAAM,WAAW,wBAAwB;IACvC,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,OAAO,EAAE,MAAM,CAAA;IACf,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;IAClB,SAAS,EAAE,MAAM,CAAA;CAClB;AAED,MAAM,MAAM,WAAW,GAAG,wBAAwB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/colors/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Context.d.ts","sourceRoot":"","sources":["../../../../src/contexts/MapboxAccessToken/Context.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,YAAY,CAAA;AAE/D,eAAO,MAAM,wBAAwB,6GAAmD,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { PropsWithChildren } from 'react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export interface MapboxAccessTokenProviderProps {
|
|
4
|
+
defaultAccessToken?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const MapboxAccessTokenProvider: React.FC<PropsWithChildren<MapboxAccessTokenProviderProps>>;
|
|
7
|
+
//# sourceMappingURL=Provider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Provider.d.ts","sourceRoot":"","sources":["../../../../src/contexts/MapboxAccessToken/Provider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAC9C,OAAO,KAA4B,MAAM,OAAO,CAAA;AAIhD,MAAM,WAAW,8BAA8B;IAC7C,kBAAkB,CAAC,EAAE,MAAM,CAAA;CAC5B;AAED,eAAO,MAAM,yBAAyB,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAAC,8BAA8B,CAAC,CAajG,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ContextExState } from '@xyo-network/react-shared';
|
|
2
|
+
import type { Dispatch } from 'react';
|
|
3
|
+
export interface MapboxAccessTokenContextState extends ContextExState {
|
|
4
|
+
accessToken?: string;
|
|
5
|
+
setAccessToken?: Dispatch<string>;
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=State.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"State.d.ts","sourceRoot":"","sources":["../../../../src/contexts/MapboxAccessToken/State.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAC/D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAErC,MAAM,WAAW,6BAA8B,SAAQ,cAAc;IACnE,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,cAAc,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAA;CAClC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/contexts/MapboxAccessToken/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,UAAU,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use.d.ts","sourceRoot":"","sources":["../../../../src/contexts/MapboxAccessToken/use.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,oBAAoB,GAAI,kBAAgB,8HAEpD,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/contexts/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAA;AACnC,cAAc,wBAAwB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFindHashes.d.ts","sourceRoot":"","sources":["../../../src/hooks/useFindHashes.tsx"],"names":[],"mappings":"AAqBA,eAAO,MAAM,aAAa,2BAOzB,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { AnimatedHeatMapColorProps, ColorGradientLegendProps } from '../colors/index.ts';
|
|
2
|
+
declare const useHeatMapColors: () => {
|
|
3
|
+
heatMapColorProps: AnimatedHeatMapColorProps;
|
|
4
|
+
legendProps: ColorGradientLegendProps;
|
|
5
|
+
};
|
|
6
|
+
export { useHeatMapColors };
|
|
7
|
+
//# sourceMappingURL=useHeatMapColors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useHeatMapColors.d.ts","sourceRoot":"","sources":["../../../src/hooks/useHeatMapColors.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,yBAAyB,EAAE,wBAAwB,EAAE,MAAM,oBAAoB,CAAA;AAE7F,QAAA,MAAM,gBAAgB;;;CAqBrB,CAAA;AAED,OAAO,EAAE,gBAAgB,EAAE,CAAA"}
|
package/dist/browser/index.d.ts
CHANGED
|
@@ -1,95 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
type MapSettingFields = 'debugLayer' | 'fitToPoints' | 'scrollToZoom' | 'enableControls' | 'debugLogging' | 'preferDark' | 'dynamicMapResize';
|
|
10
|
-
type MapSetting = {
|
|
11
|
-
[field in MapSettingFields | string]: {
|
|
12
|
-
devMode?: boolean;
|
|
13
|
-
field: string;
|
|
14
|
-
hidden?: boolean;
|
|
15
|
-
label: string;
|
|
16
|
-
value: boolean;
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
declare const AnimatedHeatMapSettings: MapSetting;
|
|
21
|
-
|
|
22
|
-
interface HeatMapColorProps {
|
|
23
|
-
staticMapColor: string;
|
|
24
|
-
}
|
|
25
|
-
interface AnimatedHeatMapColorProps extends HeatMapColorProps {
|
|
26
|
-
highUsageColor: string;
|
|
27
|
-
lowUsageColor: string;
|
|
28
|
-
}
|
|
29
|
-
interface ColorGradientLegendProps {
|
|
30
|
-
endColor: string;
|
|
31
|
-
endLabel: string;
|
|
32
|
-
heading: string;
|
|
33
|
-
startColor: string;
|
|
34
|
-
startLabel: string;
|
|
35
|
-
textColor: string;
|
|
36
|
-
}
|
|
37
|
-
type LegendProps = ColorGradientLegendProps;
|
|
38
|
-
|
|
39
|
-
interface MapboxAccessTokenContextState extends ContextExState {
|
|
40
|
-
accessToken?: string;
|
|
41
|
-
setAccessToken?: Dispatch<string>;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
declare const MapboxAccessTokenContext: react.Context<MapboxAccessTokenContextState & _xyo_network_react_shared.ContextExState>;
|
|
45
|
-
|
|
46
|
-
interface MapboxAccessTokenProviderProps {
|
|
47
|
-
defaultAccessToken?: string;
|
|
48
|
-
}
|
|
49
|
-
declare const MapboxAccessTokenProvider: react__default.FC<PropsWithChildren<MapboxAccessTokenProviderProps>>;
|
|
50
|
-
|
|
51
|
-
declare const useMapboxAccessToken: (required?: boolean) => Omit<MapboxAccessTokenContextState & _xyo_network_react_shared.ContextExState, "provided">;
|
|
52
|
-
|
|
53
|
-
declare const useFindHashes: () => Lowercase<string>[];
|
|
54
|
-
|
|
55
|
-
declare const useHeatMapColors: () => {
|
|
56
|
-
heatMapColorProps: AnimatedHeatMapColorProps;
|
|
57
|
-
legendProps: ColorGradientLegendProps;
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
declare const MapStyle: Enum<{
|
|
61
|
-
Dark: "mapbox/dark-v10";
|
|
62
|
-
Light: "mapbox/light-v10";
|
|
63
|
-
Outdoors: "mapbox/outdoors-v11";
|
|
64
|
-
Satellite: "mapbox/satellite-v9";
|
|
65
|
-
SatelliteStreets: "mapbox/satellite-streets-v11";
|
|
66
|
-
Streets: "mapbox/streets-v11";
|
|
67
|
-
}>;
|
|
68
|
-
type MapStyle = EnumValue<typeof MapStyle>;
|
|
69
|
-
|
|
70
|
-
declare const DefaultMapSettings: () => MapSetting;
|
|
71
|
-
|
|
72
|
-
interface NetworkLocationAnswerBase<T> {
|
|
73
|
-
result: T;
|
|
74
|
-
}
|
|
75
|
-
declare const NetworkLocationAnswerSchema = "network.xyo.location.range.answer";
|
|
76
|
-
type NetworkLocationAnswerSchema = 'network.xyo.location.range.answer';
|
|
77
|
-
type NetworkLocationAnswerPayload = Payload<NetworkLocationAnswerBase<{
|
|
78
|
-
features: Feature<Point>[];
|
|
79
|
-
}>, NetworkLocationAnswerSchema>;
|
|
80
|
-
declare const isNetworkLocationAnswer: (x?: unknown | null) => x is NetworkLocationAnswerPayload;
|
|
81
|
-
declare const NetworkLocationHeatmapAnswerSchema = "network.xyo.location.heatmap.answer";
|
|
82
|
-
type NetworkLocationHeatmapAnswerSchema = 'network.xyo.location.heatmap.answer';
|
|
83
|
-
type NetworkLocationHeatmapAnswerPayload = Payload<NetworkLocationAnswerBase<{
|
|
84
|
-
features: Feature<Polygon>[];
|
|
85
|
-
}>, NetworkLocationHeatmapAnswerSchema>;
|
|
86
|
-
declare const isNetworkLocationHeatmapAnswer: (x?: unknown | null) => x is NetworkLocationHeatmapAnswerPayload;
|
|
87
|
-
declare const NetworkLocationHeatmapQuadkeyAnswerSchema = "network.xyo.location.heatmap.quadkey.answer";
|
|
88
|
-
type NetworkLocationHeatmapQuadkeyAnswerSchema = 'network.xyo.location.heatmap.quadkey.answer';
|
|
89
|
-
type NetworkLocationHeatmapQuadkeyAnswerPayload = Payload<NetworkLocationAnswerBase<{
|
|
90
|
-
density: number;
|
|
91
|
-
quadkey: string;
|
|
92
|
-
}[]>, NetworkLocationHeatmapQuadkeyAnswerSchema>;
|
|
93
|
-
declare const isNetworkLocationHeatmapQuadkeyAnswer: (x?: unknown | null) => x is NetworkLocationHeatmapQuadkeyAnswerPayload;
|
|
94
|
-
|
|
95
|
-
export { type AnimatedHeatMapColorProps, AnimatedHeatMapSettings, type ColorGradientLegendProps, DefaultMapSettings, type HeatMapColorProps, type LegendProps, type MapSetting, type MapSettingFields, MapStyle, MapboxAccessTokenContext, type MapboxAccessTokenContextState, MapboxAccessTokenProvider, type MapboxAccessTokenProviderProps, type NetworkLocationAnswerBase, type NetworkLocationAnswerPayload, NetworkLocationAnswerSchema, type NetworkLocationHeatmapAnswerPayload, NetworkLocationHeatmapAnswerSchema, type NetworkLocationHeatmapQuadkeyAnswerPayload, NetworkLocationHeatmapQuadkeyAnswerSchema, isNetworkLocationAnswer, isNetworkLocationHeatmapAnswer, isNetworkLocationHeatmapQuadkeyAnswer, useFindHashes, useHeatMapColors, useMapboxAccessToken };
|
|
1
|
+
export * from './AnimatedHeatMapSettings.ts';
|
|
2
|
+
export * from './colors/index.ts';
|
|
3
|
+
export * from './contexts/index.ts';
|
|
4
|
+
export * from './hooks/index.ts';
|
|
5
|
+
export * from './lib/index.ts';
|
|
6
|
+
export * from './settings/index.ts';
|
|
7
|
+
export * from './types/index.ts';
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAA;AAC5C,cAAc,mBAAmB,CAAA;AACjC,cAAc,qBAAqB,CAAA;AACnC,cAAc,kBAAkB,CAAA;AAChC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,qBAAqB,CAAA;AACnC,cAAc,kBAAkB,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { EnumValue } from '@xylabs/enum';
|
|
2
|
+
import { Enum } from '@xylabs/enum';
|
|
3
|
+
export declare const MapStyle: Enum<{
|
|
4
|
+
Dark: "mapbox/dark-v10";
|
|
5
|
+
Light: "mapbox/light-v10";
|
|
6
|
+
Outdoors: "mapbox/outdoors-v11";
|
|
7
|
+
Satellite: "mapbox/satellite-v9";
|
|
8
|
+
SatelliteStreets: "mapbox/satellite-streets-v11";
|
|
9
|
+
Streets: "mapbox/streets-v11";
|
|
10
|
+
}>;
|
|
11
|
+
export type MapStyle = EnumValue<typeof MapStyle>;
|
|
12
|
+
//# sourceMappingURL=MapStyle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MapStyle.d.ts","sourceRoot":"","sources":["../../../src/lib/MapStyle.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAC7C,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AAEnC,eAAO,MAAM,QAAQ;;;;;;;EAOnB,CAAA;AAEF,MAAM,MAAM,QAAQ,GAAG,SAAS,CAAC,OAAO,QAAQ,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DefaultMapSettings.d.ts","sourceRoot":"","sources":["../../../src/settings/DefaultMapSettings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD,eAAO,MAAM,kBAAkB,EAAE,MAAM,UAkDrC,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export type MapSettingFields = 'debugLayer' | 'fitToPoints' | 'scrollToZoom' | 'enableControls' | 'debugLogging' | 'preferDark' | 'dynamicMapResize';
|
|
2
|
+
export type MapSetting = {
|
|
3
|
+
[field in MapSettingFields | string]: {
|
|
4
|
+
/** Setting only available when application is in developerMode */
|
|
5
|
+
devMode?: boolean;
|
|
6
|
+
/** Machine-readable string to reference setting */
|
|
7
|
+
field: string;
|
|
8
|
+
/** Hide the setting from the UI */
|
|
9
|
+
hidden?: boolean;
|
|
10
|
+
/** Label in the UI */
|
|
11
|
+
label: string;
|
|
12
|
+
/** Initial toggle value for a setting */
|
|
13
|
+
value: boolean;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=MapSetting.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MapSetting.d.ts","sourceRoot":"","sources":["../../../src/settings/MapSetting.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GAAG,YAAY,GAAG,aAAa,GAAG,cAAc,GAAG,gBAAgB,GAAG,cAAc,GAAG,YAAY,GAAG,kBAAkB,CAAA;AAEpJ,MAAM,MAAM,UAAU,GAAG;KACtB,KAAK,IAAI,gBAAgB,GAAG,MAAM,GAAG;QACpC,kEAAkE;QAClE,OAAO,CAAC,EAAE,OAAO,CAAA;QACjB,mDAAmD;QACnD,KAAK,EAAE,MAAM,CAAA;QACb,mCAAmC;QACnC,MAAM,CAAC,EAAE,OAAO,CAAA;QAChB,sBAAsB;QACtB,KAAK,EAAE,MAAM,CAAA;QACb,yCAAyC;QACzC,KAAK,EAAE,OAAO,CAAA;KACf;CACF,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/settings/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAA;AACvC,cAAc,iBAAiB,CAAA"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { Payload } from '@xyo-network/payload-model';
|
|
2
|
+
import type { Feature, Point, Polygon } from 'geojson';
|
|
3
|
+
export interface NetworkLocationAnswerBase<T> {
|
|
4
|
+
result: T;
|
|
5
|
+
}
|
|
6
|
+
export declare const NetworkLocationAnswerSchema = "network.xyo.location.range.answer";
|
|
7
|
+
export type NetworkLocationAnswerSchema = 'network.xyo.location.range.answer';
|
|
8
|
+
export type NetworkLocationAnswerPayload = Payload<NetworkLocationAnswerBase<{
|
|
9
|
+
features: Feature<Point>[];
|
|
10
|
+
}>, NetworkLocationAnswerSchema>;
|
|
11
|
+
export declare const isNetworkLocationAnswer: (x?: unknown | null) => x is NetworkLocationAnswerPayload;
|
|
12
|
+
export declare const NetworkLocationHeatmapAnswerSchema = "network.xyo.location.heatmap.answer";
|
|
13
|
+
export type NetworkLocationHeatmapAnswerSchema = 'network.xyo.location.heatmap.answer';
|
|
14
|
+
export type NetworkLocationHeatmapAnswerPayload = Payload<NetworkLocationAnswerBase<{
|
|
15
|
+
features: Feature<Polygon>[];
|
|
16
|
+
}>, NetworkLocationHeatmapAnswerSchema>;
|
|
17
|
+
export declare const isNetworkLocationHeatmapAnswer: (x?: unknown | null) => x is NetworkLocationHeatmapAnswerPayload;
|
|
18
|
+
export declare const NetworkLocationHeatmapQuadkeyAnswerSchema = "network.xyo.location.heatmap.quadkey.answer";
|
|
19
|
+
export type NetworkLocationHeatmapQuadkeyAnswerSchema = 'network.xyo.location.heatmap.quadkey.answer';
|
|
20
|
+
export type NetworkLocationHeatmapQuadkeyAnswerPayload = Payload<NetworkLocationAnswerBase<{
|
|
21
|
+
density: number;
|
|
22
|
+
quadkey: string;
|
|
23
|
+
}[]>, NetworkLocationHeatmapQuadkeyAnswerSchema>;
|
|
24
|
+
export declare const isNetworkLocationHeatmapQuadkeyAnswer: (x?: unknown | null) => x is NetworkLocationHeatmapQuadkeyAnswerPayload;
|
|
25
|
+
//# sourceMappingURL=NetworkLocationAnswerBase.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NetworkLocationAnswerBase.d.ts","sourceRoot":"","sources":["../../../src/types/NetworkLocationAnswerBase.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEzD,OAAO,KAAK,EACV,OAAO,EAAE,KAAK,EAAE,OAAO,EACxB,MAAM,SAAS,CAAA;AAEhB,MAAM,WAAW,yBAAyB,CAAC,CAAC;IAC1C,MAAM,EAAE,CAAC,CAAA;CACV;AAED,eAAO,MAAM,2BAA2B,sCAAsC,CAAA;AAC9E,MAAM,MAAM,2BAA2B,GAAG,mCAAmC,CAAA;AAC7E,MAAM,MAAM,4BAA4B,GAAG,OAAO,CAAC,yBAAyB,CAAC;IAAE,QAAQ,EAAE,OAAO,CAAC,KAAK,CAAC,EAAE,CAAA;CAAE,CAAC,EAAE,2BAA2B,CAAC,CAAA;AAC1I,eAAO,MAAM,uBAAuB,2DAAmF,CAAA;AAEvH,eAAO,MAAM,kCAAkC,wCAAwC,CAAA;AACvF,MAAM,MAAM,kCAAkC,GAAG,qCAAqC,CAAA;AACtF,MAAM,MAAM,mCAAmC,GAAG,OAAO,CACvD,yBAAyB,CAAC;IAAE,QAAQ,EAAE,OAAO,CAAC,OAAO,CAAC,EAAE,CAAA;CAAE,CAAC,EAC3D,kCAAkC,CACnC,CAAA;AACD,eAAO,MAAM,8BAA8B,kEAAiG,CAAA;AAE5I,eAAO,MAAM,yCAAyC,gDAAgD,CAAA;AACtG,MAAM,MAAM,yCAAyC,GAAG,6CAA6C,CAAA;AACrG,MAAM,MAAM,0CAA0C,GAAG,OAAO,CAC9D,yBAAyB,CAAC;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,EAAE,CAAC,EACjE,yCAAyC,CAC1C,CAAA;AACD,eAAO,MAAM,qCAAqC,yEAEjD,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,gCAAgC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/react-map-model",
|
|
3
|
-
"version": "4.4.
|
|
3
|
+
"version": "4.4.11",
|
|
4
4
|
"description": "Common React library for all XYO projects that use React",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"xyo",
|
|
@@ -43,22 +43,22 @@
|
|
|
43
43
|
"lint-pkg": "npmPkgJsonLint ."
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@xylabs/enum": "^4.5.
|
|
47
|
-
"@xylabs/hex": "^4.5.
|
|
48
|
-
"@xyo-network/payload-model": "^3.9.
|
|
49
|
-
"@xyo-network/react-network": "^4.4.
|
|
50
|
-
"@xyo-network/react-shared": "^4.4.
|
|
46
|
+
"@xylabs/enum": "^4.5.6",
|
|
47
|
+
"@xylabs/hex": "^4.5.6",
|
|
48
|
+
"@xyo-network/payload-model": "^3.9.25",
|
|
49
|
+
"@xyo-network/react-network": "^4.4.11",
|
|
50
|
+
"@xyo-network/react-shared": "^4.4.11"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@mui/icons-material": "^6.4.6",
|
|
54
54
|
"@mui/material": "^6.4.6",
|
|
55
55
|
"@mui/styles": "^6.4.6",
|
|
56
56
|
"@types/geojson": "7946.0.16",
|
|
57
|
-
"@xylabs/ts-scripts-yarn3": "^5.0.
|
|
58
|
-
"@xylabs/tsconfig-react": "^5.0.
|
|
57
|
+
"@xylabs/ts-scripts-yarn3": "^5.0.39",
|
|
58
|
+
"@xylabs/tsconfig-react": "^5.0.39",
|
|
59
59
|
"react": "^18.3.1",
|
|
60
60
|
"react-dom": "^18.3.1",
|
|
61
|
-
"typescript": "^5.
|
|
61
|
+
"typescript": "^5.8.2"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
64
|
"@mui/icons-material": "^6",
|