// A way to update the transform properties on the canvas without causing a shit ton of rerenders let currentStyle = `div{ user-select: none; }`; export function getGlobalStyle() { return currentStyle; } export function setGlobalStyle(style: any) { currentStyle = style; globalEl.innerHTML = style; } const globalEl = document.createElement("style"); globalEl.type = "text/css"; const head = document.querySelector("head")!; head.appendChild(globalEl);