MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / zoomWikiGraph

Function zoomWikiGraph

deployments/desktop/static/desktop.js:3807–3811  ·  view source on GitHub ↗
(delta)

Source from the content-addressed store, hash-verified

3805 }
3806
3807 function zoomWikiGraph(delta) {
3808 const previousScale = state.wikiGraphTransform.scale;
3809 state.wikiGraphTransform.scale = clamp(previousScale * delta, 0.45, 2.4);
3810 if (state.wikiView === "graph") renderWikiGraph();
3811 }
3812
3813 function resetWikiGraphTransform() {
3814 state.wikiGraphTransform = { scale: 1, x: 0, y: 0 };

Callers 1

bindEventsFunction · 0.85

Calls 2

renderWikiGraphFunction · 0.85
clampFunction · 0.70

Tested by

no test coverage detected