From 8b1e2621d30671600266fb704ec82c326605a527 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 4 Nov 2026 15:28:05 +0000 Subject: [PATCH 1/2] chore(deps): Bump konva from 10.3.2 to 10.9.0 Bumps [konva](https://github.com/konvajs/konva) from 10.3.2 to 10.9.0. - [Release notes](https://github.com/konvajs/konva/releases) - [Changelog](https://github.com/konvajs/konva/blob/master/CHANGELOG.md) - [Commits](https://github.com/konvajs/konva/compare/10.3.2...10.9.0) --- updated-dependencies: - dependency-name: konva dependency-version: 10.7.1 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- package-lock.json | 8 ++++---- package.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index 18a31ee..44804b2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "1.4.1", "dependencies": { "@types/ws": "^8.18.2", - "konva": "^10.3.2", + "konva": "^10.9.0", "pdfjs-dist": "^6.4.299", "react": "^19.3.0", "react-dom": "^19.3.1", @@ -2462,9 +2462,9 @@ "license": "MIT" }, "node_modules/konva": { - "version": "10.3.2", - "resolved": "https://registry.npmjs.org/konva/-/konva-10.3.2.tgz", - "integrity": "sha512-A9GLx+Vj0PNnybjNq/St/S8utrksuSKOR8EzO2RTjA0SlmR9JipahcCXWW0vXz/9wjZCwAEtBtJFCUGe5mD/4g==", + "version": "10.9.0", + "resolved": "https://registry.npmjs.org/konva/-/konva-10.9.0.tgz", + "integrity": "sha512-3NOOlcbimFDp4+/DfXGTBkfn3cn3VP1BESPySQ6ayCzgMA9JSMGJNNxeIKw5jpHL6SAl6gHsrv10DUEjNRL0Qg==", "funding": [ { "type": "patreon", diff --git a/package.json b/package.json index 3f34ca6..3eb723a 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ }, "dependencies": { "@types/ws": "^8.18.2", - "konva": "^10.3.2", + "konva": "^10.9.0", "pdfjs-dist": "^6.4.299", "react": "^19.3.0", "react-dom": "^19.3.1", From 71121c5421259f8a22dc892f3f9c462aa1bd0ae8 Mon Sep 17 00:00:00 2001 From: Bernard <63512176+BernardJen@users.noreply.github.com> Date: Wed, 4 Nov 2026 21:47:09 +0100 Subject: [PATCH 2/2] fix(ui): read the transformed Group from currentTarget for konva 10.9 konva 10.9 narrowed KonvaEventObject.target to Shape | Stage, so casting it to Group no longer typechecks. The handler sits on the Group the Transformer resizes, so currentTarget is that same node: no runtime change. Co-Authored-By: Claude Opus 5.5 --- src/ui/PlotCanvas.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ui/PlotCanvas.tsx b/src/ui/PlotCanvas.tsx index 6ccca32..2d65ce6 100644 --- a/src/ui/PlotCanvas.tsx +++ b/src/ui/PlotCanvas.tsx @@ -185,7 +185,9 @@ export function PlotCanvas(props: Props) { } }} onTransformEnd={(e) => { - const n = e.target as Konva.Group; + // currentTarget is this Group (the node the Transformer resizes); + // e.target is typed Shape | Stage, which konva >= 10.9 won't cast to Group. + const n = e.currentTarget; onPlacement(a.id, { x: n.x(), y: n.y(), scale: n.scaleX(), rotation: n.rotation() }); }} >