@linkurious/ogma-annotations 1.1.23 → 1.1.24
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.js +8 -8
- package/dist/index.mjs +207 -206
- package/dist/types/index.d.ts +3 -0
- package/package.json +5 -5
package/dist/types/index.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ import { Options } from '@linkurious/ogma';
|
|
|
10
10
|
import { Overlay } from '@linkurious/ogma';
|
|
11
11
|
import { Point as Point_2 } from '@linkurious/ogma';
|
|
12
12
|
import { Polygon } from 'geojson';
|
|
13
|
+
import { Position } from 'geojson';
|
|
13
14
|
import { SVGLayer } from '@linkurious/ogma';
|
|
14
15
|
|
|
15
16
|
export declare type Annotation = Arrow | Text_2;
|
|
@@ -484,6 +485,8 @@ export declare function getAttachmentPointOnNode(start: Point_2, nodeCenter: Poi
|
|
|
484
485
|
y: number;
|
|
485
486
|
};
|
|
486
487
|
|
|
488
|
+
export declare function getCoordinates(gj: Feature | FeatureCollection | Geometry): Position[];
|
|
489
|
+
|
|
487
490
|
export declare const getHandleId: (handle: HTMLDivElement) => number;
|
|
488
491
|
|
|
489
492
|
export declare function getTextBbox(t: Text_2): BBox;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@linkurious/ogma-annotations",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.24",
|
|
4
4
|
"description": "Headless annotation plugin for Ogma",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.mjs",
|
|
@@ -15,10 +15,10 @@
|
|
|
15
15
|
],
|
|
16
16
|
"exports": {
|
|
17
17
|
".": {
|
|
18
|
+
"types": "./dist/types/index.d.ts",
|
|
18
19
|
"import": "./dist/index.mjs",
|
|
19
20
|
"require": "./dist/index.js",
|
|
20
|
-
"default": "./dist/index.mjs"
|
|
21
|
-
"types": "./dist/types/index.d.ts"
|
|
21
|
+
"default": "./dist/index.mjs"
|
|
22
22
|
},
|
|
23
23
|
"./style.css": {
|
|
24
24
|
"import": "./dist/ogma-annotations.css",
|
|
@@ -84,9 +84,9 @@
|
|
|
84
84
|
"typedoc": "^0.25.13",
|
|
85
85
|
"typedoc-plugin-markdown": "^3.17.1",
|
|
86
86
|
"typescript": "5.3.3",
|
|
87
|
-
"vite": "
|
|
87
|
+
"vite": "latest",
|
|
88
88
|
"vite-plugin-dts": "^4.1.0",
|
|
89
|
-
"vitest": "
|
|
89
|
+
"vitest": "latest"
|
|
90
90
|
},
|
|
91
91
|
"eslintConfig": {
|
|
92
92
|
"extends": [
|