@progress/kendo-react-map 5.3.0-dev.202205051853
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/LICENSE.md +11 -0
- package/NOTICE.txt +111 -0
- package/README.md +47 -0
- package/about.md +3 -0
- package/dist/cdn/js/kendo-react-map.js +1 -0
- package/dist/es/Map.d.ts +81 -0
- package/dist/es/Map.js +235 -0
- package/dist/es/MapContext.d.ts +15 -0
- package/dist/es/MapContext.js +6 -0
- package/dist/es/MapProps.d.ts +96 -0
- package/dist/es/MapProps.js +0 -0
- package/dist/es/common/events.d.ts +15 -0
- package/dist/es/common/events.js +16 -0
- package/dist/es/common/map-types.d.ts +1 -0
- package/dist/es/common/map-types.js +2 -0
- package/dist/es/components/BubbleLayer.d.ts +9 -0
- package/dist/es/components/BubbleLayer.js +18 -0
- package/dist/es/components/Layers.d.ts +9 -0
- package/dist/es/components/Layers.js +21 -0
- package/dist/es/components/MarkerLayer.d.ts +9 -0
- package/dist/es/components/MarkerLayer.js +18 -0
- package/dist/es/components/ShapeLayer.d.ts +9 -0
- package/dist/es/components/ShapeLayer.js +18 -0
- package/dist/es/components/TileLayer.d.ts +9 -0
- package/dist/es/components/TileLayer.js +18 -0
- package/dist/es/components/base/CollectionConfigurationComponent.d.ts +19 -0
- package/dist/es/components/base/CollectionConfigurationComponent.js +61 -0
- package/dist/es/components/base/ConfigurationComponent.d.ts +24 -0
- package/dist/es/components/base/ConfigurationComponent.js +82 -0
- package/dist/es/components/main.d.ts +6 -0
- package/dist/es/components/main.js +6 -0
- package/dist/es/defaults.d.ts +1 -0
- package/dist/es/defaults.js +15 -0
- package/dist/es/events/base-event.d.ts +14 -0
- package/dist/es/events/base-event.js +13 -0
- package/dist/es/events/before-reset-event.d.ts +12 -0
- package/dist/es/events/before-reset-event.js +28 -0
- package/dist/es/events/map-click-event.d.ts +20 -0
- package/dist/es/events/map-click-event.js +31 -0
- package/dist/es/events/map-event-builder.d.ts +6 -0
- package/dist/es/events/map-event-builder.js +27 -0
- package/dist/es/events/marker-activate-event.d.ts +20 -0
- package/dist/es/events/marker-activate-event.js +31 -0
- package/dist/es/events/marker-click-event.d.ts +20 -0
- package/dist/es/events/marker-click-event.js +31 -0
- package/dist/es/events/marker-created-event.d.ts +22 -0
- package/dist/es/events/marker-created-event.js +33 -0
- package/dist/es/events/pan-end-event.d.ts +24 -0
- package/dist/es/events/pan-end-event.js +32 -0
- package/dist/es/events/pan-event.d.ts +24 -0
- package/dist/es/events/pan-event.js +32 -0
- package/dist/es/events/preventable-event.d.ts +18 -0
- package/dist/es/events/preventable-event.js +44 -0
- package/dist/es/events/reset-event.d.ts +14 -0
- package/dist/es/events/reset-event.js +30 -0
- package/dist/es/events/shape-click-event.d.ts +25 -0
- package/dist/es/events/shape-click-event.js +32 -0
- package/dist/es/events/shape-created-event.d.ts +29 -0
- package/dist/es/events/shape-created-event.js +35 -0
- package/dist/es/events/shape-feature-created-event.d.ts +29 -0
- package/dist/es/events/shape-feature-created-event.js +33 -0
- package/dist/es/events/shape-mouse-enter-event.d.ts +28 -0
- package/dist/es/events/shape-mouse-enter-event.js +35 -0
- package/dist/es/events/shape-mouse-leave-event.d.ts +28 -0
- package/dist/es/events/shape-mouse-leave-event.js +35 -0
- package/dist/es/events/zoom-end-event.d.ts +16 -0
- package/dist/es/events/zoom-end-event.js +30 -0
- package/dist/es/events/zoom-start-event.d.ts +18 -0
- package/dist/es/events/zoom-start-event.js +32 -0
- package/dist/es/main.d.ts +6 -0
- package/dist/es/main.js +5 -0
- package/dist/es/package-metadata.d.ts +5 -0
- package/dist/es/package-metadata.js +11 -0
- package/dist/es/store/reducer.d.ts +10 -0
- package/dist/es/store/reducer.js +75 -0
- package/dist/es/store/store.d.ts +22 -0
- package/dist/es/store/store.js +22 -0
- package/dist/npm/Map.d.ts +81 -0
- package/dist/npm/Map.js +237 -0
- package/dist/npm/MapContext.d.ts +15 -0
- package/dist/npm/MapContext.js +8 -0
- package/dist/npm/MapProps.d.ts +96 -0
- package/dist/npm/MapProps.js +2 -0
- package/dist/npm/common/events.d.ts +15 -0
- package/dist/npm/common/events.js +33 -0
- package/dist/npm/common/map-types.d.ts +1 -0
- package/dist/npm/common/map-types.js +6 -0
- package/dist/npm/components/BubbleLayer.d.ts +9 -0
- package/dist/npm/components/BubbleLayer.js +20 -0
- package/dist/npm/components/Layers.d.ts +9 -0
- package/dist/npm/components/Layers.js +23 -0
- package/dist/npm/components/MarkerLayer.d.ts +9 -0
- package/dist/npm/components/MarkerLayer.js +20 -0
- package/dist/npm/components/ShapeLayer.d.ts +9 -0
- package/dist/npm/components/ShapeLayer.js +20 -0
- package/dist/npm/components/TileLayer.d.ts +9 -0
- package/dist/npm/components/TileLayer.js +20 -0
- package/dist/npm/components/base/CollectionConfigurationComponent.d.ts +19 -0
- package/dist/npm/components/base/CollectionConfigurationComponent.js +63 -0
- package/dist/npm/components/base/ConfigurationComponent.d.ts +24 -0
- package/dist/npm/components/base/ConfigurationComponent.js +84 -0
- package/dist/npm/components/main.d.ts +6 -0
- package/dist/npm/components/main.js +12 -0
- package/dist/npm/defaults.d.ts +1 -0
- package/dist/npm/defaults.js +17 -0
- package/dist/npm/events/base-event.d.ts +14 -0
- package/dist/npm/events/base-event.js +15 -0
- package/dist/npm/events/before-reset-event.d.ts +12 -0
- package/dist/npm/events/before-reset-event.js +30 -0
- package/dist/npm/events/map-click-event.d.ts +20 -0
- package/dist/npm/events/map-click-event.js +33 -0
- package/dist/npm/events/map-event-builder.d.ts +6 -0
- package/dist/npm/events/map-event-builder.js +29 -0
- package/dist/npm/events/marker-activate-event.d.ts +20 -0
- package/dist/npm/events/marker-activate-event.js +33 -0
- package/dist/npm/events/marker-click-event.d.ts +20 -0
- package/dist/npm/events/marker-click-event.js +33 -0
- package/dist/npm/events/marker-created-event.d.ts +22 -0
- package/dist/npm/events/marker-created-event.js +35 -0
- package/dist/npm/events/pan-end-event.d.ts +24 -0
- package/dist/npm/events/pan-end-event.js +34 -0
- package/dist/npm/events/pan-event.d.ts +24 -0
- package/dist/npm/events/pan-event.js +34 -0
- package/dist/npm/events/preventable-event.d.ts +18 -0
- package/dist/npm/events/preventable-event.js +46 -0
- package/dist/npm/events/reset-event.d.ts +14 -0
- package/dist/npm/events/reset-event.js +32 -0
- package/dist/npm/events/shape-click-event.d.ts +25 -0
- package/dist/npm/events/shape-click-event.js +34 -0
- package/dist/npm/events/shape-created-event.d.ts +29 -0
- package/dist/npm/events/shape-created-event.js +37 -0
- package/dist/npm/events/shape-feature-created-event.d.ts +29 -0
- package/dist/npm/events/shape-feature-created-event.js +35 -0
- package/dist/npm/events/shape-mouse-enter-event.d.ts +28 -0
- package/dist/npm/events/shape-mouse-enter-event.js +37 -0
- package/dist/npm/events/shape-mouse-leave-event.d.ts +28 -0
- package/dist/npm/events/shape-mouse-leave-event.js +37 -0
- package/dist/npm/events/zoom-end-event.d.ts +16 -0
- package/dist/npm/events/zoom-end-event.js +32 -0
- package/dist/npm/events/zoom-start-event.d.ts +18 -0
- package/dist/npm/events/zoom-start-event.js +34 -0
- package/dist/npm/main.d.ts +6 -0
- package/dist/npm/main.js +10 -0
- package/dist/npm/package-metadata.d.ts +5 -0
- package/dist/npm/package-metadata.js +13 -0
- package/dist/npm/store/reducer.d.ts +10 -0
- package/dist/npm/store/reducer.js +78 -0
- package/dist/npm/store/store.d.ts +22 -0
- package/dist/npm/store/store.js +24 -0
- package/dist/systemjs/kendo-react-map.js +1 -0
- package/package.json +61 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Location, MapPanEvent } from '@progress/kendo-charts';
|
|
2
|
+
import { Map } from '../Map';
|
|
3
|
+
import { BaseEvent } from './base-event';
|
|
4
|
+
/**
|
|
5
|
+
* Fired while the map viewport is being moved.
|
|
6
|
+
*/
|
|
7
|
+
export declare class PanEvent extends BaseEvent implements MapPanEvent {
|
|
8
|
+
/**
|
|
9
|
+
* The map origin (top left or NW corner).
|
|
10
|
+
*/
|
|
11
|
+
origin: Location;
|
|
12
|
+
/**
|
|
13
|
+
* The current map center.
|
|
14
|
+
*/
|
|
15
|
+
center: Location;
|
|
16
|
+
/**
|
|
17
|
+
* The source DOM event instance
|
|
18
|
+
*/
|
|
19
|
+
originalEvent: any;
|
|
20
|
+
/**
|
|
21
|
+
* @hidden
|
|
22
|
+
*/
|
|
23
|
+
constructor(e: MapPanEvent, target: Map);
|
|
24
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
extendStatics(d, b);
|
|
11
|
+
function __() { this.constructor = d; }
|
|
12
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
13
|
+
};
|
|
14
|
+
})();
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
var base_event_1 = require("./base-event");
|
|
17
|
+
/**
|
|
18
|
+
* Fired while the map viewport is being moved.
|
|
19
|
+
*/
|
|
20
|
+
var PanEvent = /** @class */ (function (_super) {
|
|
21
|
+
__extends(PanEvent, _super);
|
|
22
|
+
/**
|
|
23
|
+
* @hidden
|
|
24
|
+
*/
|
|
25
|
+
function PanEvent(e, target) {
|
|
26
|
+
var _this = _super.call(this, target) || this;
|
|
27
|
+
_this.origin = e.origin;
|
|
28
|
+
_this.center = e.center;
|
|
29
|
+
_this.originalEvent = e.originalEvent;
|
|
30
|
+
return _this;
|
|
31
|
+
}
|
|
32
|
+
return PanEvent;
|
|
33
|
+
}(base_event_1.BaseEvent));
|
|
34
|
+
exports.PanEvent = PanEvent;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { BaseEvent } from './base-event';
|
|
2
|
+
/**
|
|
3
|
+
* @hidden
|
|
4
|
+
*/
|
|
5
|
+
export declare abstract class PreventableEvent extends BaseEvent {
|
|
6
|
+
private prevented;
|
|
7
|
+
/**
|
|
8
|
+
* Prevents the default action for a specified event. In this way, the source component suppresses the built-in behavior that follows the event.
|
|
9
|
+
*/
|
|
10
|
+
preventDefault(): void;
|
|
11
|
+
/**
|
|
12
|
+
* Returns `true` if the event was prevented by any of its subscribers.
|
|
13
|
+
*
|
|
14
|
+
* @returns `true` if the default action was prevented.
|
|
15
|
+
* Otherwise, returns `false`.
|
|
16
|
+
*/
|
|
17
|
+
isDefaultPrevented(): boolean;
|
|
18
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
extendStatics(d, b);
|
|
11
|
+
function __() { this.constructor = d; }
|
|
12
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
13
|
+
};
|
|
14
|
+
})();
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
var base_event_1 = require("./base-event");
|
|
17
|
+
/**
|
|
18
|
+
* @hidden
|
|
19
|
+
*/
|
|
20
|
+
var PreventableEvent = /** @class */ (function (_super) {
|
|
21
|
+
__extends(PreventableEvent, _super);
|
|
22
|
+
function PreventableEvent() {
|
|
23
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
24
|
+
_this.prevented = false;
|
|
25
|
+
return _this;
|
|
26
|
+
}
|
|
27
|
+
/* eslint-disable max-len */
|
|
28
|
+
/**
|
|
29
|
+
* Prevents the default action for a specified event. In this way, the source component suppresses the built-in behavior that follows the event.
|
|
30
|
+
*/
|
|
31
|
+
PreventableEvent.prototype.preventDefault = function () {
|
|
32
|
+
this.prevented = true;
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Returns `true` if the event was prevented by any of its subscribers.
|
|
36
|
+
*
|
|
37
|
+
* @returns `true` if the default action was prevented.
|
|
38
|
+
* Otherwise, returns `false`.
|
|
39
|
+
*/
|
|
40
|
+
PreventableEvent.prototype.isDefaultPrevented = function () {
|
|
41
|
+
return this.prevented;
|
|
42
|
+
};
|
|
43
|
+
return PreventableEvent;
|
|
44
|
+
}(base_event_1.BaseEvent));
|
|
45
|
+
exports.PreventableEvent = PreventableEvent;
|
|
46
|
+
// tslint:enable:max-line-length
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { MapResetEvent } from '@progress/kendo-charts';
|
|
2
|
+
import { Map } from '../Map';
|
|
3
|
+
import { BaseEvent } from './base-event';
|
|
4
|
+
/**
|
|
5
|
+
* Fired when the map is reset.
|
|
6
|
+
*
|
|
7
|
+
* This typically occurs on initial load and after a zoom/center change.
|
|
8
|
+
*/
|
|
9
|
+
export declare class ResetEvent extends BaseEvent implements MapResetEvent {
|
|
10
|
+
/**
|
|
11
|
+
* @hidden
|
|
12
|
+
*/
|
|
13
|
+
constructor(_: any, target: Map);
|
|
14
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
extendStatics(d, b);
|
|
11
|
+
function __() { this.constructor = d; }
|
|
12
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
13
|
+
};
|
|
14
|
+
})();
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
var base_event_1 = require("./base-event");
|
|
17
|
+
/**
|
|
18
|
+
* Fired when the map is reset.
|
|
19
|
+
*
|
|
20
|
+
* This typically occurs on initial load and after a zoom/center change.
|
|
21
|
+
*/
|
|
22
|
+
var ResetEvent = /** @class */ (function (_super) {
|
|
23
|
+
__extends(ResetEvent, _super);
|
|
24
|
+
/**
|
|
25
|
+
* @hidden
|
|
26
|
+
*/
|
|
27
|
+
function ResetEvent(_, target) {
|
|
28
|
+
return _super.call(this, target) || this;
|
|
29
|
+
}
|
|
30
|
+
return ResetEvent;
|
|
31
|
+
}(base_event_1.BaseEvent));
|
|
32
|
+
exports.ResetEvent = ResetEvent;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { MapLayer, MapShapeClickEvent } from '@progress/kendo-charts';
|
|
2
|
+
import { Element } from '@progress/kendo-drawing';
|
|
3
|
+
import { Map } from '../Map';
|
|
4
|
+
import { BaseEvent } from './base-event';
|
|
5
|
+
/**
|
|
6
|
+
* Fired when a shape is clicked or tapped.
|
|
7
|
+
*/
|
|
8
|
+
export declare class ShapeClickEvent extends BaseEvent implements MapShapeClickEvent {
|
|
9
|
+
/**
|
|
10
|
+
* The shape layer instance.
|
|
11
|
+
*/
|
|
12
|
+
layer: MapLayer;
|
|
13
|
+
/**
|
|
14
|
+
* The shape instance.
|
|
15
|
+
*/
|
|
16
|
+
shape: Element;
|
|
17
|
+
/**
|
|
18
|
+
* The source DOM event instance
|
|
19
|
+
*/
|
|
20
|
+
originalEvent: any;
|
|
21
|
+
/**
|
|
22
|
+
* @hidden
|
|
23
|
+
*/
|
|
24
|
+
constructor(e: MapShapeClickEvent, target: Map);
|
|
25
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
extendStatics(d, b);
|
|
11
|
+
function __() { this.constructor = d; }
|
|
12
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
13
|
+
};
|
|
14
|
+
})();
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
var base_event_1 = require("./base-event");
|
|
17
|
+
/**
|
|
18
|
+
* Fired when a shape is clicked or tapped.
|
|
19
|
+
*/
|
|
20
|
+
var ShapeClickEvent = /** @class */ (function (_super) {
|
|
21
|
+
__extends(ShapeClickEvent, _super);
|
|
22
|
+
/**
|
|
23
|
+
* @hidden
|
|
24
|
+
*/
|
|
25
|
+
function ShapeClickEvent(e, target) {
|
|
26
|
+
var _this = _super.call(this, target) || this;
|
|
27
|
+
_this.layer = e.layer;
|
|
28
|
+
_this.shape = e.shape;
|
|
29
|
+
_this.originalEvent = e.originalEvent;
|
|
30
|
+
return _this;
|
|
31
|
+
}
|
|
32
|
+
return ShapeClickEvent;
|
|
33
|
+
}(base_event_1.BaseEvent));
|
|
34
|
+
exports.ShapeClickEvent = ShapeClickEvent;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { MapLayer, MapShapeCreatedEvent, Location } from '@progress/kendo-charts';
|
|
2
|
+
import { Element } from '@progress/kendo-drawing';
|
|
3
|
+
import { Map } from '../Map';
|
|
4
|
+
import { BaseEvent } from './base-event';
|
|
5
|
+
/**
|
|
6
|
+
* Fired when a shape is created, but is not rendered yet.
|
|
7
|
+
*/
|
|
8
|
+
export declare class ShapeCreatedEvent extends BaseEvent implements MapShapeCreatedEvent {
|
|
9
|
+
/**
|
|
10
|
+
* The shape layer instance.
|
|
11
|
+
*/
|
|
12
|
+
layer: MapLayer;
|
|
13
|
+
/**
|
|
14
|
+
* The shape instance.
|
|
15
|
+
*/
|
|
16
|
+
shape: Element;
|
|
17
|
+
/**
|
|
18
|
+
* The original data item for this Shape.
|
|
19
|
+
*/
|
|
20
|
+
dataItem: any;
|
|
21
|
+
/**
|
|
22
|
+
* The shape location
|
|
23
|
+
*/
|
|
24
|
+
location: Location;
|
|
25
|
+
/**
|
|
26
|
+
* @hidden
|
|
27
|
+
*/
|
|
28
|
+
constructor(e: any, target: Map);
|
|
29
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
extendStatics(d, b);
|
|
11
|
+
function __() { this.constructor = d; }
|
|
12
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
13
|
+
};
|
|
14
|
+
})();
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
var base_event_1 = require("./base-event");
|
|
17
|
+
/**
|
|
18
|
+
* Fired when a shape is created, but is not rendered yet.
|
|
19
|
+
*/
|
|
20
|
+
var ShapeCreatedEvent = /** @class */ (function (_super) {
|
|
21
|
+
__extends(ShapeCreatedEvent, _super);
|
|
22
|
+
/**
|
|
23
|
+
* @hidden
|
|
24
|
+
*/
|
|
25
|
+
function ShapeCreatedEvent(e, target) {
|
|
26
|
+
var _this = _super.call(this, target) || this;
|
|
27
|
+
_this.layer = e.layer;
|
|
28
|
+
_this.shape = e.shape;
|
|
29
|
+
if (e.shape) {
|
|
30
|
+
_this.dataItem = e.shape.dataItem;
|
|
31
|
+
_this.location = e.shape.location;
|
|
32
|
+
}
|
|
33
|
+
return _this;
|
|
34
|
+
}
|
|
35
|
+
return ShapeCreatedEvent;
|
|
36
|
+
}(base_event_1.BaseEvent));
|
|
37
|
+
exports.ShapeCreatedEvent = ShapeCreatedEvent;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { MapLayer, MapShapeFeatureCreatedEvent } from '@progress/kendo-charts';
|
|
2
|
+
import { Group } from '@progress/kendo-drawing';
|
|
3
|
+
import { Map } from '../Map';
|
|
4
|
+
import { BaseEvent } from './base-event';
|
|
5
|
+
/**
|
|
6
|
+
* Fired when a [GeoJSON Feature](https://geojson.org/geojson-spec.html#feature-objects) is created on a shape layer.
|
|
7
|
+
*/
|
|
8
|
+
export declare class ShapeFeatureCreatedEvent extends BaseEvent implements MapShapeFeatureCreatedEvent {
|
|
9
|
+
/**
|
|
10
|
+
* The original data item for this Feature. Members include `geometries` and `properties`.
|
|
11
|
+
*/
|
|
12
|
+
dataItem: any;
|
|
13
|
+
/**
|
|
14
|
+
* The shape layer instance.
|
|
15
|
+
*/
|
|
16
|
+
layer: MapLayer;
|
|
17
|
+
/**
|
|
18
|
+
* The group containing feature shape instances.
|
|
19
|
+
*/
|
|
20
|
+
group: Group;
|
|
21
|
+
/**
|
|
22
|
+
* A reference to the `dataItem.properties` object.
|
|
23
|
+
*/
|
|
24
|
+
properties: any;
|
|
25
|
+
/**
|
|
26
|
+
* @hidden
|
|
27
|
+
*/
|
|
28
|
+
constructor(e: MapShapeFeatureCreatedEvent, target: Map);
|
|
29
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
extendStatics(d, b);
|
|
11
|
+
function __() { this.constructor = d; }
|
|
12
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
13
|
+
};
|
|
14
|
+
})();
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
var base_event_1 = require("./base-event");
|
|
17
|
+
/**
|
|
18
|
+
* Fired when a [GeoJSON Feature](https://geojson.org/geojson-spec.html#feature-objects) is created on a shape layer.
|
|
19
|
+
*/
|
|
20
|
+
var ShapeFeatureCreatedEvent = /** @class */ (function (_super) {
|
|
21
|
+
__extends(ShapeFeatureCreatedEvent, _super);
|
|
22
|
+
/**
|
|
23
|
+
* @hidden
|
|
24
|
+
*/
|
|
25
|
+
function ShapeFeatureCreatedEvent(e, target) {
|
|
26
|
+
var _this = _super.call(this, target) || this;
|
|
27
|
+
_this.dataItem = e.dataItem;
|
|
28
|
+
_this.layer = e.layer;
|
|
29
|
+
_this.group = e.group;
|
|
30
|
+
_this.properties = e.properties;
|
|
31
|
+
return _this;
|
|
32
|
+
}
|
|
33
|
+
return ShapeFeatureCreatedEvent;
|
|
34
|
+
}(base_event_1.BaseEvent));
|
|
35
|
+
exports.ShapeFeatureCreatedEvent = ShapeFeatureCreatedEvent;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { MapLayer, MapShapeMouseEnterEvent } from '@progress/kendo-charts';
|
|
2
|
+
import { Element } from '@progress/kendo-drawing';
|
|
3
|
+
import { Map } from '../Map';
|
|
4
|
+
import { BaseEvent } from './base-event';
|
|
5
|
+
/**
|
|
6
|
+
* Fired when the mouse enters a shape.
|
|
7
|
+
*
|
|
8
|
+
* > This event will fire reliably only for shapes that have set fill color.
|
|
9
|
+
* > The opacity can still be set to 0 so the shapes appear to have no fill.
|
|
10
|
+
*/
|
|
11
|
+
export declare class ShapeMouseEnterEvent extends BaseEvent implements MapShapeMouseEnterEvent {
|
|
12
|
+
/**
|
|
13
|
+
* The shape layer instance.
|
|
14
|
+
*/
|
|
15
|
+
layer: MapLayer;
|
|
16
|
+
/**
|
|
17
|
+
* The shape instance.
|
|
18
|
+
*/
|
|
19
|
+
shape: Element;
|
|
20
|
+
/**
|
|
21
|
+
* The source DOM event instance
|
|
22
|
+
*/
|
|
23
|
+
originalEvent: any;
|
|
24
|
+
/**
|
|
25
|
+
* @hidden
|
|
26
|
+
*/
|
|
27
|
+
constructor(e: MapShapeMouseEnterEvent, target: Map);
|
|
28
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
extendStatics(d, b);
|
|
11
|
+
function __() { this.constructor = d; }
|
|
12
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
13
|
+
};
|
|
14
|
+
})();
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
var base_event_1 = require("./base-event");
|
|
17
|
+
/**
|
|
18
|
+
* Fired when the mouse enters a shape.
|
|
19
|
+
*
|
|
20
|
+
* > This event will fire reliably only for shapes that have set fill color.
|
|
21
|
+
* > The opacity can still be set to 0 so the shapes appear to have no fill.
|
|
22
|
+
*/
|
|
23
|
+
var ShapeMouseEnterEvent = /** @class */ (function (_super) {
|
|
24
|
+
__extends(ShapeMouseEnterEvent, _super);
|
|
25
|
+
/**
|
|
26
|
+
* @hidden
|
|
27
|
+
*/
|
|
28
|
+
function ShapeMouseEnterEvent(e, target) {
|
|
29
|
+
var _this = _super.call(this, target) || this;
|
|
30
|
+
_this.layer = e.layer;
|
|
31
|
+
_this.shape = e.shape;
|
|
32
|
+
_this.originalEvent = e.originalEvent;
|
|
33
|
+
return _this;
|
|
34
|
+
}
|
|
35
|
+
return ShapeMouseEnterEvent;
|
|
36
|
+
}(base_event_1.BaseEvent));
|
|
37
|
+
exports.ShapeMouseEnterEvent = ShapeMouseEnterEvent;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { MapLayer, MapShapeMouseLeaveEvent } from '@progress/kendo-charts';
|
|
2
|
+
import { Element } from '@progress/kendo-drawing';
|
|
3
|
+
import { Map } from '../Map';
|
|
4
|
+
import { BaseEvent } from './base-event';
|
|
5
|
+
/**
|
|
6
|
+
* Fired when the mouse leaves a shape.
|
|
7
|
+
*
|
|
8
|
+
* > This event will fire reliably only for shapes that have set fill color.
|
|
9
|
+
* > The opacity can still be set to 0 so the shapes appear to have no fill.
|
|
10
|
+
*/
|
|
11
|
+
export declare class ShapeMouseLeaveEvent extends BaseEvent implements MapShapeMouseLeaveEvent {
|
|
12
|
+
/**
|
|
13
|
+
* The shape layer instance.
|
|
14
|
+
*/
|
|
15
|
+
layer: MapLayer;
|
|
16
|
+
/**
|
|
17
|
+
* The shape instance.
|
|
18
|
+
*/
|
|
19
|
+
shape: Element;
|
|
20
|
+
/**
|
|
21
|
+
* The source DOM event instance
|
|
22
|
+
*/
|
|
23
|
+
originalEvent: any;
|
|
24
|
+
/**
|
|
25
|
+
* @hidden
|
|
26
|
+
*/
|
|
27
|
+
constructor(e: MapShapeMouseLeaveEvent, target: Map);
|
|
28
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
extendStatics(d, b);
|
|
11
|
+
function __() { this.constructor = d; }
|
|
12
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
13
|
+
};
|
|
14
|
+
})();
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
var base_event_1 = require("./base-event");
|
|
17
|
+
/**
|
|
18
|
+
* Fired when the mouse leaves a shape.
|
|
19
|
+
*
|
|
20
|
+
* > This event will fire reliably only for shapes that have set fill color.
|
|
21
|
+
* > The opacity can still be set to 0 so the shapes appear to have no fill.
|
|
22
|
+
*/
|
|
23
|
+
var ShapeMouseLeaveEvent = /** @class */ (function (_super) {
|
|
24
|
+
__extends(ShapeMouseLeaveEvent, _super);
|
|
25
|
+
/**
|
|
26
|
+
* @hidden
|
|
27
|
+
*/
|
|
28
|
+
function ShapeMouseLeaveEvent(e, target) {
|
|
29
|
+
var _this = _super.call(this, target) || this;
|
|
30
|
+
_this.layer = e.layer;
|
|
31
|
+
_this.shape = e.shape;
|
|
32
|
+
_this.originalEvent = e.originalEvent;
|
|
33
|
+
return _this;
|
|
34
|
+
}
|
|
35
|
+
return ShapeMouseLeaveEvent;
|
|
36
|
+
}(base_event_1.BaseEvent));
|
|
37
|
+
exports.ShapeMouseLeaveEvent = ShapeMouseLeaveEvent;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { MapZoomEndEvent } from '@progress/kendo-charts';
|
|
2
|
+
import { Map } from '../Map';
|
|
3
|
+
import { BaseEvent } from './base-event';
|
|
4
|
+
/**
|
|
5
|
+
* Fired when the map zoom level has changed.
|
|
6
|
+
*/
|
|
7
|
+
export declare class ZoomEndEvent extends BaseEvent implements MapZoomEndEvent {
|
|
8
|
+
/**
|
|
9
|
+
* The source DOM event instance
|
|
10
|
+
*/
|
|
11
|
+
originalEvent: any;
|
|
12
|
+
/**
|
|
13
|
+
* @hidden
|
|
14
|
+
*/
|
|
15
|
+
constructor(e: MapZoomEndEvent, target: Map);
|
|
16
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
extendStatics(d, b);
|
|
11
|
+
function __() { this.constructor = d; }
|
|
12
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
13
|
+
};
|
|
14
|
+
})();
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
var base_event_1 = require("./base-event");
|
|
17
|
+
/**
|
|
18
|
+
* Fired when the map zoom level has changed.
|
|
19
|
+
*/
|
|
20
|
+
var ZoomEndEvent = /** @class */ (function (_super) {
|
|
21
|
+
__extends(ZoomEndEvent, _super);
|
|
22
|
+
/**
|
|
23
|
+
* @hidden
|
|
24
|
+
*/
|
|
25
|
+
function ZoomEndEvent(e, target) {
|
|
26
|
+
var _this = _super.call(this, target) || this;
|
|
27
|
+
_this.originalEvent = e.originalEvent;
|
|
28
|
+
return _this;
|
|
29
|
+
}
|
|
30
|
+
return ZoomEndEvent;
|
|
31
|
+
}(base_event_1.BaseEvent));
|
|
32
|
+
exports.ZoomEndEvent = ZoomEndEvent;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { MapZoomStartEvent } from '@progress/kendo-charts';
|
|
2
|
+
import { Map } from '../Map';
|
|
3
|
+
import { PreventableEvent } from './preventable-event';
|
|
4
|
+
/**
|
|
5
|
+
* Fired when the map zoom level is about to change.
|
|
6
|
+
*
|
|
7
|
+
* Cancelling the event will prevent the user action.
|
|
8
|
+
*/
|
|
9
|
+
export declare class ZoomStartEvent extends PreventableEvent implements MapZoomStartEvent {
|
|
10
|
+
/**
|
|
11
|
+
* The source DOM event instance
|
|
12
|
+
*/
|
|
13
|
+
originalEvent: any;
|
|
14
|
+
/**
|
|
15
|
+
* @hidden
|
|
16
|
+
*/
|
|
17
|
+
constructor(e: MapZoomStartEvent, target: Map);
|
|
18
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
extendStatics(d, b);
|
|
11
|
+
function __() { this.constructor = d; }
|
|
12
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
13
|
+
};
|
|
14
|
+
})();
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
var preventable_event_1 = require("./preventable-event");
|
|
17
|
+
/**
|
|
18
|
+
* Fired when the map zoom level is about to change.
|
|
19
|
+
*
|
|
20
|
+
* Cancelling the event will prevent the user action.
|
|
21
|
+
*/
|
|
22
|
+
var ZoomStartEvent = /** @class */ (function (_super) {
|
|
23
|
+
__extends(ZoomStartEvent, _super);
|
|
24
|
+
/**
|
|
25
|
+
* @hidden
|
|
26
|
+
*/
|
|
27
|
+
function ZoomStartEvent(e, target) {
|
|
28
|
+
var _this = _super.call(this, target) || this;
|
|
29
|
+
_this.originalEvent = e.originalEvent;
|
|
30
|
+
return _this;
|
|
31
|
+
}
|
|
32
|
+
return ZoomStartEvent;
|
|
33
|
+
}(preventable_event_1.PreventableEvent));
|
|
34
|
+
exports.ZoomStartEvent = ZoomStartEvent;
|
package/dist/npm/main.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
function __export(m) {
|
|
3
|
+
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
4
|
+
}
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
var Map_1 = require("./Map");
|
|
7
|
+
exports.Map = Map_1.Map;
|
|
8
|
+
__export(require("./components/main"));
|
|
9
|
+
__export(require("./common/map-types"));
|
|
10
|
+
__export(require("./common/events"));
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
/**
|
|
4
|
+
* @hidden
|
|
5
|
+
*/
|
|
6
|
+
exports.packageMetadata = {
|
|
7
|
+
name: '@progress/kendo-react-map',
|
|
8
|
+
productName: 'KendoReact',
|
|
9
|
+
productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
|
|
10
|
+
publishDate: 1651776660,
|
|
11
|
+
version: '',
|
|
12
|
+
licensingDocsUrl: 'https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning'
|
|
13
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { StoreAction } from './store';
|
|
2
|
+
/**
|
|
3
|
+
* @hidden
|
|
4
|
+
*/
|
|
5
|
+
declare const optionsReducer: (currentState: any, action: StoreAction) => object;
|
|
6
|
+
/**
|
|
7
|
+
* @hidden
|
|
8
|
+
*/
|
|
9
|
+
declare const observersReducer: (currentState: any, action: StoreAction) => any;
|
|
10
|
+
export { optionsReducer, observersReducer };
|