@feltmaps/js-sdk 1.5.0-next.2 → 1.5.0-next.4
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/client.cjs +1 -1
- package/dist/client.d.cts +77 -7
- package/dist/client.d.ts +77 -7
- package/dist/client.js +1 -1
- package/dist/handler.cjs +1 -1
- package/dist/handler.d.cts +1371 -98
- package/dist/handler.d.ts +1371 -98
- package/dist/handler.js +1 -1
- package/dist/types-CPZlLnbg.d.cts +2429 -0
- package/dist/types-CPZlLnbg.d.ts +2429 -0
- package/handler.d.ts +1371 -98
- package/handler.js +1 -1
- package/package.json +1 -1
- package/types-CPZlLnbg.d.ts +2429 -0
- package/dist/types-BLsf5GHN.d.cts +0 -1229
- package/dist/types-BLsf5GHN.d.ts +0 -1229
- package/types-BLsf5GHN.d.ts +0 -1229
package/dist/handler.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as zod from 'zod';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { z as zInfer, E as Element, G as Geometry, b as ElementGroup, d as ElementChangeCallbackParams, e as ElementGroupChangeCallbackParams, M as MapInteractionEvent, L as Layer,
|
|
3
|
+
import { z as zInfer, E as Element, G as Geometry, b as ElementGroup, d as ElementChangeCallbackParams, e as ElementGroupChangeCallbackParams, M as MapInteractionEvent, L as Layer, j as LayerGroup, n as LegendItem, q as LayerFilters, s as Feature, i as LayerChangeCallbackParams, l as LayerGroupChangeCallbackParams, p as LegendItemChangeCallbackParams, ag as FilterTernary, t as EntityNode, T as ToolType, v as ToolSettingsMap, w as ToolSettingsChangeEvent, V as ViewportState, y as ViewportConstraints, aG as UnionToIntersection, aH as PromiseOrNot } from './types-CPZlLnbg.js';
|
|
4
4
|
|
|
5
5
|
type Method<TRequest extends {
|
|
6
6
|
type: string;
|
|
@@ -13,6 +13,9 @@ type Listener<TOptions, TParams> = {
|
|
|
13
13
|
options: TOptions;
|
|
14
14
|
eventParams: TParams;
|
|
15
15
|
};
|
|
16
|
+
type ListenerNoOptions<TParams> = {
|
|
17
|
+
eventParams: TParams;
|
|
18
|
+
};
|
|
16
19
|
|
|
17
20
|
declare const GetElementMessage: z.ZodObject<{
|
|
18
21
|
type: z.ZodLiteral<"getElement">;
|
|
@@ -90,70 +93,1325 @@ declare const SetElementGroupVisibilityMessage: z.ZodObject<{
|
|
|
90
93
|
show: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
91
94
|
hide: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
92
95
|
}, "strip", z.ZodTypeAny, {
|
|
93
|
-
show?: string[] | undefined;
|
|
94
|
-
hide?: string[] | undefined;
|
|
96
|
+
show?: string[] | undefined;
|
|
97
|
+
hide?: string[] | undefined;
|
|
98
|
+
}, {
|
|
99
|
+
show?: string[] | undefined;
|
|
100
|
+
hide?: string[] | undefined;
|
|
101
|
+
}>;
|
|
102
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
103
|
+
params: {
|
|
104
|
+
show?: string[] | undefined;
|
|
105
|
+
hide?: string[] | undefined;
|
|
106
|
+
};
|
|
107
|
+
type: "setElementGroupVisibility";
|
|
108
|
+
}, {
|
|
109
|
+
params: {
|
|
110
|
+
show?: string[] | undefined;
|
|
111
|
+
hide?: string[] | undefined;
|
|
112
|
+
};
|
|
113
|
+
type: "setElementGroupVisibility";
|
|
114
|
+
}>;
|
|
115
|
+
declare const OnElementChangeMessage: z.ZodObject<{
|
|
116
|
+
eventName: z.ZodLiteral<"onElementChange">;
|
|
117
|
+
id: z.ZodString;
|
|
118
|
+
options: z.ZodObject<{
|
|
119
|
+
id: z.ZodString;
|
|
120
|
+
}, "strip", z.ZodTypeAny, {
|
|
121
|
+
id: string;
|
|
122
|
+
}, {
|
|
123
|
+
id: string;
|
|
124
|
+
}>;
|
|
125
|
+
}, "strict", z.ZodTypeAny, {
|
|
126
|
+
options: {
|
|
127
|
+
id: string;
|
|
128
|
+
};
|
|
129
|
+
id: string;
|
|
130
|
+
eventName: "onElementChange";
|
|
131
|
+
}, {
|
|
132
|
+
options: {
|
|
133
|
+
id: string;
|
|
134
|
+
};
|
|
135
|
+
id: string;
|
|
136
|
+
eventName: "onElementChange";
|
|
137
|
+
}>;
|
|
138
|
+
declare const OnElementDeleteMessage: z.ZodObject<{
|
|
139
|
+
eventName: z.ZodLiteral<"onElementDelete">;
|
|
140
|
+
id: z.ZodString;
|
|
141
|
+
options: z.ZodObject<{
|
|
142
|
+
id: z.ZodString;
|
|
143
|
+
}, "strip", z.ZodTypeAny, {
|
|
144
|
+
id: string;
|
|
145
|
+
}, {
|
|
146
|
+
id: string;
|
|
147
|
+
}>;
|
|
148
|
+
}, "strict", z.ZodTypeAny, {
|
|
149
|
+
options: {
|
|
150
|
+
id: string;
|
|
151
|
+
};
|
|
152
|
+
id: string;
|
|
153
|
+
eventName: "onElementDelete";
|
|
154
|
+
}, {
|
|
155
|
+
options: {
|
|
156
|
+
id: string;
|
|
157
|
+
};
|
|
158
|
+
id: string;
|
|
159
|
+
eventName: "onElementDelete";
|
|
160
|
+
}>;
|
|
161
|
+
declare const OnElementGroupChangeMessage: z.ZodObject<{
|
|
162
|
+
eventName: z.ZodLiteral<"onElementGroupChange">;
|
|
163
|
+
id: z.ZodString;
|
|
164
|
+
options: z.ZodObject<{
|
|
165
|
+
id: z.ZodString;
|
|
166
|
+
}, "strip", z.ZodTypeAny, {
|
|
167
|
+
id: string;
|
|
168
|
+
}, {
|
|
169
|
+
id: string;
|
|
170
|
+
}>;
|
|
171
|
+
}, "strict", z.ZodTypeAny, {
|
|
172
|
+
options: {
|
|
173
|
+
id: string;
|
|
174
|
+
};
|
|
175
|
+
id: string;
|
|
176
|
+
eventName: "onElementGroupChange";
|
|
177
|
+
}, {
|
|
178
|
+
options: {
|
|
179
|
+
id: string;
|
|
180
|
+
};
|
|
181
|
+
id: string;
|
|
182
|
+
eventName: "onElementGroupChange";
|
|
183
|
+
}>;
|
|
184
|
+
declare const CreateElementMessage: z.ZodObject<{
|
|
185
|
+
type: z.ZodLiteral<"createElement">;
|
|
186
|
+
params: z.ZodDiscriminatedUnion<"type", [z.ZodObject<Omit<{
|
|
187
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
188
|
+
type: z.ZodLiteral<"Place">;
|
|
189
|
+
coordinates: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
190
|
+
id: z.ZodOptional<z.ZodString>;
|
|
191
|
+
groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
192
|
+
color: z.ZodOptional<z.ZodString>;
|
|
193
|
+
name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
194
|
+
description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
195
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
196
|
+
imageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
197
|
+
frame: z.ZodOptional<z.ZodNullable<z.ZodEnum<["frame-circle", "frame-square"]>>>;
|
|
198
|
+
hideLabel: z.ZodOptional<z.ZodBoolean>;
|
|
199
|
+
}, "id">, "strip", z.ZodTypeAny, {
|
|
200
|
+
type: "Place";
|
|
201
|
+
coordinates: [number, number];
|
|
202
|
+
symbol?: string | undefined;
|
|
203
|
+
groupId?: string | null | undefined;
|
|
204
|
+
color?: string | undefined;
|
|
205
|
+
name?: string | null | undefined;
|
|
206
|
+
description?: string | null | undefined;
|
|
207
|
+
attributes?: Record<string, unknown> | undefined;
|
|
208
|
+
imageUrl?: string | null | undefined;
|
|
209
|
+
frame?: "frame-circle" | "frame-square" | null | undefined;
|
|
210
|
+
hideLabel?: boolean | undefined;
|
|
211
|
+
}, {
|
|
212
|
+
type: "Place";
|
|
213
|
+
coordinates: [number, number];
|
|
214
|
+
symbol?: string | undefined;
|
|
215
|
+
groupId?: string | null | undefined;
|
|
216
|
+
color?: string | undefined;
|
|
217
|
+
name?: string | null | undefined;
|
|
218
|
+
description?: string | null | undefined;
|
|
219
|
+
attributes?: Record<string, unknown> | undefined;
|
|
220
|
+
imageUrl?: string | null | undefined;
|
|
221
|
+
frame?: "frame-circle" | "frame-square" | null | undefined;
|
|
222
|
+
hideLabel?: boolean | undefined;
|
|
223
|
+
}>, z.ZodObject<Omit<{
|
|
224
|
+
type: z.ZodLiteral<"Path">;
|
|
225
|
+
coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
|
|
226
|
+
id: z.ZodOptional<z.ZodString>;
|
|
227
|
+
groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
228
|
+
color: z.ZodOptional<z.ZodString>;
|
|
229
|
+
name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
230
|
+
description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
231
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
232
|
+
imageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
233
|
+
strokeOpacity: z.ZodOptional<z.ZodNumber>;
|
|
234
|
+
strokeWidth: z.ZodOptional<z.ZodNumber>;
|
|
235
|
+
strokeStyle: z.ZodOptional<z.ZodEnum<["solid", "dashed", "dotted"]>>;
|
|
236
|
+
distanceMarker: z.ZodOptional<z.ZodBoolean>;
|
|
237
|
+
endCaps: z.ZodOptional<z.ZodBoolean>;
|
|
238
|
+
routingMode: z.ZodOptional<z.ZodNullable<z.ZodEnum<["driving", "cycling", "walking", "flying"]>>>;
|
|
239
|
+
}, "id">, "strip", z.ZodTypeAny, {
|
|
240
|
+
type: "Path";
|
|
241
|
+
coordinates: [number, number][][];
|
|
242
|
+
groupId?: string | null | undefined;
|
|
243
|
+
color?: string | undefined;
|
|
244
|
+
name?: string | null | undefined;
|
|
245
|
+
description?: string | null | undefined;
|
|
246
|
+
attributes?: Record<string, unknown> | undefined;
|
|
247
|
+
imageUrl?: string | null | undefined;
|
|
248
|
+
strokeOpacity?: number | undefined;
|
|
249
|
+
strokeWidth?: number | undefined;
|
|
250
|
+
strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
|
|
251
|
+
distanceMarker?: boolean | undefined;
|
|
252
|
+
endCaps?: boolean | undefined;
|
|
253
|
+
routingMode?: "driving" | "cycling" | "walking" | "flying" | null | undefined;
|
|
254
|
+
}, {
|
|
255
|
+
type: "Path";
|
|
256
|
+
coordinates: [number, number][][];
|
|
257
|
+
groupId?: string | null | undefined;
|
|
258
|
+
color?: string | undefined;
|
|
259
|
+
name?: string | null | undefined;
|
|
260
|
+
description?: string | null | undefined;
|
|
261
|
+
attributes?: Record<string, unknown> | undefined;
|
|
262
|
+
imageUrl?: string | null | undefined;
|
|
263
|
+
strokeOpacity?: number | undefined;
|
|
264
|
+
strokeWidth?: number | undefined;
|
|
265
|
+
strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
|
|
266
|
+
distanceMarker?: boolean | undefined;
|
|
267
|
+
endCaps?: boolean | undefined;
|
|
268
|
+
routingMode?: "driving" | "cycling" | "walking" | "flying" | null | undefined;
|
|
269
|
+
}>, z.ZodObject<Omit<{
|
|
270
|
+
type: z.ZodLiteral<"Polygon">;
|
|
271
|
+
coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
|
|
272
|
+
id: z.ZodOptional<z.ZodString>;
|
|
273
|
+
groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
274
|
+
color: z.ZodOptional<z.ZodString>;
|
|
275
|
+
name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
276
|
+
description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
277
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
278
|
+
imageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
279
|
+
strokeOpacity: z.ZodOptional<z.ZodNumber>;
|
|
280
|
+
strokeWidth: z.ZodOptional<z.ZodNumber>;
|
|
281
|
+
strokeStyle: z.ZodOptional<z.ZodEnum<["solid", "dashed", "dotted"]>>;
|
|
282
|
+
fillOpacity: z.ZodOptional<z.ZodNumber>;
|
|
283
|
+
areaMarker: z.ZodOptional<z.ZodBoolean>;
|
|
284
|
+
}, "id">, "strip", z.ZodTypeAny, {
|
|
285
|
+
type: "Polygon";
|
|
286
|
+
coordinates: [number, number][][];
|
|
287
|
+
groupId?: string | null | undefined;
|
|
288
|
+
color?: string | undefined;
|
|
289
|
+
name?: string | null | undefined;
|
|
290
|
+
description?: string | null | undefined;
|
|
291
|
+
attributes?: Record<string, unknown> | undefined;
|
|
292
|
+
imageUrl?: string | null | undefined;
|
|
293
|
+
strokeOpacity?: number | undefined;
|
|
294
|
+
strokeWidth?: number | undefined;
|
|
295
|
+
strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
|
|
296
|
+
fillOpacity?: number | undefined;
|
|
297
|
+
areaMarker?: boolean | undefined;
|
|
298
|
+
}, {
|
|
299
|
+
type: "Polygon";
|
|
300
|
+
coordinates: [number, number][][];
|
|
301
|
+
groupId?: string | null | undefined;
|
|
302
|
+
color?: string | undefined;
|
|
303
|
+
name?: string | null | undefined;
|
|
304
|
+
description?: string | null | undefined;
|
|
305
|
+
attributes?: Record<string, unknown> | undefined;
|
|
306
|
+
imageUrl?: string | null | undefined;
|
|
307
|
+
strokeOpacity?: number | undefined;
|
|
308
|
+
strokeWidth?: number | undefined;
|
|
309
|
+
strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
|
|
310
|
+
fillOpacity?: number | undefined;
|
|
311
|
+
areaMarker?: boolean | undefined;
|
|
312
|
+
}>, z.ZodObject<Omit<{
|
|
313
|
+
type: z.ZodLiteral<"Circle">;
|
|
314
|
+
coordinates: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
315
|
+
id: z.ZodOptional<z.ZodString>;
|
|
316
|
+
groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
317
|
+
color: z.ZodOptional<z.ZodString>;
|
|
318
|
+
name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
319
|
+
description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
320
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
321
|
+
imageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
322
|
+
strokeOpacity: z.ZodOptional<z.ZodNumber>;
|
|
323
|
+
strokeWidth: z.ZodOptional<z.ZodNumber>;
|
|
324
|
+
strokeStyle: z.ZodOptional<z.ZodEnum<["solid", "dashed", "dotted"]>>;
|
|
325
|
+
fillOpacity: z.ZodOptional<z.ZodNumber>;
|
|
326
|
+
radius: z.ZodNumber;
|
|
327
|
+
radiusDisplayAngle: z.ZodOptional<z.ZodNumber>;
|
|
328
|
+
radiusDisplayUnit: z.ZodOptional<z.ZodNullable<z.ZodEnum<["meter", "kilometer", "foot", "mile"]>>>;
|
|
329
|
+
radiusMarker: z.ZodOptional<z.ZodBoolean>;
|
|
330
|
+
}, "id">, "strip", z.ZodTypeAny, {
|
|
331
|
+
type: "Circle";
|
|
332
|
+
coordinates: [number, number];
|
|
333
|
+
radius: number;
|
|
334
|
+
groupId?: string | null | undefined;
|
|
335
|
+
color?: string | undefined;
|
|
336
|
+
name?: string | null | undefined;
|
|
337
|
+
description?: string | null | undefined;
|
|
338
|
+
attributes?: Record<string, unknown> | undefined;
|
|
339
|
+
imageUrl?: string | null | undefined;
|
|
340
|
+
strokeOpacity?: number | undefined;
|
|
341
|
+
strokeWidth?: number | undefined;
|
|
342
|
+
strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
|
|
343
|
+
fillOpacity?: number | undefined;
|
|
344
|
+
radiusDisplayAngle?: number | undefined;
|
|
345
|
+
radiusDisplayUnit?: "meter" | "kilometer" | "foot" | "mile" | null | undefined;
|
|
346
|
+
radiusMarker?: boolean | undefined;
|
|
347
|
+
}, {
|
|
348
|
+
type: "Circle";
|
|
349
|
+
coordinates: [number, number];
|
|
350
|
+
radius: number;
|
|
351
|
+
groupId?: string | null | undefined;
|
|
352
|
+
color?: string | undefined;
|
|
353
|
+
name?: string | null | undefined;
|
|
354
|
+
description?: string | null | undefined;
|
|
355
|
+
attributes?: Record<string, unknown> | undefined;
|
|
356
|
+
imageUrl?: string | null | undefined;
|
|
357
|
+
strokeOpacity?: number | undefined;
|
|
358
|
+
strokeWidth?: number | undefined;
|
|
359
|
+
strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
|
|
360
|
+
fillOpacity?: number | undefined;
|
|
361
|
+
radiusDisplayAngle?: number | undefined;
|
|
362
|
+
radiusDisplayUnit?: "meter" | "kilometer" | "foot" | "mile" | null | undefined;
|
|
363
|
+
radiusMarker?: boolean | undefined;
|
|
364
|
+
}>, z.ZodObject<Omit<{
|
|
365
|
+
type: z.ZodLiteral<"Marker">;
|
|
366
|
+
coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
|
|
367
|
+
id: z.ZodOptional<z.ZodString>;
|
|
368
|
+
groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
369
|
+
color: z.ZodOptional<z.ZodString>;
|
|
370
|
+
name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
371
|
+
description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
372
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
373
|
+
opacity: z.ZodOptional<z.ZodNumber>;
|
|
374
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
375
|
+
zoom: z.ZodOptional<z.ZodNumber>;
|
|
376
|
+
}, "id">, "strip", z.ZodTypeAny, {
|
|
377
|
+
type: "Marker";
|
|
378
|
+
coordinates: [number, number][][];
|
|
379
|
+
groupId?: string | null | undefined;
|
|
380
|
+
color?: string | undefined;
|
|
381
|
+
name?: string | null | undefined;
|
|
382
|
+
description?: string | null | undefined;
|
|
383
|
+
attributes?: Record<string, unknown> | undefined;
|
|
384
|
+
opacity?: number | undefined;
|
|
385
|
+
size?: number | undefined;
|
|
386
|
+
zoom?: number | undefined;
|
|
387
|
+
}, {
|
|
388
|
+
type: "Marker";
|
|
389
|
+
coordinates: [number, number][][];
|
|
390
|
+
groupId?: string | null | undefined;
|
|
391
|
+
color?: string | undefined;
|
|
392
|
+
name?: string | null | undefined;
|
|
393
|
+
description?: string | null | undefined;
|
|
394
|
+
attributes?: Record<string, unknown> | undefined;
|
|
395
|
+
opacity?: number | undefined;
|
|
396
|
+
size?: number | undefined;
|
|
397
|
+
zoom?: number | undefined;
|
|
398
|
+
}>, z.ZodObject<Omit<{
|
|
399
|
+
type: z.ZodLiteral<"Highlighter">;
|
|
400
|
+
coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
|
|
401
|
+
id: z.ZodOptional<z.ZodString>;
|
|
402
|
+
groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
403
|
+
color: z.ZodOptional<z.ZodString>;
|
|
404
|
+
name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
405
|
+
description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
406
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
407
|
+
opacity: z.ZodOptional<z.ZodNumber>;
|
|
408
|
+
}, "id">, "strip", z.ZodTypeAny, {
|
|
409
|
+
type: "Highlighter";
|
|
410
|
+
coordinates: [number, number][][];
|
|
411
|
+
groupId?: string | null | undefined;
|
|
412
|
+
color?: string | undefined;
|
|
413
|
+
name?: string | null | undefined;
|
|
414
|
+
description?: string | null | undefined;
|
|
415
|
+
attributes?: Record<string, unknown> | undefined;
|
|
416
|
+
opacity?: number | undefined;
|
|
417
|
+
}, {
|
|
418
|
+
type: "Highlighter";
|
|
419
|
+
coordinates: [number, number][][];
|
|
420
|
+
groupId?: string | null | undefined;
|
|
421
|
+
color?: string | undefined;
|
|
422
|
+
name?: string | null | undefined;
|
|
423
|
+
description?: string | null | undefined;
|
|
424
|
+
attributes?: Record<string, unknown> | undefined;
|
|
425
|
+
opacity?: number | undefined;
|
|
426
|
+
}>, z.ZodObject<Omit<{
|
|
427
|
+
type: z.ZodLiteral<"Image">;
|
|
428
|
+
coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
|
|
429
|
+
id: z.ZodOptional<z.ZodString>;
|
|
430
|
+
groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
431
|
+
name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
432
|
+
description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
433
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
434
|
+
imageUrl: z.ZodString;
|
|
435
|
+
opacity: z.ZodOptional<z.ZodNumber>;
|
|
436
|
+
}, "id">, "strip", z.ZodTypeAny, {
|
|
437
|
+
type: "Image";
|
|
438
|
+
coordinates: [number, number][][];
|
|
439
|
+
imageUrl: string;
|
|
440
|
+
groupId?: string | null | undefined;
|
|
441
|
+
name?: string | null | undefined;
|
|
442
|
+
description?: string | null | undefined;
|
|
443
|
+
attributes?: Record<string, unknown> | undefined;
|
|
444
|
+
opacity?: number | undefined;
|
|
445
|
+
}, {
|
|
446
|
+
type: "Image";
|
|
447
|
+
coordinates: [number, number][][];
|
|
448
|
+
imageUrl: string;
|
|
449
|
+
groupId?: string | null | undefined;
|
|
450
|
+
name?: string | null | undefined;
|
|
451
|
+
description?: string | null | undefined;
|
|
452
|
+
attributes?: Record<string, unknown> | undefined;
|
|
453
|
+
opacity?: number | undefined;
|
|
454
|
+
}>, z.ZodObject<Omit<Omit<{
|
|
455
|
+
type: z.ZodLiteral<"Text">;
|
|
456
|
+
coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
|
|
457
|
+
id: z.ZodOptional<z.ZodString>;
|
|
458
|
+
groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
459
|
+
color: z.ZodOptional<z.ZodString>;
|
|
460
|
+
name: z.ZodOptional<z.ZodString>;
|
|
461
|
+
description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
462
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
463
|
+
zoom: z.ZodOptional<z.ZodNumber>;
|
|
464
|
+
position: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
|
|
465
|
+
rotation: z.ZodOptional<z.ZodNumber>;
|
|
466
|
+
scale: z.ZodOptional<z.ZodNumber>;
|
|
467
|
+
text: z.ZodString;
|
|
468
|
+
align: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
|
|
469
|
+
style: z.ZodOptional<z.ZodEnum<["italic", "light", "regular", "caps"]>>;
|
|
470
|
+
}, "id">, "coordinates" | "name">, "strip", z.ZodTypeAny, {
|
|
471
|
+
type: "Text";
|
|
472
|
+
text: string;
|
|
473
|
+
groupId?: string | null | undefined;
|
|
474
|
+
color?: string | undefined;
|
|
475
|
+
description?: string | null | undefined;
|
|
476
|
+
attributes?: Record<string, unknown> | undefined;
|
|
477
|
+
zoom?: number | undefined;
|
|
478
|
+
position?: [number, number] | undefined;
|
|
479
|
+
rotation?: number | undefined;
|
|
480
|
+
scale?: number | undefined;
|
|
481
|
+
align?: "left" | "center" | "right" | undefined;
|
|
482
|
+
style?: "italic" | "light" | "regular" | "caps" | undefined;
|
|
483
|
+
}, {
|
|
484
|
+
type: "Text";
|
|
485
|
+
text: string;
|
|
486
|
+
groupId?: string | null | undefined;
|
|
487
|
+
color?: string | undefined;
|
|
488
|
+
description?: string | null | undefined;
|
|
489
|
+
attributes?: Record<string, unknown> | undefined;
|
|
490
|
+
zoom?: number | undefined;
|
|
491
|
+
position?: [number, number] | undefined;
|
|
492
|
+
rotation?: number | undefined;
|
|
493
|
+
scale?: number | undefined;
|
|
494
|
+
align?: "left" | "center" | "right" | undefined;
|
|
495
|
+
style?: "italic" | "light" | "regular" | "caps" | undefined;
|
|
496
|
+
}>, z.ZodObject<Omit<Omit<{
|
|
497
|
+
type: z.ZodLiteral<"Note">;
|
|
498
|
+
coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
|
|
499
|
+
id: z.ZodOptional<z.ZodString>;
|
|
500
|
+
groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
501
|
+
color: z.ZodOptional<z.ZodString>;
|
|
502
|
+
name: z.ZodOptional<z.ZodString>;
|
|
503
|
+
description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
504
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
505
|
+
zoom: z.ZodOptional<z.ZodNumber>;
|
|
506
|
+
position: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
|
|
507
|
+
rotation: z.ZodOptional<z.ZodNumber>;
|
|
508
|
+
scale: z.ZodOptional<z.ZodNumber>;
|
|
509
|
+
text: z.ZodString;
|
|
510
|
+
align: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
|
|
511
|
+
style: z.ZodOptional<z.ZodEnum<["italic", "light", "regular", "caps"]>>;
|
|
512
|
+
widthScale: z.ZodOptional<z.ZodNumber>;
|
|
513
|
+
}, "id">, "coordinates" | "name">, "strip", z.ZodTypeAny, {
|
|
514
|
+
type: "Note";
|
|
515
|
+
text: string;
|
|
516
|
+
groupId?: string | null | undefined;
|
|
517
|
+
color?: string | undefined;
|
|
518
|
+
description?: string | null | undefined;
|
|
519
|
+
attributes?: Record<string, unknown> | undefined;
|
|
520
|
+
zoom?: number | undefined;
|
|
521
|
+
position?: [number, number] | undefined;
|
|
522
|
+
rotation?: number | undefined;
|
|
523
|
+
scale?: number | undefined;
|
|
524
|
+
align?: "left" | "center" | "right" | undefined;
|
|
525
|
+
style?: "italic" | "light" | "regular" | "caps" | undefined;
|
|
526
|
+
widthScale?: number | undefined;
|
|
527
|
+
}, {
|
|
528
|
+
type: "Note";
|
|
529
|
+
text: string;
|
|
530
|
+
groupId?: string | null | undefined;
|
|
531
|
+
color?: string | undefined;
|
|
532
|
+
description?: string | null | undefined;
|
|
533
|
+
attributes?: Record<string, unknown> | undefined;
|
|
534
|
+
zoom?: number | undefined;
|
|
535
|
+
position?: [number, number] | undefined;
|
|
536
|
+
rotation?: number | undefined;
|
|
537
|
+
scale?: number | undefined;
|
|
538
|
+
align?: "left" | "center" | "right" | undefined;
|
|
539
|
+
style?: "italic" | "light" | "regular" | "caps" | undefined;
|
|
540
|
+
widthScale?: number | undefined;
|
|
541
|
+
}>]>;
|
|
542
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
543
|
+
params: {
|
|
544
|
+
type: "Place";
|
|
545
|
+
coordinates: [number, number];
|
|
546
|
+
symbol?: string | undefined;
|
|
547
|
+
groupId?: string | null | undefined;
|
|
548
|
+
color?: string | undefined;
|
|
549
|
+
name?: string | null | undefined;
|
|
550
|
+
description?: string | null | undefined;
|
|
551
|
+
attributes?: Record<string, unknown> | undefined;
|
|
552
|
+
imageUrl?: string | null | undefined;
|
|
553
|
+
frame?: "frame-circle" | "frame-square" | null | undefined;
|
|
554
|
+
hideLabel?: boolean | undefined;
|
|
555
|
+
} | {
|
|
556
|
+
type: "Path";
|
|
557
|
+
coordinates: [number, number][][];
|
|
558
|
+
groupId?: string | null | undefined;
|
|
559
|
+
color?: string | undefined;
|
|
560
|
+
name?: string | null | undefined;
|
|
561
|
+
description?: string | null | undefined;
|
|
562
|
+
attributes?: Record<string, unknown> | undefined;
|
|
563
|
+
imageUrl?: string | null | undefined;
|
|
564
|
+
strokeOpacity?: number | undefined;
|
|
565
|
+
strokeWidth?: number | undefined;
|
|
566
|
+
strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
|
|
567
|
+
distanceMarker?: boolean | undefined;
|
|
568
|
+
endCaps?: boolean | undefined;
|
|
569
|
+
routingMode?: "driving" | "cycling" | "walking" | "flying" | null | undefined;
|
|
570
|
+
} | {
|
|
571
|
+
type: "Polygon";
|
|
572
|
+
coordinates: [number, number][][];
|
|
573
|
+
groupId?: string | null | undefined;
|
|
574
|
+
color?: string | undefined;
|
|
575
|
+
name?: string | null | undefined;
|
|
576
|
+
description?: string | null | undefined;
|
|
577
|
+
attributes?: Record<string, unknown> | undefined;
|
|
578
|
+
imageUrl?: string | null | undefined;
|
|
579
|
+
strokeOpacity?: number | undefined;
|
|
580
|
+
strokeWidth?: number | undefined;
|
|
581
|
+
strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
|
|
582
|
+
fillOpacity?: number | undefined;
|
|
583
|
+
areaMarker?: boolean | undefined;
|
|
584
|
+
} | {
|
|
585
|
+
type: "Circle";
|
|
586
|
+
coordinates: [number, number];
|
|
587
|
+
radius: number;
|
|
588
|
+
groupId?: string | null | undefined;
|
|
589
|
+
color?: string | undefined;
|
|
590
|
+
name?: string | null | undefined;
|
|
591
|
+
description?: string | null | undefined;
|
|
592
|
+
attributes?: Record<string, unknown> | undefined;
|
|
593
|
+
imageUrl?: string | null | undefined;
|
|
594
|
+
strokeOpacity?: number | undefined;
|
|
595
|
+
strokeWidth?: number | undefined;
|
|
596
|
+
strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
|
|
597
|
+
fillOpacity?: number | undefined;
|
|
598
|
+
radiusDisplayAngle?: number | undefined;
|
|
599
|
+
radiusDisplayUnit?: "meter" | "kilometer" | "foot" | "mile" | null | undefined;
|
|
600
|
+
radiusMarker?: boolean | undefined;
|
|
601
|
+
} | {
|
|
602
|
+
type: "Marker";
|
|
603
|
+
coordinates: [number, number][][];
|
|
604
|
+
groupId?: string | null | undefined;
|
|
605
|
+
color?: string | undefined;
|
|
606
|
+
name?: string | null | undefined;
|
|
607
|
+
description?: string | null | undefined;
|
|
608
|
+
attributes?: Record<string, unknown> | undefined;
|
|
609
|
+
opacity?: number | undefined;
|
|
610
|
+
size?: number | undefined;
|
|
611
|
+
zoom?: number | undefined;
|
|
612
|
+
} | {
|
|
613
|
+
type: "Highlighter";
|
|
614
|
+
coordinates: [number, number][][];
|
|
615
|
+
groupId?: string | null | undefined;
|
|
616
|
+
color?: string | undefined;
|
|
617
|
+
name?: string | null | undefined;
|
|
618
|
+
description?: string | null | undefined;
|
|
619
|
+
attributes?: Record<string, unknown> | undefined;
|
|
620
|
+
opacity?: number | undefined;
|
|
621
|
+
} | {
|
|
622
|
+
type: "Text";
|
|
623
|
+
text: string;
|
|
624
|
+
groupId?: string | null | undefined;
|
|
625
|
+
color?: string | undefined;
|
|
626
|
+
description?: string | null | undefined;
|
|
627
|
+
attributes?: Record<string, unknown> | undefined;
|
|
628
|
+
zoom?: number | undefined;
|
|
629
|
+
position?: [number, number] | undefined;
|
|
630
|
+
rotation?: number | undefined;
|
|
631
|
+
scale?: number | undefined;
|
|
632
|
+
align?: "left" | "center" | "right" | undefined;
|
|
633
|
+
style?: "italic" | "light" | "regular" | "caps" | undefined;
|
|
634
|
+
} | {
|
|
635
|
+
type: "Note";
|
|
636
|
+
text: string;
|
|
637
|
+
groupId?: string | null | undefined;
|
|
638
|
+
color?: string | undefined;
|
|
639
|
+
description?: string | null | undefined;
|
|
640
|
+
attributes?: Record<string, unknown> | undefined;
|
|
641
|
+
zoom?: number | undefined;
|
|
642
|
+
position?: [number, number] | undefined;
|
|
643
|
+
rotation?: number | undefined;
|
|
644
|
+
scale?: number | undefined;
|
|
645
|
+
align?: "left" | "center" | "right" | undefined;
|
|
646
|
+
style?: "italic" | "light" | "regular" | "caps" | undefined;
|
|
647
|
+
widthScale?: number | undefined;
|
|
648
|
+
} | {
|
|
649
|
+
type: "Image";
|
|
650
|
+
coordinates: [number, number][][];
|
|
651
|
+
imageUrl: string;
|
|
652
|
+
groupId?: string | null | undefined;
|
|
653
|
+
name?: string | null | undefined;
|
|
654
|
+
description?: string | null | undefined;
|
|
655
|
+
attributes?: Record<string, unknown> | undefined;
|
|
656
|
+
opacity?: number | undefined;
|
|
657
|
+
};
|
|
658
|
+
type: "createElement";
|
|
659
|
+
}, {
|
|
660
|
+
params: {
|
|
661
|
+
type: "Place";
|
|
662
|
+
coordinates: [number, number];
|
|
663
|
+
symbol?: string | undefined;
|
|
664
|
+
groupId?: string | null | undefined;
|
|
665
|
+
color?: string | undefined;
|
|
666
|
+
name?: string | null | undefined;
|
|
667
|
+
description?: string | null | undefined;
|
|
668
|
+
attributes?: Record<string, unknown> | undefined;
|
|
669
|
+
imageUrl?: string | null | undefined;
|
|
670
|
+
frame?: "frame-circle" | "frame-square" | null | undefined;
|
|
671
|
+
hideLabel?: boolean | undefined;
|
|
672
|
+
} | {
|
|
673
|
+
type: "Path";
|
|
674
|
+
coordinates: [number, number][][];
|
|
675
|
+
groupId?: string | null | undefined;
|
|
676
|
+
color?: string | undefined;
|
|
677
|
+
name?: string | null | undefined;
|
|
678
|
+
description?: string | null | undefined;
|
|
679
|
+
attributes?: Record<string, unknown> | undefined;
|
|
680
|
+
imageUrl?: string | null | undefined;
|
|
681
|
+
strokeOpacity?: number | undefined;
|
|
682
|
+
strokeWidth?: number | undefined;
|
|
683
|
+
strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
|
|
684
|
+
distanceMarker?: boolean | undefined;
|
|
685
|
+
endCaps?: boolean | undefined;
|
|
686
|
+
routingMode?: "driving" | "cycling" | "walking" | "flying" | null | undefined;
|
|
687
|
+
} | {
|
|
688
|
+
type: "Polygon";
|
|
689
|
+
coordinates: [number, number][][];
|
|
690
|
+
groupId?: string | null | undefined;
|
|
691
|
+
color?: string | undefined;
|
|
692
|
+
name?: string | null | undefined;
|
|
693
|
+
description?: string | null | undefined;
|
|
694
|
+
attributes?: Record<string, unknown> | undefined;
|
|
695
|
+
imageUrl?: string | null | undefined;
|
|
696
|
+
strokeOpacity?: number | undefined;
|
|
697
|
+
strokeWidth?: number | undefined;
|
|
698
|
+
strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
|
|
699
|
+
fillOpacity?: number | undefined;
|
|
700
|
+
areaMarker?: boolean | undefined;
|
|
701
|
+
} | {
|
|
702
|
+
type: "Circle";
|
|
703
|
+
coordinates: [number, number];
|
|
704
|
+
radius: number;
|
|
705
|
+
groupId?: string | null | undefined;
|
|
706
|
+
color?: string | undefined;
|
|
707
|
+
name?: string | null | undefined;
|
|
708
|
+
description?: string | null | undefined;
|
|
709
|
+
attributes?: Record<string, unknown> | undefined;
|
|
710
|
+
imageUrl?: string | null | undefined;
|
|
711
|
+
strokeOpacity?: number | undefined;
|
|
712
|
+
strokeWidth?: number | undefined;
|
|
713
|
+
strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
|
|
714
|
+
fillOpacity?: number | undefined;
|
|
715
|
+
radiusDisplayAngle?: number | undefined;
|
|
716
|
+
radiusDisplayUnit?: "meter" | "kilometer" | "foot" | "mile" | null | undefined;
|
|
717
|
+
radiusMarker?: boolean | undefined;
|
|
718
|
+
} | {
|
|
719
|
+
type: "Marker";
|
|
720
|
+
coordinates: [number, number][][];
|
|
721
|
+
groupId?: string | null | undefined;
|
|
722
|
+
color?: string | undefined;
|
|
723
|
+
name?: string | null | undefined;
|
|
724
|
+
description?: string | null | undefined;
|
|
725
|
+
attributes?: Record<string, unknown> | undefined;
|
|
726
|
+
opacity?: number | undefined;
|
|
727
|
+
size?: number | undefined;
|
|
728
|
+
zoom?: number | undefined;
|
|
729
|
+
} | {
|
|
730
|
+
type: "Highlighter";
|
|
731
|
+
coordinates: [number, number][][];
|
|
732
|
+
groupId?: string | null | undefined;
|
|
733
|
+
color?: string | undefined;
|
|
734
|
+
name?: string | null | undefined;
|
|
735
|
+
description?: string | null | undefined;
|
|
736
|
+
attributes?: Record<string, unknown> | undefined;
|
|
737
|
+
opacity?: number | undefined;
|
|
738
|
+
} | {
|
|
739
|
+
type: "Text";
|
|
740
|
+
text: string;
|
|
741
|
+
groupId?: string | null | undefined;
|
|
742
|
+
color?: string | undefined;
|
|
743
|
+
description?: string | null | undefined;
|
|
744
|
+
attributes?: Record<string, unknown> | undefined;
|
|
745
|
+
zoom?: number | undefined;
|
|
746
|
+
position?: [number, number] | undefined;
|
|
747
|
+
rotation?: number | undefined;
|
|
748
|
+
scale?: number | undefined;
|
|
749
|
+
align?: "left" | "center" | "right" | undefined;
|
|
750
|
+
style?: "italic" | "light" | "regular" | "caps" | undefined;
|
|
751
|
+
} | {
|
|
752
|
+
type: "Note";
|
|
753
|
+
text: string;
|
|
754
|
+
groupId?: string | null | undefined;
|
|
755
|
+
color?: string | undefined;
|
|
756
|
+
description?: string | null | undefined;
|
|
757
|
+
attributes?: Record<string, unknown> | undefined;
|
|
758
|
+
zoom?: number | undefined;
|
|
759
|
+
position?: [number, number] | undefined;
|
|
760
|
+
rotation?: number | undefined;
|
|
761
|
+
scale?: number | undefined;
|
|
762
|
+
align?: "left" | "center" | "right" | undefined;
|
|
763
|
+
style?: "italic" | "light" | "regular" | "caps" | undefined;
|
|
764
|
+
widthScale?: number | undefined;
|
|
765
|
+
} | {
|
|
766
|
+
type: "Image";
|
|
767
|
+
coordinates: [number, number][][];
|
|
768
|
+
imageUrl: string;
|
|
769
|
+
groupId?: string | null | undefined;
|
|
770
|
+
name?: string | null | undefined;
|
|
771
|
+
description?: string | null | undefined;
|
|
772
|
+
attributes?: Record<string, unknown> | undefined;
|
|
773
|
+
opacity?: number | undefined;
|
|
774
|
+
};
|
|
775
|
+
type: "createElement";
|
|
776
|
+
}>;
|
|
777
|
+
declare const UpdateElementMessage: z.ZodObject<{
|
|
778
|
+
type: z.ZodLiteral<"updateElement">;
|
|
779
|
+
params: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
780
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
781
|
+
type: z.ZodLiteral<"Place">;
|
|
782
|
+
coordinates: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
|
|
783
|
+
id: z.ZodString;
|
|
784
|
+
groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
785
|
+
color: z.ZodOptional<z.ZodString>;
|
|
786
|
+
name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
787
|
+
description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
788
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
789
|
+
imageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
790
|
+
frame: z.ZodOptional<z.ZodNullable<z.ZodEnum<["frame-circle", "frame-square"]>>>;
|
|
791
|
+
hideLabel: z.ZodOptional<z.ZodBoolean>;
|
|
792
|
+
}, "strip", z.ZodTypeAny, {
|
|
793
|
+
type: "Place";
|
|
794
|
+
id: string;
|
|
795
|
+
symbol?: string | undefined;
|
|
796
|
+
coordinates?: [number, number] | undefined;
|
|
797
|
+
groupId?: string | null | undefined;
|
|
798
|
+
color?: string | undefined;
|
|
799
|
+
name?: string | null | undefined;
|
|
800
|
+
description?: string | null | undefined;
|
|
801
|
+
attributes?: Record<string, unknown> | undefined;
|
|
802
|
+
imageUrl?: string | null | undefined;
|
|
803
|
+
frame?: "frame-circle" | "frame-square" | null | undefined;
|
|
804
|
+
hideLabel?: boolean | undefined;
|
|
805
|
+
}, {
|
|
806
|
+
type: "Place";
|
|
807
|
+
id: string;
|
|
808
|
+
symbol?: string | undefined;
|
|
809
|
+
coordinates?: [number, number] | undefined;
|
|
810
|
+
groupId?: string | null | undefined;
|
|
811
|
+
color?: string | undefined;
|
|
812
|
+
name?: string | null | undefined;
|
|
813
|
+
description?: string | null | undefined;
|
|
814
|
+
attributes?: Record<string, unknown> | undefined;
|
|
815
|
+
imageUrl?: string | null | undefined;
|
|
816
|
+
frame?: "frame-circle" | "frame-square" | null | undefined;
|
|
817
|
+
hideLabel?: boolean | undefined;
|
|
818
|
+
}>, z.ZodObject<{
|
|
819
|
+
type: z.ZodLiteral<"Path">;
|
|
820
|
+
coordinates: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">>;
|
|
821
|
+
id: z.ZodString;
|
|
822
|
+
groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
823
|
+
color: z.ZodOptional<z.ZodString>;
|
|
824
|
+
name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
825
|
+
description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
826
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
827
|
+
imageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
828
|
+
strokeOpacity: z.ZodOptional<z.ZodNumber>;
|
|
829
|
+
strokeWidth: z.ZodOptional<z.ZodNumber>;
|
|
830
|
+
strokeStyle: z.ZodOptional<z.ZodEnum<["solid", "dashed", "dotted"]>>;
|
|
831
|
+
distanceMarker: z.ZodOptional<z.ZodBoolean>;
|
|
832
|
+
endCaps: z.ZodOptional<z.ZodBoolean>;
|
|
833
|
+
routingMode: z.ZodOptional<z.ZodNullable<z.ZodEnum<["driving", "cycling", "walking", "flying"]>>>;
|
|
834
|
+
}, "strip", z.ZodTypeAny, {
|
|
835
|
+
type: "Path";
|
|
836
|
+
id: string;
|
|
837
|
+
coordinates?: [number, number][][] | undefined;
|
|
838
|
+
groupId?: string | null | undefined;
|
|
839
|
+
color?: string | undefined;
|
|
840
|
+
name?: string | null | undefined;
|
|
841
|
+
description?: string | null | undefined;
|
|
842
|
+
attributes?: Record<string, unknown> | undefined;
|
|
843
|
+
imageUrl?: string | null | undefined;
|
|
844
|
+
strokeOpacity?: number | undefined;
|
|
845
|
+
strokeWidth?: number | undefined;
|
|
846
|
+
strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
|
|
847
|
+
distanceMarker?: boolean | undefined;
|
|
848
|
+
endCaps?: boolean | undefined;
|
|
849
|
+
routingMode?: "driving" | "cycling" | "walking" | "flying" | null | undefined;
|
|
850
|
+
}, {
|
|
851
|
+
type: "Path";
|
|
852
|
+
id: string;
|
|
853
|
+
coordinates?: [number, number][][] | undefined;
|
|
854
|
+
groupId?: string | null | undefined;
|
|
855
|
+
color?: string | undefined;
|
|
856
|
+
name?: string | null | undefined;
|
|
857
|
+
description?: string | null | undefined;
|
|
858
|
+
attributes?: Record<string, unknown> | undefined;
|
|
859
|
+
imageUrl?: string | null | undefined;
|
|
860
|
+
strokeOpacity?: number | undefined;
|
|
861
|
+
strokeWidth?: number | undefined;
|
|
862
|
+
strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
|
|
863
|
+
distanceMarker?: boolean | undefined;
|
|
864
|
+
endCaps?: boolean | undefined;
|
|
865
|
+
routingMode?: "driving" | "cycling" | "walking" | "flying" | null | undefined;
|
|
866
|
+
}>, z.ZodObject<{
|
|
867
|
+
type: z.ZodLiteral<"Polygon">;
|
|
868
|
+
coordinates: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">>;
|
|
869
|
+
id: z.ZodString;
|
|
870
|
+
groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
871
|
+
color: z.ZodOptional<z.ZodString>;
|
|
872
|
+
name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
873
|
+
description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
874
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
875
|
+
imageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
876
|
+
strokeOpacity: z.ZodOptional<z.ZodNumber>;
|
|
877
|
+
strokeWidth: z.ZodOptional<z.ZodNumber>;
|
|
878
|
+
strokeStyle: z.ZodOptional<z.ZodEnum<["solid", "dashed", "dotted"]>>;
|
|
879
|
+
fillOpacity: z.ZodOptional<z.ZodNumber>;
|
|
880
|
+
areaMarker: z.ZodOptional<z.ZodBoolean>;
|
|
881
|
+
}, "strip", z.ZodTypeAny, {
|
|
882
|
+
type: "Polygon";
|
|
883
|
+
id: string;
|
|
884
|
+
coordinates?: [number, number][][] | undefined;
|
|
885
|
+
groupId?: string | null | undefined;
|
|
886
|
+
color?: string | undefined;
|
|
887
|
+
name?: string | null | undefined;
|
|
888
|
+
description?: string | null | undefined;
|
|
889
|
+
attributes?: Record<string, unknown> | undefined;
|
|
890
|
+
imageUrl?: string | null | undefined;
|
|
891
|
+
strokeOpacity?: number | undefined;
|
|
892
|
+
strokeWidth?: number | undefined;
|
|
893
|
+
strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
|
|
894
|
+
fillOpacity?: number | undefined;
|
|
895
|
+
areaMarker?: boolean | undefined;
|
|
896
|
+
}, {
|
|
897
|
+
type: "Polygon";
|
|
898
|
+
id: string;
|
|
899
|
+
coordinates?: [number, number][][] | undefined;
|
|
900
|
+
groupId?: string | null | undefined;
|
|
901
|
+
color?: string | undefined;
|
|
902
|
+
name?: string | null | undefined;
|
|
903
|
+
description?: string | null | undefined;
|
|
904
|
+
attributes?: Record<string, unknown> | undefined;
|
|
905
|
+
imageUrl?: string | null | undefined;
|
|
906
|
+
strokeOpacity?: number | undefined;
|
|
907
|
+
strokeWidth?: number | undefined;
|
|
908
|
+
strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
|
|
909
|
+
fillOpacity?: number | undefined;
|
|
910
|
+
areaMarker?: boolean | undefined;
|
|
911
|
+
}>, z.ZodObject<{
|
|
912
|
+
type: z.ZodLiteral<"Circle">;
|
|
913
|
+
coordinates: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
|
|
914
|
+
id: z.ZodString;
|
|
915
|
+
groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
916
|
+
color: z.ZodOptional<z.ZodString>;
|
|
917
|
+
name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
918
|
+
description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
919
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
920
|
+
imageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
921
|
+
strokeOpacity: z.ZodOptional<z.ZodNumber>;
|
|
922
|
+
strokeWidth: z.ZodOptional<z.ZodNumber>;
|
|
923
|
+
strokeStyle: z.ZodOptional<z.ZodEnum<["solid", "dashed", "dotted"]>>;
|
|
924
|
+
fillOpacity: z.ZodOptional<z.ZodNumber>;
|
|
925
|
+
radius: z.ZodOptional<z.ZodNumber>;
|
|
926
|
+
radiusDisplayAngle: z.ZodOptional<z.ZodNumber>;
|
|
927
|
+
radiusDisplayUnit: z.ZodOptional<z.ZodNullable<z.ZodEnum<["meter", "kilometer", "foot", "mile"]>>>;
|
|
928
|
+
radiusMarker: z.ZodOptional<z.ZodBoolean>;
|
|
929
|
+
}, "strip", z.ZodTypeAny, {
|
|
930
|
+
type: "Circle";
|
|
931
|
+
id: string;
|
|
932
|
+
coordinates?: [number, number] | undefined;
|
|
933
|
+
groupId?: string | null | undefined;
|
|
934
|
+
color?: string | undefined;
|
|
935
|
+
name?: string | null | undefined;
|
|
936
|
+
description?: string | null | undefined;
|
|
937
|
+
attributes?: Record<string, unknown> | undefined;
|
|
938
|
+
imageUrl?: string | null | undefined;
|
|
939
|
+
strokeOpacity?: number | undefined;
|
|
940
|
+
strokeWidth?: number | undefined;
|
|
941
|
+
strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
|
|
942
|
+
fillOpacity?: number | undefined;
|
|
943
|
+
radius?: number | undefined;
|
|
944
|
+
radiusDisplayAngle?: number | undefined;
|
|
945
|
+
radiusDisplayUnit?: "meter" | "kilometer" | "foot" | "mile" | null | undefined;
|
|
946
|
+
radiusMarker?: boolean | undefined;
|
|
947
|
+
}, {
|
|
948
|
+
type: "Circle";
|
|
949
|
+
id: string;
|
|
950
|
+
coordinates?: [number, number] | undefined;
|
|
951
|
+
groupId?: string | null | undefined;
|
|
952
|
+
color?: string | undefined;
|
|
953
|
+
name?: string | null | undefined;
|
|
954
|
+
description?: string | null | undefined;
|
|
955
|
+
attributes?: Record<string, unknown> | undefined;
|
|
956
|
+
imageUrl?: string | null | undefined;
|
|
957
|
+
strokeOpacity?: number | undefined;
|
|
958
|
+
strokeWidth?: number | undefined;
|
|
959
|
+
strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
|
|
960
|
+
fillOpacity?: number | undefined;
|
|
961
|
+
radius?: number | undefined;
|
|
962
|
+
radiusDisplayAngle?: number | undefined;
|
|
963
|
+
radiusDisplayUnit?: "meter" | "kilometer" | "foot" | "mile" | null | undefined;
|
|
964
|
+
radiusMarker?: boolean | undefined;
|
|
965
|
+
}>, z.ZodObject<{
|
|
966
|
+
type: z.ZodLiteral<"Marker">;
|
|
967
|
+
coordinates: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">>;
|
|
968
|
+
id: z.ZodString;
|
|
969
|
+
groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
970
|
+
color: z.ZodOptional<z.ZodString>;
|
|
971
|
+
name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
972
|
+
description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
973
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
974
|
+
opacity: z.ZodOptional<z.ZodNumber>;
|
|
975
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
976
|
+
zoom: z.ZodOptional<z.ZodNumber>;
|
|
977
|
+
}, "strip", z.ZodTypeAny, {
|
|
978
|
+
type: "Marker";
|
|
979
|
+
id: string;
|
|
980
|
+
coordinates?: [number, number][][] | undefined;
|
|
981
|
+
groupId?: string | null | undefined;
|
|
982
|
+
color?: string | undefined;
|
|
983
|
+
name?: string | null | undefined;
|
|
984
|
+
description?: string | null | undefined;
|
|
985
|
+
attributes?: Record<string, unknown> | undefined;
|
|
986
|
+
opacity?: number | undefined;
|
|
987
|
+
size?: number | undefined;
|
|
988
|
+
zoom?: number | undefined;
|
|
95
989
|
}, {
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
type: "setElementGroupVisibility";
|
|
111
|
-
}>;
|
|
112
|
-
declare const OnElementChangeMessage: z.ZodObject<{
|
|
113
|
-
eventName: z.ZodLiteral<"onElementChange">;
|
|
114
|
-
id: z.ZodString;
|
|
115
|
-
options: z.ZodObject<{
|
|
990
|
+
type: "Marker";
|
|
991
|
+
id: string;
|
|
992
|
+
coordinates?: [number, number][][] | undefined;
|
|
993
|
+
groupId?: string | null | undefined;
|
|
994
|
+
color?: string | undefined;
|
|
995
|
+
name?: string | null | undefined;
|
|
996
|
+
description?: string | null | undefined;
|
|
997
|
+
attributes?: Record<string, unknown> | undefined;
|
|
998
|
+
opacity?: number | undefined;
|
|
999
|
+
size?: number | undefined;
|
|
1000
|
+
zoom?: number | undefined;
|
|
1001
|
+
}>, z.ZodObject<{
|
|
1002
|
+
type: z.ZodLiteral<"Highlighter">;
|
|
1003
|
+
coordinates: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">>;
|
|
116
1004
|
id: z.ZodString;
|
|
1005
|
+
groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1006
|
+
color: z.ZodOptional<z.ZodString>;
|
|
1007
|
+
name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
1008
|
+
description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
1009
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1010
|
+
opacity: z.ZodOptional<z.ZodNumber>;
|
|
117
1011
|
}, "strip", z.ZodTypeAny, {
|
|
1012
|
+
type: "Highlighter";
|
|
118
1013
|
id: string;
|
|
1014
|
+
coordinates?: [number, number][][] | undefined;
|
|
1015
|
+
groupId?: string | null | undefined;
|
|
1016
|
+
color?: string | undefined;
|
|
1017
|
+
name?: string | null | undefined;
|
|
1018
|
+
description?: string | null | undefined;
|
|
1019
|
+
attributes?: Record<string, unknown> | undefined;
|
|
1020
|
+
opacity?: number | undefined;
|
|
119
1021
|
}, {
|
|
1022
|
+
type: "Highlighter";
|
|
120
1023
|
id: string;
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
1024
|
+
coordinates?: [number, number][][] | undefined;
|
|
1025
|
+
groupId?: string | null | undefined;
|
|
1026
|
+
color?: string | undefined;
|
|
1027
|
+
name?: string | null | undefined;
|
|
1028
|
+
description?: string | null | undefined;
|
|
1029
|
+
attributes?: Record<string, unknown> | undefined;
|
|
1030
|
+
opacity?: number | undefined;
|
|
1031
|
+
}>, z.ZodObject<Omit<{
|
|
1032
|
+
type: z.ZodLiteral<"Text">;
|
|
1033
|
+
coordinates: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">>;
|
|
1034
|
+
id: z.ZodString;
|
|
1035
|
+
groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1036
|
+
color: z.ZodOptional<z.ZodString>;
|
|
1037
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1038
|
+
description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
1039
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1040
|
+
zoom: z.ZodOptional<z.ZodNumber>;
|
|
1041
|
+
position: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
|
|
1042
|
+
rotation: z.ZodOptional<z.ZodNumber>;
|
|
1043
|
+
scale: z.ZodOptional<z.ZodNumber>;
|
|
1044
|
+
text: z.ZodOptional<z.ZodString>;
|
|
1045
|
+
align: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
|
|
1046
|
+
style: z.ZodOptional<z.ZodEnum<["italic", "light", "regular", "caps"]>>;
|
|
1047
|
+
}, "coordinates" | "name">, "strip", z.ZodTypeAny, {
|
|
1048
|
+
type: "Text";
|
|
124
1049
|
id: string;
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
1050
|
+
groupId?: string | null | undefined;
|
|
1051
|
+
color?: string | undefined;
|
|
1052
|
+
description?: string | null | undefined;
|
|
1053
|
+
attributes?: Record<string, unknown> | undefined;
|
|
1054
|
+
zoom?: number | undefined;
|
|
1055
|
+
position?: [number, number] | undefined;
|
|
1056
|
+
rotation?: number | undefined;
|
|
1057
|
+
scale?: number | undefined;
|
|
1058
|
+
text?: string | undefined;
|
|
1059
|
+
align?: "left" | "center" | "right" | undefined;
|
|
1060
|
+
style?: "italic" | "light" | "regular" | "caps" | undefined;
|
|
1061
|
+
}, {
|
|
1062
|
+
type: "Text";
|
|
130
1063
|
id: string;
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
1064
|
+
groupId?: string | null | undefined;
|
|
1065
|
+
color?: string | undefined;
|
|
1066
|
+
description?: string | null | undefined;
|
|
1067
|
+
attributes?: Record<string, unknown> | undefined;
|
|
1068
|
+
zoom?: number | undefined;
|
|
1069
|
+
position?: [number, number] | undefined;
|
|
1070
|
+
rotation?: number | undefined;
|
|
1071
|
+
scale?: number | undefined;
|
|
1072
|
+
text?: string | undefined;
|
|
1073
|
+
align?: "left" | "center" | "right" | undefined;
|
|
1074
|
+
style?: "italic" | "light" | "regular" | "caps" | undefined;
|
|
1075
|
+
}>, z.ZodObject<Omit<{
|
|
1076
|
+
type: z.ZodLiteral<"Note">;
|
|
1077
|
+
coordinates: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">>;
|
|
1078
|
+
id: z.ZodString;
|
|
1079
|
+
groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1080
|
+
color: z.ZodOptional<z.ZodString>;
|
|
1081
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1082
|
+
description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
1083
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1084
|
+
zoom: z.ZodOptional<z.ZodNumber>;
|
|
1085
|
+
position: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
|
|
1086
|
+
rotation: z.ZodOptional<z.ZodNumber>;
|
|
1087
|
+
scale: z.ZodOptional<z.ZodNumber>;
|
|
1088
|
+
text: z.ZodOptional<z.ZodString>;
|
|
1089
|
+
align: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
|
|
1090
|
+
style: z.ZodOptional<z.ZodEnum<["italic", "light", "regular", "caps"]>>;
|
|
1091
|
+
widthScale: z.ZodOptional<z.ZodNumber>;
|
|
1092
|
+
}, "coordinates" | "name">, "strip", z.ZodTypeAny, {
|
|
1093
|
+
type: "Note";
|
|
1094
|
+
id: string;
|
|
1095
|
+
groupId?: string | null | undefined;
|
|
1096
|
+
color?: string | undefined;
|
|
1097
|
+
description?: string | null | undefined;
|
|
1098
|
+
attributes?: Record<string, unknown> | undefined;
|
|
1099
|
+
zoom?: number | undefined;
|
|
1100
|
+
position?: [number, number] | undefined;
|
|
1101
|
+
rotation?: number | undefined;
|
|
1102
|
+
scale?: number | undefined;
|
|
1103
|
+
text?: string | undefined;
|
|
1104
|
+
align?: "left" | "center" | "right" | undefined;
|
|
1105
|
+
style?: "italic" | "light" | "regular" | "caps" | undefined;
|
|
1106
|
+
widthScale?: number | undefined;
|
|
1107
|
+
}, {
|
|
1108
|
+
type: "Note";
|
|
1109
|
+
id: string;
|
|
1110
|
+
groupId?: string | null | undefined;
|
|
1111
|
+
color?: string | undefined;
|
|
1112
|
+
description?: string | null | undefined;
|
|
1113
|
+
attributes?: Record<string, unknown> | undefined;
|
|
1114
|
+
zoom?: number | undefined;
|
|
1115
|
+
position?: [number, number] | undefined;
|
|
1116
|
+
rotation?: number | undefined;
|
|
1117
|
+
scale?: number | undefined;
|
|
1118
|
+
text?: string | undefined;
|
|
1119
|
+
align?: "left" | "center" | "right" | undefined;
|
|
1120
|
+
style?: "italic" | "light" | "regular" | "caps" | undefined;
|
|
1121
|
+
widthScale?: number | undefined;
|
|
1122
|
+
}>, z.ZodObject<{
|
|
1123
|
+
type: z.ZodLiteral<"Image">;
|
|
1124
|
+
coordinates: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">>;
|
|
139
1125
|
id: z.ZodString;
|
|
1126
|
+
groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1127
|
+
name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
1128
|
+
description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
1129
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1130
|
+
imageUrl: z.ZodOptional<z.ZodString>;
|
|
1131
|
+
opacity: z.ZodOptional<z.ZodNumber>;
|
|
140
1132
|
}, "strip", z.ZodTypeAny, {
|
|
1133
|
+
type: "Image";
|
|
141
1134
|
id: string;
|
|
1135
|
+
coordinates?: [number, number][][] | undefined;
|
|
1136
|
+
groupId?: string | null | undefined;
|
|
1137
|
+
name?: string | null | undefined;
|
|
1138
|
+
description?: string | null | undefined;
|
|
1139
|
+
attributes?: Record<string, unknown> | undefined;
|
|
1140
|
+
imageUrl?: string | undefined;
|
|
1141
|
+
opacity?: number | undefined;
|
|
142
1142
|
}, {
|
|
1143
|
+
type: "Image";
|
|
143
1144
|
id: string;
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
1145
|
+
coordinates?: [number, number][][] | undefined;
|
|
1146
|
+
groupId?: string | null | undefined;
|
|
1147
|
+
name?: string | null | undefined;
|
|
1148
|
+
description?: string | null | undefined;
|
|
1149
|
+
attributes?: Record<string, unknown> | undefined;
|
|
1150
|
+
imageUrl?: string | undefined;
|
|
1151
|
+
opacity?: number | undefined;
|
|
1152
|
+
}>]>;
|
|
1153
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
1154
|
+
params: {
|
|
1155
|
+
type: "Place";
|
|
1156
|
+
id: string;
|
|
1157
|
+
symbol?: string | undefined;
|
|
1158
|
+
coordinates?: [number, number] | undefined;
|
|
1159
|
+
groupId?: string | null | undefined;
|
|
1160
|
+
color?: string | undefined;
|
|
1161
|
+
name?: string | null | undefined;
|
|
1162
|
+
description?: string | null | undefined;
|
|
1163
|
+
attributes?: Record<string, unknown> | undefined;
|
|
1164
|
+
imageUrl?: string | null | undefined;
|
|
1165
|
+
frame?: "frame-circle" | "frame-square" | null | undefined;
|
|
1166
|
+
hideLabel?: boolean | undefined;
|
|
1167
|
+
} | {
|
|
1168
|
+
type: "Path";
|
|
1169
|
+
id: string;
|
|
1170
|
+
coordinates?: [number, number][][] | undefined;
|
|
1171
|
+
groupId?: string | null | undefined;
|
|
1172
|
+
color?: string | undefined;
|
|
1173
|
+
name?: string | null | undefined;
|
|
1174
|
+
description?: string | null | undefined;
|
|
1175
|
+
attributes?: Record<string, unknown> | undefined;
|
|
1176
|
+
imageUrl?: string | null | undefined;
|
|
1177
|
+
strokeOpacity?: number | undefined;
|
|
1178
|
+
strokeWidth?: number | undefined;
|
|
1179
|
+
strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
|
|
1180
|
+
distanceMarker?: boolean | undefined;
|
|
1181
|
+
endCaps?: boolean | undefined;
|
|
1182
|
+
routingMode?: "driving" | "cycling" | "walking" | "flying" | null | undefined;
|
|
1183
|
+
} | {
|
|
1184
|
+
type: "Polygon";
|
|
1185
|
+
id: string;
|
|
1186
|
+
coordinates?: [number, number][][] | undefined;
|
|
1187
|
+
groupId?: string | null | undefined;
|
|
1188
|
+
color?: string | undefined;
|
|
1189
|
+
name?: string | null | undefined;
|
|
1190
|
+
description?: string | null | undefined;
|
|
1191
|
+
attributes?: Record<string, unknown> | undefined;
|
|
1192
|
+
imageUrl?: string | null | undefined;
|
|
1193
|
+
strokeOpacity?: number | undefined;
|
|
1194
|
+
strokeWidth?: number | undefined;
|
|
1195
|
+
strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
|
|
1196
|
+
fillOpacity?: number | undefined;
|
|
1197
|
+
areaMarker?: boolean | undefined;
|
|
1198
|
+
} | {
|
|
1199
|
+
type: "Circle";
|
|
1200
|
+
id: string;
|
|
1201
|
+
coordinates?: [number, number] | undefined;
|
|
1202
|
+
groupId?: string | null | undefined;
|
|
1203
|
+
color?: string | undefined;
|
|
1204
|
+
name?: string | null | undefined;
|
|
1205
|
+
description?: string | null | undefined;
|
|
1206
|
+
attributes?: Record<string, unknown> | undefined;
|
|
1207
|
+
imageUrl?: string | null | undefined;
|
|
1208
|
+
strokeOpacity?: number | undefined;
|
|
1209
|
+
strokeWidth?: number | undefined;
|
|
1210
|
+
strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
|
|
1211
|
+
fillOpacity?: number | undefined;
|
|
1212
|
+
radius?: number | undefined;
|
|
1213
|
+
radiusDisplayAngle?: number | undefined;
|
|
1214
|
+
radiusDisplayUnit?: "meter" | "kilometer" | "foot" | "mile" | null | undefined;
|
|
1215
|
+
radiusMarker?: boolean | undefined;
|
|
1216
|
+
} | {
|
|
1217
|
+
type: "Marker";
|
|
1218
|
+
id: string;
|
|
1219
|
+
coordinates?: [number, number][][] | undefined;
|
|
1220
|
+
groupId?: string | null | undefined;
|
|
1221
|
+
color?: string | undefined;
|
|
1222
|
+
name?: string | null | undefined;
|
|
1223
|
+
description?: string | null | undefined;
|
|
1224
|
+
attributes?: Record<string, unknown> | undefined;
|
|
1225
|
+
opacity?: number | undefined;
|
|
1226
|
+
size?: number | undefined;
|
|
1227
|
+
zoom?: number | undefined;
|
|
1228
|
+
} | {
|
|
1229
|
+
type: "Highlighter";
|
|
147
1230
|
id: string;
|
|
1231
|
+
coordinates?: [number, number][][] | undefined;
|
|
1232
|
+
groupId?: string | null | undefined;
|
|
1233
|
+
color?: string | undefined;
|
|
1234
|
+
name?: string | null | undefined;
|
|
1235
|
+
description?: string | null | undefined;
|
|
1236
|
+
attributes?: Record<string, unknown> | undefined;
|
|
1237
|
+
opacity?: number | undefined;
|
|
1238
|
+
} | {
|
|
1239
|
+
type: "Text";
|
|
1240
|
+
id: string;
|
|
1241
|
+
groupId?: string | null | undefined;
|
|
1242
|
+
color?: string | undefined;
|
|
1243
|
+
description?: string | null | undefined;
|
|
1244
|
+
attributes?: Record<string, unknown> | undefined;
|
|
1245
|
+
zoom?: number | undefined;
|
|
1246
|
+
position?: [number, number] | undefined;
|
|
1247
|
+
rotation?: number | undefined;
|
|
1248
|
+
scale?: number | undefined;
|
|
1249
|
+
text?: string | undefined;
|
|
1250
|
+
align?: "left" | "center" | "right" | undefined;
|
|
1251
|
+
style?: "italic" | "light" | "regular" | "caps" | undefined;
|
|
1252
|
+
} | {
|
|
1253
|
+
type: "Note";
|
|
1254
|
+
id: string;
|
|
1255
|
+
groupId?: string | null | undefined;
|
|
1256
|
+
color?: string | undefined;
|
|
1257
|
+
description?: string | null | undefined;
|
|
1258
|
+
attributes?: Record<string, unknown> | undefined;
|
|
1259
|
+
zoom?: number | undefined;
|
|
1260
|
+
position?: [number, number] | undefined;
|
|
1261
|
+
rotation?: number | undefined;
|
|
1262
|
+
scale?: number | undefined;
|
|
1263
|
+
text?: string | undefined;
|
|
1264
|
+
align?: "left" | "center" | "right" | undefined;
|
|
1265
|
+
style?: "italic" | "light" | "regular" | "caps" | undefined;
|
|
1266
|
+
widthScale?: number | undefined;
|
|
1267
|
+
} | {
|
|
1268
|
+
type: "Image";
|
|
1269
|
+
id: string;
|
|
1270
|
+
coordinates?: [number, number][][] | undefined;
|
|
1271
|
+
groupId?: string | null | undefined;
|
|
1272
|
+
name?: string | null | undefined;
|
|
1273
|
+
description?: string | null | undefined;
|
|
1274
|
+
attributes?: Record<string, unknown> | undefined;
|
|
1275
|
+
imageUrl?: string | undefined;
|
|
1276
|
+
opacity?: number | undefined;
|
|
148
1277
|
};
|
|
149
|
-
|
|
150
|
-
id: string;
|
|
1278
|
+
type: "updateElement";
|
|
151
1279
|
}, {
|
|
152
|
-
|
|
1280
|
+
params: {
|
|
1281
|
+
type: "Place";
|
|
1282
|
+
id: string;
|
|
1283
|
+
symbol?: string | undefined;
|
|
1284
|
+
coordinates?: [number, number] | undefined;
|
|
1285
|
+
groupId?: string | null | undefined;
|
|
1286
|
+
color?: string | undefined;
|
|
1287
|
+
name?: string | null | undefined;
|
|
1288
|
+
description?: string | null | undefined;
|
|
1289
|
+
attributes?: Record<string, unknown> | undefined;
|
|
1290
|
+
imageUrl?: string | null | undefined;
|
|
1291
|
+
frame?: "frame-circle" | "frame-square" | null | undefined;
|
|
1292
|
+
hideLabel?: boolean | undefined;
|
|
1293
|
+
} | {
|
|
1294
|
+
type: "Path";
|
|
1295
|
+
id: string;
|
|
1296
|
+
coordinates?: [number, number][][] | undefined;
|
|
1297
|
+
groupId?: string | null | undefined;
|
|
1298
|
+
color?: string | undefined;
|
|
1299
|
+
name?: string | null | undefined;
|
|
1300
|
+
description?: string | null | undefined;
|
|
1301
|
+
attributes?: Record<string, unknown> | undefined;
|
|
1302
|
+
imageUrl?: string | null | undefined;
|
|
1303
|
+
strokeOpacity?: number | undefined;
|
|
1304
|
+
strokeWidth?: number | undefined;
|
|
1305
|
+
strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
|
|
1306
|
+
distanceMarker?: boolean | undefined;
|
|
1307
|
+
endCaps?: boolean | undefined;
|
|
1308
|
+
routingMode?: "driving" | "cycling" | "walking" | "flying" | null | undefined;
|
|
1309
|
+
} | {
|
|
1310
|
+
type: "Polygon";
|
|
1311
|
+
id: string;
|
|
1312
|
+
coordinates?: [number, number][][] | undefined;
|
|
1313
|
+
groupId?: string | null | undefined;
|
|
1314
|
+
color?: string | undefined;
|
|
1315
|
+
name?: string | null | undefined;
|
|
1316
|
+
description?: string | null | undefined;
|
|
1317
|
+
attributes?: Record<string, unknown> | undefined;
|
|
1318
|
+
imageUrl?: string | null | undefined;
|
|
1319
|
+
strokeOpacity?: number | undefined;
|
|
1320
|
+
strokeWidth?: number | undefined;
|
|
1321
|
+
strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
|
|
1322
|
+
fillOpacity?: number | undefined;
|
|
1323
|
+
areaMarker?: boolean | undefined;
|
|
1324
|
+
} | {
|
|
1325
|
+
type: "Circle";
|
|
1326
|
+
id: string;
|
|
1327
|
+
coordinates?: [number, number] | undefined;
|
|
1328
|
+
groupId?: string | null | undefined;
|
|
1329
|
+
color?: string | undefined;
|
|
1330
|
+
name?: string | null | undefined;
|
|
1331
|
+
description?: string | null | undefined;
|
|
1332
|
+
attributes?: Record<string, unknown> | undefined;
|
|
1333
|
+
imageUrl?: string | null | undefined;
|
|
1334
|
+
strokeOpacity?: number | undefined;
|
|
1335
|
+
strokeWidth?: number | undefined;
|
|
1336
|
+
strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
|
|
1337
|
+
fillOpacity?: number | undefined;
|
|
1338
|
+
radius?: number | undefined;
|
|
1339
|
+
radiusDisplayAngle?: number | undefined;
|
|
1340
|
+
radiusDisplayUnit?: "meter" | "kilometer" | "foot" | "mile" | null | undefined;
|
|
1341
|
+
radiusMarker?: boolean | undefined;
|
|
1342
|
+
} | {
|
|
1343
|
+
type: "Marker";
|
|
1344
|
+
id: string;
|
|
1345
|
+
coordinates?: [number, number][][] | undefined;
|
|
1346
|
+
groupId?: string | null | undefined;
|
|
1347
|
+
color?: string | undefined;
|
|
1348
|
+
name?: string | null | undefined;
|
|
1349
|
+
description?: string | null | undefined;
|
|
1350
|
+
attributes?: Record<string, unknown> | undefined;
|
|
1351
|
+
opacity?: number | undefined;
|
|
1352
|
+
size?: number | undefined;
|
|
1353
|
+
zoom?: number | undefined;
|
|
1354
|
+
} | {
|
|
1355
|
+
type: "Highlighter";
|
|
1356
|
+
id: string;
|
|
1357
|
+
coordinates?: [number, number][][] | undefined;
|
|
1358
|
+
groupId?: string | null | undefined;
|
|
1359
|
+
color?: string | undefined;
|
|
1360
|
+
name?: string | null | undefined;
|
|
1361
|
+
description?: string | null | undefined;
|
|
1362
|
+
attributes?: Record<string, unknown> | undefined;
|
|
1363
|
+
opacity?: number | undefined;
|
|
1364
|
+
} | {
|
|
1365
|
+
type: "Text";
|
|
1366
|
+
id: string;
|
|
1367
|
+
groupId?: string | null | undefined;
|
|
1368
|
+
color?: string | undefined;
|
|
1369
|
+
description?: string | null | undefined;
|
|
1370
|
+
attributes?: Record<string, unknown> | undefined;
|
|
1371
|
+
zoom?: number | undefined;
|
|
1372
|
+
position?: [number, number] | undefined;
|
|
1373
|
+
rotation?: number | undefined;
|
|
1374
|
+
scale?: number | undefined;
|
|
1375
|
+
text?: string | undefined;
|
|
1376
|
+
align?: "left" | "center" | "right" | undefined;
|
|
1377
|
+
style?: "italic" | "light" | "regular" | "caps" | undefined;
|
|
1378
|
+
} | {
|
|
1379
|
+
type: "Note";
|
|
1380
|
+
id: string;
|
|
1381
|
+
groupId?: string | null | undefined;
|
|
1382
|
+
color?: string | undefined;
|
|
1383
|
+
description?: string | null | undefined;
|
|
1384
|
+
attributes?: Record<string, unknown> | undefined;
|
|
1385
|
+
zoom?: number | undefined;
|
|
1386
|
+
position?: [number, number] | undefined;
|
|
1387
|
+
rotation?: number | undefined;
|
|
1388
|
+
scale?: number | undefined;
|
|
1389
|
+
text?: string | undefined;
|
|
1390
|
+
align?: "left" | "center" | "right" | undefined;
|
|
1391
|
+
style?: "italic" | "light" | "regular" | "caps" | undefined;
|
|
1392
|
+
widthScale?: number | undefined;
|
|
1393
|
+
} | {
|
|
1394
|
+
type: "Image";
|
|
153
1395
|
id: string;
|
|
1396
|
+
coordinates?: [number, number][][] | undefined;
|
|
1397
|
+
groupId?: string | null | undefined;
|
|
1398
|
+
name?: string | null | undefined;
|
|
1399
|
+
description?: string | null | undefined;
|
|
1400
|
+
attributes?: Record<string, unknown> | undefined;
|
|
1401
|
+
imageUrl?: string | undefined;
|
|
1402
|
+
opacity?: number | undefined;
|
|
154
1403
|
};
|
|
155
|
-
|
|
156
|
-
|
|
1404
|
+
type: "updateElement";
|
|
1405
|
+
}>;
|
|
1406
|
+
declare const DeleteElementMessage: z.ZodObject<{
|
|
1407
|
+
type: z.ZodLiteral<"deleteElement">;
|
|
1408
|
+
params: z.ZodString;
|
|
1409
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
1410
|
+
params: string;
|
|
1411
|
+
type: "deleteElement";
|
|
1412
|
+
}, {
|
|
1413
|
+
params: string;
|
|
1414
|
+
type: "deleteElement";
|
|
157
1415
|
}>;
|
|
158
1416
|
type ElementsSchema = {
|
|
159
1417
|
methods: {
|
|
@@ -163,18 +1421,23 @@ type ElementsSchema = {
|
|
|
163
1421
|
getElementGroup: Method<zInfer<typeof GetGroupMessage$1>, ElementGroup | null>;
|
|
164
1422
|
getElementGroups: Method<zInfer<typeof GetGroupsMessage$1>, Array<ElementGroup | null>>;
|
|
165
1423
|
setElementGroupVisibility: Method<zInfer<typeof SetElementGroupVisibilityMessage>, void>;
|
|
1424
|
+
createElement: Method<zInfer<typeof CreateElementMessage>, Element>;
|
|
1425
|
+
updateElement: Method<zInfer<typeof UpdateElementMessage>, Element>;
|
|
1426
|
+
deleteElement: Method<zInfer<typeof DeleteElementMessage>, void>;
|
|
166
1427
|
};
|
|
167
1428
|
listeners: {
|
|
168
1429
|
onElementChange: Listener<zInfer<typeof OnElementChangeMessage.shape.options>, ElementChangeCallbackParams>;
|
|
169
1430
|
onElementGroupChange: Listener<zInfer<typeof OnElementGroupChangeMessage.shape.options>, ElementGroupChangeCallbackParams>;
|
|
1431
|
+
onElementCreate: ListenerNoOptions<ElementChangeCallbackParams>;
|
|
1432
|
+
onElementDelete: Listener<zInfer<typeof OnElementDeleteMessage.shape.options>, void>;
|
|
170
1433
|
};
|
|
171
1434
|
};
|
|
172
1435
|
|
|
173
1436
|
type InteractionsSchema = {
|
|
174
1437
|
methods: {};
|
|
175
1438
|
listeners: {
|
|
176
|
-
onPointerClick:
|
|
177
|
-
onPointerMove:
|
|
1439
|
+
onPointerClick: ListenerNoOptions<MapInteractionEvent>;
|
|
1440
|
+
onPointerMove: ListenerNoOptions<MapInteractionEvent>;
|
|
178
1441
|
};
|
|
179
1442
|
};
|
|
180
1443
|
|
|
@@ -247,14 +1510,14 @@ declare const OnLayerChangeMessage: z.ZodObject<{
|
|
|
247
1510
|
options: {
|
|
248
1511
|
id: string;
|
|
249
1512
|
};
|
|
250
|
-
eventName: "onLayerChange";
|
|
251
1513
|
id: string;
|
|
1514
|
+
eventName: "onLayerChange";
|
|
252
1515
|
}, {
|
|
253
1516
|
options: {
|
|
254
1517
|
id: string;
|
|
255
1518
|
};
|
|
256
|
-
eventName: "onLayerChange";
|
|
257
1519
|
id: string;
|
|
1520
|
+
eventName: "onLayerChange";
|
|
258
1521
|
}>;
|
|
259
1522
|
declare const SetLayerStyleMessage: z.ZodObject<{
|
|
260
1523
|
type: z.ZodLiteral<"setLayerStyle">;
|
|
@@ -408,14 +1671,14 @@ declare const OnLayerGroupChangeMessage: z.ZodObject<{
|
|
|
408
1671
|
options: {
|
|
409
1672
|
id: string;
|
|
410
1673
|
};
|
|
411
|
-
eventName: "onLayerGroupChange";
|
|
412
1674
|
id: string;
|
|
1675
|
+
eventName: "onLayerGroupChange";
|
|
413
1676
|
}, {
|
|
414
1677
|
options: {
|
|
415
1678
|
id: string;
|
|
416
1679
|
};
|
|
417
|
-
eventName: "onLayerGroupChange";
|
|
418
1680
|
id: string;
|
|
1681
|
+
eventName: "onLayerGroupChange";
|
|
419
1682
|
}>;
|
|
420
1683
|
declare const GetLegendItemMessage: z.ZodObject<{
|
|
421
1684
|
type: z.ZodLiteral<"getLegendItem">;
|
|
@@ -506,15 +1769,15 @@ declare const OnLegendItemChangeMessage: z.ZodObject<{
|
|
|
506
1769
|
id: string;
|
|
507
1770
|
layerId: string;
|
|
508
1771
|
};
|
|
509
|
-
eventName: "onLegendItemChange";
|
|
510
1772
|
id: string;
|
|
1773
|
+
eventName: "onLegendItemChange";
|
|
511
1774
|
}, {
|
|
512
1775
|
options: {
|
|
513
1776
|
id: string;
|
|
514
1777
|
layerId: string;
|
|
515
1778
|
};
|
|
516
|
-
eventName: "onLegendItemChange";
|
|
517
1779
|
id: string;
|
|
1780
|
+
eventName: "onLegendItemChange";
|
|
518
1781
|
}>;
|
|
519
1782
|
declare const SetLegendItemVisibilityMessage: z.ZodObject<{
|
|
520
1783
|
type: z.ZodLiteral<"setLegendItemVisibility">;
|
|
@@ -819,7 +2082,7 @@ type SelectionSchema = {
|
|
|
819
2082
|
clearSelection: Method<zInfer<typeof ClearSelectionMessage>, void>;
|
|
820
2083
|
};
|
|
821
2084
|
listeners: {
|
|
822
|
-
onSelectionChange:
|
|
2085
|
+
onSelectionChange: ListenerNoOptions<{
|
|
823
2086
|
selection: Array<EntityNode>;
|
|
824
2087
|
}>;
|
|
825
2088
|
};
|
|
@@ -829,10 +2092,10 @@ declare const SetToolMessage: z.ZodObject<{
|
|
|
829
2092
|
type: z.ZodLiteral<"setTool">;
|
|
830
2093
|
params: z.ZodNullable<z.ZodEnum<["pin", "line", "route", "polygon", "circle", "marker", "highlighter", "text", "note", "link"]>>;
|
|
831
2094
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
832
|
-
params: "link" | "note" | "pin" | "line" | "route" | "polygon" | "circle" | "marker" | "highlighter" |
|
|
2095
|
+
params: "text" | "link" | "note" | "pin" | "line" | "route" | "polygon" | "circle" | "marker" | "highlighter" | null;
|
|
833
2096
|
type: "setTool";
|
|
834
2097
|
}, {
|
|
835
|
-
params: "link" | "note" | "pin" | "line" | "route" | "polygon" | "circle" | "marker" | "highlighter" |
|
|
2098
|
+
params: "text" | "link" | "note" | "pin" | "line" | "route" | "polygon" | "circle" | "marker" | "highlighter" | null;
|
|
836
2099
|
type: "setTool";
|
|
837
2100
|
}>;
|
|
838
2101
|
declare const GetToolMessage: z.ZodObject<{
|
|
@@ -848,8 +2111,8 @@ declare const GetToolMessage: z.ZodObject<{
|
|
|
848
2111
|
declare const SetToolSettingsMessage: z.ZodObject<{
|
|
849
2112
|
type: z.ZodLiteral<"setToolSettings">;
|
|
850
2113
|
params: z.ZodDiscriminatedUnion<"tool", [z.ZodObject<z.objectUtil.extendShape<{
|
|
851
|
-
color: z.ZodOptional<z.ZodString>;
|
|
852
2114
|
symbol: z.ZodOptional<z.ZodString>;
|
|
2115
|
+
color: z.ZodOptional<z.ZodString>;
|
|
853
2116
|
frame: z.ZodOptional<z.ZodNullable<z.ZodEnum<["frame-circle", "frame-square"]>>>;
|
|
854
2117
|
}, {
|
|
855
2118
|
tool: z.ZodLiteral<"pin">;
|
|
@@ -887,12 +2150,12 @@ declare const SetToolSettingsMessage: z.ZodObject<{
|
|
|
887
2150
|
distanceMarker?: boolean | undefined;
|
|
888
2151
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
889
2152
|
color: z.ZodOptional<z.ZodString>;
|
|
890
|
-
routingMode: z.ZodOptional<z.ZodEnum<["driving", "cycling", "walking", "flying"]>>;
|
|
891
2153
|
strokeOpacity: z.ZodOptional<z.ZodNumber>;
|
|
892
2154
|
strokeWidth: z.ZodOptional<z.ZodNumber>;
|
|
893
2155
|
strokeStyle: z.ZodOptional<z.ZodEnum<["solid", "dashed", "dotted"]>>;
|
|
894
2156
|
distanceMarker: z.ZodOptional<z.ZodBoolean>;
|
|
895
2157
|
endCaps: z.ZodOptional<z.ZodBoolean>;
|
|
2158
|
+
routingMode: z.ZodOptional<z.ZodNullable<z.ZodEnum<["driving", "cycling", "walking", "flying"]>>>;
|
|
896
2159
|
}, {
|
|
897
2160
|
tool: z.ZodLiteral<"route">;
|
|
898
2161
|
}>, "strip", z.ZodTypeAny, {
|
|
@@ -902,8 +2165,8 @@ declare const SetToolSettingsMessage: z.ZodObject<{
|
|
|
902
2165
|
strokeWidth?: number | undefined;
|
|
903
2166
|
strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
|
|
904
2167
|
distanceMarker?: boolean | undefined;
|
|
905
|
-
routingMode?: "driving" | "cycling" | "walking" | "flying" | undefined;
|
|
906
2168
|
endCaps?: boolean | undefined;
|
|
2169
|
+
routingMode?: "driving" | "cycling" | "walking" | "flying" | null | undefined;
|
|
907
2170
|
}, {
|
|
908
2171
|
tool: "route";
|
|
909
2172
|
color?: string | undefined;
|
|
@@ -911,14 +2174,14 @@ declare const SetToolSettingsMessage: z.ZodObject<{
|
|
|
911
2174
|
strokeWidth?: number | undefined;
|
|
912
2175
|
strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
|
|
913
2176
|
distanceMarker?: boolean | undefined;
|
|
914
|
-
routingMode?: "driving" | "cycling" | "walking" | "flying" | undefined;
|
|
915
2177
|
endCaps?: boolean | undefined;
|
|
2178
|
+
routingMode?: "driving" | "cycling" | "walking" | "flying" | null | undefined;
|
|
916
2179
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
917
2180
|
color: z.ZodOptional<z.ZodString>;
|
|
918
|
-
fillOpacity: z.ZodOptional<z.ZodNumber>;
|
|
919
2181
|
strokeOpacity: z.ZodOptional<z.ZodNumber>;
|
|
920
2182
|
strokeWidth: z.ZodOptional<z.ZodNumber>;
|
|
921
2183
|
strokeStyle: z.ZodOptional<z.ZodEnum<["solid", "dashed", "dotted"]>>;
|
|
2184
|
+
fillOpacity: z.ZodOptional<z.ZodNumber>;
|
|
922
2185
|
areaMarker: z.ZodOptional<z.ZodBoolean>;
|
|
923
2186
|
}, {
|
|
924
2187
|
tool: z.ZodLiteral<"polygon">;
|
|
@@ -940,10 +2203,10 @@ declare const SetToolSettingsMessage: z.ZodObject<{
|
|
|
940
2203
|
areaMarker?: boolean | undefined;
|
|
941
2204
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
942
2205
|
color: z.ZodOptional<z.ZodString>;
|
|
943
|
-
fillOpacity: z.ZodOptional<z.ZodNumber>;
|
|
944
2206
|
strokeOpacity: z.ZodOptional<z.ZodNumber>;
|
|
945
2207
|
strokeWidth: z.ZodOptional<z.ZodNumber>;
|
|
946
2208
|
strokeStyle: z.ZodOptional<z.ZodEnum<["solid", "dashed", "dotted"]>>;
|
|
2209
|
+
fillOpacity: z.ZodOptional<z.ZodNumber>;
|
|
947
2210
|
radiusMarker: z.ZodOptional<z.ZodBoolean>;
|
|
948
2211
|
}, {
|
|
949
2212
|
tool: z.ZodLiteral<"circle">;
|
|
@@ -1003,14 +2266,14 @@ declare const SetToolSettingsMessage: z.ZodObject<{
|
|
|
1003
2266
|
tool: z.ZodLiteral<"text">;
|
|
1004
2267
|
}>, "strip", z.ZodTypeAny, {
|
|
1005
2268
|
tool: "text";
|
|
1006
|
-
style?: "italic" | "light" | "regular" | "caps" | undefined;
|
|
1007
2269
|
color?: string | undefined;
|
|
1008
|
-
align?: "
|
|
2270
|
+
align?: "left" | "center" | "right" | undefined;
|
|
2271
|
+
style?: "italic" | "light" | "regular" | "caps" | undefined;
|
|
1009
2272
|
}, {
|
|
1010
2273
|
tool: "text";
|
|
1011
|
-
style?: "italic" | "light" | "regular" | "caps" | undefined;
|
|
1012
2274
|
color?: string | undefined;
|
|
1013
|
-
align?: "
|
|
2275
|
+
align?: "left" | "center" | "right" | undefined;
|
|
2276
|
+
style?: "italic" | "light" | "regular" | "caps" | undefined;
|
|
1014
2277
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
1015
2278
|
color: z.ZodOptional<z.ZodString>;
|
|
1016
2279
|
align: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
|
|
@@ -1019,14 +2282,14 @@ declare const SetToolSettingsMessage: z.ZodObject<{
|
|
|
1019
2282
|
tool: z.ZodLiteral<"note">;
|
|
1020
2283
|
}>, "strip", z.ZodTypeAny, {
|
|
1021
2284
|
tool: "note";
|
|
1022
|
-
style?: "italic" | "light" | "regular" | "caps" | undefined;
|
|
1023
2285
|
color?: string | undefined;
|
|
1024
|
-
align?: "
|
|
2286
|
+
align?: "left" | "center" | "right" | undefined;
|
|
2287
|
+
style?: "italic" | "light" | "regular" | "caps" | undefined;
|
|
1025
2288
|
}, {
|
|
1026
2289
|
tool: "note";
|
|
1027
|
-
style?: "italic" | "light" | "regular" | "caps" | undefined;
|
|
1028
2290
|
color?: string | undefined;
|
|
1029
|
-
align?: "
|
|
2291
|
+
align?: "left" | "center" | "right" | undefined;
|
|
2292
|
+
style?: "italic" | "light" | "regular" | "caps" | undefined;
|
|
1030
2293
|
}>]>;
|
|
1031
2294
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
1032
2295
|
params: {
|
|
@@ -1048,8 +2311,8 @@ declare const SetToolSettingsMessage: z.ZodObject<{
|
|
|
1048
2311
|
strokeWidth?: number | undefined;
|
|
1049
2312
|
strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
|
|
1050
2313
|
distanceMarker?: boolean | undefined;
|
|
1051
|
-
routingMode?: "driving" | "cycling" | "walking" | "flying" | undefined;
|
|
1052
2314
|
endCaps?: boolean | undefined;
|
|
2315
|
+
routingMode?: "driving" | "cycling" | "walking" | "flying" | null | undefined;
|
|
1053
2316
|
} | {
|
|
1054
2317
|
tool: "polygon";
|
|
1055
2318
|
color?: string | undefined;
|
|
@@ -1078,14 +2341,14 @@ declare const SetToolSettingsMessage: z.ZodObject<{
|
|
|
1078
2341
|
size?: number | undefined;
|
|
1079
2342
|
} | {
|
|
1080
2343
|
tool: "text";
|
|
1081
|
-
style?: "italic" | "light" | "regular" | "caps" | undefined;
|
|
1082
2344
|
color?: string | undefined;
|
|
1083
|
-
align?: "
|
|
2345
|
+
align?: "left" | "center" | "right" | undefined;
|
|
2346
|
+
style?: "italic" | "light" | "regular" | "caps" | undefined;
|
|
1084
2347
|
} | {
|
|
1085
2348
|
tool: "note";
|
|
1086
|
-
style?: "italic" | "light" | "regular" | "caps" | undefined;
|
|
1087
2349
|
color?: string | undefined;
|
|
1088
|
-
align?: "
|
|
2350
|
+
align?: "left" | "center" | "right" | undefined;
|
|
2351
|
+
style?: "italic" | "light" | "regular" | "caps" | undefined;
|
|
1089
2352
|
};
|
|
1090
2353
|
type: "setToolSettings";
|
|
1091
2354
|
}, {
|
|
@@ -1108,8 +2371,8 @@ declare const SetToolSettingsMessage: z.ZodObject<{
|
|
|
1108
2371
|
strokeWidth?: number | undefined;
|
|
1109
2372
|
strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
|
|
1110
2373
|
distanceMarker?: boolean | undefined;
|
|
1111
|
-
routingMode?: "driving" | "cycling" | "walking" | "flying" | undefined;
|
|
1112
2374
|
endCaps?: boolean | undefined;
|
|
2375
|
+
routingMode?: "driving" | "cycling" | "walking" | "flying" | null | undefined;
|
|
1113
2376
|
} | {
|
|
1114
2377
|
tool: "polygon";
|
|
1115
2378
|
color?: string | undefined;
|
|
@@ -1138,14 +2401,14 @@ declare const SetToolSettingsMessage: z.ZodObject<{
|
|
|
1138
2401
|
size?: number | undefined;
|
|
1139
2402
|
} | {
|
|
1140
2403
|
tool: "text";
|
|
1141
|
-
style?: "italic" | "light" | "regular" | "caps" | undefined;
|
|
1142
2404
|
color?: string | undefined;
|
|
1143
|
-
align?: "
|
|
2405
|
+
align?: "left" | "center" | "right" | undefined;
|
|
2406
|
+
style?: "italic" | "light" | "regular" | "caps" | undefined;
|
|
1144
2407
|
} | {
|
|
1145
2408
|
tool: "note";
|
|
1146
|
-
style?: "italic" | "light" | "regular" | "caps" | undefined;
|
|
1147
2409
|
color?: string | undefined;
|
|
1148
|
-
align?: "
|
|
2410
|
+
align?: "left" | "center" | "right" | undefined;
|
|
2411
|
+
style?: "italic" | "light" | "regular" | "caps" | undefined;
|
|
1149
2412
|
};
|
|
1150
2413
|
type: "setToolSettings";
|
|
1151
2414
|
}>;
|
|
@@ -1153,10 +2416,10 @@ declare const GetToolSettingsMessage: z.ZodObject<{
|
|
|
1153
2416
|
type: z.ZodLiteral<"getToolSettings">;
|
|
1154
2417
|
params: z.ZodEnum<["pin", "line", "route", "polygon", "circle", "marker", "highlighter", "text", "note"]>;
|
|
1155
2418
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
1156
|
-
params: "note" | "pin" | "line" | "route" | "polygon" | "circle" | "marker" | "highlighter"
|
|
2419
|
+
params: "text" | "note" | "pin" | "line" | "route" | "polygon" | "circle" | "marker" | "highlighter";
|
|
1157
2420
|
type: "getToolSettings";
|
|
1158
2421
|
}, {
|
|
1159
|
-
params: "note" | "pin" | "line" | "route" | "polygon" | "circle" | "marker" | "highlighter"
|
|
2422
|
+
params: "text" | "note" | "pin" | "line" | "route" | "polygon" | "circle" | "marker" | "highlighter";
|
|
1160
2423
|
type: "getToolSettings";
|
|
1161
2424
|
}>;
|
|
1162
2425
|
type ToolsSchema = {
|
|
@@ -1167,8 +2430,8 @@ type ToolsSchema = {
|
|
|
1167
2430
|
getToolSettings: Method<zInfer<typeof GetToolSettingsMessage>, ToolSettingsMap[keyof ToolSettingsMap]>;
|
|
1168
2431
|
};
|
|
1169
2432
|
listeners: {
|
|
1170
|
-
onToolChange:
|
|
1171
|
-
onToolSettingsChange:
|
|
2433
|
+
onToolChange: ListenerNoOptions<ToolType | null>;
|
|
2434
|
+
onToolSettingsChange: ListenerNoOptions<ToolSettingsChangeEvent>;
|
|
1172
2435
|
};
|
|
1173
2436
|
};
|
|
1174
2437
|
|
|
@@ -1290,34 +2553,34 @@ declare const GotoViewportMessage: z.ZodObject<{
|
|
|
1290
2553
|
}>>;
|
|
1291
2554
|
zoom: z.ZodOptional<z.ZodNumber>;
|
|
1292
2555
|
}, "strip", z.ZodTypeAny, {
|
|
2556
|
+
zoom?: number | undefined;
|
|
1293
2557
|
center?: {
|
|
1294
2558
|
latitude: number;
|
|
1295
2559
|
longitude: number;
|
|
1296
2560
|
} | undefined;
|
|
1297
|
-
zoom?: number | undefined;
|
|
1298
2561
|
}, {
|
|
2562
|
+
zoom?: number | undefined;
|
|
1299
2563
|
center?: {
|
|
1300
2564
|
latitude: number;
|
|
1301
2565
|
longitude: number;
|
|
1302
2566
|
} | undefined;
|
|
1303
|
-
zoom?: number | undefined;
|
|
1304
2567
|
}>;
|
|
1305
2568
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
1306
2569
|
params: {
|
|
2570
|
+
zoom?: number | undefined;
|
|
1307
2571
|
center?: {
|
|
1308
2572
|
latitude: number;
|
|
1309
2573
|
longitude: number;
|
|
1310
2574
|
} | undefined;
|
|
1311
|
-
zoom?: number | undefined;
|
|
1312
2575
|
};
|
|
1313
2576
|
type: "setViewport";
|
|
1314
2577
|
}, {
|
|
1315
2578
|
params: {
|
|
2579
|
+
zoom?: number | undefined;
|
|
1316
2580
|
center?: {
|
|
1317
2581
|
latitude: number;
|
|
1318
2582
|
longitude: number;
|
|
1319
2583
|
} | undefined;
|
|
1320
|
-
zoom?: number | undefined;
|
|
1321
2584
|
};
|
|
1322
2585
|
type: "setViewport";
|
|
1323
2586
|
}>;
|
|
@@ -1390,9 +2653,9 @@ type ViewportSchema = {
|
|
|
1390
2653
|
fitViewportToBounds: Method<zInfer<typeof ViewportFitBoundsMessage>, void>;
|
|
1391
2654
|
};
|
|
1392
2655
|
listeners: {
|
|
1393
|
-
onViewportMove:
|
|
1394
|
-
onViewportMoveEnd:
|
|
1395
|
-
onMapIdle:
|
|
2656
|
+
onViewportMove: ListenerNoOptions<ViewportState>;
|
|
2657
|
+
onViewportMoveEnd: ListenerNoOptions<ViewportState>;
|
|
2658
|
+
onMapIdle: ListenerNoOptions<void>;
|
|
1396
2659
|
};
|
|
1397
2660
|
};
|
|
1398
2661
|
|
|
@@ -1423,10 +2686,16 @@ type ExtractMethodParams<T extends Record<string, AnyFunction | {
|
|
|
1423
2686
|
type ExtractListenerParams<T extends Record<string, {
|
|
1424
2687
|
options: any;
|
|
1425
2688
|
eventParams: any;
|
|
2689
|
+
} | {
|
|
2690
|
+
eventParams: any;
|
|
1426
2691
|
}>> = {
|
|
1427
|
-
[K in keyof T]: {
|
|
2692
|
+
[K in keyof T]: T[K] extends {
|
|
2693
|
+
options: any;
|
|
2694
|
+
} ? {
|
|
1428
2695
|
options: T[K]["options"];
|
|
1429
2696
|
eventParams: T[K]["eventParams"];
|
|
2697
|
+
} : {
|
|
2698
|
+
eventParams: T[K]["eventParams"];
|
|
1430
2699
|
};
|
|
1431
2700
|
};
|
|
1432
2701
|
type AnyFunction = (...args: any[]) => any;
|
|
@@ -1439,13 +2708,17 @@ type MethodHandlers<T> = {
|
|
|
1439
2708
|
};
|
|
1440
2709
|
type FeltMethodHandlers = MethodHandlers<ExtractMethodParams<MethodSpec>>;
|
|
1441
2710
|
type ListenerHandlers<T> = {
|
|
1442
|
-
[K in keyof T]: (args: {
|
|
2711
|
+
[K in keyof T]: (args: T[K] extends {
|
|
2712
|
+
options: any;
|
|
2713
|
+
} ? {
|
|
2714
|
+
handler: (event: T[K] extends {
|
|
2715
|
+
eventParams: any;
|
|
2716
|
+
} ? T[K]["eventParams"] : never) => void;
|
|
2717
|
+
options: T[K]["options"];
|
|
2718
|
+
} : {
|
|
1443
2719
|
handler: (event: T[K] extends {
|
|
1444
2720
|
eventParams: any;
|
|
1445
2721
|
} ? T[K]["eventParams"] : never) => void;
|
|
1446
|
-
options: T[K] extends {
|
|
1447
|
-
options: any;
|
|
1448
|
-
} ? T[K]["options"] : never;
|
|
1449
2722
|
}) => VoidFunction;
|
|
1450
2723
|
};
|
|
1451
2724
|
type FeltListenerHandlers = ListenerHandlers<ExtractListenerParams<ListenerSpec>>;
|