maparea 0.1.8 → 0.1.9
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/index.d.ts +7 -0
- package/index.ts +31 -31
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -103,6 +103,13 @@ type MapAreaElementOptions = {
|
|
|
103
103
|
layer?: Element; /** HTML content of the element. */
|
|
104
104
|
content?: DynamicString;
|
|
105
105
|
};
|
|
106
|
+
/**
|
|
107
|
+
* Adds an HTML or SVG element to the map.
|
|
108
|
+
*
|
|
109
|
+
* The element is added onto a dedicated map layer. To add multiple elements
|
|
110
|
+
* with `addElement()`, consider creating a layer with `getLayer()` beforehand,
|
|
111
|
+
* which can be passed to `addElement()` as `options.layer`.
|
|
112
|
+
*/
|
|
106
113
|
declare function addElement(map: MapArea, element: HTMLElement | SVGSVGElement, {
|
|
107
114
|
className,
|
|
108
115
|
coords,
|
package/index.ts
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
export * from "./src/MapArea/const.ts";
|
|
2
|
-
export * from "./src/MapArea/index.ts";
|
|
3
|
-
export * from "./src/plugins/addClickListener.ts";
|
|
4
|
-
export * from "./src/plugins/addElement.ts";
|
|
5
|
-
export * from "./src/plugins/addNavigation.ts";
|
|
6
|
-
export * from "./src/plugins/addPersistence.ts";
|
|
7
|
-
export * from "./src/plugins/addResizeObserver.ts";
|
|
8
|
-
export * from "./src/plugins/addShape.ts";
|
|
9
|
-
export * from "./src/plugins/addShapeEditor.ts";
|
|
10
|
-
export * from "./src/plugins/addTiles.ts";
|
|
11
|
-
export * from "./src/plugins/addZoomControls.ts";
|
|
12
|
-
export * from "./src/types/BoxDimensions.ts";
|
|
13
|
-
export * from "./src/types/DynamicString.ts";
|
|
14
|
-
export * from "./src/types/GeoBounds.ts";
|
|
15
|
-
export * from "./src/types/GeoCoords.ts";
|
|
16
|
-
export * from "./src/types/GeoVertex.ts";
|
|
17
|
-
export * from "./src/types/IgnoredElement.ts";
|
|
18
|
-
export * from "./src/types/LayerOptions.ts";
|
|
19
|
-
export * from "./src/types/PixelCoords.ts";
|
|
20
|
-
export * from "./src/types/PixelVertex.ts";
|
|
21
|
-
export * from "./src/types/Projection.ts";
|
|
22
|
-
export * from "./src/types/ShapeLayerOptions.ts";
|
|
23
|
-
export * from "./src/utils/getCenter.ts";
|
|
24
|
-
export * from "./src/utils/getGeoBounds.ts";
|
|
25
|
-
export * from "./src/utils/getId.ts";
|
|
26
|
-
export * from "./src/utils/getLayer.ts";
|
|
27
|
-
export * from "./src/utils/getPointerPosition.ts";
|
|
28
|
-
export * from "./src/utils/getVicinity.ts";
|
|
29
|
-
export * from "./src/utils/isGeoCoords.ts";
|
|
30
|
-
export * from "./src/utils/resolveString.ts";
|
|
31
|
-
export * from "./src/utils/toPrecision.ts";
|
|
1
|
+
export * from "./src/MapArea/const.ts";
|
|
2
|
+
export * from "./src/MapArea/index.ts";
|
|
3
|
+
export * from "./src/plugins/addClickListener.ts";
|
|
4
|
+
export * from "./src/plugins/addElement.ts";
|
|
5
|
+
export * from "./src/plugins/addNavigation.ts";
|
|
6
|
+
export * from "./src/plugins/addPersistence.ts";
|
|
7
|
+
export * from "./src/plugins/addResizeObserver.ts";
|
|
8
|
+
export * from "./src/plugins/addShape.ts";
|
|
9
|
+
export * from "./src/plugins/addShapeEditor.ts";
|
|
10
|
+
export * from "./src/plugins/addTiles.ts";
|
|
11
|
+
export * from "./src/plugins/addZoomControls.ts";
|
|
12
|
+
export * from "./src/types/BoxDimensions.ts";
|
|
13
|
+
export * from "./src/types/DynamicString.ts";
|
|
14
|
+
export * from "./src/types/GeoBounds.ts";
|
|
15
|
+
export * from "./src/types/GeoCoords.ts";
|
|
16
|
+
export * from "./src/types/GeoVertex.ts";
|
|
17
|
+
export * from "./src/types/IgnoredElement.ts";
|
|
18
|
+
export * from "./src/types/LayerOptions.ts";
|
|
19
|
+
export * from "./src/types/PixelCoords.ts";
|
|
20
|
+
export * from "./src/types/PixelVertex.ts";
|
|
21
|
+
export * from "./src/types/Projection.ts";
|
|
22
|
+
export * from "./src/types/ShapeLayerOptions.ts";
|
|
23
|
+
export * from "./src/utils/getCenter.ts";
|
|
24
|
+
export * from "./src/utils/getGeoBounds.ts";
|
|
25
|
+
export * from "./src/utils/getId.ts";
|
|
26
|
+
export * from "./src/utils/getLayer.ts";
|
|
27
|
+
export * from "./src/utils/getPointerPosition.ts";
|
|
28
|
+
export * from "./src/utils/getVicinity.ts";
|
|
29
|
+
export * from "./src/utils/isGeoCoords.ts";
|
|
30
|
+
export * from "./src/utils/resolveString.ts";
|
|
31
|
+
export * from "./src/utils/toPrecision.ts";
|