Доработать исследователь сети и кошелёк

This commit is contained in:
AidarKC
2026-11-28 02:00:01 +03:00
parent d1ca64d1c1
commit 34e5fa1403
17 changed files with 140 additions and 78 deletions
@@ -558,6 +558,12 @@ export function createExplorerCanvasGraph({ stage, model, onCenterTap, onNodeTap
return {
setModel, nodeScreenPoint,
getFocusNode: () => nodeById.get(focusId) || null,
centerCamera: () => {
const node = nodeById.get(focusId);
camX = -(node?.x || 0) * zoom;
camY = -(node?.y || 0) * zoom;
requestDraw();
},
recenter: () => { camX = 0; camY = 0; updateZoom(DIVE_ZOOM); requestDraw(); },
destroy: () => {
if (destroyed) return;