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

Function applyWikiGraphTransform

deployments/desktop/static/desktop.js:3798–3805  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3796 }
3797
3798 function applyWikiGraphTransform() {
3799 clampWikiGraphPan();
3800 const viewport = $("wikiGraph")?.querySelector(".graph-viewport");
3801 if (!viewport) return;
3802 const { scale, x, y } = state.wikiGraphTransform;
3803 viewport.style.transform = `translate(${x}px, ${y}px)`;
3804 viewport.dataset.zoom = scale.toFixed(2);
3805 }
3806
3807 function zoomWikiGraph(delta) {
3808 const previousScale = state.wikiGraphTransform.scale;

Callers 3

renderWikiGraphFunction · 0.85
resetWikiGraphTransformFunction · 0.85
bindEventsFunction · 0.85

Calls 2

clampWikiGraphPanFunction · 0.85
$Function · 0.70

Tested by

no test coverage detected