@mappedin/viewer 0.16.4-73a9072.0 → 0.16.4-d70da02.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +49614 -63710
- package/dist/types/components/button/index.d.ts +7 -7
- package/dist/types/components/common/fullscreen-overlay.d.ts +7 -7
- package/dist/types/components/metadata-card/nav-chevrons.d.ts +7 -7
- package/dist/types/components/positioner/index.d.ts +2 -2
- package/dist/types/lib/utils/animation-utils.d.ts +40 -0
- package/dist/types/lib/utils/animation-utils.test.d.ts +1 -0
- package/dist/types/lib/utils/array-utils.d.ts +16 -0
- package/dist/types/lib/utils/array-utils.test-d.d.ts +1 -0
- package/dist/types/lib/utils/array-utils.test.d.ts +1 -0
- package/dist/types/lib/utils/data-utils.d.ts +18 -1
- package/dist/types/lib/utils/data-utils.test.d.ts +1 -0
- package/dist/types/lib/utils/icon-utils.d.ts +4 -0
- package/dist/types/stores/map-store/controllers/directions.d.ts +6 -284
- package/dist/types/stores/map-store/controllers/labels.d.ts +3 -2
- package/dist/types/stores/map-store/controllers/markers.d.ts +1 -0
- package/dist/types/stores/map-store/controllers/polygons.d.ts +5 -3
- package/dist/types/stores/map-store/index.d.ts +1 -1
- package/dist/types/stores/root-store/index.d.ts +10 -8
- package/dist/types/stores/ui-store/index.d.ts +1 -7
- package/dist/types/stores/ui-store/ui-store.test.d.ts +1 -0
- package/dist/types/test-utils/test-mocks.d.ts +1 -0
- package/dist/types/test-utils/test-with-map.d.ts +8 -1
- package/package.json +21 -14
- package/dist/types/components/animations/utils.d.ts +0 -1
|
@@ -13,31 +13,31 @@ declare const Button: import("styled-components").IStyledComponent<"web", import
|
|
|
13
13
|
style?: import("react").CSSProperties | undefined;
|
|
14
14
|
title?: string | undefined;
|
|
15
15
|
key?: import("react").Key | null | undefined;
|
|
16
|
-
className?: string | undefined;
|
|
17
16
|
id?: string | undefined;
|
|
18
|
-
prefix?: string | undefined;
|
|
19
|
-
role?: import("react").AriaRole | undefined;
|
|
20
|
-
nonce?: string | undefined;
|
|
21
|
-
tabIndex?: number | undefined;
|
|
22
17
|
defaultChecked?: boolean | undefined;
|
|
23
18
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
24
19
|
suppressContentEditableWarning?: boolean | undefined;
|
|
25
20
|
suppressHydrationWarning?: boolean | undefined;
|
|
26
21
|
accessKey?: string | undefined;
|
|
27
22
|
autoFocus?: boolean | undefined;
|
|
23
|
+
className?: string | undefined;
|
|
28
24
|
contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
|
|
29
25
|
contextMenu?: string | undefined;
|
|
30
26
|
dir?: string | undefined;
|
|
31
27
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
32
28
|
lang?: string | undefined;
|
|
29
|
+
nonce?: string | undefined;
|
|
33
30
|
placeholder?: string | undefined;
|
|
34
31
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
32
|
+
tabIndex?: number | undefined;
|
|
35
33
|
translate?: "yes" | "no" | undefined;
|
|
36
34
|
radioGroup?: string | undefined;
|
|
35
|
+
role?: import("react").AriaRole | undefined;
|
|
37
36
|
about?: string | undefined;
|
|
38
37
|
content?: string | undefined;
|
|
39
38
|
datatype?: string | undefined;
|
|
40
39
|
inlist?: any;
|
|
40
|
+
prefix?: string | undefined;
|
|
41
41
|
property?: string | undefined;
|
|
42
42
|
rel?: string | undefined;
|
|
43
43
|
resource?: string | undefined;
|
|
@@ -60,7 +60,7 @@ declare const Button: import("styled-components").IStyledComponent<"web", import
|
|
|
60
60
|
is?: string | undefined;
|
|
61
61
|
'aria-activedescendant'?: string | undefined;
|
|
62
62
|
'aria-atomic'?: (boolean | "true" | "false") | undefined;
|
|
63
|
-
'aria-autocomplete'?: "none" | "
|
|
63
|
+
'aria-autocomplete'?: "none" | "list" | "inline" | "both" | undefined;
|
|
64
64
|
'aria-braillelabel'?: string | undefined;
|
|
65
65
|
'aria-brailleroledescription'?: string | undefined;
|
|
66
66
|
'aria-busy'?: (boolean | "true" | "false") | undefined;
|
|
@@ -80,7 +80,7 @@ declare const Button: import("styled-components").IStyledComponent<"web", import
|
|
|
80
80
|
'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
81
81
|
'aria-flowto'?: string | undefined;
|
|
82
82
|
'aria-grabbed'?: (boolean | "true" | "false") | undefined;
|
|
83
|
-
'aria-haspopup'?: boolean | "dialog" | "menu" | "
|
|
83
|
+
'aria-haspopup'?: boolean | "dialog" | "menu" | "true" | "false" | "grid" | "listbox" | "tree" | undefined;
|
|
84
84
|
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
85
85
|
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
86
86
|
'aria-keyshortcuts'?: string | undefined;
|
|
@@ -7,31 +7,31 @@ export declare const FullscreenOverlay: import("styled-components").IStyledCompo
|
|
|
7
7
|
style?: import("react").CSSProperties | undefined;
|
|
8
8
|
title?: string | undefined;
|
|
9
9
|
key?: import("react").Key | null | undefined;
|
|
10
|
-
className?: string | undefined;
|
|
11
10
|
id?: string | undefined;
|
|
12
|
-
prefix?: string | undefined;
|
|
13
|
-
role?: import("react").AriaRole | undefined;
|
|
14
|
-
nonce?: string | undefined;
|
|
15
|
-
tabIndex?: number | undefined;
|
|
16
11
|
defaultChecked?: boolean | undefined;
|
|
17
12
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
18
13
|
suppressContentEditableWarning?: boolean | undefined;
|
|
19
14
|
suppressHydrationWarning?: boolean | undefined;
|
|
20
15
|
accessKey?: string | undefined;
|
|
21
16
|
autoFocus?: boolean | undefined;
|
|
17
|
+
className?: string | undefined;
|
|
22
18
|
contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
|
|
23
19
|
contextMenu?: string | undefined;
|
|
24
20
|
dir?: string | undefined;
|
|
25
21
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
26
22
|
lang?: string | undefined;
|
|
23
|
+
nonce?: string | undefined;
|
|
27
24
|
placeholder?: string | undefined;
|
|
28
25
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
26
|
+
tabIndex?: number | undefined;
|
|
29
27
|
translate?: "yes" | "no" | undefined;
|
|
30
28
|
radioGroup?: string | undefined;
|
|
29
|
+
role?: import("react").AriaRole | undefined;
|
|
31
30
|
about?: string | undefined;
|
|
32
31
|
content?: string | undefined;
|
|
33
32
|
datatype?: string | undefined;
|
|
34
33
|
inlist?: any;
|
|
34
|
+
prefix?: string | undefined;
|
|
35
35
|
property?: string | undefined;
|
|
36
36
|
rel?: string | undefined;
|
|
37
37
|
resource?: string | undefined;
|
|
@@ -54,7 +54,7 @@ export declare const FullscreenOverlay: import("styled-components").IStyledCompo
|
|
|
54
54
|
is?: string | undefined;
|
|
55
55
|
'aria-activedescendant'?: string | undefined;
|
|
56
56
|
'aria-atomic'?: (boolean | "true" | "false") | undefined;
|
|
57
|
-
'aria-autocomplete'?: "none" | "
|
|
57
|
+
'aria-autocomplete'?: "none" | "list" | "inline" | "both" | undefined;
|
|
58
58
|
'aria-braillelabel'?: string | undefined;
|
|
59
59
|
'aria-brailleroledescription'?: string | undefined;
|
|
60
60
|
'aria-busy'?: (boolean | "true" | "false") | undefined;
|
|
@@ -74,7 +74,7 @@ export declare const FullscreenOverlay: import("styled-components").IStyledCompo
|
|
|
74
74
|
'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
75
75
|
'aria-flowto'?: string | undefined;
|
|
76
76
|
'aria-grabbed'?: (boolean | "true" | "false") | undefined;
|
|
77
|
-
'aria-haspopup'?: boolean | "dialog" | "menu" | "
|
|
77
|
+
'aria-haspopup'?: boolean | "dialog" | "menu" | "true" | "false" | "grid" | "listbox" | "tree" | undefined;
|
|
78
78
|
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
79
79
|
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
80
80
|
'aria-keyshortcuts'?: string | undefined;
|
|
@@ -7,31 +7,31 @@ export declare const SideNavButton: import("styled-components").IStyledComponent
|
|
|
7
7
|
style?: import("react").CSSProperties | undefined;
|
|
8
8
|
title?: string | undefined;
|
|
9
9
|
key?: import("react").Key | null | undefined;
|
|
10
|
-
className?: string | undefined;
|
|
11
10
|
id?: string | undefined;
|
|
12
|
-
prefix?: string | undefined;
|
|
13
|
-
role?: import("react").AriaRole | undefined;
|
|
14
|
-
nonce?: string | undefined;
|
|
15
|
-
tabIndex?: number | undefined;
|
|
16
11
|
defaultChecked?: boolean | undefined;
|
|
17
12
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
18
13
|
suppressContentEditableWarning?: boolean | undefined;
|
|
19
14
|
suppressHydrationWarning?: boolean | undefined;
|
|
20
15
|
accessKey?: string | undefined;
|
|
21
16
|
autoFocus?: boolean | undefined;
|
|
17
|
+
className?: string | undefined;
|
|
22
18
|
contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
|
|
23
19
|
contextMenu?: string | undefined;
|
|
24
20
|
dir?: string | undefined;
|
|
25
21
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
26
22
|
lang?: string | undefined;
|
|
23
|
+
nonce?: string | undefined;
|
|
27
24
|
placeholder?: string | undefined;
|
|
28
25
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
26
|
+
tabIndex?: number | undefined;
|
|
29
27
|
translate?: "yes" | "no" | undefined;
|
|
30
28
|
radioGroup?: string | undefined;
|
|
29
|
+
role?: import("react").AriaRole | undefined;
|
|
31
30
|
about?: string | undefined;
|
|
32
31
|
content?: string | undefined;
|
|
33
32
|
datatype?: string | undefined;
|
|
34
33
|
inlist?: any;
|
|
34
|
+
prefix?: string | undefined;
|
|
35
35
|
property?: string | undefined;
|
|
36
36
|
rel?: string | undefined;
|
|
37
37
|
resource?: string | undefined;
|
|
@@ -54,7 +54,7 @@ export declare const SideNavButton: import("styled-components").IStyledComponent
|
|
|
54
54
|
is?: string | undefined;
|
|
55
55
|
'aria-activedescendant'?: string | undefined;
|
|
56
56
|
'aria-atomic'?: (boolean | "true" | "false") | undefined;
|
|
57
|
-
'aria-autocomplete'?: "none" | "
|
|
57
|
+
'aria-autocomplete'?: "none" | "list" | "inline" | "both" | undefined;
|
|
58
58
|
'aria-braillelabel'?: string | undefined;
|
|
59
59
|
'aria-brailleroledescription'?: string | undefined;
|
|
60
60
|
'aria-busy'?: (boolean | "true" | "false") | undefined;
|
|
@@ -74,7 +74,7 @@ export declare const SideNavButton: import("styled-components").IStyledComponent
|
|
|
74
74
|
'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
75
75
|
'aria-flowto'?: string | undefined;
|
|
76
76
|
'aria-grabbed'?: (boolean | "true" | "false") | undefined;
|
|
77
|
-
'aria-haspopup'?: boolean | "dialog" | "menu" | "
|
|
77
|
+
'aria-haspopup'?: boolean | "dialog" | "menu" | "true" | "false" | "grid" | "listbox" | "tree" | undefined;
|
|
78
78
|
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
79
79
|
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
80
80
|
'aria-keyshortcuts'?: string | undefined;
|
|
@@ -54,7 +54,7 @@ declare const Positioner: import("styled-components").IStyledComponent<"web", {
|
|
|
54
54
|
children?: import("react").ReactNode;
|
|
55
55
|
'aria-activedescendant'?: string | undefined;
|
|
56
56
|
'aria-atomic'?: (boolean | "true" | "false") | undefined;
|
|
57
|
-
'aria-autocomplete'?: "none" | "
|
|
57
|
+
'aria-autocomplete'?: "none" | "list" | "inline" | "both" | undefined;
|
|
58
58
|
'aria-braillelabel'?: string | undefined;
|
|
59
59
|
'aria-brailleroledescription'?: string | undefined;
|
|
60
60
|
'aria-busy'?: (boolean | "true" | "false") | undefined;
|
|
@@ -74,7 +74,7 @@ declare const Positioner: import("styled-components").IStyledComponent<"web", {
|
|
|
74
74
|
'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
75
75
|
'aria-flowto'?: string | undefined;
|
|
76
76
|
'aria-grabbed'?: (boolean | "true" | "false") | undefined;
|
|
77
|
-
'aria-haspopup'?: boolean | "dialog" | "menu" | "
|
|
77
|
+
'aria-haspopup'?: boolean | "dialog" | "menu" | "true" | "false" | "grid" | "listbox" | "tree" | undefined;
|
|
78
78
|
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
79
79
|
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
80
80
|
'aria-keyshortcuts'?: string | undefined;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export declare const ANIMATION_DURATION_MS = 125;
|
|
2
|
+
export declare const SCHEDULER_TIMEOUT_MS = 2000;
|
|
3
|
+
/**
|
|
4
|
+
* Simple class to help with scheduling expensive functions against high priority
|
|
5
|
+
* UI animations.
|
|
6
|
+
*/
|
|
7
|
+
declare class AnimationScheduler {
|
|
8
|
+
private scheduledFunctions;
|
|
9
|
+
private highPriorityAnimations;
|
|
10
|
+
private flushFunctions;
|
|
11
|
+
/**
|
|
12
|
+
* Indicate than an animation is beginning.
|
|
13
|
+
*/
|
|
14
|
+
begin(animationName: string): void;
|
|
15
|
+
/**
|
|
16
|
+
* Indicate that an animation has ended.
|
|
17
|
+
*/
|
|
18
|
+
end(animationName: string): void;
|
|
19
|
+
/**
|
|
20
|
+
* Whether or not there are any animations currently running.
|
|
21
|
+
*/
|
|
22
|
+
isAnimating(): boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Schedule a function to run after any currently running animations have ended. If the
|
|
25
|
+
* function has not been called after a certain timeout, it will be called anyway.
|
|
26
|
+
*/
|
|
27
|
+
defer(fn: () => void): void;
|
|
28
|
+
cleanup(): void;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* {@link AnimationScheduler} instance to be used throughout the application.
|
|
32
|
+
*/
|
|
33
|
+
export declare const animationScheduler: AnimationScheduler;
|
|
34
|
+
export declare const getTransitionPropsForTaskScheduler: (animationName: string) => {
|
|
35
|
+
onEnter: () => void;
|
|
36
|
+
onEntered: () => void;
|
|
37
|
+
onExit: () => void;
|
|
38
|
+
onExited: () => void;
|
|
39
|
+
};
|
|
40
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
type Indices<L extends number, T extends Array<number> = []> = T['length'] extends L ? T[number] : Indices<L, [T['length'], ...T]>;
|
|
2
|
+
type ArrayWithLength<L extends number, T> = Pick<Required<Array<T>>, Indices<L>> & [];
|
|
3
|
+
type ArrayWithAtLeastLength<L extends number, T> = Pick<Required<Array<T>>, Indices<L>> & T[];
|
|
4
|
+
/**
|
|
5
|
+
* Utility function to typecheck if an array has a single item in it.
|
|
6
|
+
*/
|
|
7
|
+
export declare const isLengthOne: <T>(arr: T[]) => arr is [T];
|
|
8
|
+
/**
|
|
9
|
+
* Utility function to typecheck if an array has a specific length.
|
|
10
|
+
*/
|
|
11
|
+
export declare const isLength: <L extends number, T>(arr: T[], length: L) => arr is ArrayWithLength<L, T>;
|
|
12
|
+
/**
|
|
13
|
+
* Utility function to typecheck if an array has a specific length or more.
|
|
14
|
+
*/
|
|
15
|
+
export declare const isAtLeastLength: <L extends number, T>(arr: T[], length: L) => arr is ArrayWithAtLeastLength<L, T>;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Place } from '../sdk';
|
|
1
|
+
import { Place, Coordinate, MapData, Geometry } from '../sdk';
|
|
2
2
|
/**
|
|
3
3
|
* Whether the location can be assumed to be a washroom
|
|
4
4
|
*/
|
|
@@ -21,4 +21,21 @@ export declare const getDisplayNameForPlace: (place: Place, options?: TGetDispla
|
|
|
21
21
|
* we can be.
|
|
22
22
|
*/
|
|
23
23
|
export declare const getDisplayNameForPlaces: (places: Place[]) => string;
|
|
24
|
+
/**
|
|
25
|
+
* Check if a place has data we can reasonably believe to be valid. We can assume any coordinate
|
|
26
|
+
* that is exactly 0,0 is the result of some sort of invalid data.
|
|
27
|
+
*/
|
|
28
|
+
export declare const isValidPlace: (place: Place) => boolean;
|
|
29
|
+
type TProcessedPlaces = {
|
|
30
|
+
places: Exclude<Place, Coordinate>[];
|
|
31
|
+
placesById: Record<string, Exclude<Place, Coordinate>>;
|
|
32
|
+
placesByPlaceName: Record<string, Exclude<Place, Coordinate>[]>;
|
|
33
|
+
placesByFloorId: Record<string, Exclude<Place, Coordinate>[]>;
|
|
34
|
+
geometries: Geometry[];
|
|
35
|
+
geometriesById: Record<string, Geometry>;
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* Generate a bunch of useful immutable collections from the map data.
|
|
39
|
+
*/
|
|
40
|
+
export declare const processPlaces: (data: MapData) => TProcessedPlaces;
|
|
24
41
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
+
import { Place } from '../sdk';
|
|
1
2
|
/**
|
|
2
3
|
* Get an icon as an HTML string.
|
|
3
4
|
*/
|
|
4
5
|
export declare const getIconAsString: (icon: string, color?: string) => string;
|
|
6
|
+
export declare const attemptIconNameForConnection: (type: string) => string;
|
|
7
|
+
export declare const attemptIconNameForLocation: (location: Place) => string;
|
|
8
|
+
export declare const attemptIconForLocation: (location: Place) => string | undefined;
|
|
@@ -1,298 +1,20 @@
|
|
|
1
|
-
/// <reference types="@mappedin/mappedin-js" />
|
|
2
1
|
import type RootStore from '../../root-store';
|
|
3
2
|
import type MapStore from '..';
|
|
3
|
+
import { Directions } from '../../../lib/sdk';
|
|
4
|
+
import { Floor } from '../../../lib/sdk';
|
|
4
5
|
declare class DirectionsController {
|
|
5
6
|
private rootStore;
|
|
6
7
|
private mapStore;
|
|
7
8
|
private reactionDisposers;
|
|
9
|
+
loading: boolean;
|
|
10
|
+
directions: Directions | undefined;
|
|
8
11
|
constructor({ rootStore, mapStore }: {
|
|
9
12
|
rootStore: RootStore;
|
|
10
13
|
mapStore: MapStore;
|
|
11
14
|
});
|
|
15
|
+
private updateDirections;
|
|
12
16
|
private updateJourney;
|
|
13
|
-
get floorsInDirections():
|
|
14
|
-
"__#16@#private": any;
|
|
15
|
-
readonly __type: "floor";
|
|
16
|
-
readonly name: string;
|
|
17
|
-
readonly elevation: number;
|
|
18
|
-
readonly spaces: {
|
|
19
|
-
"__#15@#private": any;
|
|
20
|
-
readonly __type: "space";
|
|
21
|
-
readonly name: string;
|
|
22
|
-
readonly type: import("@mappedin/mappedin-js/maker/src/map-data-objects/space").TSpaceType;
|
|
23
|
-
readonly description: string;
|
|
24
|
-
readonly images: Image[];
|
|
25
|
-
readonly floor: any;
|
|
26
|
-
readonly center: {
|
|
27
|
-
"__#19@#private": any;
|
|
28
|
-
readonly __type: "coordinate";
|
|
29
|
-
id: string;
|
|
30
|
-
readonly latitude: number;
|
|
31
|
-
readonly longitude: number;
|
|
32
|
-
isEqual(coordinate: any): boolean;
|
|
33
|
-
readonly floor: any | undefined;
|
|
34
|
-
toJSON(): {
|
|
35
|
-
latitude: number;
|
|
36
|
-
longitude: number;
|
|
37
|
-
floor: string | undefined;
|
|
38
|
-
};
|
|
39
|
-
destroy(): void;
|
|
40
|
-
};
|
|
41
|
-
toJSON(): {
|
|
42
|
-
id: string;
|
|
43
|
-
name: string;
|
|
44
|
-
type: import("@mappedin/mappedin-js/maker/src/map-data-objects/space").TSpaceType;
|
|
45
|
-
floor: string;
|
|
46
|
-
center: {
|
|
47
|
-
latitude: number;
|
|
48
|
-
longitude: number;
|
|
49
|
-
floor: string | undefined;
|
|
50
|
-
};
|
|
51
|
-
};
|
|
52
|
-
destroy(): void;
|
|
53
|
-
readonly id: string;
|
|
54
|
-
links: {
|
|
55
|
-
"__#22@#private": any;
|
|
56
|
-
readonly url: string;
|
|
57
|
-
readonly name: string | undefined;
|
|
58
|
-
toJSON(): {
|
|
59
|
-
id: string;
|
|
60
|
-
url: string;
|
|
61
|
-
name: string | undefined;
|
|
62
|
-
};
|
|
63
|
-
destroy(): void;
|
|
64
|
-
readonly id: string;
|
|
65
|
-
}[];
|
|
66
|
-
}[];
|
|
67
|
-
readonly objects: import("@mappedin/mappedin-js/maker/src/map-data-objects/object").MapObject[];
|
|
68
|
-
readonly connections: {
|
|
69
|
-
"__#17@#private": any;
|
|
70
|
-
readonly __type: "connection";
|
|
71
|
-
readonly name: string;
|
|
72
|
-
readonly description: string;
|
|
73
|
-
readonly images: Image[];
|
|
74
|
-
readonly type: string;
|
|
75
|
-
readonly coordinates: {
|
|
76
|
-
"__#19@#private": any;
|
|
77
|
-
readonly __type: "coordinate";
|
|
78
|
-
id: string;
|
|
79
|
-
readonly latitude: number;
|
|
80
|
-
readonly longitude: number;
|
|
81
|
-
isEqual(coordinate: any): boolean;
|
|
82
|
-
readonly floor: any | undefined;
|
|
83
|
-
toJSON(): {
|
|
84
|
-
latitude: number;
|
|
85
|
-
longitude: number;
|
|
86
|
-
floor: string | undefined;
|
|
87
|
-
};
|
|
88
|
-
destroy(): void;
|
|
89
|
-
}[];
|
|
90
|
-
readonly floors: any[];
|
|
91
|
-
toJSON(): {
|
|
92
|
-
id: string;
|
|
93
|
-
name: string;
|
|
94
|
-
type: string;
|
|
95
|
-
coordinates: {
|
|
96
|
-
latitude: number;
|
|
97
|
-
longitude: number;
|
|
98
|
-
floor: string | undefined;
|
|
99
|
-
}[];
|
|
100
|
-
floors: string[];
|
|
101
|
-
};
|
|
102
|
-
destroy(): void;
|
|
103
|
-
readonly id: string;
|
|
104
|
-
links: {
|
|
105
|
-
"__#22@#private": any;
|
|
106
|
-
readonly url: string;
|
|
107
|
-
readonly name: string | undefined;
|
|
108
|
-
toJSON(): {
|
|
109
|
-
id: string;
|
|
110
|
-
url: string;
|
|
111
|
-
name: string | undefined;
|
|
112
|
-
};
|
|
113
|
-
destroy(): void;
|
|
114
|
-
readonly id: string;
|
|
115
|
-
}[];
|
|
116
|
-
}[];
|
|
117
|
-
readonly doors: {
|
|
118
|
-
"__#14@#private": any;
|
|
119
|
-
readonly __type: "door";
|
|
120
|
-
readonly name: string;
|
|
121
|
-
readonly description: string;
|
|
122
|
-
readonly images: Image[];
|
|
123
|
-
readonly floor: any;
|
|
124
|
-
readonly center: {
|
|
125
|
-
"__#19@#private": any;
|
|
126
|
-
readonly __type: "coordinate";
|
|
127
|
-
id: string;
|
|
128
|
-
readonly latitude: number;
|
|
129
|
-
readonly longitude: number;
|
|
130
|
-
isEqual(coordinate: any): boolean;
|
|
131
|
-
readonly floor: any | undefined;
|
|
132
|
-
toJSON(): {
|
|
133
|
-
latitude: number;
|
|
134
|
-
longitude: number;
|
|
135
|
-
floor: string | undefined;
|
|
136
|
-
};
|
|
137
|
-
destroy(): void;
|
|
138
|
-
};
|
|
139
|
-
readonly isExterior: boolean;
|
|
140
|
-
toJSON(): {
|
|
141
|
-
id: string;
|
|
142
|
-
name: string;
|
|
143
|
-
floor: string;
|
|
144
|
-
center: {
|
|
145
|
-
latitude: number;
|
|
146
|
-
longitude: number;
|
|
147
|
-
floor: string | undefined;
|
|
148
|
-
};
|
|
149
|
-
};
|
|
150
|
-
destroy(): void;
|
|
151
|
-
readonly id: string;
|
|
152
|
-
links: {
|
|
153
|
-
"__#22@#private": any;
|
|
154
|
-
readonly url: string;
|
|
155
|
-
readonly name: string | undefined;
|
|
156
|
-
toJSON(): {
|
|
157
|
-
id: string;
|
|
158
|
-
url: string;
|
|
159
|
-
name: string | undefined;
|
|
160
|
-
};
|
|
161
|
-
destroy(): void;
|
|
162
|
-
readonly id: string;
|
|
163
|
-
}[];
|
|
164
|
-
}[];
|
|
165
|
-
readonly annotations: {
|
|
166
|
-
"__#21@#private": any;
|
|
167
|
-
readonly __type: "annotation";
|
|
168
|
-
readonly group: string;
|
|
169
|
-
readonly type: string;
|
|
170
|
-
readonly coordinate: {
|
|
171
|
-
"__#19@#private": any;
|
|
172
|
-
readonly __type: "coordinate";
|
|
173
|
-
id: string;
|
|
174
|
-
readonly latitude: number;
|
|
175
|
-
readonly longitude: number;
|
|
176
|
-
isEqual(coordinate: any): boolean;
|
|
177
|
-
readonly floor: any | undefined;
|
|
178
|
-
toJSON(): {
|
|
179
|
-
latitude: number;
|
|
180
|
-
longitude: number;
|
|
181
|
-
floor: string | undefined;
|
|
182
|
-
};
|
|
183
|
-
destroy(): void;
|
|
184
|
-
};
|
|
185
|
-
readonly floor: any;
|
|
186
|
-
toJSON(): {
|
|
187
|
-
id: string;
|
|
188
|
-
group: string;
|
|
189
|
-
type: string;
|
|
190
|
-
coordinate: {
|
|
191
|
-
latitude: number;
|
|
192
|
-
longitude: number;
|
|
193
|
-
floor: string | undefined;
|
|
194
|
-
};
|
|
195
|
-
};
|
|
196
|
-
destroy(): void;
|
|
197
|
-
readonly id: string;
|
|
198
|
-
links: {
|
|
199
|
-
"__#22@#private": any;
|
|
200
|
-
readonly url: string;
|
|
201
|
-
readonly name: string | undefined;
|
|
202
|
-
toJSON(): {
|
|
203
|
-
id: string;
|
|
204
|
-
url: string;
|
|
205
|
-
name: string | undefined;
|
|
206
|
-
};
|
|
207
|
-
destroy(): void;
|
|
208
|
-
readonly id: string;
|
|
209
|
-
}[];
|
|
210
|
-
}[];
|
|
211
|
-
readonly pois: {
|
|
212
|
-
"__#20@#private": any;
|
|
213
|
-
readonly __type: "point-of-interest";
|
|
214
|
-
readonly name: string;
|
|
215
|
-
readonly description: string;
|
|
216
|
-
readonly images: {
|
|
217
|
-
"__#23@#private": any;
|
|
218
|
-
readonly url: string | undefined;
|
|
219
|
-
readonly name: string | undefined;
|
|
220
|
-
toJSON(): {
|
|
221
|
-
id: string;
|
|
222
|
-
url: string | undefined;
|
|
223
|
-
name: string | undefined;
|
|
224
|
-
};
|
|
225
|
-
destroy(): void;
|
|
226
|
-
readonly id: string;
|
|
227
|
-
}[];
|
|
228
|
-
readonly floor: any;
|
|
229
|
-
readonly coordinate: {
|
|
230
|
-
"__#19@#private": any;
|
|
231
|
-
readonly __type: "coordinate";
|
|
232
|
-
id: string;
|
|
233
|
-
readonly latitude: number;
|
|
234
|
-
readonly longitude: number;
|
|
235
|
-
isEqual(coordinate: any): boolean;
|
|
236
|
-
readonly floor: any | undefined;
|
|
237
|
-
toJSON(): {
|
|
238
|
-
latitude: number;
|
|
239
|
-
longitude: number;
|
|
240
|
-
floor: string | undefined;
|
|
241
|
-
};
|
|
242
|
-
destroy(): void;
|
|
243
|
-
};
|
|
244
|
-
toJSON(): {
|
|
245
|
-
id: string;
|
|
246
|
-
name: string;
|
|
247
|
-
floor: string;
|
|
248
|
-
coordinate: {
|
|
249
|
-
latitude: number;
|
|
250
|
-
longitude: number;
|
|
251
|
-
floor: string | undefined;
|
|
252
|
-
};
|
|
253
|
-
};
|
|
254
|
-
destroy(): void;
|
|
255
|
-
readonly id: string;
|
|
256
|
-
links: {
|
|
257
|
-
"__#22@#private": any;
|
|
258
|
-
readonly url: string;
|
|
259
|
-
readonly name: string | undefined;
|
|
260
|
-
toJSON(): {
|
|
261
|
-
id: string;
|
|
262
|
-
url: string;
|
|
263
|
-
name: string | undefined;
|
|
264
|
-
};
|
|
265
|
-
destroy(): void;
|
|
266
|
-
readonly id: string;
|
|
267
|
-
}[];
|
|
268
|
-
}[];
|
|
269
|
-
toJSON(): {
|
|
270
|
-
id: string;
|
|
271
|
-
name: string;
|
|
272
|
-
elevation: number;
|
|
273
|
-
spaces: string[];
|
|
274
|
-
objects: string[];
|
|
275
|
-
connections: string[];
|
|
276
|
-
doors: string[];
|
|
277
|
-
annotations: string[];
|
|
278
|
-
pois: string[];
|
|
279
|
-
};
|
|
280
|
-
destroy(): void;
|
|
281
|
-
readonly id: string;
|
|
282
|
-
links: {
|
|
283
|
-
"__#22@#private": any;
|
|
284
|
-
readonly url: string;
|
|
285
|
-
readonly name: string | undefined;
|
|
286
|
-
toJSON(): {
|
|
287
|
-
id: string;
|
|
288
|
-
url: string;
|
|
289
|
-
name: string | undefined;
|
|
290
|
-
};
|
|
291
|
-
destroy(): void;
|
|
292
|
-
readonly id: string;
|
|
293
|
-
}[];
|
|
294
|
-
} | undefined)[];
|
|
295
|
-
get directions(): import("@mappedin/mappedin-js/maker/src/map-view-objects/directions").Directions | undefined;
|
|
17
|
+
get floorsInDirections(): Floor[];
|
|
296
18
|
cleanup(): void;
|
|
297
19
|
}
|
|
298
20
|
export default DirectionsController;
|
|
@@ -5,19 +5,20 @@ declare class LabelsController {
|
|
|
5
5
|
private rootStore;
|
|
6
6
|
private mapStore;
|
|
7
7
|
private reactionDisposers;
|
|
8
|
-
state
|
|
8
|
+
private state;
|
|
9
9
|
locationByLabelId: Record<string, Place>;
|
|
10
10
|
constructor({ rootStore, mapStore }: {
|
|
11
11
|
rootStore: RootStore;
|
|
12
12
|
mapStore: MapStore;
|
|
13
13
|
});
|
|
14
|
+
private getLabelColor;
|
|
14
15
|
private getDefaultLabelRank;
|
|
15
16
|
private labelPlace;
|
|
16
17
|
private handleZoomChange;
|
|
17
18
|
private clearLabels;
|
|
18
19
|
private labelVenueName;
|
|
19
20
|
private labelPlaces;
|
|
20
|
-
updateLabels
|
|
21
|
+
private updateLabels;
|
|
21
22
|
cleanup(): void;
|
|
22
23
|
}
|
|
23
24
|
export default LabelsController;
|
|
@@ -4,14 +4,16 @@ declare class PolygonsController {
|
|
|
4
4
|
private rootStore;
|
|
5
5
|
private mapStore;
|
|
6
6
|
private reactionDisposers;
|
|
7
|
+
private cachedHighlightedGeometries;
|
|
7
8
|
constructor({ rootStore, mapStore }: {
|
|
8
9
|
rootStore: RootStore;
|
|
9
10
|
mapStore: MapStore;
|
|
10
11
|
});
|
|
11
|
-
private get
|
|
12
|
+
private get placeIdsToHighlight();
|
|
13
|
+
private highlightGeometry;
|
|
14
|
+
private highlightGeometries;
|
|
12
15
|
private setInteractivityForGeometry;
|
|
13
|
-
private
|
|
14
|
-
private updateHighlightedPolygons;
|
|
16
|
+
private setInteractivityForGeometries;
|
|
15
17
|
cleanup(): void;
|
|
16
18
|
}
|
|
17
19
|
export default PolygonsController;
|
|
@@ -22,7 +22,7 @@ declare class MapStore {
|
|
|
22
22
|
constructor({ rootStore }: {
|
|
23
23
|
rootStore: RootStore;
|
|
24
24
|
});
|
|
25
|
-
private
|
|
25
|
+
private handleClickEventForPlace;
|
|
26
26
|
private handlePlacesClicked;
|
|
27
27
|
private handleLabelsClicked;
|
|
28
28
|
get interactionMode(): E_MAP_INTERACTION_MODE;
|