Improved HTML renderer and official website example

This commit is contained in:
Nic Barker 2024-08-28 11:03:20 +12:00
parent d0694f7144
commit 52b6b0564e
3 changed files with 35 additions and 2 deletions

View file

@ -277,6 +277,14 @@
window.mouseDown = true;
});
document.addEventListener("keydown", (event) => {
if (event.key === "ArrowDown") {
console.log("arrowdown");
}
if (event.key === "ArrowUp") {
console.log("arrowup");
}
});
const importObject = {
clay: {
measureTextFunction: (addressOfDimensions, textToMeasure, addressOfConfig) => {