@cosmicds/vue-toolkit 0.2.0 → 0.3.1
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.common.js +11267 -10701
- package/dist/index.umd.js +11280 -10706
- package/dist/index.umd.min.js +6 -4
- package/dist/src/components/CreditLogos.vue.d.ts +22 -2
- package/dist/src/components/FundingAcknowledgement.vue.d.ts +21 -0
- package/dist/src/components/Gallery.vue.d.ts +79 -2
- package/dist/src/components/GeolocationButton.vue.d.ts +148 -0
- package/dist/src/components/IconButton.vue.d.ts +132 -2
- package/dist/src/components/LocationSelector.vue.d.ts +139 -2
- package/dist/src/components/WwtHud.vue.d.ts +69 -0
- package/dist/src/composables.d.ts +17 -0
- package/dist/src/geolocation.d.ts +25 -0
- package/dist/src/index.d.ts +10 -7
- package/dist/src/keyboard.d.ts +1 -1
- package/dist/src/mapbox.d.ts +46 -0
- package/dist/src/types.d.ts +122 -0
- package/dist/src/utils.d.ts +4 -0
- package/dist/src/wwt-utils.d.ts +5 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -2
- package/src/composables.ts +56 -0
- package/src/geolocation.ts +110 -0
- package/src/index.ts +21 -14
- package/src/keyboard.ts +3 -3
- package/src/mapbox.ts +161 -0
- package/src/types.ts +149 -0
- package/src/utils.ts +33 -0
- package/src/wwt-utils.ts +51 -0
- package/dist/index.common.js.map +0 -1
- package/dist/index.umd.js.map +0 -1
- package/dist/index.umd.min.js.map +0 -1
- package/dist/src/components/DefaultMiniCredits.vue.d.ts +0 -3
- package/dist/src/components/FundingAcknowledgment.vue.d.ts +0 -3
- package/dist/src/components/MiniDSBase.d.ts +0 -373
- package/dist/src/components/wwtHUD.vue.d.ts +0 -3
|
@@ -1,3 +1,23 @@
|
|
|
1
|
-
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
visible: {
|
|
3
|
+
type: BooleanConstructor;
|
|
4
|
+
default: boolean;
|
|
5
|
+
};
|
|
6
|
+
logoSize: {
|
|
7
|
+
default: string;
|
|
8
|
+
};
|
|
9
|
+
}, (_ctx: any, _cache: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
2
10
|
[key: string]: any;
|
|
3
|
-
}
|
|
11
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
12
|
+
visible: {
|
|
13
|
+
type: BooleanConstructor;
|
|
14
|
+
default: boolean;
|
|
15
|
+
};
|
|
16
|
+
logoSize: {
|
|
17
|
+
default: string;
|
|
18
|
+
};
|
|
19
|
+
}>>, {
|
|
20
|
+
visible: boolean;
|
|
21
|
+
logoSize: string;
|
|
22
|
+
}, {}>;
|
|
23
|
+
export default _default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
color: {
|
|
3
|
+
default: string;
|
|
4
|
+
};
|
|
5
|
+
backgroundColor: {
|
|
6
|
+
default: string;
|
|
7
|
+
};
|
|
8
|
+
}, (_ctx: any, _cache: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
11
|
+
color: {
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
backgroundColor: {
|
|
15
|
+
default: string;
|
|
16
|
+
};
|
|
17
|
+
}>>, {
|
|
18
|
+
backgroundColor: string;
|
|
19
|
+
color: string;
|
|
20
|
+
}, {}>;
|
|
21
|
+
export default _default;
|
|
@@ -1,3 +1,80 @@
|
|
|
1
|
-
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
wtmlUrl: {};
|
|
3
|
+
columns: {
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
6
|
+
width: {
|
|
7
|
+
default: string;
|
|
8
|
+
};
|
|
9
|
+
maxHeight: {
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
title: {
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
15
|
+
selectedColor: {
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
singleSelect: {
|
|
19
|
+
type: BooleanConstructor;
|
|
20
|
+
default: boolean;
|
|
21
|
+
};
|
|
22
|
+
highlightLastOnly: {
|
|
23
|
+
type: BooleanConstructor;
|
|
24
|
+
default: boolean;
|
|
25
|
+
};
|
|
26
|
+
previewIndex: {
|
|
27
|
+
default: number;
|
|
28
|
+
};
|
|
29
|
+
closedText: {
|
|
30
|
+
default: string;
|
|
31
|
+
};
|
|
32
|
+
}, (_ctx: any, _cache: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
2
33
|
[key: string]: any;
|
|
3
|
-
}
|
|
34
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "deselect" | "listAllSelected")[], "select" | "deselect" | "listAllSelected", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
35
|
+
wtmlUrl: {};
|
|
36
|
+
columns: {
|
|
37
|
+
default: string;
|
|
38
|
+
};
|
|
39
|
+
width: {
|
|
40
|
+
default: string;
|
|
41
|
+
};
|
|
42
|
+
maxHeight: {
|
|
43
|
+
default: string;
|
|
44
|
+
};
|
|
45
|
+
title: {
|
|
46
|
+
default: string;
|
|
47
|
+
};
|
|
48
|
+
selectedColor: {
|
|
49
|
+
default: string;
|
|
50
|
+
};
|
|
51
|
+
singleSelect: {
|
|
52
|
+
type: BooleanConstructor;
|
|
53
|
+
default: boolean;
|
|
54
|
+
};
|
|
55
|
+
highlightLastOnly: {
|
|
56
|
+
type: BooleanConstructor;
|
|
57
|
+
default: boolean;
|
|
58
|
+
};
|
|
59
|
+
previewIndex: {
|
|
60
|
+
default: number;
|
|
61
|
+
};
|
|
62
|
+
closedText: {
|
|
63
|
+
default: string;
|
|
64
|
+
};
|
|
65
|
+
}>> & {
|
|
66
|
+
onSelect?: ((...args: any[]) => any) | undefined;
|
|
67
|
+
onDeselect?: ((...args: any[]) => any) | undefined;
|
|
68
|
+
onListAllSelected?: ((...args: any[]) => any) | undefined;
|
|
69
|
+
}, {
|
|
70
|
+
width: string;
|
|
71
|
+
title: string;
|
|
72
|
+
maxHeight: string;
|
|
73
|
+
columns: string;
|
|
74
|
+
selectedColor: string;
|
|
75
|
+
singleSelect: boolean;
|
|
76
|
+
highlightLastOnly: boolean;
|
|
77
|
+
previewIndex: number;
|
|
78
|
+
closedText: string;
|
|
79
|
+
}, {}>;
|
|
80
|
+
export default _default;
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
color: {
|
|
3
|
+
default: string;
|
|
4
|
+
};
|
|
5
|
+
disabled: {
|
|
6
|
+
type: BooleanConstructor;
|
|
7
|
+
default: boolean;
|
|
8
|
+
};
|
|
9
|
+
size: {
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
density: {
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
15
|
+
elevation: {
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
hideButton: {
|
|
19
|
+
type: BooleanConstructor;
|
|
20
|
+
default: boolean;
|
|
21
|
+
};
|
|
22
|
+
showTextLabel: {
|
|
23
|
+
type: BooleanConstructor;
|
|
24
|
+
default: boolean;
|
|
25
|
+
};
|
|
26
|
+
showCoords: {
|
|
27
|
+
type: BooleanConstructor;
|
|
28
|
+
default: boolean;
|
|
29
|
+
};
|
|
30
|
+
showTextProgress: {
|
|
31
|
+
type: BooleanConstructor;
|
|
32
|
+
default: boolean;
|
|
33
|
+
};
|
|
34
|
+
showProgressCircle: {
|
|
35
|
+
type: BooleanConstructor;
|
|
36
|
+
default: boolean;
|
|
37
|
+
};
|
|
38
|
+
useTextButton: {
|
|
39
|
+
type: BooleanConstructor;
|
|
40
|
+
default: boolean;
|
|
41
|
+
};
|
|
42
|
+
progressCircleSize: {
|
|
43
|
+
default: number;
|
|
44
|
+
};
|
|
45
|
+
label: {
|
|
46
|
+
default: string;
|
|
47
|
+
};
|
|
48
|
+
id: {};
|
|
49
|
+
trueIcon: {
|
|
50
|
+
default: string;
|
|
51
|
+
};
|
|
52
|
+
falseIcon: {
|
|
53
|
+
default: string;
|
|
54
|
+
};
|
|
55
|
+
backgroundColor: {
|
|
56
|
+
default: string;
|
|
57
|
+
};
|
|
58
|
+
showPermissions: {
|
|
59
|
+
type: BooleanConstructor;
|
|
60
|
+
default: boolean;
|
|
61
|
+
};
|
|
62
|
+
}, (_ctx: any, _cache: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
63
|
+
[key: string]: any;
|
|
64
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("error" | "geolocation" | "permission")[], "error" | "geolocation" | "permission", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
65
|
+
color: {
|
|
66
|
+
default: string;
|
|
67
|
+
};
|
|
68
|
+
disabled: {
|
|
69
|
+
type: BooleanConstructor;
|
|
70
|
+
default: boolean;
|
|
71
|
+
};
|
|
72
|
+
size: {
|
|
73
|
+
default: string;
|
|
74
|
+
};
|
|
75
|
+
density: {
|
|
76
|
+
default: string;
|
|
77
|
+
};
|
|
78
|
+
elevation: {
|
|
79
|
+
default: string;
|
|
80
|
+
};
|
|
81
|
+
hideButton: {
|
|
82
|
+
type: BooleanConstructor;
|
|
83
|
+
default: boolean;
|
|
84
|
+
};
|
|
85
|
+
showTextLabel: {
|
|
86
|
+
type: BooleanConstructor;
|
|
87
|
+
default: boolean;
|
|
88
|
+
};
|
|
89
|
+
showCoords: {
|
|
90
|
+
type: BooleanConstructor;
|
|
91
|
+
default: boolean;
|
|
92
|
+
};
|
|
93
|
+
showTextProgress: {
|
|
94
|
+
type: BooleanConstructor;
|
|
95
|
+
default: boolean;
|
|
96
|
+
};
|
|
97
|
+
showProgressCircle: {
|
|
98
|
+
type: BooleanConstructor;
|
|
99
|
+
default: boolean;
|
|
100
|
+
};
|
|
101
|
+
useTextButton: {
|
|
102
|
+
type: BooleanConstructor;
|
|
103
|
+
default: boolean;
|
|
104
|
+
};
|
|
105
|
+
progressCircleSize: {
|
|
106
|
+
default: number;
|
|
107
|
+
};
|
|
108
|
+
label: {
|
|
109
|
+
default: string;
|
|
110
|
+
};
|
|
111
|
+
id: {};
|
|
112
|
+
trueIcon: {
|
|
113
|
+
default: string;
|
|
114
|
+
};
|
|
115
|
+
falseIcon: {
|
|
116
|
+
default: string;
|
|
117
|
+
};
|
|
118
|
+
backgroundColor: {
|
|
119
|
+
default: string;
|
|
120
|
+
};
|
|
121
|
+
showPermissions: {
|
|
122
|
+
type: BooleanConstructor;
|
|
123
|
+
default: boolean;
|
|
124
|
+
};
|
|
125
|
+
}>> & {
|
|
126
|
+
onError?: ((...args: any[]) => any) | undefined;
|
|
127
|
+
onGeolocation?: ((...args: any[]) => any) | undefined;
|
|
128
|
+
onPermission?: ((...args: any[]) => any) | undefined;
|
|
129
|
+
}, {
|
|
130
|
+
size: string;
|
|
131
|
+
backgroundColor: string;
|
|
132
|
+
color: string;
|
|
133
|
+
label: string;
|
|
134
|
+
disabled: boolean;
|
|
135
|
+
density: string;
|
|
136
|
+
elevation: string;
|
|
137
|
+
hideButton: boolean;
|
|
138
|
+
showTextLabel: boolean;
|
|
139
|
+
showCoords: boolean;
|
|
140
|
+
showTextProgress: boolean;
|
|
141
|
+
showProgressCircle: boolean;
|
|
142
|
+
useTextButton: boolean;
|
|
143
|
+
progressCircleSize: number;
|
|
144
|
+
trueIcon: string;
|
|
145
|
+
falseIcon: string;
|
|
146
|
+
showPermissions: boolean;
|
|
147
|
+
}, {}>;
|
|
148
|
+
export default _default;
|
|
@@ -1,3 +1,133 @@
|
|
|
1
|
-
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
modelValue: {
|
|
3
|
+
type: BooleanConstructor;
|
|
4
|
+
};
|
|
5
|
+
faIcon: {};
|
|
6
|
+
mdIcon: {};
|
|
7
|
+
color: {
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
focusColor: {
|
|
11
|
+
default: string;
|
|
12
|
+
};
|
|
13
|
+
backgroundColor: {
|
|
14
|
+
default: string;
|
|
15
|
+
};
|
|
16
|
+
boxShadow: {
|
|
17
|
+
type: BooleanConstructor;
|
|
18
|
+
default: boolean;
|
|
19
|
+
};
|
|
20
|
+
border: {
|
|
21
|
+
type: BooleanConstructor;
|
|
22
|
+
default: boolean;
|
|
23
|
+
};
|
|
24
|
+
longPressTimeMs: {
|
|
25
|
+
default: number;
|
|
26
|
+
};
|
|
27
|
+
tooltipText: {};
|
|
28
|
+
tooltipLocation: {
|
|
29
|
+
default: string;
|
|
30
|
+
};
|
|
31
|
+
tooltipOnClick: {
|
|
32
|
+
type: BooleanConstructor;
|
|
33
|
+
default: boolean;
|
|
34
|
+
};
|
|
35
|
+
tooltipOnFocus: {
|
|
36
|
+
type: BooleanConstructor;
|
|
37
|
+
default: boolean;
|
|
38
|
+
};
|
|
39
|
+
tooltipOnHover: {
|
|
40
|
+
type: BooleanConstructor;
|
|
41
|
+
default: boolean;
|
|
42
|
+
};
|
|
43
|
+
tooltipOffset: {
|
|
44
|
+
default: number;
|
|
45
|
+
};
|
|
46
|
+
showTooltip: {
|
|
47
|
+
type: BooleanConstructor;
|
|
48
|
+
default: boolean;
|
|
49
|
+
};
|
|
50
|
+
faSize: {
|
|
51
|
+
default: string;
|
|
52
|
+
};
|
|
53
|
+
mdSize: {
|
|
54
|
+
default: string;
|
|
55
|
+
};
|
|
56
|
+
}, (_ctx: any, _cache: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
2
57
|
[key: string]: any;
|
|
3
|
-
}
|
|
58
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "activate")[], "update:modelValue" | "activate", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
59
|
+
modelValue: {
|
|
60
|
+
type: BooleanConstructor;
|
|
61
|
+
};
|
|
62
|
+
faIcon: {};
|
|
63
|
+
mdIcon: {};
|
|
64
|
+
color: {
|
|
65
|
+
default: string;
|
|
66
|
+
};
|
|
67
|
+
focusColor: {
|
|
68
|
+
default: string;
|
|
69
|
+
};
|
|
70
|
+
backgroundColor: {
|
|
71
|
+
default: string;
|
|
72
|
+
};
|
|
73
|
+
boxShadow: {
|
|
74
|
+
type: BooleanConstructor;
|
|
75
|
+
default: boolean;
|
|
76
|
+
};
|
|
77
|
+
border: {
|
|
78
|
+
type: BooleanConstructor;
|
|
79
|
+
default: boolean;
|
|
80
|
+
};
|
|
81
|
+
longPressTimeMs: {
|
|
82
|
+
default: number;
|
|
83
|
+
};
|
|
84
|
+
tooltipText: {};
|
|
85
|
+
tooltipLocation: {
|
|
86
|
+
default: string;
|
|
87
|
+
};
|
|
88
|
+
tooltipOnClick: {
|
|
89
|
+
type: BooleanConstructor;
|
|
90
|
+
default: boolean;
|
|
91
|
+
};
|
|
92
|
+
tooltipOnFocus: {
|
|
93
|
+
type: BooleanConstructor;
|
|
94
|
+
default: boolean;
|
|
95
|
+
};
|
|
96
|
+
tooltipOnHover: {
|
|
97
|
+
type: BooleanConstructor;
|
|
98
|
+
default: boolean;
|
|
99
|
+
};
|
|
100
|
+
tooltipOffset: {
|
|
101
|
+
default: number;
|
|
102
|
+
};
|
|
103
|
+
showTooltip: {
|
|
104
|
+
type: BooleanConstructor;
|
|
105
|
+
default: boolean;
|
|
106
|
+
};
|
|
107
|
+
faSize: {
|
|
108
|
+
default: string;
|
|
109
|
+
};
|
|
110
|
+
mdSize: {
|
|
111
|
+
default: string;
|
|
112
|
+
};
|
|
113
|
+
}>> & {
|
|
114
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
115
|
+
onActivate?: ((...args: any[]) => any) | undefined;
|
|
116
|
+
}, {
|
|
117
|
+
backgroundColor: string;
|
|
118
|
+
border: boolean;
|
|
119
|
+
modelValue: boolean;
|
|
120
|
+
color: string;
|
|
121
|
+
focusColor: string;
|
|
122
|
+
boxShadow: boolean;
|
|
123
|
+
longPressTimeMs: number;
|
|
124
|
+
tooltipLocation: string;
|
|
125
|
+
tooltipOnClick: boolean;
|
|
126
|
+
tooltipOnFocus: boolean;
|
|
127
|
+
tooltipOnHover: boolean;
|
|
128
|
+
tooltipOffset: number;
|
|
129
|
+
showTooltip: boolean;
|
|
130
|
+
faSize: string;
|
|
131
|
+
mdSize: string;
|
|
132
|
+
}, {}>;
|
|
133
|
+
export default _default;
|
|
@@ -1,3 +1,140 @@
|
|
|
1
|
-
|
|
1
|
+
import L from 'leaflet';
|
|
2
|
+
import "leaflet/dist/leaflet.css";
|
|
3
|
+
import { LeafletMapOptions } from "../types";
|
|
4
|
+
declare const _default: import("vue").DefineComponent<{
|
|
5
|
+
activatorColor: {
|
|
6
|
+
default: string;
|
|
7
|
+
};
|
|
8
|
+
detectLocation: {
|
|
9
|
+
type: BooleanConstructor;
|
|
10
|
+
default: boolean;
|
|
11
|
+
};
|
|
12
|
+
modelValue: {
|
|
13
|
+
default: () => {
|
|
14
|
+
latitudeDeg: number;
|
|
15
|
+
longitudeDeg: number;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
mapOptions: {
|
|
19
|
+
default: () => LeafletMapOptions;
|
|
20
|
+
};
|
|
21
|
+
initialPlace: {};
|
|
22
|
+
places: {
|
|
23
|
+
default: () => never[];
|
|
24
|
+
};
|
|
25
|
+
placeCircleOptions: {
|
|
26
|
+
default: () => L.CircleMarkerOptions;
|
|
27
|
+
};
|
|
28
|
+
placeSelectable: {
|
|
29
|
+
type: BooleanConstructor;
|
|
30
|
+
default: boolean;
|
|
31
|
+
};
|
|
32
|
+
selectable: {
|
|
33
|
+
type: BooleanConstructor;
|
|
34
|
+
default: boolean;
|
|
35
|
+
};
|
|
36
|
+
selectedCircleOptions: {
|
|
37
|
+
default: () => {
|
|
38
|
+
color: string;
|
|
39
|
+
fillColor: string;
|
|
40
|
+
fillOpacity: number;
|
|
41
|
+
radius: number;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
selectionEvent: {
|
|
45
|
+
default: string;
|
|
46
|
+
};
|
|
47
|
+
worldRadii: {
|
|
48
|
+
type: BooleanConstructor;
|
|
49
|
+
default: boolean;
|
|
50
|
+
};
|
|
51
|
+
geoJsonFiles: {
|
|
52
|
+
default: () => never[];
|
|
53
|
+
};
|
|
54
|
+
layers: {
|
|
55
|
+
default: () => never[];
|
|
56
|
+
};
|
|
57
|
+
}, (_ctx: any, _cache: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
2
58
|
[key: string]: any;
|
|
3
|
-
}
|
|
59
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("place" | "error" | "update:modelValue" | "mapReady")[], "place" | "error" | "update:modelValue" | "mapReady", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
60
|
+
activatorColor: {
|
|
61
|
+
default: string;
|
|
62
|
+
};
|
|
63
|
+
detectLocation: {
|
|
64
|
+
type: BooleanConstructor;
|
|
65
|
+
default: boolean;
|
|
66
|
+
};
|
|
67
|
+
modelValue: {
|
|
68
|
+
default: () => {
|
|
69
|
+
latitudeDeg: number;
|
|
70
|
+
longitudeDeg: number;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
mapOptions: {
|
|
74
|
+
default: () => LeafletMapOptions;
|
|
75
|
+
};
|
|
76
|
+
initialPlace: {};
|
|
77
|
+
places: {
|
|
78
|
+
default: () => never[];
|
|
79
|
+
};
|
|
80
|
+
placeCircleOptions: {
|
|
81
|
+
default: () => L.CircleMarkerOptions;
|
|
82
|
+
};
|
|
83
|
+
placeSelectable: {
|
|
84
|
+
type: BooleanConstructor;
|
|
85
|
+
default: boolean;
|
|
86
|
+
};
|
|
87
|
+
selectable: {
|
|
88
|
+
type: BooleanConstructor;
|
|
89
|
+
default: boolean;
|
|
90
|
+
};
|
|
91
|
+
selectedCircleOptions: {
|
|
92
|
+
default: () => {
|
|
93
|
+
color: string;
|
|
94
|
+
fillColor: string;
|
|
95
|
+
fillOpacity: number;
|
|
96
|
+
radius: number;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
selectionEvent: {
|
|
100
|
+
default: string;
|
|
101
|
+
};
|
|
102
|
+
worldRadii: {
|
|
103
|
+
type: BooleanConstructor;
|
|
104
|
+
default: boolean;
|
|
105
|
+
};
|
|
106
|
+
geoJsonFiles: {
|
|
107
|
+
default: () => never[];
|
|
108
|
+
};
|
|
109
|
+
layers: {
|
|
110
|
+
default: () => never[];
|
|
111
|
+
};
|
|
112
|
+
}>> & {
|
|
113
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
114
|
+
onPlace?: ((...args: any[]) => any) | undefined;
|
|
115
|
+
onError?: ((...args: any[]) => any) | undefined;
|
|
116
|
+
onMapReady?: ((...args: any[]) => any) | undefined;
|
|
117
|
+
}, {
|
|
118
|
+
modelValue: {
|
|
119
|
+
latitudeDeg: number;
|
|
120
|
+
longitudeDeg: number;
|
|
121
|
+
};
|
|
122
|
+
activatorColor: string;
|
|
123
|
+
detectLocation: boolean;
|
|
124
|
+
mapOptions: LeafletMapOptions;
|
|
125
|
+
places: never[];
|
|
126
|
+
placeCircleOptions: L.CircleMarkerOptions;
|
|
127
|
+
placeSelectable: boolean;
|
|
128
|
+
selectable: boolean;
|
|
129
|
+
selectedCircleOptions: {
|
|
130
|
+
color: string;
|
|
131
|
+
fillColor: string;
|
|
132
|
+
fillOpacity: number;
|
|
133
|
+
radius: number;
|
|
134
|
+
};
|
|
135
|
+
selectionEvent: string;
|
|
136
|
+
worldRadii: boolean;
|
|
137
|
+
geoJsonFiles: never[];
|
|
138
|
+
layers: never[];
|
|
139
|
+
}, {}>;
|
|
140
|
+
export default _default;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
location: {
|
|
3
|
+
default: () => {
|
|
4
|
+
top: string;
|
|
5
|
+
left: string;
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
offsetCenter: {
|
|
9
|
+
default: () => {
|
|
10
|
+
x: number;
|
|
11
|
+
y: number;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
otherVariables: {
|
|
15
|
+
default: () => {};
|
|
16
|
+
};
|
|
17
|
+
fontSize: {
|
|
18
|
+
default: string;
|
|
19
|
+
};
|
|
20
|
+
backgroundColor: {
|
|
21
|
+
default: string;
|
|
22
|
+
};
|
|
23
|
+
textShadow: {
|
|
24
|
+
default: string;
|
|
25
|
+
};
|
|
26
|
+
store: {};
|
|
27
|
+
}, (_ctx: any, _cache: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
28
|
+
[key: string]: any;
|
|
29
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
30
|
+
location: {
|
|
31
|
+
default: () => {
|
|
32
|
+
top: string;
|
|
33
|
+
left: string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
offsetCenter: {
|
|
37
|
+
default: () => {
|
|
38
|
+
x: number;
|
|
39
|
+
y: number;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
otherVariables: {
|
|
43
|
+
default: () => {};
|
|
44
|
+
};
|
|
45
|
+
fontSize: {
|
|
46
|
+
default: string;
|
|
47
|
+
};
|
|
48
|
+
backgroundColor: {
|
|
49
|
+
default: string;
|
|
50
|
+
};
|
|
51
|
+
textShadow: {
|
|
52
|
+
default: string;
|
|
53
|
+
};
|
|
54
|
+
store: {};
|
|
55
|
+
}>>, {
|
|
56
|
+
location: {
|
|
57
|
+
top: string;
|
|
58
|
+
left: string;
|
|
59
|
+
};
|
|
60
|
+
offsetCenter: {
|
|
61
|
+
x: number;
|
|
62
|
+
y: number;
|
|
63
|
+
};
|
|
64
|
+
otherVariables: {};
|
|
65
|
+
fontSize: string;
|
|
66
|
+
backgroundColor: string;
|
|
67
|
+
textShadow: string;
|
|
68
|
+
}, {}>;
|
|
69
|
+
export default _default;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Ref } from "vue";
|
|
2
|
+
export declare function useFullscreen(): Ref<boolean>;
|
|
3
|
+
export interface WindowShape {
|
|
4
|
+
width: number;
|
|
5
|
+
height: number;
|
|
6
|
+
}
|
|
7
|
+
export declare const defaultWindowShape: {
|
|
8
|
+
width: number;
|
|
9
|
+
height: number;
|
|
10
|
+
};
|
|
11
|
+
export declare function useWindowShape(): {
|
|
12
|
+
windowShape: Ref<{
|
|
13
|
+
width: number;
|
|
14
|
+
height: number;
|
|
15
|
+
}>;
|
|
16
|
+
resizeObserver: ResizeObserver;
|
|
17
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Position } from "@capacitor/geolocation";
|
|
2
|
+
export type PositionCoords = Position['coords'];
|
|
3
|
+
export declare function useGeolocation(onStartup?: boolean): {
|
|
4
|
+
geolocation: import("vue").Ref<{
|
|
5
|
+
latitude: number;
|
|
6
|
+
longitude: number;
|
|
7
|
+
accuracy: number;
|
|
8
|
+
altitudeAccuracy: number | null | undefined;
|
|
9
|
+
altitude: number | null;
|
|
10
|
+
speed: number | null;
|
|
11
|
+
heading: number | null;
|
|
12
|
+
} | null>;
|
|
13
|
+
error: import("vue").Ref<{
|
|
14
|
+
readonly code: number;
|
|
15
|
+
readonly message: string;
|
|
16
|
+
readonly PERMISSION_DENIED: number;
|
|
17
|
+
readonly POSITION_UNAVAILABLE: number;
|
|
18
|
+
readonly TIMEOUT: number;
|
|
19
|
+
} | null>;
|
|
20
|
+
permissions: import("vue").Ref<string>;
|
|
21
|
+
permissionGranted: import("vue").Ref<boolean>;
|
|
22
|
+
hasPermissionsAPI: import("vue").Ref<boolean>;
|
|
23
|
+
handlePosition: (position: Position) => void;
|
|
24
|
+
geolocate: () => Promise<Position>;
|
|
25
|
+
};
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
|
+
import { BackgroundImageset, skyBackgroundImagesets } from "./background";
|
|
2
|
+
import { useFullscreen, useWindowShape, WindowShape } from "./composables";
|
|
3
|
+
import { PositionCoords, useGeolocation } from "./geolocation";
|
|
1
4
|
import { KeyboardControlSettings } from "./keyboard";
|
|
2
|
-
import
|
|
5
|
+
import { useWWTKeyboardControls } from "./wwt-utils";
|
|
3
6
|
import IconButton from "./components/IconButton.vue";
|
|
4
7
|
import LocationSelector from "./components/LocationSelector.vue";
|
|
5
|
-
import
|
|
6
|
-
import FundingAcknowledgment from "./components/FundingAcknowledgment.vue";
|
|
8
|
+
import FundingAcknowledgement from "./components/FundingAcknowledgement.vue";
|
|
7
9
|
import CreditLogos from "./components/CreditLogos.vue";
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
+
import GeolocationButton from "./components/GeolocationButton.vue";
|
|
11
|
+
import WwtHud from "./components/WwtHud.vue";
|
|
10
12
|
import Gallery from "./components/Gallery.vue";
|
|
11
|
-
|
|
12
|
-
export
|
|
13
|
+
export { BackgroundImageset, KeyboardControlSettings, Gallery, IconButton, LocationSelector, skyBackgroundImagesets, useFullscreen, useWindowShape, WindowShape, FundingAcknowledgement, CreditLogos, GeolocationButton, WwtHud, PositionCoords, useGeolocation, useWWTKeyboardControls, };
|
|
14
|
+
export * from "./types";
|
|
15
|
+
export * from "./utils";
|
package/dist/src/keyboard.d.ts
CHANGED
|
@@ -30,6 +30,6 @@ export declare class KeyboardControlSettings {
|
|
|
30
30
|
moveAmount?: number | undefined;
|
|
31
31
|
});
|
|
32
32
|
readonly actionTypes: readonly ["zoomIn", "zoomOut", "moveUp", "moveDown", "moveLeft", "moveRight"];
|
|
33
|
-
makeListener(actionName: KeyboardControlSettings["actionTypes"][number], action: () => void): (
|
|
33
|
+
makeListener(actionName: KeyboardControlSettings["actionTypes"][number], action: () => void): (event: KeyboardEvent) => void;
|
|
34
34
|
}
|
|
35
35
|
export {};
|