SHA256
Доработать исследователь сети и кошелёк
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user