fix: type listener WINDOW_INFO to match extended info shape (build was broken)

This commit is contained in:
Hermes Agent committed 2026-09-09 13:19:14 +02:00
1 parent dcfb235d06
commit 85e9433626
1 file changed
+7 -1
+7 -1
View File
@@ -59,7 +59,13 @@ function Plugin () {
// Слушаем ответ от main с актуальными x/y (canvas-space) и размерами окна
useEffect(function () {
const off = on('WINDOW_INFO', function (info: { x: number; y: number; width: number; height: number }) {
const off = on('WINDOW_INFO', function (info: {
x: number; y: number; width: number; height: number
zoom: number
viewport: { x: number; y: number; width: number; height: number }
gapL: number; gapR: number; gapT: number; gapB: number
center: { x: number; y: number }
}) {
setWindowInfo(info)
})
return function () { off() }