first commit

This commit is contained in:
Adrian Zürcher
2025-05-05 18:38:51 +02:00
parent 584651a54e
commit 488ce84ae9
48 changed files with 9517 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
import { ref } from 'vue';
export const contextMenu = ref({
show: false,
x: 0,
y: 0,
anchor: 'top left',
self: 'top left',
node: null,
});
export function openContextMenu(event: MouseEvent, node: undefined) {
contextMenu.value = {
show: true,
x: event.clientX,
y: event.clientY,
anchor: 'top left',
self: 'top left',
node: node ?? null,
};
}