MCPcopy Create free account
hub / github.com/Qinbf/groundmap / zoomBy

Function zoomBy

web/components/GraphView.tsx:772–777  ·  view source on GitHub ↗
(factor: number)

Source from the content-addressed store, hash-verified

770 }, [theme, draw]);
771
772 const zoomBy = (factor: number) => {
773 const canvas = canvasRef.current;
774 const zb = zoomRef.current;
775 if (!canvas || !zb) return;
776 select(canvas).call(zb.scaleBy, factor);
777 };
778
779 const dark = theme === "dark";
780 const pal = dark ? DARK : LIGHT;

Callers 1

GraphViewFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected