@progress/kendo-react-map 13.3.0 → 13.4.0-develop.2

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.
Files changed (55) hide show
  1. package/Map.d.ts +200 -0
  2. package/Map.mjs +9 -9
  3. package/MapContext.d.ts +22 -0
  4. package/MapProps.d.ts +122 -0
  5. package/common/events.d.ts +22 -0
  6. package/common/map-types.d.ts +8 -0
  7. package/components/BubbleLayer.d.ts +26 -0
  8. package/components/BubbleLayerTooltip.d.ts +25 -0
  9. package/components/Layers.d.ts +25 -0
  10. package/components/MarkerLayer.d.ts +26 -0
  11. package/components/MarkerLayerTooltip.d.ts +25 -0
  12. package/components/ShapeLayer.d.ts +26 -0
  13. package/components/ShapeLayerTooltip.d.ts +25 -0
  14. package/components/TileLayer.d.ts +19 -0
  15. package/components/base/CollectionConfigurationComponent.d.ts +27 -0
  16. package/components/base/ConfigurationComponent.d.ts +33 -0
  17. package/components/index.d.ts +16 -0
  18. package/defaults.d.ts +8 -0
  19. package/dist/cdn/js/kendo-react-map.js +1 -1
  20. package/events/base-event.d.ts +21 -0
  21. package/events/before-reset-event.d.ts +19 -0
  22. package/events/dom-event.d.ts +29 -0
  23. package/events/map-click-event.d.ts +27 -0
  24. package/events/map-event-builder.d.ts +13 -0
  25. package/events/map-event-builder.js +1 -1
  26. package/events/map-event-builder.mjs +28 -28
  27. package/events/marker-activate-event.d.ts +27 -0
  28. package/events/marker-click-event.d.ts +27 -0
  29. package/events/marker-created-event.d.ts +29 -0
  30. package/events/pan-end-event.d.ts +31 -0
  31. package/events/pan-event.d.ts +31 -0
  32. package/events/preventable-event.d.ts +25 -0
  33. package/events/reset-event.d.ts +21 -0
  34. package/events/shape-click-event.d.ts +32 -0
  35. package/events/shape-created-event.d.ts +36 -0
  36. package/events/shape-feature-created-event.d.ts +36 -0
  37. package/events/shape-mouse-enter-event.d.ts +35 -0
  38. package/events/shape-mouse-leave-event.d.ts +35 -0
  39. package/events/zoom-end-event.d.ts +23 -0
  40. package/events/zoom-start-event.d.ts +25 -0
  41. package/index.d.mts +9 -1017
  42. package/index.d.ts +9 -1017
  43. package/package-metadata.d.ts +12 -0
  44. package/package-metadata.js +1 -1
  45. package/package-metadata.mjs +10 -16
  46. package/package.json +4 -4
  47. package/store/reducer.d.ts +17 -0
  48. package/store/store.d.ts +29 -0
  49. package/tooltip/BubbleTooltipContext.d.ts +29 -0
  50. package/tooltip/MapTooltip.d.ts +44 -0
  51. package/tooltip/MarkerTooltipContext.d.ts +29 -0
  52. package/tooltip/Popup.d.ts +37 -0
  53. package/tooltip/ShapeTooltipContext.d.ts +25 -0
  54. package/tooltip/index.d.ts +12 -0
  55. package/utils/index.d.ts +16 -0
