@arenarium/maps 1.2.1 → 1.2.3
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/README.md +5 -298
- package/dist/main.css +81 -0
- package/dist/main.d.ts +230 -167
- package/dist/main.js +13 -0
- package/package.json +40 -39
- package/dist/main.cjs.js +0 -1
- package/dist/main.es.js +0 -3288
- package/dist/main.umd.js +0 -1
- package/dist/style.css +0 -1
package/dist/main.d.ts
CHANGED
|
@@ -1,167 +1,230 @@
|
|
|
1
|
-
import * as v from
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
readonly
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
readonly
|
|
100
|
-
|
|
101
|
-
readonly
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
declare const
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
readonly
|
|
142
|
-
readonly
|
|
143
|
-
readonly
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
readonly
|
|
159
|
-
|
|
160
|
-
readonly
|
|
161
|
-
readonly
|
|
162
|
-
readonly
|
|
163
|
-
readonly
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
1
|
+
import * as v from "valibot";
|
|
2
|
+
|
|
3
|
+
//#region ../../2 - shared/dist/schemas-ChiG16AA.d.ts
|
|
4
|
+
|
|
5
|
+
declare const mapConfigurationSchema: v.ObjectSchema<{
|
|
6
|
+
readonly pin: v.OptionalSchema<v.ObjectSchema<{
|
|
7
|
+
readonly fade: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
8
|
+
readonly maxZoom: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
9
|
+
}, undefined>, undefined>;
|
|
10
|
+
readonly popup: v.OptionalSchema<v.ObjectSchema<{
|
|
11
|
+
readonly pan: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
12
|
+
}, undefined>, undefined>;
|
|
13
|
+
readonly process: v.OptionalSchema<v.ObjectSchema<{
|
|
14
|
+
readonly visibility: v.OptionalSchema<v.ObjectSchema<{
|
|
15
|
+
readonly limit: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
16
|
+
readonly cell: v.OptionalSchema<v.ObjectSchema<{
|
|
17
|
+
readonly size: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
18
|
+
readonly capacity: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
19
|
+
readonly depth: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
20
|
+
}, undefined>, undefined>;
|
|
21
|
+
}, undefined>, undefined>;
|
|
22
|
+
readonly states: v.OptionalSchema<v.ObjectSchema<{
|
|
23
|
+
readonly delay: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
24
|
+
}, undefined>, undefined>;
|
|
25
|
+
}, undefined>, undefined>;
|
|
26
|
+
readonly events: v.OptionalSchema<v.ObjectSchema<{
|
|
27
|
+
readonly error: v.OptionalSchema<v.SchemaWithPipe<readonly [v.FunctionSchema<undefined>, v.ArgsAction<(...args: unknown[]) => unknown, v.TupleSchema<[v.StringSchema<undefined>, v.UnknownSchema], undefined>>, v.ReturnsAction<(args_0: string, args_1: unknown) => unknown, v.VoidSchema<undefined>>]>, undefined>;
|
|
28
|
+
}, undefined>, undefined>;
|
|
29
|
+
}, undefined>;
|
|
30
|
+
type MapConfiguration = v.InferOutput<typeof mapConfigurationSchema>;
|
|
31
|
+
declare const mapCoordinatesSchema: v.ObjectSchema<{
|
|
32
|
+
readonly lat: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, -90, undefined>, v.MaxValueAction<number, 90, undefined>]>;
|
|
33
|
+
readonly lng: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, -180, undefined>, v.MaxValueAction<number, 180, undefined>]>;
|
|
34
|
+
}, undefined>;
|
|
35
|
+
declare const mapBoundsSchema: v.ObjectSchema<{
|
|
36
|
+
readonly sw: v.ObjectSchema<{
|
|
37
|
+
readonly lat: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, -90, undefined>, v.MaxValueAction<number, 90, undefined>]>;
|
|
38
|
+
readonly lng: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, -180, undefined>, v.MaxValueAction<number, 180, undefined>]>;
|
|
39
|
+
}, undefined>;
|
|
40
|
+
readonly ne: v.ObjectSchema<{
|
|
41
|
+
readonly lat: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, -90, undefined>, v.MaxValueAction<number, 90, undefined>]>;
|
|
42
|
+
readonly lng: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, -180, undefined>, v.MaxValueAction<number, 180, undefined>]>;
|
|
43
|
+
}, undefined>;
|
|
44
|
+
}, undefined>;
|
|
45
|
+
declare const mapViewportSchema: v.ObjectSchema<{
|
|
46
|
+
readonly bounds: v.ObjectSchema<{
|
|
47
|
+
readonly sw: v.ObjectSchema<{
|
|
48
|
+
readonly lat: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, -90, undefined>, v.MaxValueAction<number, 90, undefined>]>;
|
|
49
|
+
readonly lng: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, -180, undefined>, v.MaxValueAction<number, 180, undefined>]>;
|
|
50
|
+
}, undefined>;
|
|
51
|
+
readonly ne: v.ObjectSchema<{
|
|
52
|
+
readonly lat: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, -90, undefined>, v.MaxValueAction<number, 90, undefined>]>;
|
|
53
|
+
readonly lng: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, -180, undefined>, v.MaxValueAction<number, 180, undefined>]>;
|
|
54
|
+
}, undefined>;
|
|
55
|
+
}, undefined>;
|
|
56
|
+
readonly center: v.ObjectSchema<{
|
|
57
|
+
readonly lat: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, -90, undefined>, v.MaxValueAction<number, 90, undefined>]>;
|
|
58
|
+
readonly lng: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, -180, undefined>, v.MaxValueAction<number, 180, undefined>]>;
|
|
59
|
+
}, undefined>;
|
|
60
|
+
readonly zoom: v.NumberSchema<undefined>;
|
|
61
|
+
}, undefined>;
|
|
62
|
+
declare const mapProviderParametersSchema: v.ObjectSchema<{
|
|
63
|
+
readonly mapSize: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
64
|
+
readonly zoomMin: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
65
|
+
readonly zoomMax: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
66
|
+
readonly zoomScale: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 10, undefined>]>;
|
|
67
|
+
}, undefined>;
|
|
68
|
+
declare const mapProviderMarkerSchema: v.ObjectSchema<{
|
|
69
|
+
readonly inserted: v.SchemaWithPipe<readonly [v.FunctionSchema<undefined>, v.ArgsAction<(...args: unknown[]) => unknown, v.TupleSchema<[], undefined>>, v.ReturnsAction<() => unknown, v.BooleanSchema<undefined>>]>;
|
|
70
|
+
readonly insert: v.SchemaWithPipe<readonly [v.FunctionSchema<undefined>, v.ArgsAction<(...args: unknown[]) => unknown, v.TupleSchema<[], undefined>>, v.ReturnsAction<() => unknown, v.VoidSchema<undefined>>]>;
|
|
71
|
+
readonly remove: v.SchemaWithPipe<readonly [v.FunctionSchema<undefined>, v.ArgsAction<(...args: unknown[]) => unknown, v.TupleSchema<[], undefined>>, v.ReturnsAction<() => unknown, v.VoidSchema<undefined>>]>;
|
|
72
|
+
readonly update: v.SchemaWithPipe<readonly [v.FunctionSchema<undefined>, v.ArgsAction<(...args: unknown[]) => unknown, v.TupleSchema<[v.NumberSchema<undefined>], undefined>>, v.ReturnsAction<(args_0: number) => unknown, v.VoidSchema<undefined>>]>;
|
|
73
|
+
}, undefined>;
|
|
74
|
+
declare const mapProviderEventSchema: v.UnionSchema<[v.LiteralSchema<"idle", undefined>, v.LiteralSchema<"move", undefined>, v.LiteralSchema<"click", undefined>], undefined>;
|
|
75
|
+
declare const mapProviderSchema: v.ObjectSchema<{
|
|
76
|
+
readonly getParameters: v.SchemaWithPipe<readonly [v.FunctionSchema<undefined>, v.ArgsAction<(...args: unknown[]) => unknown, v.TupleSchema<[], undefined>>, v.ReturnsAction<() => unknown, v.ObjectSchema<{
|
|
77
|
+
readonly mapSize: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
78
|
+
readonly zoomMin: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
79
|
+
readonly zoomMax: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
80
|
+
readonly zoomScale: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 10, undefined>]>;
|
|
81
|
+
}, undefined>>]>;
|
|
82
|
+
readonly getContainer: v.SchemaWithPipe<readonly [v.FunctionSchema<undefined>, v.ArgsAction<(...args: unknown[]) => unknown, v.TupleSchema<[], undefined>>, v.ReturnsAction<() => unknown, v.CustomSchema<HTMLElement, v.ErrorMessage<v.CustomIssue> | undefined>>]>;
|
|
83
|
+
readonly getZoom: v.SchemaWithPipe<readonly [v.FunctionSchema<undefined>, v.ArgsAction<(...args: unknown[]) => unknown, v.TupleSchema<[], undefined>>, v.ReturnsAction<() => unknown, v.NumberSchema<undefined>>]>;
|
|
84
|
+
readonly getBounds: v.SchemaWithPipe<readonly [v.FunctionSchema<undefined>, v.ArgsAction<(...args: unknown[]) => unknown, v.TupleSchema<[], undefined>>, v.ReturnsAction<() => unknown, v.ObjectSchema<{
|
|
85
|
+
readonly sw: v.ObjectSchema<{
|
|
86
|
+
readonly lat: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, -90, undefined>, v.MaxValueAction<number, 90, undefined>]>;
|
|
87
|
+
readonly lng: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, -180, undefined>, v.MaxValueAction<number, 180, undefined>]>;
|
|
88
|
+
}, undefined>;
|
|
89
|
+
readonly ne: v.ObjectSchema<{
|
|
90
|
+
readonly lat: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, -90, undefined>, v.MaxValueAction<number, 90, undefined>]>;
|
|
91
|
+
readonly lng: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, -180, undefined>, v.MaxValueAction<number, 180, undefined>]>;
|
|
92
|
+
}, undefined>;
|
|
93
|
+
}, undefined>>]>;
|
|
94
|
+
readonly getCenter: v.SchemaWithPipe<readonly [v.FunctionSchema<undefined>, v.ArgsAction<(...args: unknown[]) => unknown, v.TupleSchema<[], undefined>>, v.ReturnsAction<() => unknown, v.ObjectSchema<{
|
|
95
|
+
readonly lat: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, -90, undefined>, v.MaxValueAction<number, 90, undefined>]>;
|
|
96
|
+
readonly lng: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, -180, undefined>, v.MaxValueAction<number, 180, undefined>]>;
|
|
97
|
+
}, undefined>>]>;
|
|
98
|
+
readonly getViewport: v.SchemaWithPipe<readonly [v.FunctionSchema<undefined>, v.ArgsAction<(...args: unknown[]) => unknown, v.TupleSchema<[], undefined>>, v.ReturnsAction<() => unknown, v.ObjectSchema<{
|
|
99
|
+
readonly bounds: v.ObjectSchema<{
|
|
100
|
+
readonly sw: v.ObjectSchema<{
|
|
101
|
+
readonly lat: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, -90, undefined>, v.MaxValueAction<number, 90, undefined>]>;
|
|
102
|
+
readonly lng: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, -180, undefined>, v.MaxValueAction<number, 180, undefined>]>;
|
|
103
|
+
}, undefined>;
|
|
104
|
+
readonly ne: v.ObjectSchema<{
|
|
105
|
+
readonly lat: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, -90, undefined>, v.MaxValueAction<number, 90, undefined>]>;
|
|
106
|
+
readonly lng: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, -180, undefined>, v.MaxValueAction<number, 180, undefined>]>;
|
|
107
|
+
}, undefined>;
|
|
108
|
+
}, undefined>;
|
|
109
|
+
readonly center: v.ObjectSchema<{
|
|
110
|
+
readonly lat: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, -90, undefined>, v.MaxValueAction<number, 90, undefined>]>;
|
|
111
|
+
readonly lng: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, -180, undefined>, v.MaxValueAction<number, 180, undefined>]>;
|
|
112
|
+
}, undefined>;
|
|
113
|
+
readonly zoom: v.NumberSchema<undefined>;
|
|
114
|
+
}, undefined>>]>;
|
|
115
|
+
readonly panBy: v.SchemaWithPipe<readonly [v.FunctionSchema<undefined>, v.ArgsAction<(...args: unknown[]) => unknown, v.TupleSchema<[v.NumberSchema<undefined>, v.NumberSchema<undefined>], undefined>>, v.ReturnsAction<(args_0: number, args_1: number) => unknown, v.VoidSchema<undefined>>]>;
|
|
116
|
+
readonly createMarker: v.SchemaWithPipe<readonly [v.FunctionSchema<undefined>, v.ArgsAction<(...args: unknown[]) => unknown, v.TupleSchema<[v.CustomSchema<HTMLElement, v.ErrorMessage<v.CustomIssue> | undefined>, v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, -90, undefined>, v.MaxValueAction<number, 90, undefined>]>, v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, -180, undefined>, v.MaxValueAction<number, 180, undefined>]>, v.NumberSchema<undefined>], undefined>>, v.ReturnsAction<(args_0: HTMLElement, args_1: number, args_2: number, args_3: number) => unknown, v.ObjectSchema<{
|
|
117
|
+
readonly inserted: v.SchemaWithPipe<readonly [v.FunctionSchema<undefined>, v.ArgsAction<(...args: unknown[]) => unknown, v.TupleSchema<[], undefined>>, v.ReturnsAction<() => unknown, v.BooleanSchema<undefined>>]>;
|
|
118
|
+
readonly insert: v.SchemaWithPipe<readonly [v.FunctionSchema<undefined>, v.ArgsAction<(...args: unknown[]) => unknown, v.TupleSchema<[], undefined>>, v.ReturnsAction<() => unknown, v.VoidSchema<undefined>>]>;
|
|
119
|
+
readonly remove: v.SchemaWithPipe<readonly [v.FunctionSchema<undefined>, v.ArgsAction<(...args: unknown[]) => unknown, v.TupleSchema<[], undefined>>, v.ReturnsAction<() => unknown, v.VoidSchema<undefined>>]>;
|
|
120
|
+
readonly update: v.SchemaWithPipe<readonly [v.FunctionSchema<undefined>, v.ArgsAction<(...args: unknown[]) => unknown, v.TupleSchema<[v.NumberSchema<undefined>], undefined>>, v.ReturnsAction<(args_0: number) => unknown, v.VoidSchema<undefined>>]>;
|
|
121
|
+
}, undefined>>]>;
|
|
122
|
+
readonly subscribe: v.SchemaWithPipe<readonly [v.FunctionSchema<undefined>, v.ArgsAction<(...args: unknown[]) => unknown, v.TupleSchema<[v.UnionSchema<[v.LiteralSchema<"idle", undefined>, v.LiteralSchema<"move", undefined>, v.LiteralSchema<"click", undefined>], undefined>, v.FunctionSchema<undefined>], undefined>>, v.ReturnsAction<(args_0: "idle" | "move" | "click", args_1: (...args: unknown[]) => unknown) => unknown, v.VoidSchema<undefined>>]>;
|
|
123
|
+
readonly unsubscribe: v.SchemaWithPipe<readonly [v.FunctionSchema<undefined>, v.ArgsAction<(...args: unknown[]) => unknown, v.TupleSchema<[v.UnionSchema<[v.LiteralSchema<"idle", undefined>, v.LiteralSchema<"move", undefined>, v.LiteralSchema<"click", undefined>], undefined>, v.FunctionSchema<undefined>], undefined>>, v.ReturnsAction<(args_0: "idle" | "move" | "click", args_1: (...args: unknown[]) => unknown) => unknown, v.VoidSchema<undefined>>]>;
|
|
124
|
+
}, undefined>;
|
|
125
|
+
type MapCoordinates = v.InferOutput<typeof mapCoordinatesSchema>;
|
|
126
|
+
type MapBounds = v.InferOutput<typeof mapBoundsSchema>;
|
|
127
|
+
type MapViewport = v.InferOutput<typeof mapViewportSchema>;
|
|
128
|
+
type MapProviderParameters = v.InferOutput<typeof mapProviderParametersSchema>;
|
|
129
|
+
type MapProviderMarker = v.InferOutput<typeof mapProviderMarkerSchema>;
|
|
130
|
+
type MapProviderEvent = v.InferOutput<typeof mapProviderEventSchema>;
|
|
131
|
+
type MapProvider = v.InferOutput<typeof mapProviderSchema>;
|
|
132
|
+
declare const mapMarkerDataSchema: v.ObjectSchema<{
|
|
133
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
134
|
+
readonly rank: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
135
|
+
readonly lat: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, -90, undefined>, v.MaxValueAction<number, 90, undefined>]>;
|
|
136
|
+
readonly lng: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, -180, undefined>, v.MaxValueAction<number, 180, undefined>]>;
|
|
137
|
+
readonly tooltip: v.ObjectSchema<{
|
|
138
|
+
readonly style: v.ObjectSchema<{
|
|
139
|
+
readonly dimensions: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
140
|
+
readonly width: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
141
|
+
readonly height: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
142
|
+
readonly margin: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
143
|
+
readonly radius: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
144
|
+
}, undefined>, v.CheckAction<{
|
|
145
|
+
width: number;
|
|
146
|
+
height: number;
|
|
147
|
+
margin: number;
|
|
148
|
+
radius: number;
|
|
149
|
+
}, "Minimum of width or height must be greater than or equal to 4 * margin">]>;
|
|
150
|
+
readonly colors: v.OptionalSchema<v.ObjectSchema<{
|
|
151
|
+
readonly background: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
152
|
+
readonly shadow: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
153
|
+
}, undefined>, undefined>;
|
|
154
|
+
}, undefined>;
|
|
155
|
+
readonly body: v.SchemaWithPipe<readonly [v.FunctionSchema<undefined>, v.ArgsAction<(...args: unknown[]) => unknown, v.TupleSchema<[v.StringSchema<undefined>], undefined>>, v.ReturnsActionAsync<(args_0: string) => unknown, v.SchemaWithPipeAsync<readonly [v.PromiseSchema<undefined>, v.AwaitActionAsync<Promise<unknown>>, v.CustomSchema<HTMLElement, v.ErrorMessage<v.CustomIssue> | undefined>]>>]>;
|
|
156
|
+
}, undefined>;
|
|
157
|
+
readonly pin: v.OptionalSchema<v.ObjectSchema<{
|
|
158
|
+
readonly style: v.ObjectSchema<{
|
|
159
|
+
readonly dimensions: v.ObjectSchema<{
|
|
160
|
+
readonly width: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
161
|
+
readonly height: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
162
|
+
readonly padding: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
163
|
+
readonly radius: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
164
|
+
}, undefined>;
|
|
165
|
+
readonly colors: v.OptionalSchema<v.ObjectSchema<{
|
|
166
|
+
readonly background: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
167
|
+
readonly border: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
168
|
+
readonly shadow: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
169
|
+
}, undefined>, undefined>;
|
|
170
|
+
}, undefined>;
|
|
171
|
+
readonly body: v.OptionalSchema<v.SchemaWithPipe<readonly [v.FunctionSchema<undefined>, v.ArgsAction<(...args: unknown[]) => unknown, v.TupleSchema<[v.StringSchema<undefined>], undefined>>, v.ReturnsActionAsync<(args_0: string) => unknown, v.SchemaWithPipeAsync<readonly [v.PromiseSchema<undefined>, v.AwaitActionAsync<Promise<unknown>>, v.CustomSchema<HTMLElement, v.ErrorMessage<v.CustomIssue> | undefined>]>>]>, undefined>;
|
|
172
|
+
}, undefined>, undefined>;
|
|
173
|
+
readonly popup: v.OptionalSchema<v.ObjectSchema<{
|
|
174
|
+
readonly style: v.ObjectSchema<{
|
|
175
|
+
readonly dimensions: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
176
|
+
readonly width: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
177
|
+
readonly height: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
178
|
+
readonly margin: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
179
|
+
readonly radius: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
180
|
+
}, undefined>, v.CheckAction<{
|
|
181
|
+
width: number;
|
|
182
|
+
height: number;
|
|
183
|
+
margin: number;
|
|
184
|
+
radius: number;
|
|
185
|
+
}, "Minimum of width or height must be greater than or equal to 4 * margin">]>;
|
|
186
|
+
readonly colors: v.OptionalSchema<v.ObjectSchema<{
|
|
187
|
+
readonly background: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
188
|
+
readonly shadow: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
189
|
+
}, undefined>, undefined>;
|
|
190
|
+
}, undefined>;
|
|
191
|
+
readonly body: v.SchemaWithPipe<readonly [v.FunctionSchema<undefined>, v.ArgsAction<(...args: unknown[]) => unknown, v.TupleSchema<[v.StringSchema<undefined>], undefined>>, v.ReturnsActionAsync<(args_0: string) => unknown, v.SchemaWithPipeAsync<readonly [v.PromiseSchema<undefined>, v.AwaitActionAsync<Promise<unknown>>, v.CustomSchema<HTMLElement, v.ErrorMessage<v.CustomIssue> | undefined>]>>]>;
|
|
192
|
+
}, undefined>, undefined>;
|
|
193
|
+
}, undefined>;
|
|
194
|
+
type MapMarkerData = v.InferOutput<typeof mapMarkerDataSchema>;
|
|
195
|
+
//#endregion
|
|
196
|
+
//#region src/lib/map/manager.d.ts
|
|
197
|
+
declare class MapManager {
|
|
198
|
+
private apiKey;
|
|
199
|
+
private mapProvider;
|
|
200
|
+
private mapMarkers;
|
|
201
|
+
private mapMarkersVisibilityManager;
|
|
202
|
+
private mapMarkerElementsManager;
|
|
203
|
+
private mapMarkerStatesManager;
|
|
204
|
+
private mapMarkerRenderProcessor;
|
|
205
|
+
private mapMarkerVisibilityProcessor;
|
|
206
|
+
private mapMarkerStateProcessor;
|
|
207
|
+
private mapMarkerStatesProcessDelay;
|
|
208
|
+
private mapMarkerStatesProcessTimeout;
|
|
209
|
+
private mapStateManager;
|
|
210
|
+
private constructor();
|
|
211
|
+
static create(apiKey: string, mapProvider: MapProvider, mapConfiguration?: MapConfiguration): Promise<MapManager>;
|
|
212
|
+
set configuration(configuration: MapConfiguration | undefined);
|
|
213
|
+
private clear;
|
|
214
|
+
private dettached;
|
|
215
|
+
private error;
|
|
216
|
+
private log;
|
|
217
|
+
private onMapClick;
|
|
218
|
+
private onMapMarkerClick;
|
|
219
|
+
private onMapMove;
|
|
220
|
+
private onMapIdle;
|
|
221
|
+
private onMapMarkerVisiblityProcess;
|
|
222
|
+
private onMapMarkerStateProcess;
|
|
223
|
+
private onMapMarkerRenderProcess;
|
|
224
|
+
updateMarkers(markerData: MapMarkerData[]): void;
|
|
225
|
+
removeMarkers(): void;
|
|
226
|
+
showPopup(id: string): void;
|
|
227
|
+
hidePopup(): void;
|
|
228
|
+
}
|
|
229
|
+
//#endregion
|
|
230
|
+
export { type MapBounds, type MapConfiguration, type MapCoordinates, MapManager, type MapMarkerData, type MapProvider, type MapProviderEvent, type MapProviderMarker, type MapProviderParameters, type MapViewport };
|