MCPcopy Create free account
hub / github.com/error311/FileRise / currentZoomPercent

Function currentZoomPercent

public/js/fileListView.js:5836–5845  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5834}
5835
5836function currentZoomPercent() {
5837 try {
5838 if (window.fileriseZoom && typeof window.fileriseZoom.currentPercent === "function") {
5839 return window.fileriseZoom.currentPercent();
5840 }
5841 } catch (e) {}
5842 const css = getComputedStyle(document.documentElement).getPropertyValue('--app-zoom') || "1";
5843 const n = parseFloat(css);
5844 return Number.isFinite(n) && n > 0 ? Math.round(n * 100) : 100;
5845}
5846
5847function buildZoomControls(host) {
5848 const wrap = document.createElement("div");

Callers 1

buildZoomControlsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected