@progress/kendo-react-map 6.1.1 → 7.0.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.
- package/LICENSE.md +1 -1
- package/{dist/es/Map.d.ts → Map.d.ts} +4 -1
- package/{dist/npm/MapContext.d.ts → MapContext.d.ts} +4 -0
- package/{dist/es/MapProps.d.ts → MapProps.d.ts} +4 -0
- package/{dist/es/common → common}/events.d.ts +4 -0
- package/common/map-types.d.ts +5 -0
- package/{dist/es/components → components}/BubbleLayer.d.ts +4 -0
- package/{dist/es/components → components}/BubbleLayerTooltip.d.ts +4 -0
- package/components/Layers.d.ts +13 -0
- package/{dist/es/components → components}/MarkerLayer.d.ts +4 -0
- package/{dist/es/components → components}/MarkerLayerTooltip.d.ts +4 -0
- package/{dist/npm/components → components}/ShapeLayer.d.ts +4 -0
- package/{dist/npm/components → components}/ShapeLayerTooltip.d.ts +4 -0
- package/components/TileLayer.d.ts +13 -0
- package/{dist/npm/components → components}/base/CollectionConfigurationComponent.d.ts +4 -0
- package/{dist/es/components → components}/base/ConfigurationComponent.d.ts +4 -0
- package/components/index.d.ts +13 -0
- package/dist/cdn/js/kendo-react-map.js +5 -1
- package/events/base-event.d.ts +18 -0
- package/{dist/npm/events → events}/before-reset-event.d.ts +4 -0
- package/{dist/npm/events → events}/dom-event.d.ts +4 -1
- package/{dist/npm/events → events}/map-click-event.d.ts +4 -0
- package/events/map-event-builder.d.ts +10 -0
- package/{dist/npm/events → events}/marker-activate-event.d.ts +4 -0
- package/{dist/npm/events → events}/marker-click-event.d.ts +4 -0
- package/{dist/npm/events → events}/marker-created-event.d.ts +4 -0
- package/{dist/es/events → events}/pan-end-event.d.ts +4 -0
- package/{dist/es/events → events}/pan-event.d.ts +4 -0
- package/{dist/es/events → events}/preventable-event.d.ts +4 -0
- package/{dist/es/events → events}/reset-event.d.ts +4 -0
- package/{dist/npm/events → events}/shape-click-event.d.ts +4 -0
- package/{dist/npm/events → events}/shape-created-event.d.ts +4 -0
- package/{dist/es/events → events}/shape-feature-created-event.d.ts +4 -0
- package/{dist/es/events → events}/shape-mouse-enter-event.d.ts +4 -0
- package/{dist/npm/events → events}/shape-mouse-leave-event.d.ts +4 -0
- package/{dist/es/events → events}/zoom-end-event.d.ts +4 -0
- package/{dist/npm/events → events}/zoom-start-event.d.ts +4 -0
- package/index.d.ts +13 -0
- package/index.js +5 -0
- package/index.mjs +803 -0
- package/package-metadata.d.ts +9 -0
- package/package.json +29 -40
- package/store/reducer.d.ts +14 -0
- package/{dist/npm/store → store}/store.d.ts +4 -0
- package/{dist/npm/tooltip → tooltip}/BubbleTooltipContext.d.ts +5 -1
- package/{dist/npm/tooltip → tooltip}/MapTooltip.d.ts +6 -2
- package/{dist/npm/tooltip → tooltip}/MarkerTooltipContext.d.ts +5 -1
- package/{dist/es/tooltip → tooltip}/Popup.d.ts +5 -1
- package/tooltip/ShapeTooltipContext.d.ts +22 -0
- package/tooltip/index.d.ts +9 -0
- package/utils/index.d.ts +13 -0
- package/about.md +0 -3
- package/dist/es/Map.js +0 -469
- package/dist/es/MapContext.d.ts +0 -15
- package/dist/es/MapContext.js +0 -6
- package/dist/es/MapProps.js +0 -1
- package/dist/es/common/events.js +0 -16
- package/dist/es/common/map-types.d.ts +0 -1
- package/dist/es/common/map-types.js +0 -2
- package/dist/es/components/BubbleLayer.js +0 -25
- package/dist/es/components/BubbleLayerTooltip.js +0 -17
- package/dist/es/components/Layers.d.ts +0 -9
- package/dist/es/components/Layers.js +0 -21
- package/dist/es/components/MarkerLayer.js +0 -25
- package/dist/es/components/MarkerLayerTooltip.js +0 -17
- package/dist/es/components/ShapeLayer.d.ts +0 -10
- package/dist/es/components/ShapeLayer.js +0 -25
- package/dist/es/components/ShapeLayerTooltip.d.ts +0 -15
- package/dist/es/components/ShapeLayerTooltip.js +0 -17
- package/dist/es/components/TileLayer.d.ts +0 -9
- package/dist/es/components/TileLayer.js +0 -18
- package/dist/es/components/base/CollectionConfigurationComponent.d.ts +0 -19
- package/dist/es/components/base/CollectionConfigurationComponent.js +0 -63
- package/dist/es/components/base/ConfigurationComponent.js +0 -86
- package/dist/es/components/main.d.ts +0 -9
- package/dist/es/components/main.js +0 -9
- package/dist/es/defaults.d.ts +0 -1
- package/dist/es/defaults.js +0 -15
- package/dist/es/events/base-event.d.ts +0 -14
- package/dist/es/events/base-event.js +0 -13
- package/dist/es/events/before-reset-event.d.ts +0 -12
- package/dist/es/events/before-reset-event.js +0 -30
- package/dist/es/events/dom-event.d.ts +0 -23
- package/dist/es/events/dom-event.js +0 -21
- package/dist/es/events/map-click-event.d.ts +0 -20
- package/dist/es/events/map-click-event.js +0 -33
- package/dist/es/events/map-event-builder.d.ts +0 -6
- package/dist/es/events/map-event-builder.js +0 -27
- package/dist/es/events/marker-activate-event.d.ts +0 -20
- package/dist/es/events/marker-activate-event.js +0 -33
- package/dist/es/events/marker-click-event.d.ts +0 -20
- package/dist/es/events/marker-click-event.js +0 -33
- package/dist/es/events/marker-created-event.d.ts +0 -22
- package/dist/es/events/marker-created-event.js +0 -35
- package/dist/es/events/pan-end-event.js +0 -34
- package/dist/es/events/pan-event.js +0 -34
- package/dist/es/events/preventable-event.js +0 -46
- package/dist/es/events/reset-event.js +0 -32
- package/dist/es/events/shape-click-event.d.ts +0 -25
- package/dist/es/events/shape-click-event.js +0 -34
- package/dist/es/events/shape-created-event.d.ts +0 -29
- package/dist/es/events/shape-created-event.js +0 -38
- package/dist/es/events/shape-feature-created-event.js +0 -35
- package/dist/es/events/shape-mouse-enter-event.js +0 -37
- package/dist/es/events/shape-mouse-leave-event.d.ts +0 -28
- package/dist/es/events/shape-mouse-leave-event.js +0 -37
- package/dist/es/events/zoom-end-event.js +0 -32
- package/dist/es/events/zoom-start-event.d.ts +0 -18
- package/dist/es/events/zoom-start-event.js +0 -34
- package/dist/es/main.d.ts +0 -9
- package/dist/es/main.js +0 -8
- package/dist/es/package-metadata.d.ts +0 -5
- package/dist/es/package-metadata.js +0 -11
- package/dist/es/store/reducer.d.ts +0 -10
- package/dist/es/store/reducer.js +0 -84
- package/dist/es/store/store.d.ts +0 -22
- package/dist/es/store/store.js +0 -22
- package/dist/es/tooltip/BubbleTooltipContext.d.ts +0 -22
- package/dist/es/tooltip/BubbleTooltipContext.js +0 -1
- package/dist/es/tooltip/MapTooltip.d.ts +0 -37
- package/dist/es/tooltip/MapTooltip.js +0 -123
- package/dist/es/tooltip/MarkerTooltipContext.d.ts +0 -22
- package/dist/es/tooltip/MarkerTooltipContext.js +0 -1
- package/dist/es/tooltip/Popup.js +0 -76
- package/dist/es/tooltip/ShapeTooltipContext.d.ts +0 -18
- package/dist/es/tooltip/ShapeTooltipContext.js +0 -1
- package/dist/es/tooltip/main.d.ts +0 -5
- package/dist/es/tooltip/main.js +0 -2
- package/dist/es/utils/main.d.ts +0 -10
- package/dist/es/utils/main.js +0 -28
- package/dist/npm/Map.d.ts +0 -189
- package/dist/npm/Map.js +0 -472
- package/dist/npm/MapContext.js +0 -9
- package/dist/npm/MapProps.d.ts +0 -100
- package/dist/npm/MapProps.js +0 -2
- package/dist/npm/common/events.d.ts +0 -15
- package/dist/npm/common/events.js +0 -34
- package/dist/npm/common/map-types.d.ts +0 -1
- package/dist/npm/common/map-types.js +0 -7
- package/dist/npm/components/BubbleLayer.d.ts +0 -10
- package/dist/npm/components/BubbleLayer.js +0 -28
- package/dist/npm/components/BubbleLayerTooltip.d.ts +0 -15
- package/dist/npm/components/BubbleLayerTooltip.js +0 -20
- package/dist/npm/components/Layers.d.ts +0 -9
- package/dist/npm/components/Layers.js +0 -24
- package/dist/npm/components/MarkerLayer.d.ts +0 -10
- package/dist/npm/components/MarkerLayer.js +0 -28
- package/dist/npm/components/MarkerLayerTooltip.d.ts +0 -15
- package/dist/npm/components/MarkerLayerTooltip.js +0 -20
- package/dist/npm/components/ShapeLayer.js +0 -28
- package/dist/npm/components/ShapeLayerTooltip.js +0 -20
- package/dist/npm/components/TileLayer.d.ts +0 -9
- package/dist/npm/components/TileLayer.js +0 -21
- package/dist/npm/components/base/CollectionConfigurationComponent.js +0 -65
- package/dist/npm/components/base/ConfigurationComponent.d.ts +0 -24
- package/dist/npm/components/base/ConfigurationComponent.js +0 -88
- package/dist/npm/components/main.d.ts +0 -9
- package/dist/npm/components/main.js +0 -19
- package/dist/npm/defaults.d.ts +0 -1
- package/dist/npm/defaults.js +0 -17
- package/dist/npm/events/base-event.d.ts +0 -14
- package/dist/npm/events/base-event.js +0 -16
- package/dist/npm/events/before-reset-event.js +0 -33
- package/dist/npm/events/dom-event.js +0 -24
- package/dist/npm/events/map-click-event.js +0 -36
- package/dist/npm/events/map-event-builder.d.ts +0 -6
- package/dist/npm/events/map-event-builder.js +0 -30
- package/dist/npm/events/marker-activate-event.js +0 -36
- package/dist/npm/events/marker-click-event.js +0 -36
- package/dist/npm/events/marker-created-event.js +0 -38
- package/dist/npm/events/pan-end-event.d.ts +0 -24
- package/dist/npm/events/pan-end-event.js +0 -37
- package/dist/npm/events/pan-event.d.ts +0 -24
- package/dist/npm/events/pan-event.js +0 -37
- package/dist/npm/events/preventable-event.d.ts +0 -18
- package/dist/npm/events/preventable-event.js +0 -49
- package/dist/npm/events/reset-event.d.ts +0 -14
- package/dist/npm/events/reset-event.js +0 -35
- package/dist/npm/events/shape-click-event.js +0 -37
- package/dist/npm/events/shape-created-event.js +0 -41
- package/dist/npm/events/shape-feature-created-event.d.ts +0 -29
- package/dist/npm/events/shape-feature-created-event.js +0 -38
- package/dist/npm/events/shape-mouse-enter-event.d.ts +0 -28
- package/dist/npm/events/shape-mouse-enter-event.js +0 -40
- package/dist/npm/events/shape-mouse-leave-event.js +0 -40
- package/dist/npm/events/zoom-end-event.d.ts +0 -16
- package/dist/npm/events/zoom-end-event.js +0 -35
- package/dist/npm/events/zoom-start-event.js +0 -37
- package/dist/npm/main.d.ts +0 -9
- package/dist/npm/main.js +0 -27
- package/dist/npm/package-metadata.d.ts +0 -5
- package/dist/npm/package-metadata.js +0 -14
- package/dist/npm/store/reducer.d.ts +0 -10
- package/dist/npm/store/reducer.js +0 -88
- package/dist/npm/store/store.js +0 -24
- package/dist/npm/tooltip/BubbleTooltipContext.js +0 -2
- package/dist/npm/tooltip/MapTooltip.js +0 -126
- package/dist/npm/tooltip/MarkerTooltipContext.js +0 -2
- package/dist/npm/tooltip/Popup.d.ts +0 -29
- package/dist/npm/tooltip/Popup.js +0 -79
- package/dist/npm/tooltip/ShapeTooltipContext.d.ts +0 -18
- package/dist/npm/tooltip/ShapeTooltipContext.js +0 -2
- package/dist/npm/tooltip/main.d.ts +0 -5
- package/dist/npm/tooltip/main.js +0 -5
- package/dist/npm/utils/main.d.ts +0 -10
- package/dist/npm/utils/main.js +0 -32
- package/dist/systemjs/kendo-react-map.js +0 -1
- package/e2e-next/basic.tests.ts +0 -24
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.MapBubbleLayer = void 0;
|
|
15
|
-
var React = require("react");
|
|
16
|
-
var main_1 = require("../utils/main");
|
|
17
|
-
var ConfigurationComponent_1 = require("./base/ConfigurationComponent");
|
|
18
|
-
var BubbleLayerTooltip_1 = require("./BubbleLayerTooltip");
|
|
19
|
-
var MapBubbleLayer = function (props) {
|
|
20
|
-
return (React.createElement(ConfigurationComponent_1.default, __assign({ type: "bubble" }, props)));
|
|
21
|
-
};
|
|
22
|
-
exports.MapBubbleLayer = MapBubbleLayer;
|
|
23
|
-
MapBubbleLayer.displayName = 'MapBubbleLayer';
|
|
24
|
-
MapBubbleLayer.propTypes = {
|
|
25
|
-
children: function (props, propName, componentName) {
|
|
26
|
-
return (0, main_1.validateChildren)(props, propName, componentName, BubbleLayerTooltip_1.MapBubbleLayerTooltip);
|
|
27
|
-
}
|
|
28
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { BubbleTooltipContext } from '../tooltip/BubbleTooltipContext';
|
|
3
|
-
/**
|
|
4
|
-
* Represents the props of the KendoReact BubbleTooltip component.
|
|
5
|
-
*/
|
|
6
|
-
export interface MapBubbleLayerTooltipProps {
|
|
7
|
-
/**
|
|
8
|
-
* The renderer for the bubble layer tooltip.
|
|
9
|
-
*
|
|
10
|
-
* @return the content of the tooltip.
|
|
11
|
-
*/
|
|
12
|
-
render?: (props: BubbleTooltipContext) => React.ReactNode;
|
|
13
|
-
}
|
|
14
|
-
declare const MapBubbleLayerTooltip: React.FunctionComponent<MapBubbleLayerTooltipProps>;
|
|
15
|
-
export { MapBubbleLayerTooltip };
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.MapBubbleLayerTooltip = void 0;
|
|
15
|
-
var React = require("react");
|
|
16
|
-
var ConfigurationComponent_1 = require("./base/ConfigurationComponent");
|
|
17
|
-
var MapBubbleLayerTooltip = function (props) {
|
|
18
|
-
return (React.createElement(ConfigurationComponent_1.default, __assign({}, props, { _mapKey: "tooltip" })));
|
|
19
|
-
};
|
|
20
|
-
exports.MapBubbleLayerTooltip = MapBubbleLayerTooltip;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* Represents the props of the KendoReact MapLayers component.
|
|
4
|
-
*/
|
|
5
|
-
export interface MapLayersProps {
|
|
6
|
-
children?: React.ReactNode;
|
|
7
|
-
}
|
|
8
|
-
declare const MapLayers: React.FunctionComponent<MapLayersProps>;
|
|
9
|
-
export { MapLayers };
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.MapLayers = void 0;
|
|
15
|
-
var React = require("react");
|
|
16
|
-
var PropTypes = require("prop-types");
|
|
17
|
-
var CollectionConfigurationComponent_1 = require("./base/CollectionConfigurationComponent");
|
|
18
|
-
var MapLayers = function (props) {
|
|
19
|
-
return (React.createElement(CollectionConfigurationComponent_1.default, __assign({}, props, { _mapKey: "layers" })));
|
|
20
|
-
};
|
|
21
|
-
exports.MapLayers = MapLayers;
|
|
22
|
-
MapLayers.propTypes = {
|
|
23
|
-
children: PropTypes.node
|
|
24
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { MarkerLayerOptions } from '@progress/kendo-charts';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
/**
|
|
4
|
-
* Represents the props of the KendoReact MapMarkerLayer component.
|
|
5
|
-
*/
|
|
6
|
-
export interface MapMarkerLayerProps extends MarkerLayerOptions {
|
|
7
|
-
children?: React.ReactNode;
|
|
8
|
-
}
|
|
9
|
-
declare const MapMarkerLayer: React.FunctionComponent<MapMarkerLayerProps>;
|
|
10
|
-
export { MapMarkerLayer };
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.MapMarkerLayer = void 0;
|
|
15
|
-
var React = require("react");
|
|
16
|
-
var main_1 = require("../utils/main");
|
|
17
|
-
var ConfigurationComponent_1 = require("./base/ConfigurationComponent");
|
|
18
|
-
var MarkerLayerTooltip_1 = require("./MarkerLayerTooltip");
|
|
19
|
-
var MapMarkerLayer = function (props) {
|
|
20
|
-
return (React.createElement(ConfigurationComponent_1.default, __assign({ type: "marker" }, props)));
|
|
21
|
-
};
|
|
22
|
-
exports.MapMarkerLayer = MapMarkerLayer;
|
|
23
|
-
MapMarkerLayer.displayName = 'MapMarkerLayer';
|
|
24
|
-
MapMarkerLayer.propTypes = {
|
|
25
|
-
children: function (props, propName, componentName) {
|
|
26
|
-
return (0, main_1.validateChildren)(props, propName, componentName, MarkerLayerTooltip_1.MapMarkerLayerTooltip);
|
|
27
|
-
}
|
|
28
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { MarkerTooltipContext } from '../tooltip/MarkerTooltipContext';
|
|
3
|
-
/**
|
|
4
|
-
* Represents the props of the KendoReact MapMarkerLayerTooltip component.
|
|
5
|
-
*/
|
|
6
|
-
export interface MapMarkerLayerTooltipProps {
|
|
7
|
-
/**
|
|
8
|
-
* The renderer for the marker layer tooltip.
|
|
9
|
-
*
|
|
10
|
-
* @return the content of the tooltip.
|
|
11
|
-
*/
|
|
12
|
-
render?: (props: MarkerTooltipContext) => React.ReactNode;
|
|
13
|
-
}
|
|
14
|
-
declare const MapMarkerLayerTooltip: React.FunctionComponent<MapMarkerLayerTooltipProps>;
|
|
15
|
-
export { MapMarkerLayerTooltip };
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.MapMarkerLayerTooltip = void 0;
|
|
15
|
-
var React = require("react");
|
|
16
|
-
var ConfigurationComponent_1 = require("./base/ConfigurationComponent");
|
|
17
|
-
var MapMarkerLayerTooltip = function (props) {
|
|
18
|
-
return (React.createElement(ConfigurationComponent_1.default, __assign({}, props, { _mapKey: "tooltip" })));
|
|
19
|
-
};
|
|
20
|
-
exports.MapMarkerLayerTooltip = MapMarkerLayerTooltip;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.MapShapeLayer = void 0;
|
|
15
|
-
var React = require("react");
|
|
16
|
-
var main_1 = require("../utils/main");
|
|
17
|
-
var ConfigurationComponent_1 = require("./base/ConfigurationComponent");
|
|
18
|
-
var ShapeLayerTooltip_1 = require("./ShapeLayerTooltip");
|
|
19
|
-
var MapShapeLayer = function (props) {
|
|
20
|
-
return (React.createElement(ConfigurationComponent_1.default, __assign({ type: "shape" }, props)));
|
|
21
|
-
};
|
|
22
|
-
exports.MapShapeLayer = MapShapeLayer;
|
|
23
|
-
MapShapeLayer.displayName = 'MapShapeLayer';
|
|
24
|
-
MapShapeLayer.propTypes = {
|
|
25
|
-
children: function (props, propName, componentName) {
|
|
26
|
-
return (0, main_1.validateChildren)(props, propName, componentName, ShapeLayerTooltip_1.MapShapeLayerTooltip);
|
|
27
|
-
}
|
|
28
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.MapShapeLayerTooltip = void 0;
|
|
15
|
-
var React = require("react");
|
|
16
|
-
var ConfigurationComponent_1 = require("./base/ConfigurationComponent");
|
|
17
|
-
var MapShapeLayerTooltip = function (props) {
|
|
18
|
-
return (React.createElement(ConfigurationComponent_1.default, __assign({}, props, { _mapKey: "tooltip" })));
|
|
19
|
-
};
|
|
20
|
-
exports.MapShapeLayerTooltip = MapShapeLayerTooltip;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { TileLayerOptions } from '@progress/kendo-charts';
|
|
3
|
-
/**
|
|
4
|
-
* Represents the props of the KendoReact MapTileLayer component.
|
|
5
|
-
*/
|
|
6
|
-
export interface MapTileLayerProps extends TileLayerOptions {
|
|
7
|
-
}
|
|
8
|
-
declare const MapTileLayer: React.FunctionComponent<MapTileLayerProps>;
|
|
9
|
-
export { MapTileLayer };
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.MapTileLayer = void 0;
|
|
15
|
-
var React = require("react");
|
|
16
|
-
var ConfigurationComponent_1 = require("./base/ConfigurationComponent");
|
|
17
|
-
var MapTileLayer = function (props) {
|
|
18
|
-
return (React.createElement(ConfigurationComponent_1.default, __assign({ type: "tile" }, props)));
|
|
19
|
-
};
|
|
20
|
-
exports.MapTileLayer = MapTileLayer;
|
|
21
|
-
MapTileLayer.displayName = 'MapTileLayer';
|
|
@@ -1,65 +0,0 @@
|
|
|
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 (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
|
-
var __assign = (this && this.__assign) || function () {
|
|
18
|
-
__assign = Object.assign || function(t) {
|
|
19
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
20
|
-
s = arguments[i];
|
|
21
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
22
|
-
t[p] = s[p];
|
|
23
|
-
}
|
|
24
|
-
return t;
|
|
25
|
-
};
|
|
26
|
-
return __assign.apply(this, arguments);
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
var React = require("react");
|
|
30
|
-
var MapContext_1 = require("../../MapContext");
|
|
31
|
-
/**
|
|
32
|
-
* @hidden
|
|
33
|
-
*/
|
|
34
|
-
var CollectionConfigurationComponent = /** @class */ (function (_super) {
|
|
35
|
-
__extends(CollectionConfigurationComponent, _super);
|
|
36
|
-
function CollectionConfigurationComponent(props, context) {
|
|
37
|
-
var _this = _super.call(this, props, context) || this;
|
|
38
|
-
_this.optionsStore = context.optionsStore;
|
|
39
|
-
return _this;
|
|
40
|
-
}
|
|
41
|
-
CollectionConfigurationComponent.prototype.renderChildren = function (child, index) {
|
|
42
|
-
var children = child.props.children;
|
|
43
|
-
var _a = this.props, _mapKey = _a._mapKey, _parentStore = _a._parentStore;
|
|
44
|
-
var collectionItemProps = __assign(__assign({}, child.props), { _mapCollectionIdxKey: "".concat(_mapKey, "_").concat(index), _parentStore: _parentStore });
|
|
45
|
-
return React.cloneElement(child, collectionItemProps, children);
|
|
46
|
-
};
|
|
47
|
-
CollectionConfigurationComponent.prototype.render = function () {
|
|
48
|
-
var _this = this;
|
|
49
|
-
var _a = this.props, _mapKey = _a._mapKey, _parentStore = _a._parentStore, children = _a.children;
|
|
50
|
-
var store = _parentStore || this.optionsStore;
|
|
51
|
-
store.dispatch({
|
|
52
|
-
mapKey: _mapKey,
|
|
53
|
-
payload: []
|
|
54
|
-
});
|
|
55
|
-
return React.Children.map(children, function (child, index) {
|
|
56
|
-
if (React.isValidElement(child)) {
|
|
57
|
-
return _this.renderChildren(child, index);
|
|
58
|
-
}
|
|
59
|
-
return child;
|
|
60
|
-
});
|
|
61
|
-
};
|
|
62
|
-
CollectionConfigurationComponent.contextType = MapContext_1.MapContext;
|
|
63
|
-
return CollectionConfigurationComponent;
|
|
64
|
-
}(React.Component));
|
|
65
|
-
exports.default = CollectionConfigurationComponent;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* @hidden
|
|
4
|
-
*/
|
|
5
|
-
export interface ConfigurationComponentProps {
|
|
6
|
-
_mapKey?: string;
|
|
7
|
-
_mapCollectionIdxKey?: string;
|
|
8
|
-
_parentStore?: any;
|
|
9
|
-
[x: string]: any;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* @hidden
|
|
13
|
-
*/
|
|
14
|
-
export default class ConfigurationComponent extends React.Component<ConfigurationComponentProps> {
|
|
15
|
-
static contextType: React.Context<import("../../MapContext").MapContextType | null>;
|
|
16
|
-
optionsStore: any;
|
|
17
|
-
childStore: any;
|
|
18
|
-
constructor(props: any, context: any);
|
|
19
|
-
render(): any;
|
|
20
|
-
componentDidMount(): void;
|
|
21
|
-
componentDidUpdate(): void;
|
|
22
|
-
private dispatch;
|
|
23
|
-
private renderChildren;
|
|
24
|
-
}
|
|
@@ -1,88 +0,0 @@
|
|
|
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 (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
|
-
var __assign = (this && this.__assign) || function () {
|
|
18
|
-
__assign = Object.assign || function(t) {
|
|
19
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
20
|
-
s = arguments[i];
|
|
21
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
22
|
-
t[p] = s[p];
|
|
23
|
-
}
|
|
24
|
-
return t;
|
|
25
|
-
};
|
|
26
|
-
return __assign.apply(this, arguments);
|
|
27
|
-
};
|
|
28
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
29
|
-
var t = {};
|
|
30
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
31
|
-
t[p] = s[p];
|
|
32
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
33
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
34
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
35
|
-
t[p[i]] = s[p[i]];
|
|
36
|
-
}
|
|
37
|
-
return t;
|
|
38
|
-
};
|
|
39
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
|
-
var React = require("react");
|
|
41
|
-
var store_1 = require("./../../store/store");
|
|
42
|
-
var reducer_1 = require("./../../store/reducer");
|
|
43
|
-
var MapContext_1 = require("../../MapContext");
|
|
44
|
-
/**
|
|
45
|
-
* @hidden
|
|
46
|
-
*/
|
|
47
|
-
var ConfigurationComponent = /** @class */ (function (_super) {
|
|
48
|
-
__extends(ConfigurationComponent, _super);
|
|
49
|
-
function ConfigurationComponent(props, context) {
|
|
50
|
-
var _this = _super.call(this, props, context) || this;
|
|
51
|
-
_this.optionsStore = context.optionsStore;
|
|
52
|
-
_this.childStore = (0, store_1.default)(reducer_1.optionsReducer);
|
|
53
|
-
return _this;
|
|
54
|
-
}
|
|
55
|
-
ConfigurationComponent.prototype.render = function () {
|
|
56
|
-
var _this = this;
|
|
57
|
-
var children = this.props.children;
|
|
58
|
-
return children !== undefined ? React.Children.map(children, function (child) {
|
|
59
|
-
if (React.isValidElement(child)) {
|
|
60
|
-
return _this.renderChildren(child);
|
|
61
|
-
}
|
|
62
|
-
return child;
|
|
63
|
-
}) : null;
|
|
64
|
-
};
|
|
65
|
-
ConfigurationComponent.prototype.componentDidMount = function () {
|
|
66
|
-
this.dispatch();
|
|
67
|
-
};
|
|
68
|
-
ConfigurationComponent.prototype.componentDidUpdate = function () {
|
|
69
|
-
this.dispatch();
|
|
70
|
-
};
|
|
71
|
-
ConfigurationComponent.prototype.dispatch = function () {
|
|
72
|
-
var _a = this.props, _mapKey = _a._mapKey, _mapCollectionIdxKey = _a._mapCollectionIdxKey, _parentStore = _a._parentStore, children = _a.children, options = __rest(_a, ["_mapKey", "_mapCollectionIdxKey", "_parentStore", "children"]);
|
|
73
|
-
var store = _parentStore || this.optionsStore;
|
|
74
|
-
store.dispatch({
|
|
75
|
-
mapKey: _mapKey,
|
|
76
|
-
mapCollectionIdxKey: _mapCollectionIdxKey,
|
|
77
|
-
payload: Object.assign({}, options, this.childStore.getState())
|
|
78
|
-
});
|
|
79
|
-
};
|
|
80
|
-
ConfigurationComponent.prototype.renderChildren = function (child) {
|
|
81
|
-
var children = child.props.children;
|
|
82
|
-
var configurationItemProps = __assign(__assign({}, child.props), { _parentStore: this.childStore });
|
|
83
|
-
return React.cloneElement(child, configurationItemProps, children);
|
|
84
|
-
};
|
|
85
|
-
ConfigurationComponent.contextType = MapContext_1.MapContext;
|
|
86
|
-
return ConfigurationComponent;
|
|
87
|
-
}(React.Component));
|
|
88
|
-
exports.default = ConfigurationComponent;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { MapLayers, MapLayersProps } from './Layers';
|
|
2
|
-
import { MapShapeLayer, MapShapeLayerProps } from './ShapeLayer';
|
|
3
|
-
import { MapShapeLayerTooltip, MapShapeLayerTooltipProps } from './ShapeLayerTooltip';
|
|
4
|
-
import { MapTileLayer, MapTileLayerProps } from './TileLayer';
|
|
5
|
-
import { MapBubbleLayer, MapBubbleLayerProps } from './BubbleLayer';
|
|
6
|
-
import { MapBubbleLayerTooltip, MapBubbleLayerTooltipProps } from './BubbleLayerTooltip';
|
|
7
|
-
import { MapMarkerLayer, MapMarkerLayerProps } from './MarkerLayer';
|
|
8
|
-
import { MapMarkerLayerTooltip, MapMarkerLayerTooltipProps } from './MarkerLayerTooltip';
|
|
9
|
-
export { MapLayers, MapLayersProps, MapShapeLayer, MapShapeLayerProps, MapShapeLayerTooltip, MapShapeLayerTooltipProps, MapTileLayer, MapTileLayerProps, MapBubbleLayer, MapBubbleLayerProps, MapBubbleLayerTooltip, MapBubbleLayerTooltipProps, MapMarkerLayer, MapMarkerLayerProps, MapMarkerLayerTooltip, MapMarkerLayerTooltipProps };
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MapMarkerLayerTooltip = exports.MapMarkerLayer = exports.MapBubbleLayerTooltip = exports.MapBubbleLayer = exports.MapTileLayer = exports.MapShapeLayerTooltip = exports.MapShapeLayer = exports.MapLayers = void 0;
|
|
4
|
-
var Layers_1 = require("./Layers");
|
|
5
|
-
Object.defineProperty(exports, "MapLayers", { enumerable: true, get: function () { return Layers_1.MapLayers; } });
|
|
6
|
-
var ShapeLayer_1 = require("./ShapeLayer");
|
|
7
|
-
Object.defineProperty(exports, "MapShapeLayer", { enumerable: true, get: function () { return ShapeLayer_1.MapShapeLayer; } });
|
|
8
|
-
var ShapeLayerTooltip_1 = require("./ShapeLayerTooltip");
|
|
9
|
-
Object.defineProperty(exports, "MapShapeLayerTooltip", { enumerable: true, get: function () { return ShapeLayerTooltip_1.MapShapeLayerTooltip; } });
|
|
10
|
-
var TileLayer_1 = require("./TileLayer");
|
|
11
|
-
Object.defineProperty(exports, "MapTileLayer", { enumerable: true, get: function () { return TileLayer_1.MapTileLayer; } });
|
|
12
|
-
var BubbleLayer_1 = require("./BubbleLayer");
|
|
13
|
-
Object.defineProperty(exports, "MapBubbleLayer", { enumerable: true, get: function () { return BubbleLayer_1.MapBubbleLayer; } });
|
|
14
|
-
var BubbleLayerTooltip_1 = require("./BubbleLayerTooltip");
|
|
15
|
-
Object.defineProperty(exports, "MapBubbleLayerTooltip", { enumerable: true, get: function () { return BubbleLayerTooltip_1.MapBubbleLayerTooltip; } });
|
|
16
|
-
var MarkerLayer_1 = require("./MarkerLayer");
|
|
17
|
-
Object.defineProperty(exports, "MapMarkerLayer", { enumerable: true, get: function () { return MarkerLayer_1.MapMarkerLayer; } });
|
|
18
|
-
var MarkerLayerTooltip_1 = require("./MarkerLayerTooltip");
|
|
19
|
-
Object.defineProperty(exports, "MapMarkerLayerTooltip", { enumerable: true, get: function () { return MarkerLayerTooltip_1.MapMarkerLayerTooltip; } });
|
package/dist/npm/defaults.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/npm/defaults.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var kendo_charts_1 = require("@progress/kendo-charts");
|
|
4
|
-
var dateCategoryAxisFormats = kendo_charts_1.DateCategoryAxis.prototype.options.labels.dateFormats;
|
|
5
|
-
var dateValueAxisFormats = kendo_charts_1.DateValueAxis.prototype.options.labels.dateFormats;
|
|
6
|
-
var dateFormats = {
|
|
7
|
-
milliseconds: 'HH:mm:ss.SSS',
|
|
8
|
-
seconds: { time: 'medium' },
|
|
9
|
-
minutes: { time: 'short' },
|
|
10
|
-
hours: { time: 'short' },
|
|
11
|
-
days: { skeleton: 'Md' },
|
|
12
|
-
weeks: { skeleton: 'Md' },
|
|
13
|
-
months: { skeleton: 'yyMMM' },
|
|
14
|
-
years: { skeleton: 'y' }
|
|
15
|
-
};
|
|
16
|
-
Object.assign(dateCategoryAxisFormats, dateFormats);
|
|
17
|
-
Object.assign(dateValueAxisFormats, dateFormats);
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BaseEvent = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* @hidden
|
|
6
|
-
*/
|
|
7
|
-
var BaseEvent = /** @class */ (function () {
|
|
8
|
-
/**
|
|
9
|
-
* @hidden
|
|
10
|
-
*/
|
|
11
|
-
function BaseEvent(target) {
|
|
12
|
-
this.target = target;
|
|
13
|
-
}
|
|
14
|
-
return BaseEvent;
|
|
15
|
-
}());
|
|
16
|
-
exports.BaseEvent = BaseEvent;
|
|
@@ -1,33 +0,0 @@
|
|
|
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 (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.BeforeResetEvent = void 0;
|
|
19
|
-
var base_event_1 = require("./base-event");
|
|
20
|
-
/**
|
|
21
|
-
* Fired immediately before the map is reset. This event is typically used for cleanup by layer implementers.
|
|
22
|
-
*/
|
|
23
|
-
var BeforeResetEvent = /** @class */ (function (_super) {
|
|
24
|
-
__extends(BeforeResetEvent, _super);
|
|
25
|
-
/**
|
|
26
|
-
* @hidden
|
|
27
|
-
*/
|
|
28
|
-
function BeforeResetEvent(_, target) {
|
|
29
|
-
return _super.call(this, target) || this;
|
|
30
|
-
}
|
|
31
|
-
return BeforeResetEvent;
|
|
32
|
-
}(base_event_1.BaseEvent));
|
|
33
|
-
exports.BeforeResetEvent = BeforeResetEvent;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.toDomEvent = exports.DomEvent = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* @hidden
|
|
6
|
-
*/
|
|
7
|
-
var DomEvent = /** @class */ (function () {
|
|
8
|
-
/**
|
|
9
|
-
* @hidden
|
|
10
|
-
*/
|
|
11
|
-
function DomEvent(sender, e) {
|
|
12
|
-
this.sender = sender;
|
|
13
|
-
this.syntheticEvent = e;
|
|
14
|
-
}
|
|
15
|
-
return DomEvent;
|
|
16
|
-
}());
|
|
17
|
-
exports.DomEvent = DomEvent;
|
|
18
|
-
/**
|
|
19
|
-
* @hidden
|
|
20
|
-
*/
|
|
21
|
-
function toDomEvent(sender, e) {
|
|
22
|
-
return new DomEvent(sender, e);
|
|
23
|
-
}
|
|
24
|
-
exports.toDomEvent = toDomEvent;
|
|
@@ -1,36 +0,0 @@
|
|
|
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 (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.MapClickEvent = void 0;
|
|
19
|
-
var base_event_1 = require("./base-event");
|
|
20
|
-
/**
|
|
21
|
-
* Fired when the user clicks on the map.
|
|
22
|
-
*/
|
|
23
|
-
var MapClickEvent = /** @class */ (function (_super) {
|
|
24
|
-
__extends(MapClickEvent, _super);
|
|
25
|
-
/**
|
|
26
|
-
* @hidden
|
|
27
|
-
*/
|
|
28
|
-
function MapClickEvent(e, target) {
|
|
29
|
-
var _this = _super.call(this, target) || this;
|
|
30
|
-
_this.location = e.location;
|
|
31
|
-
_this.originalEvent = e.originalEvent;
|
|
32
|
-
return _this;
|
|
33
|
-
}
|
|
34
|
-
return MapClickEvent;
|
|
35
|
-
}(base_event_1.BaseEvent));
|
|
36
|
-
exports.MapClickEvent = MapClickEvent;
|