@linkurious/ogma-annotations 1.1.20 → 1.1.23
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 +9 -9
- package/dist/index.mjs +512 -507
- package/dist/types/index.d.ts +12 -2
- package/package.json +4 -5
package/dist/types/index.d.ts
CHANGED
|
@@ -82,7 +82,14 @@ export declare interface ArrowStyles extends StrokeOptions {
|
|
|
82
82
|
head?: Extremity;
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
-
|
|
85
|
+
/**
|
|
86
|
+
* Bounding box object, with the following properties:
|
|
87
|
+
* - [0]: min x
|
|
88
|
+
* - [1]: min y
|
|
89
|
+
* - [2]: max x
|
|
90
|
+
* - [3]: max y
|
|
91
|
+
*/
|
|
92
|
+
export declare type Bounds = [number, number, number, number];
|
|
86
93
|
|
|
87
94
|
export declare function clientToContainerPosition(evt: {
|
|
88
95
|
clientX: number;
|
|
@@ -188,7 +195,6 @@ export declare class Control extends default_2<FeatureEvents> {
|
|
|
188
195
|
updateStyle<A extends Annotation>(id: Id, style: A["properties"]["style"]): this;
|
|
189
196
|
setScale(id: Id, scale: number, ox: number, oy: number): this;
|
|
190
197
|
/**
|
|
191
|
-
*
|
|
192
198
|
* @returns the annotations in the controller
|
|
193
199
|
*/
|
|
194
200
|
getAnnotations(): AnnotationCollection;
|
|
@@ -441,6 +447,10 @@ export declare type FeatureEvents = {
|
|
|
441
447
|
[EVT_DRAG_END]: (evt: Arrow | Text_2) => void;
|
|
442
448
|
};
|
|
443
449
|
|
|
450
|
+
/**
|
|
451
|
+
* Calculate the bounds of a collection of annotations
|
|
452
|
+
* @param annotations
|
|
453
|
+
*/
|
|
444
454
|
export declare function getAnnotationsBounds(annotations: AnnotationCollection): Bounds;
|
|
445
455
|
|
|
446
456
|
export declare function getArrowEnd(a: Arrow): {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@linkurious/ogma-annotations",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.23",
|
|
4
4
|
"description": "Headless annotation plugin for Ogma",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.mjs",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"types": "./dist/types/index.d.ts"
|
|
22
22
|
},
|
|
23
23
|
"./style.css": {
|
|
24
|
-
"import": "./dist/
|
|
25
|
-
"require": "./dist/
|
|
24
|
+
"import": "./dist/ogma-annotations.css",
|
|
25
|
+
"require": "./dist/ogma-annotations.css"
|
|
26
26
|
},
|
|
27
27
|
"./umd": "./dist/index.js",
|
|
28
28
|
"./esm": "./dist/index.mjs"
|
|
@@ -76,9 +76,8 @@
|
|
|
76
76
|
"geojson": "^0.5.0"
|
|
77
77
|
},
|
|
78
78
|
"devDependencies": {
|
|
79
|
-
"@linkurious/eslint-config-ogma": "
|
|
79
|
+
"@linkurious/eslint-config-ogma": "1.0.14",
|
|
80
80
|
"canvas": "2.11.2",
|
|
81
|
-
"eslint": "8.56.0",
|
|
82
81
|
"get-port": "7.0.0",
|
|
83
82
|
"jsdom": "24.0.0",
|
|
84
83
|
"playwright": "1.42.1",
|