@feltmaps/js-sdk 1.5.0-next.1 → 1.5.0-next.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/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, h as LayerGroup, l as LegendItem, o as LayerFilters, q as Feature, g as LayerChangeCallbackParams, j as LayerGroupChangeCallbackParams, n as LegendItemChangeCallbackParams, D as FilterTernary, r as EntityNode, T as ToolType, t as ToolSettingsMap, u as ToolSettingsChangeEvent, V as ViewportState, ab as UnionToIntersection, ac as PromiseOrNot } from './types-CVxZMwC_.js';
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-C1KBpQWi.js';
4
4
 
5
5
  type Method<TRequest extends {
6
6
  type: string;
@@ -123,14 +123,14 @@ declare const OnElementChangeMessage: z.ZodObject<{
123
123
  options: {
124
124
  id: string;
125
125
  };
126
- eventName: "onElementChange";
127
126
  id: string;
127
+ eventName: "onElementChange";
128
128
  }, {
129
129
  options: {
130
130
  id: string;
131
131
  };
132
- eventName: "onElementChange";
133
132
  id: string;
133
+ eventName: "onElementChange";
134
134
  }>;
135
135
  declare const OnElementGroupChangeMessage: z.ZodObject<{
136
136
  eventName: z.ZodLiteral<"onElementGroupChange">;
@@ -146,14 +146,1242 @@ declare const OnElementGroupChangeMessage: z.ZodObject<{
146
146
  options: {
147
147
  id: string;
148
148
  };
149
- eventName: "onElementGroupChange";
150
149
  id: string;
150
+ eventName: "onElementGroupChange";
151
151
  }, {
152
152
  options: {
153
153
  id: string;
154
154
  };
155
- eventName: "onElementGroupChange";
156
155
  id: string;
156
+ eventName: "onElementGroupChange";
157
+ }>;
158
+ declare const CreateElementMessage: z.ZodObject<{
159
+ type: z.ZodLiteral<"createElement">;
160
+ params: z.ZodDiscriminatedUnion<"type", [z.ZodObject<Omit<{
161
+ symbol: z.ZodOptional<z.ZodString>;
162
+ type: z.ZodLiteral<"Place">;
163
+ coordinates: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
164
+ id: z.ZodOptional<z.ZodString>;
165
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
166
+ color: z.ZodOptional<z.ZodString>;
167
+ name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
168
+ description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
169
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
170
+ imageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
171
+ frame: z.ZodOptional<z.ZodNullable<z.ZodEnum<["frame-circle", "frame-square"]>>>;
172
+ hideLabel: z.ZodOptional<z.ZodBoolean>;
173
+ }, "id">, "strip", z.ZodTypeAny, {
174
+ type: "Place";
175
+ coordinates: [number, number];
176
+ symbol?: string | undefined;
177
+ groupId?: string | null | undefined;
178
+ color?: string | undefined;
179
+ name?: string | null | undefined;
180
+ description?: string | null | undefined;
181
+ attributes?: Record<string, unknown> | undefined;
182
+ imageUrl?: string | null | undefined;
183
+ frame?: "frame-circle" | "frame-square" | null | undefined;
184
+ hideLabel?: boolean | undefined;
185
+ }, {
186
+ type: "Place";
187
+ coordinates: [number, number];
188
+ symbol?: string | undefined;
189
+ groupId?: string | null | undefined;
190
+ color?: string | undefined;
191
+ name?: string | null | undefined;
192
+ description?: string | null | undefined;
193
+ attributes?: Record<string, unknown> | undefined;
194
+ imageUrl?: string | null | undefined;
195
+ frame?: "frame-circle" | "frame-square" | null | undefined;
196
+ hideLabel?: boolean | undefined;
197
+ }>, z.ZodObject<Omit<{
198
+ type: z.ZodLiteral<"Path">;
199
+ coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
200
+ id: z.ZodOptional<z.ZodString>;
201
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
202
+ color: z.ZodOptional<z.ZodString>;
203
+ name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
204
+ description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
205
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
206
+ imageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
207
+ strokeOpacity: z.ZodOptional<z.ZodNumber>;
208
+ strokeWidth: z.ZodOptional<z.ZodNumber>;
209
+ strokeStyle: z.ZodOptional<z.ZodEnum<["solid", "dashed", "dotted"]>>;
210
+ distanceMarker: z.ZodOptional<z.ZodBoolean>;
211
+ endCaps: z.ZodOptional<z.ZodBoolean>;
212
+ routingMode: z.ZodOptional<z.ZodNullable<z.ZodEnum<["driving", "cycling", "walking", "flying"]>>>;
213
+ }, "id">, "strip", z.ZodTypeAny, {
214
+ type: "Path";
215
+ coordinates: [number, number][][];
216
+ groupId?: string | null | undefined;
217
+ color?: string | undefined;
218
+ name?: string | null | undefined;
219
+ description?: string | null | undefined;
220
+ attributes?: Record<string, unknown> | undefined;
221
+ imageUrl?: string | null | undefined;
222
+ strokeOpacity?: number | undefined;
223
+ strokeWidth?: number | undefined;
224
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
225
+ distanceMarker?: boolean | undefined;
226
+ endCaps?: boolean | undefined;
227
+ routingMode?: "driving" | "cycling" | "walking" | "flying" | null | undefined;
228
+ }, {
229
+ type: "Path";
230
+ coordinates: [number, number][][];
231
+ groupId?: string | null | undefined;
232
+ color?: string | undefined;
233
+ name?: string | null | undefined;
234
+ description?: string | null | undefined;
235
+ attributes?: Record<string, unknown> | undefined;
236
+ imageUrl?: string | null | undefined;
237
+ strokeOpacity?: number | undefined;
238
+ strokeWidth?: number | undefined;
239
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
240
+ distanceMarker?: boolean | undefined;
241
+ endCaps?: boolean | undefined;
242
+ routingMode?: "driving" | "cycling" | "walking" | "flying" | null | undefined;
243
+ }>, z.ZodObject<Omit<{
244
+ type: z.ZodLiteral<"Polygon">;
245
+ coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
246
+ id: z.ZodOptional<z.ZodString>;
247
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
248
+ color: z.ZodOptional<z.ZodString>;
249
+ name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
250
+ description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
251
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
252
+ imageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
253
+ strokeOpacity: z.ZodOptional<z.ZodNumber>;
254
+ strokeWidth: z.ZodOptional<z.ZodNumber>;
255
+ strokeStyle: z.ZodOptional<z.ZodEnum<["solid", "dashed", "dotted"]>>;
256
+ fillOpacity: z.ZodOptional<z.ZodNumber>;
257
+ areaMarker: z.ZodOptional<z.ZodBoolean>;
258
+ }, "id">, "strip", z.ZodTypeAny, {
259
+ type: "Polygon";
260
+ coordinates: [number, number][][];
261
+ groupId?: string | null | undefined;
262
+ color?: string | undefined;
263
+ name?: string | null | undefined;
264
+ description?: string | null | undefined;
265
+ attributes?: Record<string, unknown> | undefined;
266
+ imageUrl?: string | null | undefined;
267
+ strokeOpacity?: number | undefined;
268
+ strokeWidth?: number | undefined;
269
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
270
+ fillOpacity?: number | undefined;
271
+ areaMarker?: boolean | undefined;
272
+ }, {
273
+ type: "Polygon";
274
+ coordinates: [number, number][][];
275
+ groupId?: string | null | undefined;
276
+ color?: string | undefined;
277
+ name?: string | null | undefined;
278
+ description?: string | null | undefined;
279
+ attributes?: Record<string, unknown> | undefined;
280
+ imageUrl?: string | null | undefined;
281
+ strokeOpacity?: number | undefined;
282
+ strokeWidth?: number | undefined;
283
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
284
+ fillOpacity?: number | undefined;
285
+ areaMarker?: boolean | undefined;
286
+ }>, z.ZodObject<Omit<{
287
+ type: z.ZodLiteral<"Circle">;
288
+ coordinates: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
289
+ id: z.ZodOptional<z.ZodString>;
290
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
291
+ color: z.ZodOptional<z.ZodString>;
292
+ name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
293
+ description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
294
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
295
+ imageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
296
+ strokeOpacity: z.ZodOptional<z.ZodNumber>;
297
+ strokeWidth: z.ZodOptional<z.ZodNumber>;
298
+ strokeStyle: z.ZodOptional<z.ZodEnum<["solid", "dashed", "dotted"]>>;
299
+ fillOpacity: z.ZodOptional<z.ZodNumber>;
300
+ radius: z.ZodNumber;
301
+ radiusDisplayAngle: z.ZodOptional<z.ZodNumber>;
302
+ radiusDisplayUnit: z.ZodOptional<z.ZodNullable<z.ZodEnum<["meter", "kilometer", "foot", "mile"]>>>;
303
+ radiusMarker: z.ZodOptional<z.ZodBoolean>;
304
+ }, "id">, "strip", z.ZodTypeAny, {
305
+ type: "Circle";
306
+ coordinates: [number, number];
307
+ radius: number;
308
+ groupId?: string | null | undefined;
309
+ color?: string | undefined;
310
+ name?: string | null | undefined;
311
+ description?: string | null | undefined;
312
+ attributes?: Record<string, unknown> | undefined;
313
+ imageUrl?: string | null | undefined;
314
+ strokeOpacity?: number | undefined;
315
+ strokeWidth?: number | undefined;
316
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
317
+ fillOpacity?: number | undefined;
318
+ radiusDisplayAngle?: number | undefined;
319
+ radiusDisplayUnit?: "meter" | "kilometer" | "foot" | "mile" | null | undefined;
320
+ radiusMarker?: boolean | undefined;
321
+ }, {
322
+ type: "Circle";
323
+ coordinates: [number, number];
324
+ radius: number;
325
+ groupId?: string | null | undefined;
326
+ color?: string | undefined;
327
+ name?: string | null | undefined;
328
+ description?: string | null | undefined;
329
+ attributes?: Record<string, unknown> | undefined;
330
+ imageUrl?: string | null | undefined;
331
+ strokeOpacity?: number | undefined;
332
+ strokeWidth?: number | undefined;
333
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
334
+ fillOpacity?: number | undefined;
335
+ radiusDisplayAngle?: number | undefined;
336
+ radiusDisplayUnit?: "meter" | "kilometer" | "foot" | "mile" | null | undefined;
337
+ radiusMarker?: boolean | undefined;
338
+ }>, z.ZodObject<Omit<{
339
+ type: z.ZodLiteral<"Marker">;
340
+ coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
341
+ id: z.ZodOptional<z.ZodString>;
342
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
343
+ color: z.ZodOptional<z.ZodString>;
344
+ name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
345
+ description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
346
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
347
+ opacity: z.ZodOptional<z.ZodNumber>;
348
+ size: z.ZodOptional<z.ZodNumber>;
349
+ }, "id">, "strip", z.ZodTypeAny, {
350
+ type: "Marker";
351
+ coordinates: [number, number][][];
352
+ groupId?: string | null | undefined;
353
+ color?: string | undefined;
354
+ name?: string | null | undefined;
355
+ description?: string | null | undefined;
356
+ attributes?: Record<string, unknown> | undefined;
357
+ opacity?: number | undefined;
358
+ size?: number | undefined;
359
+ }, {
360
+ type: "Marker";
361
+ coordinates: [number, number][][];
362
+ groupId?: string | null | undefined;
363
+ color?: string | undefined;
364
+ name?: string | null | undefined;
365
+ description?: string | null | undefined;
366
+ attributes?: Record<string, unknown> | undefined;
367
+ opacity?: number | undefined;
368
+ size?: number | undefined;
369
+ }>, z.ZodObject<Omit<{
370
+ type: z.ZodLiteral<"Highlighter">;
371
+ coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
372
+ id: z.ZodOptional<z.ZodString>;
373
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
374
+ color: z.ZodOptional<z.ZodString>;
375
+ name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
376
+ description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
377
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
378
+ opacity: z.ZodOptional<z.ZodNumber>;
379
+ }, "id">, "strip", z.ZodTypeAny, {
380
+ type: "Highlighter";
381
+ coordinates: [number, number][][];
382
+ groupId?: string | null | undefined;
383
+ color?: string | undefined;
384
+ name?: string | null | undefined;
385
+ description?: string | null | undefined;
386
+ attributes?: Record<string, unknown> | undefined;
387
+ opacity?: number | undefined;
388
+ }, {
389
+ type: "Highlighter";
390
+ coordinates: [number, number][][];
391
+ groupId?: string | null | undefined;
392
+ color?: string | undefined;
393
+ name?: string | null | undefined;
394
+ description?: string | null | undefined;
395
+ attributes?: Record<string, unknown> | undefined;
396
+ opacity?: number | undefined;
397
+ }>, z.ZodObject<Omit<{
398
+ type: z.ZodLiteral<"Image">;
399
+ coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
400
+ id: z.ZodOptional<z.ZodString>;
401
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
402
+ color: z.ZodOptional<z.ZodString>;
403
+ name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
404
+ description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
405
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
406
+ imageUrl: z.ZodString;
407
+ opacity: z.ZodOptional<z.ZodNumber>;
408
+ }, "id">, "strip", z.ZodTypeAny, {
409
+ type: "Image";
410
+ coordinates: [number, number][][];
411
+ imageUrl: string;
412
+ groupId?: string | null | undefined;
413
+ color?: string | undefined;
414
+ name?: string | null | undefined;
415
+ description?: string | null | undefined;
416
+ attributes?: Record<string, unknown> | undefined;
417
+ opacity?: number | undefined;
418
+ }, {
419
+ type: "Image";
420
+ coordinates: [number, number][][];
421
+ imageUrl: string;
422
+ groupId?: string | null | undefined;
423
+ color?: string | undefined;
424
+ name?: string | null | undefined;
425
+ description?: string | null | undefined;
426
+ attributes?: Record<string, unknown> | undefined;
427
+ opacity?: number | undefined;
428
+ }>, z.ZodObject<Omit<Omit<{
429
+ type: z.ZodLiteral<"Text">;
430
+ coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
431
+ id: z.ZodOptional<z.ZodString>;
432
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
433
+ color: z.ZodOptional<z.ZodString>;
434
+ name: z.ZodOptional<z.ZodString>;
435
+ description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
436
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
437
+ position: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
438
+ rotation: z.ZodOptional<z.ZodNumber>;
439
+ scale: z.ZodOptional<z.ZodNumber>;
440
+ text: z.ZodString;
441
+ align: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
442
+ style: z.ZodOptional<z.ZodEnum<["italic", "light", "regular", "caps"]>>;
443
+ }, "id">, "coordinates" | "name">, "strip", z.ZodTypeAny, {
444
+ type: "Text";
445
+ text: string;
446
+ groupId?: string | null | undefined;
447
+ color?: string | undefined;
448
+ description?: string | null | undefined;
449
+ attributes?: Record<string, unknown> | undefined;
450
+ position?: [number, number] | undefined;
451
+ rotation?: number | undefined;
452
+ scale?: number | undefined;
453
+ align?: "left" | "center" | "right" | undefined;
454
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
455
+ }, {
456
+ type: "Text";
457
+ text: string;
458
+ groupId?: string | null | undefined;
459
+ color?: string | undefined;
460
+ description?: string | null | undefined;
461
+ attributes?: Record<string, unknown> | undefined;
462
+ position?: [number, number] | undefined;
463
+ rotation?: number | undefined;
464
+ scale?: number | undefined;
465
+ align?: "left" | "center" | "right" | undefined;
466
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
467
+ }>, z.ZodObject<Omit<Omit<{
468
+ type: z.ZodLiteral<"Note">;
469
+ coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">;
470
+ id: z.ZodOptional<z.ZodString>;
471
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
472
+ color: z.ZodOptional<z.ZodString>;
473
+ name: z.ZodOptional<z.ZodString>;
474
+ description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
475
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
476
+ position: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
477
+ rotation: z.ZodOptional<z.ZodNumber>;
478
+ scale: z.ZodOptional<z.ZodNumber>;
479
+ text: z.ZodString;
480
+ align: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
481
+ style: z.ZodOptional<z.ZodEnum<["italic", "light", "regular", "caps"]>>;
482
+ widthMultiplier: z.ZodOptional<z.ZodNumber>;
483
+ }, "id">, "coordinates" | "name">, "strip", z.ZodTypeAny, {
484
+ type: "Note";
485
+ text: string;
486
+ groupId?: string | null | undefined;
487
+ color?: string | undefined;
488
+ description?: string | null | undefined;
489
+ attributes?: Record<string, unknown> | undefined;
490
+ position?: [number, number] | undefined;
491
+ rotation?: number | undefined;
492
+ scale?: number | undefined;
493
+ align?: "left" | "center" | "right" | undefined;
494
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
495
+ widthMultiplier?: number | undefined;
496
+ }, {
497
+ type: "Note";
498
+ text: string;
499
+ groupId?: string | null | undefined;
500
+ color?: string | undefined;
501
+ description?: string | null | undefined;
502
+ attributes?: Record<string, unknown> | undefined;
503
+ position?: [number, number] | undefined;
504
+ rotation?: number | undefined;
505
+ scale?: number | undefined;
506
+ align?: "left" | "center" | "right" | undefined;
507
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
508
+ widthMultiplier?: number | undefined;
509
+ }>]>;
510
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
511
+ params: {
512
+ type: "Place";
513
+ coordinates: [number, number];
514
+ symbol?: string | undefined;
515
+ groupId?: string | null | undefined;
516
+ color?: string | undefined;
517
+ name?: string | null | undefined;
518
+ description?: string | null | undefined;
519
+ attributes?: Record<string, unknown> | undefined;
520
+ imageUrl?: string | null | undefined;
521
+ frame?: "frame-circle" | "frame-square" | null | undefined;
522
+ hideLabel?: boolean | undefined;
523
+ } | {
524
+ type: "Path";
525
+ coordinates: [number, number][][];
526
+ groupId?: string | null | undefined;
527
+ color?: string | undefined;
528
+ name?: string | null | undefined;
529
+ description?: string | null | undefined;
530
+ attributes?: Record<string, unknown> | undefined;
531
+ imageUrl?: string | null | undefined;
532
+ strokeOpacity?: number | undefined;
533
+ strokeWidth?: number | undefined;
534
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
535
+ distanceMarker?: boolean | undefined;
536
+ endCaps?: boolean | undefined;
537
+ routingMode?: "driving" | "cycling" | "walking" | "flying" | null | undefined;
538
+ } | {
539
+ type: "Polygon";
540
+ coordinates: [number, number][][];
541
+ groupId?: string | null | undefined;
542
+ color?: string | undefined;
543
+ name?: string | null | undefined;
544
+ description?: string | null | undefined;
545
+ attributes?: Record<string, unknown> | undefined;
546
+ imageUrl?: string | null | undefined;
547
+ strokeOpacity?: number | undefined;
548
+ strokeWidth?: number | undefined;
549
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
550
+ fillOpacity?: number | undefined;
551
+ areaMarker?: boolean | undefined;
552
+ } | {
553
+ type: "Circle";
554
+ coordinates: [number, number];
555
+ radius: number;
556
+ groupId?: string | null | undefined;
557
+ color?: string | undefined;
558
+ name?: string | null | undefined;
559
+ description?: string | null | undefined;
560
+ attributes?: Record<string, unknown> | undefined;
561
+ imageUrl?: string | null | undefined;
562
+ strokeOpacity?: number | undefined;
563
+ strokeWidth?: number | undefined;
564
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
565
+ fillOpacity?: number | undefined;
566
+ radiusDisplayAngle?: number | undefined;
567
+ radiusDisplayUnit?: "meter" | "kilometer" | "foot" | "mile" | null | undefined;
568
+ radiusMarker?: boolean | undefined;
569
+ } | {
570
+ type: "Marker";
571
+ coordinates: [number, number][][];
572
+ groupId?: string | null | undefined;
573
+ color?: string | undefined;
574
+ name?: string | null | undefined;
575
+ description?: string | null | undefined;
576
+ attributes?: Record<string, unknown> | undefined;
577
+ opacity?: number | undefined;
578
+ size?: number | undefined;
579
+ } | {
580
+ type: "Highlighter";
581
+ coordinates: [number, number][][];
582
+ groupId?: string | null | undefined;
583
+ color?: string | undefined;
584
+ name?: string | null | undefined;
585
+ description?: string | null | undefined;
586
+ attributes?: Record<string, unknown> | undefined;
587
+ opacity?: number | undefined;
588
+ } | {
589
+ type: "Text";
590
+ text: string;
591
+ groupId?: string | null | undefined;
592
+ color?: string | undefined;
593
+ description?: string | null | undefined;
594
+ attributes?: Record<string, unknown> | undefined;
595
+ position?: [number, number] | undefined;
596
+ rotation?: number | undefined;
597
+ scale?: number | undefined;
598
+ align?: "left" | "center" | "right" | undefined;
599
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
600
+ } | {
601
+ type: "Note";
602
+ text: string;
603
+ groupId?: string | null | undefined;
604
+ color?: string | undefined;
605
+ description?: string | null | undefined;
606
+ attributes?: Record<string, unknown> | undefined;
607
+ position?: [number, number] | undefined;
608
+ rotation?: number | undefined;
609
+ scale?: number | undefined;
610
+ align?: "left" | "center" | "right" | undefined;
611
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
612
+ widthMultiplier?: number | undefined;
613
+ } | {
614
+ type: "Image";
615
+ coordinates: [number, number][][];
616
+ imageUrl: string;
617
+ groupId?: string | null | undefined;
618
+ color?: string | undefined;
619
+ name?: string | null | undefined;
620
+ description?: string | null | undefined;
621
+ attributes?: Record<string, unknown> | undefined;
622
+ opacity?: number | undefined;
623
+ };
624
+ type: "createElement";
625
+ }, {
626
+ params: {
627
+ type: "Place";
628
+ coordinates: [number, number];
629
+ symbol?: string | undefined;
630
+ groupId?: string | null | undefined;
631
+ color?: string | undefined;
632
+ name?: string | null | undefined;
633
+ description?: string | null | undefined;
634
+ attributes?: Record<string, unknown> | undefined;
635
+ imageUrl?: string | null | undefined;
636
+ frame?: "frame-circle" | "frame-square" | null | undefined;
637
+ hideLabel?: boolean | undefined;
638
+ } | {
639
+ type: "Path";
640
+ coordinates: [number, number][][];
641
+ groupId?: string | null | undefined;
642
+ color?: string | undefined;
643
+ name?: string | null | undefined;
644
+ description?: string | null | undefined;
645
+ attributes?: Record<string, unknown> | undefined;
646
+ imageUrl?: string | null | undefined;
647
+ strokeOpacity?: number | undefined;
648
+ strokeWidth?: number | undefined;
649
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
650
+ distanceMarker?: boolean | undefined;
651
+ endCaps?: boolean | undefined;
652
+ routingMode?: "driving" | "cycling" | "walking" | "flying" | null | undefined;
653
+ } | {
654
+ type: "Polygon";
655
+ coordinates: [number, number][][];
656
+ groupId?: string | null | undefined;
657
+ color?: string | undefined;
658
+ name?: string | null | undefined;
659
+ description?: string | null | undefined;
660
+ attributes?: Record<string, unknown> | undefined;
661
+ imageUrl?: string | null | undefined;
662
+ strokeOpacity?: number | undefined;
663
+ strokeWidth?: number | undefined;
664
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
665
+ fillOpacity?: number | undefined;
666
+ areaMarker?: boolean | undefined;
667
+ } | {
668
+ type: "Circle";
669
+ coordinates: [number, number];
670
+ radius: number;
671
+ groupId?: string | null | undefined;
672
+ color?: string | undefined;
673
+ name?: string | null | undefined;
674
+ description?: string | null | undefined;
675
+ attributes?: Record<string, unknown> | undefined;
676
+ imageUrl?: string | null | undefined;
677
+ strokeOpacity?: number | undefined;
678
+ strokeWidth?: number | undefined;
679
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
680
+ fillOpacity?: number | undefined;
681
+ radiusDisplayAngle?: number | undefined;
682
+ radiusDisplayUnit?: "meter" | "kilometer" | "foot" | "mile" | null | undefined;
683
+ radiusMarker?: boolean | undefined;
684
+ } | {
685
+ type: "Marker";
686
+ coordinates: [number, number][][];
687
+ groupId?: string | null | undefined;
688
+ color?: string | undefined;
689
+ name?: string | null | undefined;
690
+ description?: string | null | undefined;
691
+ attributes?: Record<string, unknown> | undefined;
692
+ opacity?: number | undefined;
693
+ size?: number | undefined;
694
+ } | {
695
+ type: "Highlighter";
696
+ coordinates: [number, number][][];
697
+ groupId?: string | null | undefined;
698
+ color?: string | undefined;
699
+ name?: string | null | undefined;
700
+ description?: string | null | undefined;
701
+ attributes?: Record<string, unknown> | undefined;
702
+ opacity?: number | undefined;
703
+ } | {
704
+ type: "Text";
705
+ text: string;
706
+ groupId?: string | null | undefined;
707
+ color?: string | undefined;
708
+ description?: string | null | undefined;
709
+ attributes?: Record<string, unknown> | undefined;
710
+ position?: [number, number] | undefined;
711
+ rotation?: number | undefined;
712
+ scale?: number | undefined;
713
+ align?: "left" | "center" | "right" | undefined;
714
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
715
+ } | {
716
+ type: "Note";
717
+ text: string;
718
+ groupId?: string | null | undefined;
719
+ color?: string | undefined;
720
+ description?: string | null | undefined;
721
+ attributes?: Record<string, unknown> | undefined;
722
+ position?: [number, number] | undefined;
723
+ rotation?: number | undefined;
724
+ scale?: number | undefined;
725
+ align?: "left" | "center" | "right" | undefined;
726
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
727
+ widthMultiplier?: number | undefined;
728
+ } | {
729
+ type: "Image";
730
+ coordinates: [number, number][][];
731
+ imageUrl: string;
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: "createElement";
740
+ }>;
741
+ declare const UpdateElementMessage: z.ZodObject<{
742
+ type: z.ZodLiteral<"updateElement">;
743
+ params: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
744
+ symbol: z.ZodOptional<z.ZodString>;
745
+ type: z.ZodLiteral<"Place">;
746
+ coordinates: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
747
+ id: z.ZodString;
748
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
749
+ color: z.ZodOptional<z.ZodString>;
750
+ name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
751
+ description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
752
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
753
+ imageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
754
+ frame: z.ZodOptional<z.ZodNullable<z.ZodEnum<["frame-circle", "frame-square"]>>>;
755
+ hideLabel: z.ZodOptional<z.ZodBoolean>;
756
+ }, "strip", z.ZodTypeAny, {
757
+ type: "Place";
758
+ id: string;
759
+ symbol?: string | undefined;
760
+ coordinates?: [number, number] | undefined;
761
+ groupId?: string | null | undefined;
762
+ color?: string | undefined;
763
+ name?: string | null | undefined;
764
+ description?: string | null | undefined;
765
+ attributes?: Record<string, unknown> | undefined;
766
+ imageUrl?: string | null | undefined;
767
+ frame?: "frame-circle" | "frame-square" | null | undefined;
768
+ hideLabel?: boolean | undefined;
769
+ }, {
770
+ type: "Place";
771
+ id: string;
772
+ symbol?: string | undefined;
773
+ coordinates?: [number, number] | undefined;
774
+ groupId?: string | null | undefined;
775
+ color?: string | undefined;
776
+ name?: string | null | undefined;
777
+ description?: string | null | undefined;
778
+ attributes?: Record<string, unknown> | undefined;
779
+ imageUrl?: string | null | undefined;
780
+ frame?: "frame-circle" | "frame-square" | null | undefined;
781
+ hideLabel?: boolean | undefined;
782
+ }>, z.ZodObject<{
783
+ type: z.ZodLiteral<"Path">;
784
+ coordinates: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">>;
785
+ id: z.ZodString;
786
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
787
+ color: z.ZodOptional<z.ZodString>;
788
+ name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
789
+ description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
790
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
791
+ imageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
792
+ strokeOpacity: z.ZodOptional<z.ZodNumber>;
793
+ strokeWidth: z.ZodOptional<z.ZodNumber>;
794
+ strokeStyle: z.ZodOptional<z.ZodEnum<["solid", "dashed", "dotted"]>>;
795
+ distanceMarker: z.ZodOptional<z.ZodBoolean>;
796
+ endCaps: z.ZodOptional<z.ZodBoolean>;
797
+ routingMode: z.ZodOptional<z.ZodNullable<z.ZodEnum<["driving", "cycling", "walking", "flying"]>>>;
798
+ }, "strip", z.ZodTypeAny, {
799
+ type: "Path";
800
+ id: string;
801
+ coordinates?: [number, number][][] | undefined;
802
+ groupId?: string | null | undefined;
803
+ color?: string | undefined;
804
+ name?: string | null | undefined;
805
+ description?: string | null | undefined;
806
+ attributes?: Record<string, unknown> | undefined;
807
+ imageUrl?: string | null | undefined;
808
+ strokeOpacity?: number | undefined;
809
+ strokeWidth?: number | undefined;
810
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
811
+ distanceMarker?: boolean | undefined;
812
+ endCaps?: boolean | undefined;
813
+ routingMode?: "driving" | "cycling" | "walking" | "flying" | null | undefined;
814
+ }, {
815
+ type: "Path";
816
+ id: string;
817
+ coordinates?: [number, number][][] | undefined;
818
+ groupId?: string | null | undefined;
819
+ color?: string | undefined;
820
+ name?: string | null | undefined;
821
+ description?: string | null | undefined;
822
+ attributes?: Record<string, unknown> | undefined;
823
+ imageUrl?: string | null | undefined;
824
+ strokeOpacity?: number | undefined;
825
+ strokeWidth?: number | undefined;
826
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
827
+ distanceMarker?: boolean | undefined;
828
+ endCaps?: boolean | undefined;
829
+ routingMode?: "driving" | "cycling" | "walking" | "flying" | null | undefined;
830
+ }>, z.ZodObject<{
831
+ type: z.ZodLiteral<"Polygon">;
832
+ coordinates: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">>;
833
+ id: z.ZodString;
834
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
835
+ color: z.ZodOptional<z.ZodString>;
836
+ name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
837
+ description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
838
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
839
+ imageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
840
+ strokeOpacity: z.ZodOptional<z.ZodNumber>;
841
+ strokeWidth: z.ZodOptional<z.ZodNumber>;
842
+ strokeStyle: z.ZodOptional<z.ZodEnum<["solid", "dashed", "dotted"]>>;
843
+ fillOpacity: z.ZodOptional<z.ZodNumber>;
844
+ areaMarker: z.ZodOptional<z.ZodBoolean>;
845
+ }, "strip", z.ZodTypeAny, {
846
+ type: "Polygon";
847
+ id: string;
848
+ coordinates?: [number, number][][] | undefined;
849
+ groupId?: string | null | undefined;
850
+ color?: string | undefined;
851
+ name?: string | null | undefined;
852
+ description?: string | null | undefined;
853
+ attributes?: Record<string, unknown> | undefined;
854
+ imageUrl?: string | null | undefined;
855
+ strokeOpacity?: number | undefined;
856
+ strokeWidth?: number | undefined;
857
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
858
+ fillOpacity?: number | undefined;
859
+ areaMarker?: boolean | undefined;
860
+ }, {
861
+ type: "Polygon";
862
+ id: string;
863
+ coordinates?: [number, number][][] | undefined;
864
+ groupId?: string | null | undefined;
865
+ color?: string | undefined;
866
+ name?: string | null | undefined;
867
+ description?: string | null | undefined;
868
+ attributes?: Record<string, unknown> | undefined;
869
+ imageUrl?: string | null | undefined;
870
+ strokeOpacity?: number | undefined;
871
+ strokeWidth?: number | undefined;
872
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
873
+ fillOpacity?: number | undefined;
874
+ areaMarker?: boolean | undefined;
875
+ }>, z.ZodObject<{
876
+ type: z.ZodLiteral<"Circle">;
877
+ coordinates: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
878
+ id: z.ZodString;
879
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
880
+ color: z.ZodOptional<z.ZodString>;
881
+ name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
882
+ description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
883
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
884
+ imageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
885
+ strokeOpacity: z.ZodOptional<z.ZodNumber>;
886
+ strokeWidth: z.ZodOptional<z.ZodNumber>;
887
+ strokeStyle: z.ZodOptional<z.ZodEnum<["solid", "dashed", "dotted"]>>;
888
+ fillOpacity: z.ZodOptional<z.ZodNumber>;
889
+ radius: z.ZodOptional<z.ZodNumber>;
890
+ radiusDisplayAngle: z.ZodOptional<z.ZodNumber>;
891
+ radiusDisplayUnit: z.ZodOptional<z.ZodNullable<z.ZodEnum<["meter", "kilometer", "foot", "mile"]>>>;
892
+ radiusMarker: z.ZodOptional<z.ZodBoolean>;
893
+ }, "strip", z.ZodTypeAny, {
894
+ type: "Circle";
895
+ id: string;
896
+ coordinates?: [number, number] | undefined;
897
+ groupId?: string | null | undefined;
898
+ color?: string | undefined;
899
+ name?: string | null | undefined;
900
+ description?: string | null | undefined;
901
+ attributes?: Record<string, unknown> | undefined;
902
+ imageUrl?: string | null | undefined;
903
+ strokeOpacity?: number | undefined;
904
+ strokeWidth?: number | undefined;
905
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
906
+ fillOpacity?: number | undefined;
907
+ radius?: number | undefined;
908
+ radiusDisplayAngle?: number | undefined;
909
+ radiusDisplayUnit?: "meter" | "kilometer" | "foot" | "mile" | null | undefined;
910
+ radiusMarker?: boolean | undefined;
911
+ }, {
912
+ type: "Circle";
913
+ id: string;
914
+ coordinates?: [number, number] | undefined;
915
+ groupId?: string | null | undefined;
916
+ color?: string | undefined;
917
+ name?: string | null | undefined;
918
+ description?: string | null | undefined;
919
+ attributes?: Record<string, unknown> | undefined;
920
+ imageUrl?: string | null | undefined;
921
+ strokeOpacity?: number | undefined;
922
+ strokeWidth?: number | undefined;
923
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
924
+ fillOpacity?: number | undefined;
925
+ radius?: number | undefined;
926
+ radiusDisplayAngle?: number | undefined;
927
+ radiusDisplayUnit?: "meter" | "kilometer" | "foot" | "mile" | null | undefined;
928
+ radiusMarker?: boolean | undefined;
929
+ }>, z.ZodObject<{
930
+ type: z.ZodLiteral<"Marker">;
931
+ coordinates: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">>;
932
+ id: z.ZodString;
933
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
934
+ color: z.ZodOptional<z.ZodString>;
935
+ name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
936
+ description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
937
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
938
+ opacity: z.ZodOptional<z.ZodNumber>;
939
+ size: z.ZodOptional<z.ZodNumber>;
940
+ }, "strip", z.ZodTypeAny, {
941
+ type: "Marker";
942
+ id: string;
943
+ coordinates?: [number, number][][] | undefined;
944
+ groupId?: string | null | undefined;
945
+ color?: string | undefined;
946
+ name?: string | null | undefined;
947
+ description?: string | null | undefined;
948
+ attributes?: Record<string, unknown> | undefined;
949
+ opacity?: number | undefined;
950
+ size?: number | undefined;
951
+ }, {
952
+ type: "Marker";
953
+ id: string;
954
+ coordinates?: [number, number][][] | undefined;
955
+ groupId?: string | null | undefined;
956
+ color?: string | undefined;
957
+ name?: string | null | undefined;
958
+ description?: string | null | undefined;
959
+ attributes?: Record<string, unknown> | undefined;
960
+ opacity?: number | undefined;
961
+ size?: number | undefined;
962
+ }>, z.ZodObject<{
963
+ type: z.ZodLiteral<"Highlighter">;
964
+ coordinates: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">>;
965
+ id: z.ZodString;
966
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
967
+ color: z.ZodOptional<z.ZodString>;
968
+ name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
969
+ description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
970
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
971
+ opacity: z.ZodOptional<z.ZodNumber>;
972
+ }, "strip", z.ZodTypeAny, {
973
+ type: "Highlighter";
974
+ id: string;
975
+ coordinates?: [number, number][][] | undefined;
976
+ groupId?: string | null | undefined;
977
+ color?: string | undefined;
978
+ name?: string | null | undefined;
979
+ description?: string | null | undefined;
980
+ attributes?: Record<string, unknown> | undefined;
981
+ opacity?: number | undefined;
982
+ }, {
983
+ type: "Highlighter";
984
+ id: string;
985
+ coordinates?: [number, number][][] | undefined;
986
+ groupId?: string | null | undefined;
987
+ color?: string | undefined;
988
+ name?: string | null | undefined;
989
+ description?: string | null | undefined;
990
+ attributes?: Record<string, unknown> | undefined;
991
+ opacity?: number | undefined;
992
+ }>, z.ZodObject<{
993
+ type: z.ZodLiteral<"Text">;
994
+ coordinates: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">>;
995
+ id: z.ZodString;
996
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
997
+ color: z.ZodOptional<z.ZodString>;
998
+ name: z.ZodOptional<z.ZodString>;
999
+ description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
1000
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1001
+ position: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
1002
+ rotation: z.ZodOptional<z.ZodNumber>;
1003
+ scale: z.ZodOptional<z.ZodNumber>;
1004
+ text: z.ZodOptional<z.ZodString>;
1005
+ align: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
1006
+ style: z.ZodOptional<z.ZodEnum<["italic", "light", "regular", "caps"]>>;
1007
+ }, "strip", z.ZodTypeAny, {
1008
+ type: "Text";
1009
+ id: string;
1010
+ coordinates?: [number, number][][] | undefined;
1011
+ groupId?: string | null | undefined;
1012
+ color?: string | undefined;
1013
+ name?: string | undefined;
1014
+ description?: string | null | undefined;
1015
+ attributes?: Record<string, unknown> | undefined;
1016
+ position?: [number, number] | undefined;
1017
+ rotation?: number | undefined;
1018
+ scale?: number | undefined;
1019
+ text?: string | undefined;
1020
+ align?: "left" | "center" | "right" | undefined;
1021
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
1022
+ }, {
1023
+ type: "Text";
1024
+ id: string;
1025
+ coordinates?: [number, number][][] | undefined;
1026
+ groupId?: string | null | undefined;
1027
+ color?: string | undefined;
1028
+ name?: string | undefined;
1029
+ description?: string | null | undefined;
1030
+ attributes?: Record<string, unknown> | undefined;
1031
+ position?: [number, number] | undefined;
1032
+ rotation?: number | undefined;
1033
+ scale?: number | undefined;
1034
+ text?: string | undefined;
1035
+ align?: "left" | "center" | "right" | undefined;
1036
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
1037
+ }>, z.ZodObject<{
1038
+ type: z.ZodLiteral<"Note">;
1039
+ coordinates: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">>;
1040
+ id: z.ZodString;
1041
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1042
+ color: z.ZodOptional<z.ZodString>;
1043
+ name: z.ZodOptional<z.ZodString>;
1044
+ description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
1045
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1046
+ position: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
1047
+ rotation: z.ZodOptional<z.ZodNumber>;
1048
+ scale: z.ZodOptional<z.ZodNumber>;
1049
+ text: z.ZodOptional<z.ZodString>;
1050
+ align: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
1051
+ style: z.ZodOptional<z.ZodEnum<["italic", "light", "regular", "caps"]>>;
1052
+ widthMultiplier: z.ZodOptional<z.ZodNumber>;
1053
+ }, "strip", z.ZodTypeAny, {
1054
+ type: "Note";
1055
+ id: string;
1056
+ coordinates?: [number, number][][] | undefined;
1057
+ groupId?: string | null | undefined;
1058
+ color?: string | undefined;
1059
+ name?: string | undefined;
1060
+ description?: string | null | undefined;
1061
+ attributes?: Record<string, unknown> | undefined;
1062
+ position?: [number, number] | undefined;
1063
+ rotation?: number | undefined;
1064
+ scale?: number | undefined;
1065
+ text?: string | undefined;
1066
+ align?: "left" | "center" | "right" | undefined;
1067
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
1068
+ widthMultiplier?: number | undefined;
1069
+ }, {
1070
+ type: "Note";
1071
+ id: string;
1072
+ coordinates?: [number, number][][] | undefined;
1073
+ groupId?: string | null | undefined;
1074
+ color?: string | undefined;
1075
+ name?: string | undefined;
1076
+ description?: string | null | undefined;
1077
+ attributes?: Record<string, unknown> | undefined;
1078
+ position?: [number, number] | undefined;
1079
+ rotation?: number | undefined;
1080
+ scale?: number | undefined;
1081
+ text?: string | undefined;
1082
+ align?: "left" | "center" | "right" | undefined;
1083
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
1084
+ widthMultiplier?: number | undefined;
1085
+ }>, z.ZodObject<{
1086
+ type: z.ZodLiteral<"Image">;
1087
+ coordinates: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, "many">>;
1088
+ id: z.ZodString;
1089
+ groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1090
+ color: z.ZodOptional<z.ZodString>;
1091
+ name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
1092
+ description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
1093
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1094
+ imageUrl: z.ZodOptional<z.ZodString>;
1095
+ opacity: z.ZodOptional<z.ZodNumber>;
1096
+ }, "strip", z.ZodTypeAny, {
1097
+ type: "Image";
1098
+ id: string;
1099
+ coordinates?: [number, number][][] | undefined;
1100
+ groupId?: string | null | undefined;
1101
+ color?: string | undefined;
1102
+ name?: string | null | undefined;
1103
+ description?: string | null | undefined;
1104
+ attributes?: Record<string, unknown> | undefined;
1105
+ imageUrl?: string | undefined;
1106
+ opacity?: number | undefined;
1107
+ }, {
1108
+ type: "Image";
1109
+ id: string;
1110
+ coordinates?: [number, number][][] | undefined;
1111
+ groupId?: string | null | undefined;
1112
+ color?: string | undefined;
1113
+ name?: string | null | undefined;
1114
+ description?: string | null | undefined;
1115
+ attributes?: Record<string, unknown> | undefined;
1116
+ imageUrl?: string | undefined;
1117
+ opacity?: number | undefined;
1118
+ }>]>;
1119
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
1120
+ params: {
1121
+ type: "Place";
1122
+ id: string;
1123
+ symbol?: string | undefined;
1124
+ coordinates?: [number, number] | undefined;
1125
+ groupId?: string | null | undefined;
1126
+ color?: string | undefined;
1127
+ name?: string | null | undefined;
1128
+ description?: string | null | undefined;
1129
+ attributes?: Record<string, unknown> | undefined;
1130
+ imageUrl?: string | null | undefined;
1131
+ frame?: "frame-circle" | "frame-square" | null | undefined;
1132
+ hideLabel?: boolean | undefined;
1133
+ } | {
1134
+ type: "Path";
1135
+ id: string;
1136
+ coordinates?: [number, number][][] | undefined;
1137
+ groupId?: string | null | undefined;
1138
+ color?: string | undefined;
1139
+ name?: string | null | undefined;
1140
+ description?: string | null | undefined;
1141
+ attributes?: Record<string, unknown> | undefined;
1142
+ imageUrl?: string | null | undefined;
1143
+ strokeOpacity?: number | undefined;
1144
+ strokeWidth?: number | undefined;
1145
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
1146
+ distanceMarker?: boolean | undefined;
1147
+ endCaps?: boolean | undefined;
1148
+ routingMode?: "driving" | "cycling" | "walking" | "flying" | null | undefined;
1149
+ } | {
1150
+ type: "Polygon";
1151
+ id: string;
1152
+ coordinates?: [number, number][][] | undefined;
1153
+ groupId?: string | null | undefined;
1154
+ color?: string | undefined;
1155
+ name?: string | null | undefined;
1156
+ description?: string | null | undefined;
1157
+ attributes?: Record<string, unknown> | undefined;
1158
+ imageUrl?: string | null | undefined;
1159
+ strokeOpacity?: number | undefined;
1160
+ strokeWidth?: number | undefined;
1161
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
1162
+ fillOpacity?: number | undefined;
1163
+ areaMarker?: boolean | undefined;
1164
+ } | {
1165
+ type: "Circle";
1166
+ id: string;
1167
+ coordinates?: [number, number] | undefined;
1168
+ groupId?: string | null | undefined;
1169
+ color?: string | undefined;
1170
+ name?: string | null | undefined;
1171
+ description?: string | null | undefined;
1172
+ attributes?: Record<string, unknown> | undefined;
1173
+ imageUrl?: string | null | undefined;
1174
+ strokeOpacity?: number | undefined;
1175
+ strokeWidth?: number | undefined;
1176
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
1177
+ fillOpacity?: number | undefined;
1178
+ radius?: number | undefined;
1179
+ radiusDisplayAngle?: number | undefined;
1180
+ radiusDisplayUnit?: "meter" | "kilometer" | "foot" | "mile" | null | undefined;
1181
+ radiusMarker?: boolean | undefined;
1182
+ } | {
1183
+ type: "Marker";
1184
+ id: string;
1185
+ coordinates?: [number, number][][] | undefined;
1186
+ groupId?: string | null | undefined;
1187
+ color?: string | undefined;
1188
+ name?: string | null | undefined;
1189
+ description?: string | null | undefined;
1190
+ attributes?: Record<string, unknown> | undefined;
1191
+ opacity?: number | undefined;
1192
+ size?: number | undefined;
1193
+ } | {
1194
+ type: "Highlighter";
1195
+ id: string;
1196
+ coordinates?: [number, number][][] | undefined;
1197
+ groupId?: string | null | undefined;
1198
+ color?: string | undefined;
1199
+ name?: string | null | undefined;
1200
+ description?: string | null | undefined;
1201
+ attributes?: Record<string, unknown> | undefined;
1202
+ opacity?: number | undefined;
1203
+ } | {
1204
+ type: "Text";
1205
+ id: string;
1206
+ coordinates?: [number, number][][] | undefined;
1207
+ groupId?: string | null | undefined;
1208
+ color?: string | undefined;
1209
+ name?: string | undefined;
1210
+ description?: string | null | undefined;
1211
+ attributes?: Record<string, unknown> | undefined;
1212
+ position?: [number, number] | undefined;
1213
+ rotation?: number | undefined;
1214
+ scale?: number | undefined;
1215
+ text?: string | undefined;
1216
+ align?: "left" | "center" | "right" | undefined;
1217
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
1218
+ } | {
1219
+ type: "Note";
1220
+ id: string;
1221
+ coordinates?: [number, number][][] | undefined;
1222
+ groupId?: string | null | undefined;
1223
+ color?: string | undefined;
1224
+ name?: string | undefined;
1225
+ description?: string | null | undefined;
1226
+ attributes?: Record<string, unknown> | undefined;
1227
+ position?: [number, number] | undefined;
1228
+ rotation?: number | undefined;
1229
+ scale?: number | undefined;
1230
+ text?: string | undefined;
1231
+ align?: "left" | "center" | "right" | undefined;
1232
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
1233
+ widthMultiplier?: number | undefined;
1234
+ } | {
1235
+ type: "Image";
1236
+ id: string;
1237
+ coordinates?: [number, number][][] | undefined;
1238
+ groupId?: string | null | undefined;
1239
+ color?: string | undefined;
1240
+ name?: string | null | undefined;
1241
+ description?: string | null | undefined;
1242
+ attributes?: Record<string, unknown> | undefined;
1243
+ imageUrl?: string | undefined;
1244
+ opacity?: number | undefined;
1245
+ };
1246
+ type: "updateElement";
1247
+ }, {
1248
+ params: {
1249
+ type: "Place";
1250
+ id: string;
1251
+ symbol?: string | undefined;
1252
+ coordinates?: [number, number] | undefined;
1253
+ groupId?: string | null | undefined;
1254
+ color?: string | undefined;
1255
+ name?: string | null | undefined;
1256
+ description?: string | null | undefined;
1257
+ attributes?: Record<string, unknown> | undefined;
1258
+ imageUrl?: string | null | undefined;
1259
+ frame?: "frame-circle" | "frame-square" | null | undefined;
1260
+ hideLabel?: boolean | undefined;
1261
+ } | {
1262
+ type: "Path";
1263
+ id: string;
1264
+ coordinates?: [number, number][][] | undefined;
1265
+ groupId?: string | null | undefined;
1266
+ color?: string | undefined;
1267
+ name?: string | null | undefined;
1268
+ description?: string | null | undefined;
1269
+ attributes?: Record<string, unknown> | undefined;
1270
+ imageUrl?: string | null | undefined;
1271
+ strokeOpacity?: number | undefined;
1272
+ strokeWidth?: number | undefined;
1273
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
1274
+ distanceMarker?: boolean | undefined;
1275
+ endCaps?: boolean | undefined;
1276
+ routingMode?: "driving" | "cycling" | "walking" | "flying" | null | undefined;
1277
+ } | {
1278
+ type: "Polygon";
1279
+ id: string;
1280
+ coordinates?: [number, number][][] | undefined;
1281
+ groupId?: string | null | undefined;
1282
+ color?: string | undefined;
1283
+ name?: string | null | undefined;
1284
+ description?: string | null | undefined;
1285
+ attributes?: Record<string, unknown> | undefined;
1286
+ imageUrl?: string | null | undefined;
1287
+ strokeOpacity?: number | undefined;
1288
+ strokeWidth?: number | undefined;
1289
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
1290
+ fillOpacity?: number | undefined;
1291
+ areaMarker?: boolean | undefined;
1292
+ } | {
1293
+ type: "Circle";
1294
+ id: string;
1295
+ coordinates?: [number, number] | undefined;
1296
+ groupId?: string | null | undefined;
1297
+ color?: string | undefined;
1298
+ name?: string | null | undefined;
1299
+ description?: string | null | undefined;
1300
+ attributes?: Record<string, unknown> | undefined;
1301
+ imageUrl?: string | null | undefined;
1302
+ strokeOpacity?: number | undefined;
1303
+ strokeWidth?: number | undefined;
1304
+ strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
1305
+ fillOpacity?: number | undefined;
1306
+ radius?: number | undefined;
1307
+ radiusDisplayAngle?: number | undefined;
1308
+ radiusDisplayUnit?: "meter" | "kilometer" | "foot" | "mile" | null | undefined;
1309
+ radiusMarker?: boolean | undefined;
1310
+ } | {
1311
+ type: "Marker";
1312
+ id: string;
1313
+ coordinates?: [number, number][][] | undefined;
1314
+ groupId?: string | null | undefined;
1315
+ color?: string | undefined;
1316
+ name?: string | null | undefined;
1317
+ description?: string | null | undefined;
1318
+ attributes?: Record<string, unknown> | undefined;
1319
+ opacity?: number | undefined;
1320
+ size?: number | undefined;
1321
+ } | {
1322
+ type: "Highlighter";
1323
+ id: string;
1324
+ coordinates?: [number, number][][] | undefined;
1325
+ groupId?: string | null | undefined;
1326
+ color?: string | undefined;
1327
+ name?: string | null | undefined;
1328
+ description?: string | null | undefined;
1329
+ attributes?: Record<string, unknown> | undefined;
1330
+ opacity?: number | undefined;
1331
+ } | {
1332
+ type: "Text";
1333
+ id: string;
1334
+ coordinates?: [number, number][][] | undefined;
1335
+ groupId?: string | null | undefined;
1336
+ color?: string | undefined;
1337
+ name?: string | undefined;
1338
+ description?: string | null | undefined;
1339
+ attributes?: Record<string, unknown> | undefined;
1340
+ position?: [number, number] | undefined;
1341
+ rotation?: number | undefined;
1342
+ scale?: number | undefined;
1343
+ text?: string | undefined;
1344
+ align?: "left" | "center" | "right" | undefined;
1345
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
1346
+ } | {
1347
+ type: "Note";
1348
+ id: string;
1349
+ coordinates?: [number, number][][] | undefined;
1350
+ groupId?: string | null | undefined;
1351
+ color?: string | undefined;
1352
+ name?: string | undefined;
1353
+ description?: string | null | undefined;
1354
+ attributes?: Record<string, unknown> | undefined;
1355
+ position?: [number, number] | undefined;
1356
+ rotation?: number | undefined;
1357
+ scale?: number | undefined;
1358
+ text?: string | undefined;
1359
+ align?: "left" | "center" | "right" | undefined;
1360
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
1361
+ widthMultiplier?: number | undefined;
1362
+ } | {
1363
+ type: "Image";
1364
+ id: string;
1365
+ coordinates?: [number, number][][] | undefined;
1366
+ groupId?: string | null | undefined;
1367
+ color?: string | undefined;
1368
+ name?: string | null | undefined;
1369
+ description?: string | null | undefined;
1370
+ attributes?: Record<string, unknown> | undefined;
1371
+ imageUrl?: string | undefined;
1372
+ opacity?: number | undefined;
1373
+ };
1374
+ type: "updateElement";
1375
+ }>;
1376
+ declare const DeleteElementMessage: z.ZodObject<{
1377
+ type: z.ZodLiteral<"deleteElement">;
1378
+ params: z.ZodString;
1379
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
1380
+ params: string;
1381
+ type: "deleteElement";
1382
+ }, {
1383
+ params: string;
1384
+ type: "deleteElement";
157
1385
  }>;
158
1386
  type ElementsSchema = {
159
1387
  methods: {
@@ -163,6 +1391,9 @@ type ElementsSchema = {
163
1391
  getElementGroup: Method<zInfer<typeof GetGroupMessage$1>, ElementGroup | null>;
164
1392
  getElementGroups: Method<zInfer<typeof GetGroupsMessage$1>, Array<ElementGroup | null>>;
165
1393
  setElementGroupVisibility: Method<zInfer<typeof SetElementGroupVisibilityMessage>, void>;
1394
+ createElement: Method<zInfer<typeof CreateElementMessage>, Element | null>;
1395
+ updateElement: Method<zInfer<typeof UpdateElementMessage>, Element | null>;
1396
+ deleteElement: Method<zInfer<typeof DeleteElementMessage>, void>;
166
1397
  };
167
1398
  listeners: {
168
1399
  onElementChange: Listener<zInfer<typeof OnElementChangeMessage.shape.options>, ElementChangeCallbackParams>;
@@ -247,14 +1478,14 @@ declare const OnLayerChangeMessage: z.ZodObject<{
247
1478
  options: {
248
1479
  id: string;
249
1480
  };
250
- eventName: "onLayerChange";
251
1481
  id: string;
1482
+ eventName: "onLayerChange";
252
1483
  }, {
253
1484
  options: {
254
1485
  id: string;
255
1486
  };
256
- eventName: "onLayerChange";
257
1487
  id: string;
1488
+ eventName: "onLayerChange";
258
1489
  }>;
259
1490
  declare const SetLayerStyleMessage: z.ZodObject<{
260
1491
  type: z.ZodLiteral<"setLayerStyle">;
@@ -408,14 +1639,14 @@ declare const OnLayerGroupChangeMessage: z.ZodObject<{
408
1639
  options: {
409
1640
  id: string;
410
1641
  };
411
- eventName: "onLayerGroupChange";
412
1642
  id: string;
1643
+ eventName: "onLayerGroupChange";
413
1644
  }, {
414
1645
  options: {
415
1646
  id: string;
416
1647
  };
417
- eventName: "onLayerGroupChange";
418
1648
  id: string;
1649
+ eventName: "onLayerGroupChange";
419
1650
  }>;
420
1651
  declare const GetLegendItemMessage: z.ZodObject<{
421
1652
  type: z.ZodLiteral<"getLegendItem">;
@@ -506,15 +1737,15 @@ declare const OnLegendItemChangeMessage: z.ZodObject<{
506
1737
  id: string;
507
1738
  layerId: string;
508
1739
  };
509
- eventName: "onLegendItemChange";
510
1740
  id: string;
1741
+ eventName: "onLegendItemChange";
511
1742
  }, {
512
1743
  options: {
513
1744
  id: string;
514
1745
  layerId: string;
515
1746
  };
516
- eventName: "onLegendItemChange";
517
1747
  id: string;
1748
+ eventName: "onLegendItemChange";
518
1749
  }>;
519
1750
  declare const SetLegendItemVisibilityMessage: z.ZodObject<{
520
1751
  type: z.ZodLiteral<"setLegendItemVisibility">;
@@ -829,10 +2060,10 @@ declare const SetToolMessage: z.ZodObject<{
829
2060
  type: z.ZodLiteral<"setTool">;
830
2061
  params: z.ZodNullable<z.ZodEnum<["pin", "line", "route", "polygon", "circle", "marker", "highlighter", "text", "note", "link"]>>;
831
2062
  }, z.UnknownKeysParam, z.ZodTypeAny, {
832
- params: "link" | "note" | "pin" | "line" | "route" | "polygon" | "circle" | "marker" | "highlighter" | "text" | null;
2063
+ params: "text" | "link" | "note" | "pin" | "line" | "route" | "polygon" | "circle" | "marker" | "highlighter" | null;
833
2064
  type: "setTool";
834
2065
  }, {
835
- params: "link" | "note" | "pin" | "line" | "route" | "polygon" | "circle" | "marker" | "highlighter" | "text" | null;
2066
+ params: "text" | "link" | "note" | "pin" | "line" | "route" | "polygon" | "circle" | "marker" | "highlighter" | null;
836
2067
  type: "setTool";
837
2068
  }>;
838
2069
  declare const GetToolMessage: z.ZodObject<{
@@ -848,8 +2079,8 @@ declare const GetToolMessage: z.ZodObject<{
848
2079
  declare const SetToolSettingsMessage: z.ZodObject<{
849
2080
  type: z.ZodLiteral<"setToolSettings">;
850
2081
  params: z.ZodDiscriminatedUnion<"tool", [z.ZodObject<z.objectUtil.extendShape<{
851
- color: z.ZodOptional<z.ZodString>;
852
2082
  symbol: z.ZodOptional<z.ZodString>;
2083
+ color: z.ZodOptional<z.ZodString>;
853
2084
  frame: z.ZodOptional<z.ZodNullable<z.ZodEnum<["frame-circle", "frame-square"]>>>;
854
2085
  }, {
855
2086
  tool: z.ZodLiteral<"pin">;
@@ -887,12 +2118,12 @@ declare const SetToolSettingsMessage: z.ZodObject<{
887
2118
  distanceMarker?: boolean | undefined;
888
2119
  }>, z.ZodObject<z.objectUtil.extendShape<{
889
2120
  color: z.ZodOptional<z.ZodString>;
890
- routingMode: z.ZodOptional<z.ZodEnum<["driving", "cycling", "walking", "flying"]>>;
891
2121
  strokeOpacity: z.ZodOptional<z.ZodNumber>;
892
2122
  strokeWidth: z.ZodOptional<z.ZodNumber>;
893
2123
  strokeStyle: z.ZodOptional<z.ZodEnum<["solid", "dashed", "dotted"]>>;
894
2124
  distanceMarker: z.ZodOptional<z.ZodBoolean>;
895
2125
  endCaps: z.ZodOptional<z.ZodBoolean>;
2126
+ routingMode: z.ZodOptional<z.ZodNullable<z.ZodEnum<["driving", "cycling", "walking", "flying"]>>>;
896
2127
  }, {
897
2128
  tool: z.ZodLiteral<"route">;
898
2129
  }>, "strip", z.ZodTypeAny, {
@@ -902,8 +2133,8 @@ declare const SetToolSettingsMessage: z.ZodObject<{
902
2133
  strokeWidth?: number | undefined;
903
2134
  strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
904
2135
  distanceMarker?: boolean | undefined;
905
- routingMode?: "driving" | "cycling" | "walking" | "flying" | undefined;
906
2136
  endCaps?: boolean | undefined;
2137
+ routingMode?: "driving" | "cycling" | "walking" | "flying" | null | undefined;
907
2138
  }, {
908
2139
  tool: "route";
909
2140
  color?: string | undefined;
@@ -911,14 +2142,14 @@ declare const SetToolSettingsMessage: z.ZodObject<{
911
2142
  strokeWidth?: number | undefined;
912
2143
  strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
913
2144
  distanceMarker?: boolean | undefined;
914
- routingMode?: "driving" | "cycling" | "walking" | "flying" | undefined;
915
2145
  endCaps?: boolean | undefined;
2146
+ routingMode?: "driving" | "cycling" | "walking" | "flying" | null | undefined;
916
2147
  }>, z.ZodObject<z.objectUtil.extendShape<{
917
2148
  color: z.ZodOptional<z.ZodString>;
918
- fillOpacity: z.ZodOptional<z.ZodNumber>;
919
2149
  strokeOpacity: z.ZodOptional<z.ZodNumber>;
920
2150
  strokeWidth: z.ZodOptional<z.ZodNumber>;
921
2151
  strokeStyle: z.ZodOptional<z.ZodEnum<["solid", "dashed", "dotted"]>>;
2152
+ fillOpacity: z.ZodOptional<z.ZodNumber>;
922
2153
  areaMarker: z.ZodOptional<z.ZodBoolean>;
923
2154
  }, {
924
2155
  tool: z.ZodLiteral<"polygon">;
@@ -940,10 +2171,10 @@ declare const SetToolSettingsMessage: z.ZodObject<{
940
2171
  areaMarker?: boolean | undefined;
941
2172
  }>, z.ZodObject<z.objectUtil.extendShape<{
942
2173
  color: z.ZodOptional<z.ZodString>;
943
- fillOpacity: z.ZodOptional<z.ZodNumber>;
944
2174
  strokeOpacity: z.ZodOptional<z.ZodNumber>;
945
2175
  strokeWidth: z.ZodOptional<z.ZodNumber>;
946
2176
  strokeStyle: z.ZodOptional<z.ZodEnum<["solid", "dashed", "dotted"]>>;
2177
+ fillOpacity: z.ZodOptional<z.ZodNumber>;
947
2178
  radiusMarker: z.ZodOptional<z.ZodBoolean>;
948
2179
  }, {
949
2180
  tool: z.ZodLiteral<"circle">;
@@ -1003,14 +2234,14 @@ declare const SetToolSettingsMessage: z.ZodObject<{
1003
2234
  tool: z.ZodLiteral<"text">;
1004
2235
  }>, "strip", z.ZodTypeAny, {
1005
2236
  tool: "text";
1006
- style?: "italic" | "light" | "regular" | "caps" | undefined;
1007
2237
  color?: string | undefined;
1008
- align?: "center" | "left" | "right" | undefined;
2238
+ align?: "left" | "center" | "right" | undefined;
2239
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
1009
2240
  }, {
1010
2241
  tool: "text";
1011
- style?: "italic" | "light" | "regular" | "caps" | undefined;
1012
2242
  color?: string | undefined;
1013
- align?: "center" | "left" | "right" | undefined;
2243
+ align?: "left" | "center" | "right" | undefined;
2244
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
1014
2245
  }>, z.ZodObject<z.objectUtil.extendShape<{
1015
2246
  color: z.ZodOptional<z.ZodString>;
1016
2247
  align: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
@@ -1019,14 +2250,14 @@ declare const SetToolSettingsMessage: z.ZodObject<{
1019
2250
  tool: z.ZodLiteral<"note">;
1020
2251
  }>, "strip", z.ZodTypeAny, {
1021
2252
  tool: "note";
1022
- style?: "italic" | "light" | "regular" | "caps" | undefined;
1023
2253
  color?: string | undefined;
1024
- align?: "center" | "left" | "right" | undefined;
2254
+ align?: "left" | "center" | "right" | undefined;
2255
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
1025
2256
  }, {
1026
2257
  tool: "note";
1027
- style?: "italic" | "light" | "regular" | "caps" | undefined;
1028
2258
  color?: string | undefined;
1029
- align?: "center" | "left" | "right" | undefined;
2259
+ align?: "left" | "center" | "right" | undefined;
2260
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
1030
2261
  }>]>;
1031
2262
  }, z.UnknownKeysParam, z.ZodTypeAny, {
1032
2263
  params: {
@@ -1048,8 +2279,8 @@ declare const SetToolSettingsMessage: z.ZodObject<{
1048
2279
  strokeWidth?: number | undefined;
1049
2280
  strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
1050
2281
  distanceMarker?: boolean | undefined;
1051
- routingMode?: "driving" | "cycling" | "walking" | "flying" | undefined;
1052
2282
  endCaps?: boolean | undefined;
2283
+ routingMode?: "driving" | "cycling" | "walking" | "flying" | null | undefined;
1053
2284
  } | {
1054
2285
  tool: "polygon";
1055
2286
  color?: string | undefined;
@@ -1078,14 +2309,14 @@ declare const SetToolSettingsMessage: z.ZodObject<{
1078
2309
  size?: number | undefined;
1079
2310
  } | {
1080
2311
  tool: "text";
1081
- style?: "italic" | "light" | "regular" | "caps" | undefined;
1082
2312
  color?: string | undefined;
1083
- align?: "center" | "left" | "right" | undefined;
2313
+ align?: "left" | "center" | "right" | undefined;
2314
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
1084
2315
  } | {
1085
2316
  tool: "note";
1086
- style?: "italic" | "light" | "regular" | "caps" | undefined;
1087
2317
  color?: string | undefined;
1088
- align?: "center" | "left" | "right" | undefined;
2318
+ align?: "left" | "center" | "right" | undefined;
2319
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
1089
2320
  };
1090
2321
  type: "setToolSettings";
1091
2322
  }, {
@@ -1108,8 +2339,8 @@ declare const SetToolSettingsMessage: z.ZodObject<{
1108
2339
  strokeWidth?: number | undefined;
1109
2340
  strokeStyle?: "solid" | "dashed" | "dotted" | undefined;
1110
2341
  distanceMarker?: boolean | undefined;
1111
- routingMode?: "driving" | "cycling" | "walking" | "flying" | undefined;
1112
2342
  endCaps?: boolean | undefined;
2343
+ routingMode?: "driving" | "cycling" | "walking" | "flying" | null | undefined;
1113
2344
  } | {
1114
2345
  tool: "polygon";
1115
2346
  color?: string | undefined;
@@ -1138,14 +2369,14 @@ declare const SetToolSettingsMessage: z.ZodObject<{
1138
2369
  size?: number | undefined;
1139
2370
  } | {
1140
2371
  tool: "text";
1141
- style?: "italic" | "light" | "regular" | "caps" | undefined;
1142
2372
  color?: string | undefined;
1143
- align?: "center" | "left" | "right" | undefined;
2373
+ align?: "left" | "center" | "right" | undefined;
2374
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
1144
2375
  } | {
1145
2376
  tool: "note";
1146
- style?: "italic" | "light" | "regular" | "caps" | undefined;
1147
2377
  color?: string | undefined;
1148
- align?: "center" | "left" | "right" | undefined;
2378
+ align?: "left" | "center" | "right" | undefined;
2379
+ style?: "italic" | "light" | "regular" | "caps" | undefined;
1149
2380
  };
1150
2381
  type: "setToolSettings";
1151
2382
  }>;
@@ -1153,10 +2384,10 @@ declare const GetToolSettingsMessage: z.ZodObject<{
1153
2384
  type: z.ZodLiteral<"getToolSettings">;
1154
2385
  params: z.ZodEnum<["pin", "line", "route", "polygon", "circle", "marker", "highlighter", "text", "note"]>;
1155
2386
  }, z.UnknownKeysParam, z.ZodTypeAny, {
1156
- params: "note" | "pin" | "line" | "route" | "polygon" | "circle" | "marker" | "highlighter" | "text";
2387
+ params: "text" | "note" | "pin" | "line" | "route" | "polygon" | "circle" | "marker" | "highlighter";
1157
2388
  type: "getToolSettings";
1158
2389
  }, {
1159
- params: "note" | "pin" | "line" | "route" | "polygon" | "circle" | "marker" | "highlighter" | "text";
2390
+ params: "text" | "note" | "pin" | "line" | "route" | "polygon" | "circle" | "marker" | "highlighter";
1160
2391
  type: "getToolSettings";
1161
2392
  }>;
1162
2393
  type ToolsSchema = {
@@ -1321,6 +2552,46 @@ declare const GotoViewportMessage: z.ZodObject<{
1321
2552
  };
1322
2553
  type: "setViewport";
1323
2554
  }>;
2555
+ declare const GetViewportConstraintsMessage: z.ZodObject<{
2556
+ type: z.ZodLiteral<"getViewportConstraints">;
2557
+ params: z.ZodUndefined;
2558
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
2559
+ type: "getViewportConstraints";
2560
+ params?: undefined;
2561
+ }, {
2562
+ type: "getViewportConstraints";
2563
+ params?: undefined;
2564
+ }>;
2565
+ declare const SetViewportConstraintsMessage: z.ZodObject<{
2566
+ type: z.ZodLiteral<"setViewportConstraints">;
2567
+ params: z.ZodNullable<z.ZodObject<{
2568
+ minZoom: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2569
+ maxZoom: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2570
+ bounds: z.ZodOptional<z.ZodNullable<z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>>>;
2571
+ }, "strip", z.ZodTypeAny, {
2572
+ minZoom?: number | null | undefined;
2573
+ maxZoom?: number | null | undefined;
2574
+ bounds?: [number, number, number, number] | null | undefined;
2575
+ }, {
2576
+ minZoom?: number | null | undefined;
2577
+ maxZoom?: number | null | undefined;
2578
+ bounds?: [number, number, number, number] | null | undefined;
2579
+ }>>;
2580
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
2581
+ params: {
2582
+ minZoom?: number | null | undefined;
2583
+ maxZoom?: number | null | undefined;
2584
+ bounds?: [number, number, number, number] | null | undefined;
2585
+ } | null;
2586
+ type: "setViewportConstraints";
2587
+ }, {
2588
+ params: {
2589
+ minZoom?: number | null | undefined;
2590
+ maxZoom?: number | null | undefined;
2591
+ bounds?: [number, number, number, number] | null | undefined;
2592
+ } | null;
2593
+ type: "setViewportConstraints";
2594
+ }>;
1324
2595
  declare const ViewportFitBoundsMessage: z.ZodObject<{
1325
2596
  type: z.ZodLiteral<"fitViewportToBounds">;
1326
2597
  params: z.ZodObject<{
@@ -1345,6 +2616,8 @@ type ViewportSchema = {
1345
2616
  methods: {
1346
2617
  getViewport: Method<zInfer<typeof GetViewportMessage>, ViewportState>;
1347
2618
  setViewport: Method<zInfer<typeof GotoViewportMessage>, void>;
2619
+ getViewportConstraints: Method<zInfer<typeof GetViewportConstraintsMessage>, ViewportConstraints | null>;
2620
+ setViewportConstraints: Method<zInfer<typeof SetViewportConstraintsMessage>, void>;
1348
2621
  fitViewportToBounds: Method<zInfer<typeof ViewportFitBoundsMessage>, void>;
1349
2622
  };
1350
2623
  listeners: {