diff --git a/src/ui.tsx b/src/ui.tsx index 0561391..e8270f2 100644 --- a/src/ui.tsx +++ b/src/ui.tsx @@ -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() }