diff --git a/static/scripts/sketch-utils.js b/static/scripts/sketch-utils.js new file mode 100644 index 0000000..feaf85c --- /dev/null +++ b/static/scripts/sketch-utils.js @@ -0,0 +1,7 @@ +function getInlineSketchWidth() { + return getComputedStyle(document.documentElement).getPropertyValue("--body-width"); +} + +function convertRemToPx(rem) { + return rem * parseFloat(getComputedStyle(document.documentElement).fontSize); +} \ No newline at end of file