package/index.d.ts CHANGED
@@ -5,1020 +5,12 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- import { Align } from '@progress/kendo-react-popup';
9
- import { BubbleLayerOptions } from '@progress/kendo-charts';
10
- import { BubbleLayerSymbol } from '@progress/kendo-charts';
11
- import { BubbleLayerSymbolArgs } from '@progress/kendo-charts';
12
- import { default as default_2 } from 'prop-types';
13
- import { Element as Element_2 } from '@progress/kendo-drawing';
14
- import { Extent } from '@progress/kendo-charts';
15
- import { geometry } from '@progress/kendo-drawing';
16
- import { Group } from '@progress/kendo-drawing';
17
- import { InstanceObserver } from '@progress/kendo-charts';
18
- import { JSX } from 'react/jsx-runtime';
19
- import { Location as Location_2 } from '@progress/kendo-charts';
20
- import { Map as Map_3 } from '@progress/kendo-charts';
21
- import { MapBeforeResetEvent } from '@progress/kendo-charts';
22
- import { MapClickEvent as MapClickEvent_2 } from '@progress/kendo-charts';
23
- import { MapContextType } from '../../MapContext';
24
- import { MapContextType as MapContextType_3 } from '../MapContext';
25
- import { MapControls } from '@progress/kendo-charts';
26
- import { MapControlsPosition } from '@progress/kendo-charts';
27
- import { MapLayer } from '@progress/kendo-charts';
28
- import { MapLayerOptions } from '@progress/kendo-charts';
29
- import { MapMarker } from '@progress/kendo-charts';
30
- import { MapMarkerActivateEvent } from '@progress/kendo-charts';
31
- import { MapMarkerClickEvent } from '@progress/kendo-charts';
32
- import { MapMarkerCreatedEvent } from '@progress/kendo-charts';
33
- import { MapOptions } from '@progress/kendo-charts';
34
- import { MapPanEndEvent } from '@progress/kendo-charts';
35
- import { MapPanEvent } from '@progress/kendo-charts';
36
- import { MapResetEvent } from '@progress/kendo-charts';
37
- import { MapShapeClickEvent } from '@progress/kendo-charts';
38
- import { MapShapeCreatedEvent } from '@progress/kendo-charts';
39
- import { MapShapeFeatureCreatedEvent } from '@progress/kendo-charts';
40
- import { MapShapeMouseEnterEvent } from '@progress/kendo-charts';
41
- import { MapShapeMouseLeaveEvent } from '@progress/kendo-charts';
42
- import { MapZoomEndEvent } from '@progress/kendo-charts';
43
- import { MapZoomStartEvent } from '@progress/kendo-charts';
44
- import { MarkerLayerOptions } from '@progress/kendo-charts';
45
- import { Offset } from '@progress/kendo-react-popup';
46
- import * as React_2 from 'react';
47
- import { ShapeLayerOptions } from '@progress/kendo-charts';
48
- import { Store as Store_2 } from '../../store/store';
49
- import { Store as Store_3 } from './../../store/store';
50
- import { TileLayerOptions } from '@progress/kendo-charts';
51
- import { TileUrlTemplateArgs } from '@progress/kendo-charts';
52
-
53
- /**
54
- * @hidden
55
- */
56
- declare abstract class BaseEvent {
57
- /**
58
- * The `Map` component that triggered the event.
59
- */
60
- target: Map_2;
61
- /**
62
- * @hidden
63
- */
64
- constructor(target: Map_2);
65
- }
66
-
67
- /**
68
- * Fires immediately before the map is reset. This event is typically used for cleanup by layer implementers.
69
- */
70
- export declare class BeforeResetEvent extends BaseEvent implements MapBeforeResetEvent {
71
- /**
72
- * @hidden
73
- */
74
- constructor(_: any, target: Map_2);
75
- }
76
-
77
- export { BubbleLayerSymbol }
78
-
79
- export { BubbleLayerSymbolArgs }
80
-
81
- /**
82
- * Context object for bubble layer tooltips.
83
- */
84
- export declare interface BubbleTooltipContext {
85
- /**
86
- * The original data item used to create the bubble.
87
- */
88
- dataItem: any;
89
- /**
90
- * The index of the bubble layer in the map.
91
- */
92
- layerIndex: number;
93
- /**
94
- * The location of the bubble.
95
- */
96
- location: Location_2;
97
- /**
98
- * The numerical value of the bubble
99
- */
100
- value: number;
101
- }
102
-
103
- /**
104
- * @hidden
105
- */
106
- export declare class CollectionConfigurationComponent extends React_2.Component<CollectionConfigurationProps> {
107
- static contextType: React_2.Context<MapContextType | null>;
108
- context: React_2.ContextType<typeof MapContext>;
109
- get optionsStore(): Store_2 | undefined;
110
- renderChildren(child: any, index: number): React_2.DetailedReactHTMLElement<any, HTMLElement>;
111
- render(): any;
112
- }
113
-
114
- /**
115
- * @hidden
116
- */
117
- declare interface CollectionConfigurationProps {
118
- _mapKey: string;
119
- _parentStore?: any;
120
- [x: string]: any;
121
- }
122
-
123
- /**
124
- * @hidden
125
- */
126
- export declare class ConfigurationComponent extends React_2.Component<ConfigurationComponentProps> {
127
- static contextType: React_2.Context<MapContextType | null>;
128
- context: React_2.ContextType<typeof MapContext>;
129
- childStore: any;
130
- get optionsStore(): Store_3 | undefined;
131
- constructor(props: any);
132
- render(): any;
133
- componentDidMount(): void;
134
- componentDidUpdate(): void;
135
- private dispatch;
136
- private renderChildren;
137
- }
138
-
139
- /**
140
- * @hidden
141
- */
142
- declare interface ConfigurationComponentProps {
143
- _mapKey?: string;
144
- _mapCollectionIdxKey?: string;
145
- _parentStore?: any;
146
- [x: string]: any;
147
- }
148
-
149
- /**
150
- * @hidden
151
- */
152
- declare class DomEvent<T> {
153
- /**
154
- * The `Map` component that triggered the event.
155
- */
156
- sender: React.Component;
157
- /**
158
- * The syntheticEvent
159
- */
160
- syntheticEvent: T;
161
- /**
162
- * @hidden
163
- */
164
- constructor(sender: React.Component, e: T);
165
- }
166
-
167
- export { Extent }
168
-
169
- export { Location_2 as Location }
170
-
171
- /**
172
- * Represents the [KendoReact Map component](https://www.telerik.com/kendo-react-ui/components/map).
173
- *
174
- * @remarks
175
- * Supported children components are: {@link MapLayers}.
176
- */
177
- declare class Map_2 extends React_2.Component<MapProps, {}> {
178
- /**
179
- * @hidden
180
- */
181
- static propTypes: {
182
- dir: default_2.Requireable<string>;
183
- };
184
- /**
185
- * @hidden
186
- */
187
- static defaultProps: {};
188
- /**
189
- * @hidden
190
- */
191
- mapInstance: Map_3 | null;
192
- /**
193
- * @hidden
194
- */
195
- get element(): HTMLDivElement;
196
- protected _element: HTMLDivElement | null;
197
- protected optionsStore: any;
198
- protected optionsUnsubscriber: Function;
199
- protected observersStore: any;
200
- protected mapObserver: InstanceObserver;
201
- protected childrenObserver: InstanceObserver;
202
- protected contextValue: MapContextType_2;
203
- private readonly showLicenseWatermark;
204
- private readonly licenseMessage?;
205
- constructor(props: MapProps);
206
- private iconsType;
207
- private svgIcons;
208
- /**
209
- * @hidden
210
- */
211
- componentDidMount(): void;
212
- /**
213
- * @hidden
214
- */
215
- componentWillUnmount(): void;
216
- /**
217
- * @hidden
218
- */
219
- componentDidUpdate(prevProps: MapProps): void;
220
- /**
221
- * @hidden
222
- */
223
- render(): any;
224
- /**
225
- * @hidden
226
- */
227
- getMapOptions(): any;
228
- /**
229
- * The marker layers instances.
230
- */
231
- get layers(): MapLayer[];
232
- /**
233
- * Gets the extent (visible area) of the map.
234
- */
235
- get extent(): Extent | undefined;
236
- /**
237
- * Sets the extent (visible area) of the map.
238
- */
239
- set extent(extent: Extent | undefined);
240
- /**
241
- * Detects the size of the container and redraws the Map.
242
- * Resizing is automatic unless you set the `resizeRateLimit` option to `0`.
243
- */
244
- resize(): void;
245
- /**
246
- * Retrieves the size of the visible portion of the map.
247
- *
248
- * @returns The size (width and height) of the visible portion of the map.
249
- */
250
- viewSize(): {
251
- width: number;
252
- height: number;
253
- };
254
- /**
255
- * Returns the event coordinates relative to the map element. Offset coordinates are not synchronized to a particular location on the map.
256
- *
257
- * @param e The mouse event.
258
- * @returns The event coordinates relative to the map element.
259
- */
260
- eventOffset(e: any): geometry.Point | undefined;
261
- /**
262
- * Retrieves projected (layer) coordinates that correspond to this mouse event.
263
- * Layer coordinates are absolute and change only when the zoom level is changed.
264
- *
265
- * @param e The mouse event.
266
- * @returns The projected (layer) coordinates that correspond to this event.
267
- */
268
- eventToLayer(e: any): geometry.Point | undefined;
269
- /**
270
- * Retrieves the geographic location that correspond to this mouse event.
271
- *
272
- * @param e The mouse event.
273
- * @returns The geographic location that correspond to this mouse event.
274
- */
275
- eventToLocation(e: any): geometry.Point | undefined;
276
- /**
277
- * Retrieves relative (view) coordinates that correspond to this mouse event.
278
- * Layer elements positioned on these coordinates will appear under the mouse cursor.
279
- * View coordinates are no longer valid after a map reset.
280
- *
281
- * @param e The mouse event.
282
- * @returns The relative (view) coordinates that correspond to this mouse event.
283
- */
284
- eventToView(e: any): geometry.Point | undefined;
285
- /**
286
- * Transforms layer (projected) coordinates to geographical location.
287
- *
288
- * @param point The layer (projected) coordinates. An array argument is assumed to be in x, y order.
289
- * @param zoom Optional. Assumed zoom level. Defaults to the current zoom level.
290
- * @returns The geographic location that corresponds to the layer coordinates.
291
- */
292
- layerToLocation(point: geometry.Point | number[], zoom?: number): Location_2 | undefined;
293
- /**
294
- * Returns the layer (projected) coordinates that correspond to a geographical location.
295
- *
296
- * @param location The geographic location. An array argument is assumed to be in [Latitude, Longitude] order.
297
- * @param zoom Optional. Assumed zoom level. Defaults to the current zoom level.
298
- * @returns The layer (projected) coordinates.
299
- */
300
- locationToLayer(location: Location_2 | number[], zoom?: number): geometry.Point | undefined;
301
- /**
302
- * Returns the view (relative) coordinates that correspond to a geographical location.
303
- *
304
- * @param location The geographic location. An array argument is assumed to be in [Latitude, Longitude] order.
305
- * @returns The view coordinates that correspond to a geographical location.
306
- */
307
- locationToView(location: Location_2 | number[]): geometry.Point | undefined;
308
- /**
309
- * Returns the geographical location that correspond to the view (relative) coordinates.
310
- *
311
- * @param point The view coordinates. An array argument is assumed to be in x, y order.
312
- * @param zoom Optional. Assumed zoom level. Defaults to the current zoom level.
313
- * @returns The geographic location that corresponds to the view coordinates.
314
- */
315
- viewToLocation(point: geometry.Point | number[], zoom?: number): Location_2 | undefined;
316
- /**
317
- * Load markers in the Map. This method will clear the current markers and show the new ones.
318
- *
319
- * @param newMarkers An array of markers.
320
- */
321
- loadMarkers(newMarkers: any[]): void;
322
- /**
323
- * @hidden
324
- */
325
- refresh(): void;
326
- /**
327
- * @hidden
328
- */
329
- instantiateCoreMap(): void;
330
- /**
331
- * @hidden
332
- */
333
- trigger(name: string, e: any): boolean;
334
- /**
335
- * @hidden
336
- */
337
- requiresHandlers(names: string[]): boolean;
338
- /**
339
- * @hidden
340
- */
341
- triggerDomEvent<T>(name: string, e: DomEvent<T>): boolean;
342
- /**
343
- * @hidden
344
- */
345
- onInit: (e: any) => void;
346
- /**
347
- * @hidden
348
- */
349
- onRender: (e: any) => void;
350
- /**
351
- * @hidden
352
- */
353
- onMapMouseLeave: (e: React_2.MouseEvent<HTMLDivElement>) => void;
354
- private setIcons;
355
- }
356
- export { Map_2 as Map }
357
-
358
- /**
359
- * Represents the KendoReact MapBubbleLayer component.
360
- *
361
- * @remarks
362
- * Supported children components are: {@link MapBubbleLayerTooltip}.
363
- */
364
- export declare const MapBubbleLayer: React_2.FunctionComponent<MapBubbleLayerProps>;
365
-
366
- /**
367
- * Represents the props of the KendoReact MapBubbleLayer component.
368
- */
369
- export declare interface MapBubbleLayerProps extends BubbleLayerOptions {
370
- /**
371
- * The child tooltip components.
372
- */
373
- children?: React_2.ReactNode;
374
- }
375
-
376
- /**
377
- * Represents the KendoReact MapBubbleLayerTooltip component.
378
- */
379
- export declare const MapBubbleLayerTooltip: React_2.FunctionComponent<MapBubbleLayerTooltipProps>;
380
-
381
- /**
382
- * Represents the props of the KendoReact BubbleTooltip component.
383
- */
384
- export declare interface MapBubbleLayerTooltipProps {
385
- /**
386
- * The renderer for the bubble layer tooltip.
387
- *
388
- * @return the content of the tooltip.
389
- */
390
- render?: (props: BubbleTooltipContext) => React_2.ReactNode;
391
- }
392
-
393
- /**
394
- * Fires when the user clicks on the map.
395
- */
396
- export declare class MapClickEvent extends BaseEvent implements MapClickEvent_2 {
397
- /**
398
- * The location of the clicked point.
399
- */
400
- location: Location_2;
401
- /**
402
- * The source DOM event instance
403
- */
404
- originalEvent: any;
405
- /**
406
- * @hidden
407
- */
408
- constructor(e: MapClickEvent_2, target: Map_2);
409
- }
410
-
411
- /**
412
- * @hidden
413
- */
414
- declare const MapContext: React_2.Context<MapContextType_2 | null>;
415
-
416
- /**
417
- * @hidden
418
- */
419
- declare interface MapContextType_2 {
420
- optionsStore: Store;
421
- observersStore: Store;
422
- childrenObserver: InstanceObserver;
423
- }
424
-
425
- export { MapControls }
426
-
427
- export { MapControlsPosition }
428
-
429
- export { MapLayer }
430
-
431
- export { MapLayerOptions }
432
-
433
- /**
434
- * Represents the KendoReact MapLayers component.
435
- *
436
- * @remarks
437
- * Supported children components are: {@link MapShapeLayer}, {@link MapBubbleLayer}, {@link MapMarkerLayer}, {@link MapTileLayer}.
438
- */
439
- export declare const MapLayers: React_2.FunctionComponent<MapLayersProps>;
440
-
441
- /**
442
- * Represents the props of the KendoReact MapLayers component.
443
- */
444
- export declare interface MapLayersProps {
445
- /**
446
- * The child layer components.
447
- */
448
- children?: React_2.ReactNode;
449
- }
450
-
451
- export { MapMarker }
452
-
453
- /**
454
- * Represents the KendoReact MapMarkerLayer component.
455
- *
456
- * @remarks
457
- * Supported children components are: {@link MapMarkerLayerTooltip}.
458
- */
459
- export declare const MapMarkerLayer: React_2.FunctionComponent<MapMarkerLayerProps>;
460
-
461
- /**
462
- * Represents the props of the KendoReact MapMarkerLayer component.
463
- */
464
- export declare interface MapMarkerLayerProps extends MarkerLayerOptions {
465
- /**
466
- * The child components. Supports `MapMarkerLayerTooltip`.
467
- */
468
- children?: React_2.ReactNode;
469
- }
470
-
471
- /**
472
- * Represents the KendoReact MapMarkerLayerTooltip component.
473
- */
474
- export declare const MapMarkerLayerTooltip: React_2.FunctionComponent<MapMarkerLayerTooltipProps>;
475
-
476
- /**
477
- * Represents the props of the KendoReact MapMarkerLayerTooltip component.
478
- */
479
- export declare interface MapMarkerLayerTooltipProps {
480
- /**
481
- * The renderer for the marker layer tooltip.
482
- *
483
- * @return the content of the tooltip.
484
- */
485
- render?: (props: MarkerTooltipContext) => React_2.ReactNode;
486
- }
487
-
488
- /**
489
- * Represents the props of the KendoReact Map component.
490
- */
491
- export declare interface MapProps extends MapOptions {
492
- /**
493
- * Represents the `dir` HTML attribute.
494
- *
495
- * @example
496
- * ```jsx
497
- * <Map dir="rtl" />
498
- * ```
499
- */
500
- dir?: string;
501
- /**
502
- * The styles that are applied to the component.
503
- *
504
- * @example
505
- * ```jsx
506
- * <Map style={{ height: '500px' }} />
507
- * ```
508
- */
509
- style?: React_2.CSSProperties;
510
- /**
511
- * Sets additional CSS classes to the component.
512
- *
513
- * @example
514
- * ```jsx
515
- * <Map className="custom-map-class" />
516
- * ```
517
- */
518
- className?: string;
519
- /**
520
- * @hidden
521
- */
522
- children?: any;
523
- /**
524
- * Fires when the Map is about to refresh. You can use the event to prevent the refresh of the Map in specific cases.
525
- */
526
- onRefresh?: (mapOptions: any, mapInstance: any) => void;
527
- /**
528
- * Fires immediately before the map is reset. This event is typically used for cleanup by layer implementers.
529
- */
530
- onBeforeReset?: (event: BeforeResetEvent) => void;
531
- /**
532
- * Fires when the user clicks on the map.
533
- */
534
- onMapClick?: (event: MapClickEvent) => void;
535
- /**
536
- * Fires when a marker has been displayed and has a DOM element assigned.
537
- */
538
- onMarkerActivate?: (event: MarkerActivateEvent) => void;
539
- /**
540
- * Fires when a marker has been clicked or tapped.
541
- */
542
- onMarkerClick?: (event: MarkerClickEvent) => void;
543
- /**
544
- * Fires when a marker has been created and is about to be displayed.
545
- *
546
- * Cancelling the event prevents the marker from being shown.
547
- */
548
- onMarkerCreated?: (event: MarkerCreatedEvent) => void;
549
- /**
550
- * Fires after the map viewport has been moved.
551
- */
552
- onPanEnd?: (event: PanEndEvent) => void;
553
- /**
554
- * Fires while the map viewport is being moved.
555
- */
556
- onPan?: (event: PanEvent) => void;
557
- /**
558
- * Fires when the map is reset.
559
- *
560
- * This typically occurs on initial load and after a zoom/center change.
561
- */
562
- onReset?: (event: ResetEvent) => void;
563
- /**
564
- * Fires when a shape is clicked or tapped.
565
- */
566
- onShapeClick?: (event: ShapeClickEvent) => void;
567
- /**
568
- * Fires when a shape is created, but is not rendered yet.
569
- */
570
- onShapeCreated?: (event: ShapeCreatedEvent) => void;
571
- /**
572
- * Fires when a [GeoJSON Feature](https://geojson.org/geojson-spec.html#feature-objects) is created on a shape layer.
573
- */
574
- onShapeFeatureCreated?: (event: ShapeFeatureCreatedEvent) => void;
575
- /**
576
- * Fires when the mouse enters a shape.
577
- *
578
- * > This event fires reliably only for shapes that have set fill color.
579
- * > The opacity can still be set to 0 so the shapes appear to have no fill.
580
- */
581
- onShapeMouseEnter?: (event: ShapeMouseEnterEvent) => void;
582
- /**
583
- * Fires when the mouse leaves a shape.
584
- *
585
- * > This event fires reliably only for shapes that have set fill color.
586
- * > The opacity can still be set to 0 so the shapes appear to have no fill.
587
- */
588
- onShapeMouseLeave?: (event: ShapeMouseLeaveEvent) => void;
589
- /**
590
- * Fires when the map zoom level is about to change.
591
- *
592
- * Cancelling the event prevents the user action.
593
- */
594
- onZoomStart?: (event: ZoomStartEvent) => void;
595
- /**
596
- * Fires when the map zoom level has changed.
597
- */
598
- onZoomEnd?: (event: ZoomEndEvent) => void;
599
- }
600
-
601
- /**
602
- * Represents the KendoReact MapShapeLayer component.
603
- *
604
- * @remarks
605
- * Supported children components are: {@link MapShapeLayerTooltip}.
606
- */
607
- export declare const MapShapeLayer: React_2.FunctionComponent<MapShapeLayerProps>;
608
-
609
- /**
610
- * Represents the props of the KendoReact MapShapeLayer component.
611
- */
612
- export declare interface MapShapeLayerProps extends ShapeLayerOptions {
613
- /**
614
- * The child components. Supports `MapShapeLayerTooltip`.
615
- */
616
- children?: React_2.ReactNode;
617
- }
618
-
619
- /**
620
- * Represents the KendoReact MapShapeLayerTooltip component.
621
- */
622
- export declare const MapShapeLayerTooltip: React_2.FunctionComponent<MapShapeLayerTooltipProps>;
623
-
624
- /**
625
- * Represents the props of the KendoReact ShapeTooltip component.
626
- */
627
- export declare interface MapShapeLayerTooltipProps {
628
- /**
629
- * The renderer for the shape layer tooltip.
630
- *
631
- * @return the content of the tooltip.
632
- */
633
- render?: (props: ShapeTooltipContext) => React_2.ReactNode;
634
- }
635
-
636
- /**
637
- * Represents the KendoReact MapTileLayer component.
638
- */
639
- export declare const MapTileLayer: React_2.FunctionComponent<MapTileLayerProps>;
640
-
641
- /**
642
- * Represents the props of the KendoReact MapTileLayer component.
643
- */
644
- export declare interface MapTileLayerProps extends TileLayerOptions {
645
- }
646
-
647
- /**
648
- * @hidden
649
- */
650
- export declare class MapTooltip extends React_2.Component<{}, MapTooltipState> {
651
- static contextType: React_2.Context<MapContextType_3 | null>;
652
- context: React_2.ContextType<typeof MapContext>;
653
- readonly state: MapTooltipState;
654
- mapObserver?: InstanceObserver;
655
- componentDidMount(): void;
656
- render(): JSX.Element | null;
657
- componentWillUnmount(): void;
658
- onShowTooltip(e: any): void;
659
- onHideTooltip(): void;
660
- createTooltipContext(e: any): TooltipContext;
661
- findRenderFunctionByLayer(layerIndex: number): any;
662
- }
663
-
664
- /**
665
- * @hidden
666
- */
667
- declare interface MapTooltipState {
668
- className?: string | undefined;
669
- popupShown: boolean;
670
- popupAlign?: Align;
671
- popupOffset?: Offset;
672
- popupStyles?: any;
673
- popupContext?: TooltipContext;
674
- shared?: boolean;
675
- }
676
-
677
- /**
678
- * Fires when a marker has been displayed and has a DOM element assigned.
679
- */
680
- export declare class MarkerActivateEvent extends BaseEvent implements MapMarkerActivateEvent {
681
- /**
682
- * The marker instance.
683
- */
684
- marker: MapMarker;
685
- /**
686
- * The marker layer instance.
687
- */
688
- layer: MapLayer;
689
- /**
690
- * @hidden
691
- */
692
- constructor(e: MapMarkerActivateEvent, target: Map_2);
693
- }
694
-
695
- /**
696
- * Fires when a marker has been clicked or tapped.
697
- */
698
- export declare class MarkerClickEvent extends BaseEvent implements MapMarkerClickEvent {
699
- /**
700
- * The marker instance.
701
- */
702
- marker: MapMarker;
703
- /**
704
- * The marker layer instance.
705
- */
706
- layer: MapLayer;
707
- /**
708
- * @hidden
709
- */
710
- constructor(e: MapMarkerClickEvent, target: Map_2);
711
- }
712
-
713
- /**
714
- * Fires when a marker has been created and is about to be displayed.
715
- *
716
- * Cancelling the event prevents the marker from being shown.
717
- */
718
- export declare class MarkerCreatedEvent extends PreventableEvent implements MapMarkerCreatedEvent {
719
- /**
720
- * The marker instance.
721
- */
722
- marker: MapMarker;
723
- /**
724
- * The marker layer instance.
725
- */
726
- layer: MapLayer;
727
- /**
728
- * @hidden
729
- */
730
- constructor(e: MapMarkerCreatedEvent, target: Map_2);
731
- }
732
-
733
- /**
734
- * Context object for marker tooltips.
735
- */
736
- export declare interface MarkerTooltipContext {
737
- /**
738
- * The original data item used to create the marker.
739
- */
740
- dataItem: any;
741
- /**
742
- * The index of the marker layer in the map.
743
- */
744
- layerIndex: number;
745
- /**
746
- * The location of the marker.
747
- */
748
- location: Location_2;
749
- /**
750
- * The title of the marker.
751
- */
752
- title: string;
753
- }
754
-
755
- /**
756
- * Fires after the map viewport has been moved.
757
- */
758
- export declare class PanEndEvent extends BaseEvent implements MapPanEndEvent {
759
- /**
760
- * The map origin (top left or NW corner).
761
- */
762
- origin: Location_2;
763
- /**
764
- * The current map center.
765
- */
766
- center: Location_2;
767
- /**
768
- * The source DOM event instance
769
- */
770
- originalEvent: any;
771
- /**
772
- * @hidden
773
- */
774
- constructor(e: MapPanEndEvent, target: Map_2);
775
- }
776
-
777
- /**
778
- * Fires while the map viewport is being moved.
779
- */
780
- export declare class PanEvent extends BaseEvent implements MapPanEvent {
781
- /**
782
- * The map origin (top left or NW corner).
783
- */
784
- origin: Location_2;
785
- /**
786
- * The current map center.
787
- */
788
- center: Location_2;
789
- /**
790
- * The source DOM event instance
791
- */
792
- originalEvent: any;
793
- /**
794
- * @hidden
795
- */
796
- constructor(e: MapPanEvent, target: Map_2);
797
- }
798
-
799
- /**
800
- * @hidden
801
- */
802
- declare abstract class PreventableEvent extends BaseEvent {
803
- private prevented;
804
- /**
805
- * Prevents the default action for a specified event. In this way, the source component suppresses the built-in behavior that follows the event.
806
- */
807
- preventDefault(): void;
808
- /**
809
- * Returns `true` if the event was prevented by any of its subscribers.
810
- *
811
- * @returns `true` if the default action was prevented.
812
- * Otherwise, returns `false`.
813
- */
814
- isDefaultPrevented(): boolean;
815
- }
816
-
817
- /**
818
- * Fires when the map is reset.
819
- *
820
- * This typically occurs on initial load and after a zoom/center change.
821
- */
822
- export declare class ResetEvent extends BaseEvent implements MapResetEvent {
823
- /**
824
- * @hidden
825
- */
826
- constructor(_: any, target: Map_2);
827
- }
828
-
829
- /**
830
- * Fires when a shape is clicked or tapped.
831
- */
832
- export declare class ShapeClickEvent extends BaseEvent implements MapShapeClickEvent {
833
- /**
834
- * The shape layer instance.
835
- */
836
- layer: MapLayer;
837
- /**
838
- * The shape instance.
839
- */
840
- shape: Element_2;
841
- /**
842
- * The source DOM event instance
843
- */
844
- originalEvent: any;
845
- /**
846
- * @hidden
847
- */
848
- constructor(e: MapShapeClickEvent, target: Map_2);
849
- }
850
-
851
- /**
852
- * Fires when a shape is created, but is not rendered yet.
853
- */
854
- export declare class ShapeCreatedEvent extends BaseEvent implements MapShapeCreatedEvent {
855
- /**
856
- * The shape layer instance.
857
- */
858
- layer: MapLayer;
859
- /**
860
- * The shape instance.
861
- */
862
- shape: Element_2;
863
- /**
864
- * The original data item for this Shape.
865
- */
866
- dataItem: any;
867
- /**
868
- * The shape location
869
- */
870
- location: Location_2;
871
- /**
872
- * @hidden
873
- */
874
- constructor(e: any, target: Map_2);
875
- }
876
-
877
- /**
878
- * Fires when a [GeoJSON Feature](https://geojson.org/geojson-spec.html#feature-objects) is created on a shape layer.
879
- */
880
- export declare class ShapeFeatureCreatedEvent extends BaseEvent implements MapShapeFeatureCreatedEvent {
881
- /**
882
- * The original data item for this Feature. Members include `geometries` and `properties`.
883
- */
884
- dataItem: any;
885
- /**
886
- * The shape layer instance.
887
- */
888
- layer: MapLayer;
889
- /**
890
- * The group containing feature shape instances.
891
- */
892
- group: Group;
893
- /**
894
- * A reference to the `dataItem.properties` object.
895
- */
896
- properties: any;
897
- /**
898
- * @hidden
899
- */
900
- constructor(e: MapShapeFeatureCreatedEvent, target: Map_2);
901
- }
902
-
903
- /**
904
- * Fires when the mouse enters a shape.
905
- *
906
- * > This event fires reliably only for shapes that have set fill color.
907
- * > The opacity can still be set to 0 so the shapes appear to have no fill.
908
- */
909
- export declare class ShapeMouseEnterEvent extends BaseEvent implements MapShapeMouseEnterEvent {
910
- /**
911
- * The shape layer instance.
912
- */
913
- layer: MapLayer;
914
- /**
915
- * The shape instance.
916
- */
917
- shape: Element_2;
918
- /**
919
- * The source DOM event instance
920
- */
921
- originalEvent: any;
922
- /**
923
- * @hidden
924
- */
925
- constructor(e: MapShapeMouseEnterEvent, target: Map_2);
926
- }
927
-
928
- /**
929
- * Fires when the mouse leaves a shape.
930
- *
931
- * > This event fires reliably only for shapes that have set fill color.
932
- * > The opacity can still be set to 0 so the shapes appear to have no fill.
933
- */
934
- export declare class ShapeMouseLeaveEvent extends BaseEvent implements MapShapeMouseLeaveEvent {
935
- /**
936
- * The shape layer instance.
937
- */
938
- layer: MapLayer;
939
- /**
940
- * The shape instance.
941
- */
942
- shape: Element_2;
943
- /**
944
- * The source DOM event instance
945
- */
946
- originalEvent: any;
947
- /**
948
- * @hidden
949
- */
950
- constructor(e: MapShapeMouseLeaveEvent, target: Map_2);
951
- }
952
-
953
- /**
954
- * Context object for shape layer tooltips.
955
- */
956
- export declare interface ShapeTooltipContext {
957
- /**
958
- * The original GeoJSON data item used to create the shape.
959
- */
960
- dataItem: any;
961
- /**
962
- * The index of the shape layer in the map.
963
- */
964
- layerIndex: number;
965
- /**
966
- * The location (center point) of the shape.
967
- */
968
- location: Location_2;
969
- }
970
-
971
- /**
972
- * @hidden
973
- */
974
- declare interface Store {
975
- getState(): any;
976
- dispatch(action: StoreAction | object): void;
977
- subscribe(f: Function): Function;
978
- }
979
-
980
- /**
981
- * @hidden
982
- */
983
- declare interface StoreAction {
984
- mapKey?: string;
985
- mapCollectionIdxKey?: string;
986
- type?: string;
987
- payload: any;
988
- }
989
-
990
- export { TileUrlTemplateArgs }
991
-
992
- declare type TooltipContext = MarkerTooltipContext | ShapeTooltipContext | BubbleTooltipContext;
993
-
994
- /**
995
- * Fires when the map zoom level has changed.
996
- */
997
- export declare class ZoomEndEvent extends BaseEvent implements MapZoomEndEvent {
998
- /**
999
- * The source DOM event instance
1000
- */
1001
- originalEvent: any;
1002
- /**
1003
- * @hidden
1004
- */
1005
- constructor(e: MapZoomEndEvent, target: Map_2);
1006
- }
1007
-
1008
- /**
1009
- * Fires when the map zoom level is about to change.
1010
- *
1011
- * Cancelling the event prevents the user action.
1012
- */
1013
- export declare class ZoomStartEvent extends PreventableEvent implements MapZoomStartEvent {
1014
- /**
1015
- * The source DOM event instance
1016
- */
1017
- originalEvent: any;
1018
- /**
1019
- * @hidden
1020
- */
1021
- constructor(e: MapZoomStartEvent, target: Map_2);
1022
- }
1023
-
1024
- export { }
8
+ import { default as CollectionConfigurationComponent } from './components/base/CollectionConfigurationComponent.js';
9
+ import { default as ConfigurationComponent } from './components/base/ConfigurationComponent.js';
10
+ export { CollectionConfigurationComponent, ConfigurationComponent };
11
+ export { Map } from './Map.js';
12
+ export type { MapProps } from './MapProps.js';
13
+ export * from './components/index.js';
14
+ export * from './common/map-types.js';
15
+ export * from './common/events.js';
16
+ export * from './tooltip/index.js';