@annotorious/annotorious 3.6.0 → 3.6.1
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@annotorious/annotorious",
|
|
3
|
-
"version": "3.6.
|
|
3
|
+
"version": "3.6.1",
|
|
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.1",
|
|
53
53
|
"dequal": "^2.0.3",
|
|
54
54
|
"rbush": "^4.0.1",
|
|
55
55
|
"simplify-js": "^1.2.4",
|
|
@@ -158,8 +158,8 @@ export const computeSVGPath = (geom: PolylineGeometry) => {
|
|
|
158
158
|
|
|
159
159
|
if (currentPoint.type === 'CURVE' || previousPoint.type === 'CURVE') {
|
|
160
160
|
// Cubic Bézier curve
|
|
161
|
-
const cp1 = previousPoint.outHandle || previousPoint.point;
|
|
162
|
-
const cp2 = currentPoint.inHandle || currentPoint.point;
|
|
161
|
+
const cp1 = previousPoint.type === 'CURVE' ? previousPoint.outHandle || previousPoint.point : previousPoint.point;
|
|
162
|
+
const cp2 = currentPoint.type === 'CURVE' ? currentPoint.inHandle || currentPoint.point : currentPoint.point;
|
|
163
163
|
const endPoint = currentPoint.point;
|
|
164
164
|
|
|
165
165
|
pathCommands.push(`C ${cp1[0]} ${cp1[1]} ${cp2[0]} ${cp2[1]} ${endPoint[0]} ${endPoint[1]}`);
|