@annotorious/annotorious 3.6.4 → 3.6.5
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/annotation/editors/index.d.ts +1 -0
- package/dist/annotorious.es.js +1 -0
- package/dist/annotorious.es.js.map +1 -1
- package/dist/annotorious.js +1 -1
- package/dist/annotorious.js.map +1 -1
- package/package.json +2 -2
- package/src/annotation/editors/index.ts +2 -1
- package/src/annotation/editors/polygon/PolygonEditor.svelte +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@annotorious/annotorious",
|
|
3
|
-
"version": "3.6.
|
|
3
|
+
"version": "3.6.5",
|
|
4
4
|
"description": "Add image annotation functionality to any web page with a few lines of JavaScript",
|
|
5
5
|
"author": "Rainer Simon",
|
|
6
6
|
"license": "BSD-3-Clause",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"vitest": "^3.2.4"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@annotorious/core": "3.6.
|
|
52
|
+
"@annotorious/core": "3.6.5",
|
|
53
53
|
"dequal": "^2.0.3",
|
|
54
54
|
"rbush": "^4.0.1",
|
|
55
55
|
"simplify-js": "^1.2.4",
|
|
@@ -4,4 +4,5 @@ export * from './editorsRegistry';
|
|
|
4
4
|
|
|
5
5
|
export { default as Editor } from './Editor.svelte';
|
|
6
6
|
export { default as EditorMount } from './EditorMount.svelte';
|
|
7
|
-
export { default as Handle } from './Handle.svelte';
|
|
7
|
+
export { default as Handle } from './Handle.svelte';
|
|
8
|
+
export { default as MidpointHandle } from './MidpointHandle.svelte';
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
.reduce((closest, midpoint) =>
|
|
78
78
|
getDistSq(midpoint.point) < getDistSq(closest.point) ? midpoint : closest);
|
|
79
79
|
|
|
80
|
-
// Show midpoint
|
|
80
|
+
// Show midpoint if the mouse is at least within THRESHOLD distance
|
|
81
81
|
// of the midpoint or the closest corner. (Basically a poor man's shape buffering).
|
|
82
82
|
const threshold = Math.pow(MIN_HOVER_DISTANCE / viewportScale, 2);
|
|
83
83
|
|