mirror of
https://github.com/nicbarker/clay.git
synced 2026-02-06 12:48:49 +00:00
Improved HTML renderer and official website example
This commit is contained in:
parent
d0694f7144
commit
52b6b0564e
3 changed files with 35 additions and 2 deletions
|
|
@ -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) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue