🐛 Fix new render masks

This commit is contained in:
Alejandro Alonso 2025-05-13 11:06:47 +02:00
parent 91fbe8f8ef
commit 1f44d53f6b
4 changed files with 109 additions and 13 deletions

View file

@ -108,6 +108,11 @@ export function useShape(id) {
Module._use_shape(...buffer);
}
export function set_parent(id) {
const buffer = getU32(id);
Module._set_parent(...buffer);
}
export function setupInteraction(canvas) {
canvas.addEventListener("wheel", (e) => {
e.preventDefault();