jpf 5.0.3 → 5.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/controls/codeMirror/Editor/Editor.d.ts +19 -0
- package/dist/controls/codeMirror/Editor/Editor.js +151 -0
- package/dist/controls/codeMirror/Editor/Editor.js.map +1 -0
- package/dist/controls/codeMirror/index.d.ts +1 -2
- package/dist/controls/codeMirror/index.js +1 -2
- package/dist/controls/codeMirror/index.js.map +1 -1
- package/dist/controls/custom/FileSelector/FileSelector.d.ts +18 -18
- package/dist/controls/custom/FileSelector/FileSelector.js +47 -46
- package/dist/controls/custom/FileSelector/FileSelector.js.map +1 -1
- package/dist/controls/custom/LabeledControl/LabeledControl.d.ts +15 -15
- package/dist/controls/custom/LabeledControl/LabeledControl.js +31 -36
- package/dist/controls/custom/LabeledControl/LabeledControl.js.map +1 -1
- package/dist/controls/custom/ListItem/ListItem.d.ts +37 -36
- package/dist/controls/custom/ListItem/ListItem.js +62 -62
- package/dist/controls/custom/ListItem/ListItem.js.map +1 -1
- package/dist/controls/custom/index.d.ts +3 -3
- package/dist/controls/custom/index.js +3 -3
- package/dist/controls/html/Button/Button.d.ts +16 -16
- package/dist/controls/html/Button/Button.js +47 -50
- package/dist/controls/html/Button/Button.js.map +1 -1
- package/dist/controls/html/Div/Div.d.ts +14 -14
- package/dist/controls/html/Div/Div.js +23 -24
- package/dist/controls/html/Div/Div.js.map +1 -1
- package/dist/controls/html/Image/Image.d.ts +16 -16
- package/dist/controls/html/Image/Image.js +29 -28
- package/dist/controls/html/Image/Image.js.map +1 -1
- package/dist/controls/html/Input/Input.d.ts +34 -34
- package/dist/controls/html/Input/Input.js +166 -170
- package/dist/controls/html/Input/Input.js.map +1 -1
- package/dist/controls/html/Select/Select.d.ts +30 -30
- package/dist/controls/html/Select/Select.js +109 -110
- package/dist/controls/html/Select/Select.js.map +1 -1
- package/dist/controls/html/Span/Span.d.ts +11 -11
- package/dist/controls/html/Span/Span.js +22 -22
- package/dist/controls/html/Span/Span.js.map +1 -1
- package/dist/controls/html/index.d.ts +6 -6
- package/dist/controls/html/index.js +6 -6
- package/dist/controls/index.d.ts +14 -14
- package/dist/controls/index.js +14 -14
- package/dist/controls/index.js.map +1 -1
- package/dist/controls/{jsonViewAwesome → jsonViewerAwesome}/index.d.ts +1 -1
- package/dist/controls/{jsonViewAwesome → jsonViewerAwesome}/index.js +1 -1
- package/dist/controls/jsonViewerAwesome/index.js.map +1 -0
- package/dist/controls/jsonViewerAwesome/jsonFormatter/JsonFormatter.d.ts +28 -0
- package/dist/controls/{jsonViewAwesome → jsonViewerAwesome}/jsonFormatter/JsonFormatter.js +65 -65
- package/dist/controls/jsonViewerAwesome/jsonFormatter/JsonFormatter.js.map +1 -0
- package/dist/controls/kendo/Chart/Chart.d.ts +19 -19
- package/dist/controls/kendo/Chart/Chart.js +62 -62
- package/dist/controls/kendo/Chart/Chart.js.map +1 -1
- package/dist/controls/kendo/Culture/Culture.d.ts +1 -1
- package/dist/controls/kendo/Culture/Culture.js +25 -25
- package/dist/controls/kendo/Culture/Culture.js.map +1 -1
- package/dist/controls/kendo/DataSource/DataSource.d.ts +4 -4
- package/dist/controls/kendo/DataSource/DataSource.js +1 -1
- package/dist/controls/kendo/Editor/Editor.d.ts +14 -19
- package/dist/controls/kendo/Editor/Editor.js +94 -104
- package/dist/controls/kendo/Editor/Editor.js.map +1 -1
- package/dist/controls/kendo/Grid/Grid.d.ts +54 -54
- package/dist/controls/kendo/Grid/Grid.js +201 -218
- package/dist/controls/kendo/Grid/Grid.js.map +1 -1
- package/dist/controls/kendo/Menu/Menu.d.ts +15 -15
- package/dist/controls/kendo/Menu/Menu.js +90 -90
- package/dist/controls/kendo/Menu/Menu.js.map +1 -1
- package/dist/controls/kendo/ObservableObject/ObservableObject.d.ts +0 -5
- package/dist/controls/kendo/ObservableObject/ObservableObject.js +0 -34
- package/dist/controls/kendo/ObservableObject/ObservableObject.js.map +1 -1
- package/dist/controls/kendo/Treeview/Treeview.d.ts +17 -0
- package/dist/controls/kendo/{Tree/Tree.js → Treeview/Treeview.js} +107 -107
- package/dist/controls/kendo/Treeview/Treeview.js.map +1 -0
- package/dist/controls/kendo/Window/Window.d.ts +14 -0
- package/dist/controls/kendo/{Dialog/Dialog.js → Window/Window.js} +49 -49
- package/dist/controls/kendo/Window/Window.js.map +1 -0
- package/dist/controls/kendo/index.d.ts +8 -9
- package/dist/controls/kendo/index.js +8 -9
- package/dist/controls/kendo/index.js.map +1 -1
- package/dist/controls/leaflet/LabelControl/LabelControl.d.ts +12 -12
- package/dist/controls/leaflet/LabelControl/LabelControl.js +33 -33
- package/dist/controls/leaflet/LabelControl/LabelControl.js.map +1 -1
- package/dist/controls/leaflet/Map/Map.d.ts +45 -45
- package/dist/controls/leaflet/Map/Map.js +116 -115
- package/dist/controls/leaflet/Map/Map.js.map +1 -1
- package/dist/controls/leaflet/OpenStreetMapTileLayer/OpenStreetMapTileLayer.d.ts +8 -8
- package/dist/controls/leaflet/OpenStreetMapTileLayer/OpenStreetMapTileLayer.js +13 -13
- package/dist/controls/leaflet/OpenStreetMapTileLayer/OpenStreetMapTileLayer.js.map +1 -1
- package/dist/controls/leaflet/PointerEvent/PointerEvent.d.ts +2 -2
- package/dist/controls/leaflet/PointerEvent/PointerEvent.js +7 -7
- package/dist/controls/leaflet/PointerEvent/PointerEvent.js.map +1 -1
- package/dist/controls/leaflet/index.d.ts +4 -4
- package/dist/controls/leaflet/index.js +4 -4
- package/dist/controls/svg/Circle/Circle.d.ts +12 -12
- package/dist/controls/svg/Circle/Circle.js +20 -20
- package/dist/controls/svg/Circle/Circle.js.map +1 -1
- package/dist/controls/svg/Ellipse/Ellipse.d.ts +13 -13
- package/dist/controls/svg/Ellipse/Ellipse.js +21 -21
- package/dist/controls/svg/Ellipse/Ellipse.js.map +1 -1
- package/dist/controls/svg/ForeignObject/ForeignObject.d.ts +15 -14
- package/dist/controls/svg/ForeignObject/ForeignObject.js +21 -22
- package/dist/controls/svg/ForeignObject/ForeignObject.js.map +1 -1
- package/dist/controls/svg/Group/Group.d.ts +15 -14
- package/dist/controls/svg/Group/Group.js +21 -22
- package/dist/controls/svg/Group/Group.js.map +1 -1
- package/dist/controls/svg/Line/Line.d.ts +13 -13
- package/dist/controls/svg/Line/Line.js +21 -21
- package/dist/controls/svg/Line/Line.js.map +1 -1
- package/dist/controls/svg/Pattern/Pattern.d.ts +22 -22
- package/dist/controls/svg/Pattern/Pattern.js +22 -23
- package/dist/controls/svg/Pattern/Pattern.js.map +1 -1
- package/dist/controls/svg/Polygon/Polygon.d.ts +11 -11
- package/dist/controls/svg/Polygon/Polygon.js +20 -20
- package/dist/controls/svg/Polygon/Polygon.js.map +1 -1
- package/dist/controls/svg/Polyline/Polyline.d.ts +11 -11
- package/dist/controls/svg/Polyline/Polyline.js +19 -19
- package/dist/controls/svg/Polyline/Polyline.js.map +1 -1
- package/dist/controls/svg/Rectangle/Rectangle.d.ts +13 -13
- package/dist/controls/svg/Rectangle/Rectangle.js +21 -21
- package/dist/controls/svg/Rectangle/Rectangle.js.map +1 -1
- package/dist/controls/svg/Svg/Svg.d.ts +17 -17
- package/dist/controls/svg/Svg/Svg.js +23 -24
- package/dist/controls/svg/Svg/Svg.js.map +1 -1
- package/dist/controls/svg/Text/Text.d.ts +14 -14
- package/dist/controls/svg/Text/Text.js +22 -22
- package/dist/controls/svg/Text/Text.js.map +1 -1
- package/dist/controls/svg/Title/Title.d.ts +10 -10
- package/dist/controls/svg/Title/Title.js +16 -16
- package/dist/controls/svg/Title/Title.js.map +1 -1
- package/dist/controls/svg/index.d.ts +13 -13
- package/dist/controls/svg/index.js +13 -13
- package/dist/controls/svg/svg.d.ts +6 -6
- package/dist/controls/svg/svg.js +12 -12
- package/dist/controls/svg/svg.js.map +1 -1
- package/dist/framework/attributes.d.ts +90 -90
- package/dist/framework/attributes.js +1 -1
- package/dist/framework/{View.d.ts → element.d.ts} +61 -62
- package/dist/framework/{View.js → element.js} +157 -150
- package/dist/framework/element.js.map +1 -0
- package/dist/framework/event.d.ts +80 -80
- package/dist/framework/event.js +25 -25
- package/dist/framework/event.js.map +1 -1
- package/dist/framework/observable.d.ts +37 -12
- package/dist/framework/observable.js +66 -58
- package/dist/framework/observable.js.map +1 -1
- package/dist/framework/properties.d.ts +40 -0
- package/dist/framework/{ViewModel.js → properties.js} +303 -312
- package/dist/framework/properties.js.map +1 -0
- package/dist/framework/root.d.ts +9 -0
- package/dist/framework/root.js +38 -0
- package/dist/framework/root.js.map +1 -0
- package/dist/framework/style.d.ts +657 -658
- package/dist/framework/style.js +146 -153
- package/dist/framework/style.js.map +1 -1
- package/dist/framework/types.d.ts +87 -87
- package/dist/framework/types.js +1 -1
- package/dist/index.d.ts +12 -12
- package/dist/index.js +12 -12
- package/dist/index.js.map +1 -1
- package/dist/utilities/blob/blob.d.ts +1 -1
- package/dist/utilities/blob/blob.js +17 -17
- package/dist/utilities/blob/blob.js.map +1 -1
- package/dist/utilities/contextMenu/contextMenu.d.ts +2 -0
- package/dist/utilities/contextMenu/contextMenu.js +11 -0
- package/dist/utilities/contextMenu/contextMenu.js.map +1 -0
- package/dist/utilities/cookie/cookie.d.ts +3 -3
- package/dist/utilities/cookie/cookie.js +26 -26
- package/dist/utilities/cookie/cookie.js.map +1 -1
- package/dist/utilities/dataReaderTable/dataReaderTable.d.ts +9 -9
- package/dist/utilities/dataReaderTable/dataReaderTable.js +23 -23
- package/dist/utilities/dataReaderTable/dataReaderTable.js.map +1 -1
- package/dist/utilities/fetch/fetch.d.ts +7 -8
- package/dist/utilities/fetch/fetch.js +139 -137
- package/dist/utilities/fetch/fetch.js.map +1 -1
- package/dist/utilities/float/float.d.ts +1 -1
- package/dist/utilities/float/float.js +3 -3
- package/dist/utilities/formData/formData.d.ts +1 -1
- package/dist/utilities/formData/formData.js +11 -11
- package/dist/utilities/formData/formData.js.map +1 -1
- package/dist/utilities/formatting/formatting.d.ts +4 -0
- package/dist/utilities/formatting/formatting.js +26 -0
- package/dist/utilities/formatting/formatting.js.map +1 -0
- package/dist/utilities/htmlElement/htmlElement.d.ts +1 -1
- package/dist/utilities/htmlElement/htmlElement.js +16 -16
- package/dist/utilities/htmlElement/htmlElement.js.map +1 -1
- package/dist/utilities/image/image.d.ts +1 -1
- package/dist/utilities/image/image.js +1 -1
- package/dist/utilities/index.d.ts +40 -36
- package/dist/utilities/index.js +40 -36
- package/dist/utilities/index.js.map +1 -1
- package/dist/utilities/integer/integer.d.ts +3 -3
- package/dist/utilities/integer/integer.js +27 -27
- package/dist/utilities/integer/integer.js.map +1 -1
- package/dist/utilities/key/key.d.ts +2 -2
- package/dist/utilities/key/key.js +6 -6
- package/dist/utilities/navigator/navigator.d.ts +1 -1
- package/dist/utilities/navigator/navigator.js +8 -8
- package/dist/utilities/navigator/navigator.js.map +1 -1
- package/dist/utilities/notification/notification.d.ts +5 -5
- package/dist/utilities/notification/notification.js +66 -66
- package/dist/utilities/notification/notification.js.map +1 -1
- package/dist/utilities/querystring/querystring.d.ts +6 -6
- package/dist/utilities/querystring/querystring.js +53 -53
- package/dist/utilities/querystring/querystring.js.map +1 -1
- package/dist/utilities/router/router.d.ts +19 -19
- package/dist/utilities/router/router.js +80 -80
- package/dist/utilities/router/router.js.map +1 -1
- package/dist/utilities/stylesheet/stylesheet.d.ts +2 -2
- package/dist/utilities/stylesheet/stylesheet.js +47 -47
- package/dist/utilities/stylesheet/stylesheet.js.map +1 -1
- package/dist/utilities/uniqueId/uniqueId.d.ts +1 -1
- package/dist/utilities/uniqueId/uniqueId.js +4 -4
- package/dist/{framework → utilities/userAgent}/userAgent.d.ts +31 -31
- package/dist/{framework → utilities/userAgent}/userAgent.js +46 -46
- package/dist/utilities/userAgent/userAgent.js.map +1 -0
- package/dist/utilities/webSocket/webSocket.d.ts +1 -1
- package/dist/utilities/webSocket/webSocket.js +54 -54
- package/dist/utilities/webSocket/webSocket.js.map +1 -1
- package/package.json +15 -11
- package/src/controls/codeMirror/Editor/Editor.ts +207 -0
- package/src/controls/codeMirror/index.ts +1 -2
- package/src/controls/custom/FileSelector/FileSelector.ts +30 -28
- package/src/controls/custom/LabeledControl/LabeledControl.ts +32 -36
- package/src/controls/custom/ListItem/ListItem.ts +37 -37
- package/src/controls/html/Button/Button.ts +37 -30
- package/src/controls/html/Div/Div.ts +20 -21
- package/src/controls/html/Image/Image.ts +22 -20
- package/src/controls/html/Input/Input.ts +63 -65
- package/src/controls/html/Select/Select.ts +39 -41
- package/src/controls/html/Span/Span.ts +14 -14
- package/src/controls/index.ts +2 -2
- package/src/controls/{jsonViewAwesome → jsonViewerAwesome}/jsonFormatter/JsonFormatter.ts +24 -24
- package/src/controls/kendo/Chart/Chart.ts +37 -37
- package/src/controls/kendo/DataSource/DataSource.ts +1 -1
- package/src/controls/kendo/Editor/Editor.ts +59 -69
- package/src/controls/kendo/Grid/Grid.ts +81 -84
- package/src/controls/kendo/Menu/Menu.ts +24 -24
- package/src/controls/kendo/ObservableObject/ObservableObject.ts +45 -45
- package/src/controls/kendo/{Tree/Tree.ts → Treeview/Treeview.ts} +17 -17
- package/src/controls/kendo/{Dialog/Dialog.ts → Window/Window.ts} +21 -19
- package/src/controls/kendo/index.ts +3 -3
- package/src/controls/leaflet/LabelControl/LabelControl.ts +10 -10
- package/src/controls/leaflet/Map/Map.ts +44 -41
- package/src/controls/leaflet/OpenStreetMapTileLayer/OpenStreetMapTileLayer.ts +3 -3
- package/src/controls/svg/Circle/Circle.ts +14 -14
- package/src/controls/svg/Ellipse/Ellipse.ts +15 -15
- package/src/controls/svg/ForeignObject/ForeignObject.ts +19 -20
- package/src/controls/svg/Group/Group.ts +19 -19
- package/src/controls/svg/Line/Line.ts +15 -15
- package/src/controls/svg/Pattern/Pattern.ts +25 -25
- package/src/controls/svg/Polygon/Polygon.ts +13 -13
- package/src/controls/svg/Polyline/Polyline.ts +13 -13
- package/src/controls/svg/Rectangle/Rectangle.ts +15 -15
- package/src/controls/svg/Svg/Svg.ts +19 -19
- package/src/controls/svg/Text/Text.ts +16 -16
- package/src/controls/svg/Title/Title.ts +12 -12
- package/src/controls/svg/svg.ts +4 -4
- package/src/framework/attributes.ts +46 -46
- package/src/framework/{View.ts → element.ts} +54 -41
- package/src/framework/event.ts +7 -7
- package/src/framework/observable.ts +93 -60
- package/src/framework/properties.ts +393 -0
- package/src/framework/root.ts +45 -0
- package/src/framework/style.ts +330 -340
- package/src/index.ts +4 -4
- package/src/utilities/contextMenu/contextMenu.ts +16 -0
- package/src/utilities/fetch/fetch.ts +16 -14
- package/src/utilities/formatting/formatting.ts +29 -0
- package/src/utilities/index.ts +7 -3
- package/src/utilities/router/router.ts +3 -3
- package/dist/controls/codeMirror/HtmlEditor/HtmlEditor.d.ts +0 -16
- package/dist/controls/codeMirror/HtmlEditor/HtmlEditor.js +0 -120
- package/dist/controls/codeMirror/HtmlEditor/HtmlEditor.js.map +0 -1
- package/dist/controls/codeMirror/JsonEditor/JsonEditor.d.ts +0 -16
- package/dist/controls/codeMirror/JsonEditor/JsonEditor.js +0 -104
- package/dist/controls/codeMirror/JsonEditor/JsonEditor.js.map +0 -1
- package/dist/controls/jsonViewAwesome/index.js.map +0 -1
- package/dist/controls/jsonViewAwesome/jsonFormatter/JsonFormatter.d.ts +0 -28
- package/dist/controls/jsonViewAwesome/jsonFormatter/JsonFormatter.js.map +0 -1
- package/dist/controls/kendo/Dialog/Dialog.d.ts +0 -14
- package/dist/controls/kendo/Dialog/Dialog.js.map +0 -1
- package/dist/controls/kendo/Tree/Tree.d.ts +0 -17
- package/dist/controls/kendo/Tree/Tree.js.map +0 -1
- package/dist/framework/View.js.map +0 -1
- package/dist/framework/ViewModel.d.ts +0 -42
- package/dist/framework/ViewModel.js.map +0 -1
- package/dist/framework/userAgent.js.map +0 -1
- package/dist/utilities/html/html.d.ts +0 -1
- package/dist/utilities/html/html.js +0 -8
- package/dist/utilities/html/html.js.map +0 -1
- package/src/controls/codeMirror/HtmlEditor/HtmlEditor.ts +0 -153
- package/src/controls/codeMirror/JsonEditor/JsonEditor.ts +0 -136
- package/src/framework/ViewModel.ts +0 -528
- package/src/utilities/html/html.ts +0 -8
- /package/src/controls/{jsonViewAwesome → jsonViewerAwesome}/index.ts +0 -0
- /package/src/{framework → utilities/userAgent}/userAgent.ts +0 -0
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
export * from "./Chart/Chart";
|
|
2
|
-
export * from "./Culture/Culture";
|
|
3
|
-
export * from "./DataSource/DataSource";
|
|
4
|
-
export * from "./
|
|
5
|
-
export * from "./
|
|
6
|
-
export * from "./
|
|
7
|
-
export * from "./
|
|
8
|
-
export * from "./
|
|
9
|
-
export * from "./Tree/Tree";
|
|
1
|
+
export * from "./Chart/Chart";
|
|
2
|
+
export * from "./Culture/Culture";
|
|
3
|
+
export * from "./DataSource/DataSource";
|
|
4
|
+
export * from "./Editor/Editor";
|
|
5
|
+
export * from "./Grid/Grid";
|
|
6
|
+
export * from "./Menu/Menu";
|
|
7
|
+
export * from "./Treeview/Treeview";
|
|
8
|
+
export * from "./Window/Window";
|
|
10
9
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/controls/kendo/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/controls/kendo/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAE5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import * as leaflet from "leaflet";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
export interface
|
|
5
|
-
content: string |
|
|
6
|
-
}
|
|
7
|
-
export declare class LeafletLabelControl extends leaflet.Control {
|
|
8
|
-
constructor(options:
|
|
9
|
-
private readonly content;
|
|
10
|
-
onAdd(map: leaflet.Map): HTMLElement;
|
|
11
|
-
}
|
|
12
|
-
export declare function
|
|
1
|
+
import * as leaflet from "leaflet";
|
|
2
|
+
import { IElement } from "../../../framework/element";
|
|
3
|
+
import { Properties } from "../../../framework/properties";
|
|
4
|
+
export interface ILeafletLabelControlOptions extends leaflet.ControlOptions {
|
|
5
|
+
content: string | IElement | Properties;
|
|
6
|
+
}
|
|
7
|
+
export declare class LeafletLabelControl extends leaflet.Control {
|
|
8
|
+
constructor(options: ILeafletLabelControlOptions);
|
|
9
|
+
private readonly content;
|
|
10
|
+
onAdd(map: leaflet.Map): HTMLElement;
|
|
11
|
+
}
|
|
12
|
+
export declare function createLeafletLabelControl(options: ILeafletLabelControlOptions): LeafletLabelControl;
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import * as leaflet from "leaflet";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
export class LeafletLabelControl extends leaflet.Control {
|
|
5
|
-
constructor(options) {
|
|
6
|
-
super(options);
|
|
7
|
-
this.content = options.content;
|
|
8
|
-
}
|
|
9
|
-
content;
|
|
10
|
-
onAdd(map) {
|
|
11
|
-
const div = document.createElement("div");
|
|
12
|
-
let view;
|
|
13
|
-
if (this.content instanceof
|
|
14
|
-
view =
|
|
15
|
-
if (view) {
|
|
16
|
-
div.appendChild(view.render());
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
else if (typeof this.content === "string") {
|
|
20
|
-
div.innerText = this.content;
|
|
21
|
-
}
|
|
22
|
-
else {
|
|
23
|
-
view = this.content;
|
|
24
|
-
if (view.render) {
|
|
25
|
-
div.appendChild(view.render());
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
return div;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
export function
|
|
32
|
-
return new LeafletLabelControl(options);
|
|
33
|
-
}
|
|
1
|
+
import * as leaflet from "leaflet";
|
|
2
|
+
import { getElement } from "../../../framework/element";
|
|
3
|
+
import { Properties } from "../../../framework/properties";
|
|
4
|
+
export class LeafletLabelControl extends leaflet.Control {
|
|
5
|
+
constructor(options) {
|
|
6
|
+
super(options);
|
|
7
|
+
this.content = options.content;
|
|
8
|
+
}
|
|
9
|
+
content;
|
|
10
|
+
onAdd(map) {
|
|
11
|
+
const div = document.createElement("div");
|
|
12
|
+
let view;
|
|
13
|
+
if (this.content instanceof Properties) {
|
|
14
|
+
view = getElement(this.content);
|
|
15
|
+
if (view) {
|
|
16
|
+
div.appendChild(view.render());
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
else if (typeof this.content === "string") {
|
|
20
|
+
div.innerText = this.content;
|
|
21
|
+
}
|
|
22
|
+
else {
|
|
23
|
+
view = this.content;
|
|
24
|
+
if (view.render) {
|
|
25
|
+
div.appendChild(view.render());
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
return div;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
export function createLeafletLabelControl(options) {
|
|
32
|
+
return new LeafletLabelControl(options);
|
|
33
|
+
}
|
|
34
34
|
//# sourceMappingURL=LabelControl.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LabelControl.js","sourceRoot":"","sources":["../../../../src/controls/leaflet/LabelControl/LabelControl.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,SAAS,CAAC;AACnC,OAAO,
|
|
1
|
+
{"version":3,"file":"LabelControl.js","sourceRoot":"","sources":["../../../../src/controls/leaflet/LabelControl/LabelControl.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,SAAS,CAAC;AACnC,OAAO,EAAY,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAClE,O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ression |
|
|
8
|
-
zoom?: number;
|
|
9
|
-
south?: number;
|
|
10
|
-
north?: number;
|
|
11
|
-
west?: number;
|
|
12
|
-
east?: number;
|
|
13
|
-
tileLayers?: Array<leaflet.TileLayer>;
|
|
14
|
-
layers?: Array<leaflet.Layer> |
|
|
15
|
-
controls?: Array<leaflet.Control> |
|
|
16
|
-
zoomInTitle?: string;
|
|
17
|
-
zoomOutTitle?: string;
|
|
18
|
-
}
|
|
19
|
-
export declare class
|
|
20
|
-
constructor(properties:
|
|
21
|
-
private map;
|
|
22
|
-
private layers;
|
|
23
|
-
private controls;
|
|
24
|
-
build(): void;
|
|
25
|
-
private setTileLayers;
|
|
26
|
-
private setLayers;
|
|
27
|
-
private setControls;
|
|
28
|
-
}
|
|
29
|
-
export declare function
|
|
30
|
-
export declare const burtonville: leaflet.LatLngExpression;
|
|
31
|
-
export declare class
|
|
32
|
-
constructor(properties:
|
|
33
|
-
renderer?: leaflet.Renderer;
|
|
34
|
-
center?: leaflet.LatLngExpression |
|
|
35
|
-
zoom?: number;
|
|
36
|
-
south?: number;
|
|
37
|
-
north?: number;
|
|
38
|
-
west?: number;
|
|
39
|
-
east?: number;
|
|
40
|
-
tileLayers?: Array<leaflet.TileLayer>;
|
|
41
|
-
layers?: Array<leaflet.Layer> |
|
|
42
|
-
controls?: Array<leaflet.Control> |
|
|
43
|
-
zoomInTitle?: string;
|
|
44
|
-
zoomOutTitle?: string;
|
|
45
|
-
}
|
|
1
|
+
import { ISubscribable } from "../../../framework/observable";
|
|
2
|
+
import * as leaflet from "leaflet";
|
|
3
|
+
import { Element } from "../../../framework/element";
|
|
4
|
+
import { Properties, IProperties } from "../../../framework/properties";
|
|
5
|
+
export interface IMapProperties extends IProperties {
|
|
6
|
+
renderer?: leaflet.Renderer;
|
|
7
|
+
center?: leaflet.LatLngExpression | ISubscribable<leaflet.LatLngExpression>;
|
|
8
|
+
zoom?: number;
|
|
9
|
+
south?: number;
|
|
10
|
+
north?: number;
|
|
11
|
+
west?: number;
|
|
12
|
+
east?: number;
|
|
13
|
+
tileLayers?: Array<leaflet.TileLayer>;
|
|
14
|
+
layers?: Array<leaflet.Layer> | ISubscribable<Array<leaflet.Layer>>;
|
|
15
|
+
controls?: Array<leaflet.Control> | ISubscribable<Array<leaflet.Control>>;
|
|
16
|
+
zoomInTitle?: string;
|
|
17
|
+
zoomOutTitle?: string;
|
|
18
|
+
}
|
|
19
|
+
export declare class MapElement extends Element<IMapProperties> {
|
|
20
|
+
constructor(properties: IMapProperties);
|
|
21
|
+
private map;
|
|
22
|
+
private layers;
|
|
23
|
+
private controls;
|
|
24
|
+
build(): void;
|
|
25
|
+
private setTileLayers;
|
|
26
|
+
private setLayers;
|
|
27
|
+
private setControls;
|
|
28
|
+
}
|
|
29
|
+
export declare function createMap(properties: IMapProperties): MapElement;
|
|
30
|
+
export declare const burtonville: leaflet.LatLngExpression;
|
|
31
|
+
export declare class MapProperties extends Properties implements IMapProperties {
|
|
32
|
+
constructor(properties: IMapProperties);
|
|
33
|
+
renderer?: leaflet.Renderer;
|
|
34
|
+
center?: leaflet.LatLngExpression | ISubscribable<leaflet.LatLngExpression>;
|
|
35
|
+
zoom?: number;
|
|
36
|
+
south?: number;
|
|
37
|
+
north?: number;
|
|
38
|
+
west?: number;
|
|
39
|
+
east?: number;
|
|
40
|
+
tileLayers?: Array<leaflet.TileLayer>;
|
|
41
|
+
layers?: Array<leaflet.Layer> | ISubscribable<Array<leaflet.Layer>>;
|
|
42
|
+
controls?: Array<leaflet.Control> | ISubscribable<Array<leaflet.Control>>;
|
|
43
|
+
zoomInTitle?: string;
|
|
44
|
+
zoomOutTitle?: string;
|
|
45
|
+
}
|
|
@@ -1,116 +1,117 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import * as leaflet from "leaflet";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
export class
|
|
6
|
-
constructor(properties) {
|
|
7
|
-
super({
|
|
8
|
-
tagName: "div",
|
|
9
|
-
properties: extendProperties({
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
map;
|
|
15
|
-
layers = new Array();
|
|
16
|
-
controls = new Array();
|
|
17
|
-
build() {
|
|
18
|
-
super.build();
|
|
19
|
-
const
|
|
20
|
-
if (!
|
|
21
|
-
|
|
22
|
-
}
|
|
23
|
-
const options = {
|
|
24
|
-
renderer:
|
|
25
|
-
zoomControl: false
|
|
26
|
-
};
|
|
27
|
-
setTimeout(() => {
|
|
28
|
-
this.map = leaflet.map(this.element, options).setView(unwrap(
|
|
29
|
-
leaflet.control.zoom({
|
|
30
|
-
position: "topleft",
|
|
31
|
-
zoomInTitle:
|
|
32
|
-
zoomOutTitle:
|
|
33
|
-
}).addTo(this.map);
|
|
34
|
-
if (this.properties.eventListeners) {
|
|
35
|
-
Object.keys(this.properties.eventListeners).forEach((key) => {
|
|
36
|
-
this.map.on(key, (event) => {
|
|
37
|
-
this.properties.eventListeners[key]
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
this.
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
export
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
1
|
+
import { isSubscribable, unwrap } from "../../../framework/observable";
|
|
2
|
+
import * as leaflet from "leaflet";
|
|
3
|
+
import { Element, registerElement } from "../../../framework/element";
|
|
4
|
+
import { Properties, extendProperties } from "../../../framework/properties";
|
|
5
|
+
export class MapElement extends Element {
|
|
6
|
+
constructor(properties) {
|
|
7
|
+
super({
|
|
8
|
+
tagName: "div",
|
|
9
|
+
properties: extendProperties(properties, {
|
|
10
|
+
elementType: "LeafletMap"
|
|
11
|
+
})
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
map;
|
|
15
|
+
layers = new Array();
|
|
16
|
+
controls = new Array();
|
|
17
|
+
build() {
|
|
18
|
+
super.build();
|
|
19
|
+
const properties = this.properties;
|
|
20
|
+
if (!properties.center) {
|
|
21
|
+
properties.center = burtonville;
|
|
22
|
+
}
|
|
23
|
+
const options = {
|
|
24
|
+
renderer: properties.renderer,
|
|
25
|
+
zoomControl: false
|
|
26
|
+
};
|
|
27
|
+
setTimeout(() => {
|
|
28
|
+
this.map = leaflet.map(this.element, options).setView(unwrap(properties.center), this.properties.zoom);
|
|
29
|
+
leaflet.control.zoom({
|
|
30
|
+
position: "topleft",
|
|
31
|
+
zoomInTitle: properties.zoomInTitle,
|
|
32
|
+
zoomOutTitle: properties.zoomOutTitle
|
|
33
|
+
}).addTo(this.map);
|
|
34
|
+
if (this.properties.eventListeners) {
|
|
35
|
+
Object.keys(this.properties.eventListeners).forEach((key) => {
|
|
36
|
+
this.map.on(key, (event) => {
|
|
37
|
+
const eventListener = this.properties.eventListeners[key];
|
|
38
|
+
eventListener.listener(event);
|
|
39
|
+
});
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
this.setTileLayers(properties.tileLayers);
|
|
43
|
+
this.setLayers(unwrap(properties.layers));
|
|
44
|
+
if (isSubscribable(properties.layers)) {
|
|
45
|
+
this.disposers.push(properties.layers.subscribe((layers) => {
|
|
46
|
+
this.setLayers(layers);
|
|
47
|
+
}));
|
|
48
|
+
}
|
|
49
|
+
this.setControls(unwrap(properties.controls));
|
|
50
|
+
if (isSubscribable(properties.controls)) {
|
|
51
|
+
this.disposers.push(properties.controls.subscribe((controls) => {
|
|
52
|
+
this.setControls(controls);
|
|
53
|
+
}));
|
|
54
|
+
}
|
|
55
|
+
if (isSubscribable(properties.center)) {
|
|
56
|
+
this.disposers.push(properties.center.subscribe((center) => {
|
|
57
|
+
this.map.panTo(center);
|
|
58
|
+
}));
|
|
59
|
+
}
|
|
60
|
+
}, 100);
|
|
61
|
+
}
|
|
62
|
+
setTileLayers(tileLayers) {
|
|
63
|
+
if (tileLayers) {
|
|
64
|
+
tileLayers.forEach((tileLayer) => {
|
|
65
|
+
tileLayer.addTo(this.map);
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
setLayers(layers) {
|
|
70
|
+
this.layers.forEach((layer) => {
|
|
71
|
+
this.map.removeLayer(layer);
|
|
72
|
+
});
|
|
73
|
+
this.layers = [];
|
|
74
|
+
if (layers) {
|
|
75
|
+
layers.forEach((layer) => {
|
|
76
|
+
this.layers.push(layer);
|
|
77
|
+
layer.addTo(this.map);
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
setControls(controls) {
|
|
82
|
+
this.controls.forEach((control) => {
|
|
83
|
+
this.map.removeControl(control);
|
|
84
|
+
});
|
|
85
|
+
this.controls = [];
|
|
86
|
+
if (controls) {
|
|
87
|
+
controls.forEach((control) => {
|
|
88
|
+
this.controls.push(control);
|
|
89
|
+
control.addTo(this.map);
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
export function createMap(properties) {
|
|
95
|
+
return new MapElement(properties);
|
|
96
|
+
}
|
|
97
|
+
export const burtonville = [50.283939, 5.964070];
|
|
98
|
+
export class MapProperties extends Properties {
|
|
99
|
+
constructor(properties) {
|
|
100
|
+
super();
|
|
101
|
+
this.setProperties(this, properties);
|
|
102
|
+
}
|
|
103
|
+
renderer;
|
|
104
|
+
center;
|
|
105
|
+
zoom;
|
|
106
|
+
south;
|
|
107
|
+
north;
|
|
108
|
+
west;
|
|
109
|
+
east;
|
|
110
|
+
tileLayers;
|
|
111
|
+
layers;
|
|
112
|
+
controls;
|
|
113
|
+
zoomInTitle;
|
|
114
|
+
zoomOutTitle;
|
|
115
|
+
}
|
|
116
|
+
registerElement(MapProperties.prototype.constructor, MapElement);
|
|
116
117
|
//# sourceMappingURL=Map.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Map.js","sourceRoot":"","sources":["../../../../src/controls/leaflet/Map/Map.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"Map.js","sourceRoot":"","sources":["../../../../src/controls/leaflet/Map/Map.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,EAAiB,MAAM,+BAA+B,CAAC;AACtF,OAAO,KAAK,OAAO,MAAM,SAAS,CAAC;AACnC,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EAAE,UAAU,EAAe,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAkB1F,MAAM,OAAO,UAAW,SAAQ,OAAuB;IACnD,YAAY,UAA0B;QAClC,KAAK,CACD;YACI,OAAO,EAAE,KAAK;YACd,UAAU,EAAE,gBAAgB,CACxB,UAAU,EACV;gBACI,WAAW,EAA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AAC;AAE3E,MAAM,OAAO,aAAc,SAAQ,UAAU;IACzC,YAAY,UAA0B;QAClC,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,aAAa,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;IACzC,CAAC;IAED,QAAQ,CAAoB;IAC5B,MAAM,CAAsE;IAC5E,IAAI,CAAU;IACd,KAAK,CAAU;IACf,KAAK,CAAU;IACf,IAAI,CAAU;IACd,IAAI,CAAU;IACd,UAAU,CAA4B;IACtC,MAAM,CAA8D;IACpE,QAAQ,CAAkE;IAC1E,WAAW,CAAU;IACrB,YAAY,CAAU;CACzB;AAED,eAAe,CACX,aAAa,CAAC,SAAS,CAAC,WAAW,EACnC,UAAU,CACb,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { TileLayerOptions, TileLayer } from "leaflet";
|
|
2
|
-
export interface
|
|
3
|
-
attribution?: string;
|
|
4
|
-
}
|
|
5
|
-
export declare class OpenStreetMapTileLayer extends TileLayer {
|
|
6
|
-
constructor(options?:
|
|
7
|
-
}
|
|
8
|
-
export declare function
|
|
1
|
+
import { TileLayerOptions, TileLayer } from "leaflet";
|
|
2
|
+
export interface IOpenStreetMapTileLayerOptions extends TileLayerOptions {
|
|
3
|
+
attribution?: string;
|
|
4
|
+
}
|
|
5
|
+
export declare class OpenStreetMapTileLayer extends TileLayer {
|
|
6
|
+
constructor(options?: IOpenStreetMapTileLayerOptions);
|
|
7
|
+
}
|
|
8
|
+
export declare function createOpenStreetMapTileLayer(options?: IOpenStreetMapTileLayerOptions): OpenStreetMapTileLayer;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { TileLayer } from "leaflet";
|
|
2
|
-
export class OpenStreetMapTileLayer extends TileLayer {
|
|
3
|
-
constructor(options) {
|
|
4
|
-
if (!options) {
|
|
5
|
-
options = {};
|
|
6
|
-
}
|
|
7
|
-
options.attribution = "© <a href=\"https://www.openstreetmap.org/copyright\">OpenStreetMap</a> contributors";
|
|
8
|
-
super("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png", options);
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
export function
|
|
12
|
-
return new OpenStreetMapTileLayer(options);
|
|
13
|
-
}
|
|
1
|
+
import { TileLayer } from "leaflet";
|
|
2
|
+
export class OpenStreetMapTileLayer extends TileLayer {
|
|
3
|
+
constructor(options) {
|
|
4
|
+
if (!options) {
|
|
5
|
+
options = {};
|
|
6
|
+
}
|
|
7
|
+
options.attribution = "© <a href=\"https://www.openstreetmap.org/copyright\">OpenStreetMap</a> contributors";
|
|
8
|
+
super("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png", options);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
export function createOpenStreetMapTileLayer(options) {
|
|
12
|
+
return new OpenStreetMapTileLayer(options);
|
|
13
|
+
}
|
|
14
14
|
//# sourceMappingURL=OpenStreetMapTileLayer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OpenStreetMapTileLayer.js","sourceRoot":"","sources":["../../../../src/controls/leaflet/OpenStreetMapTileLayer/OpenStreetMapTileLayer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,SAAS,EAAE,MAAM,SAAS,CAAC;AAMtD,MAAM,OAAO,sBAAuB,SAAQ,SAAS;IACjD,YAAY,
|
|
1
|
+
{"version":3,"file":"OpenStreetMapTileLayer.js","sourceRoot":"","sources":["../../../../src/controls/leaflet/OpenStreetMapTileLayer/OpenStreetMapTileLayer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,SAAS,EAAE,MAAM,SAAS,CAAC;AAMtD,MAAM,OAAO,sBAAuB,SAAQ,SAAS;IACjD,YAAY,OAAwC;QAChD,IAAI,CAAC,OAAO,EAAE,CAAC;YACX,OAAO,GAAG,EAAE,CAAC;QACjB,CAAC;QACD,OAAO,CAAC,WAAW,GAAG,2FAA2F,CAAC;QAClH,KAAK,CAAC,oDAAoD,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;CACJ;AAED,MAAM,UAAU,4BAA4B,CAAC,OAAwC;IACjF,OAAO,IAAI,sBAAsB,CAAC,OAAO,CAAC,CAAC;AAC/C,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { LeafletEvent } from "leaflet";
|
|
2
|
-
export declare function getPointerEvent(event: Event | LeafletEvent): PointerEvent;
|
|
1
|
+
import { LeafletEvent } from "leaflet";
|
|
2
|
+
export declare function getPointerEvent(event: Event | LeafletEvent): PointerEvent;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export function getPointerEvent(event) {
|
|
2
|
-
const originalEvent = event["originalEvent"];
|
|
3
|
-
if (originalEvent instanceof PointerEvent) {
|
|
4
|
-
return originalEvent;
|
|
5
|
-
}
|
|
6
|
-
return null;
|
|
7
|
-
}
|
|
1
|
+
export function getPointerEvent(event) {
|
|
2
|
+
const originalEvent = event["originalEvent"];
|
|
3
|
+
if (originalEvent instanceof PointerEvent) {
|
|
4
|
+
return originalEvent;
|
|
5
|
+
}
|
|
6
|
+
return null;
|
|
7
|
+
}
|
|
8
8
|
//# sourceMappingURL=PointerEvent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PointerEvent.js","sourceRoot":"","sources":["../../../../src/controls/leaflet/PointerEvent/PointerEvent.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,eAAe,CAAC,KAA2B;IACvD,MAAM,aAAa,GAAG,KAAK,CAAC,eAAe,CAAC,CAAC;IAC7C,IAAI,aAAa,YAAY,YAAY,EAAE;
|
|
1
|
+
{"version":3,"file":"PointerEvent.js","sourceRoot":"","sources":["../../../../src/controls/leaflet/PointerEvent/PointerEvent.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,eAAe,CAAC,KAA2B;IACvD,MAAM,aAAa,GAAG,KAAK,CAAC,eAAe,CAAC,CAAC;IAC7C,IAAI,aAAa,YAAY,YAAY,EAAE,CAAC;QACxC,OAAO,aAA6B,CAAC;IACzC,CAAC;IACD,OAAO,IAAI,CAAC;AAChB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from "./LabelControl/LabelControl";
|
|
2
|
-
export * from "./Map/Map";
|
|
3
|
-
export * from "./OpenStreetMapTileLayer/OpenStreetMapTileLayer";
|
|
4
|
-
export * from "./PointerEvent/PointerEvent";
|
|
1
|
+
export * from "./LabelControl/LabelControl";
|
|
2
|
+
export * from "./Map/Map";
|
|
3
|
+
export * from "./OpenStreetMapTileLayer/OpenStreetMapTileLayer";
|
|
4
|
+
export * from "./PointerEvent/PointerEvent";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from "./LabelControl/LabelControl";
|
|
2
|
-
export * from "./Map/Map";
|
|
3
|
-
export * from "./OpenStreetMapTileLayer/OpenStreetMapTileLayer";
|
|
4
|
-
export * from "./PointerEvent/PointerEvent";
|
|
1
|
+
export * from "./LabelControl/LabelControl";
|
|
2
|
+
export * from "./Map/Map";
|
|
3
|
+
export * from "./OpenStreetMapTileLayer/OpenStreetMapTileLayer";
|
|
4
|
+
export * from "./PointerEvent/PointerEvent";
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
export interface
|
|
5
|
-
cx: number | string |
|
|
6
|
-
cy: number | string |
|
|
7
|
-
r: number | string |
|
|
8
|
-
}
|
|
9
|
-
export declare class
|
|
10
|
-
constructor(properties:
|
|
11
|
-
}
|
|
12
|
-
export declare function
|
|
1
|
+
import { Element } from "../../../framework/element";
|
|
2
|
+
import { IProperties } from "../../../framework/properties";
|
|
3
|
+
import { ISubscribable } from "../../../framework/observable";
|
|
4
|
+
export interface ICircleProperties extends IProperties {
|
|
5
|
+
cx: number | string | ISubscribable<number | string>;
|
|
6
|
+
cy: number | string | ISubscribable<number | string>;
|
|
7
|
+
r: number | string | ISubscribable<number | string>;
|
|
8
|
+
}
|
|
9
|
+
export declare class CircleElement extends Element<ICircleProperties> {
|
|
10
|
+
constructor(properties: ICircleProperties);
|
|
11
|
+
}
|
|
12
|
+
export declare function createCircle(properties: ICircleProperties): CircleElement;
|