From 56be3df2046b02c6d32343c20c5ced8a5f290a98 Mon Sep 17 00:00:00 2001 From: Leon van Kammen Date: Tue, 2 Jan 2024 18:00:25 +0000 Subject: [PATCH] work in progress [might break] --- app/helloworld.js | 17 +- app/windowmanager.js | 380 +++++++++++++++++++++++++++++++++++++++---- com/app.js | 311 ++++------------------------------- 3 files changed, 394 insertions(+), 314 deletions(-) diff --git a/app/helloworld.js b/app/helloworld.js index 0db7cb5..d9fed91 100644 --- a/app/helloworld.js +++ b/app/helloworld.js @@ -3,13 +3,16 @@ AFRAME.registerComponent('helloworld', { foo: { type:"string"} }, - dependencies:{ + requires:{ "html": "https://unpkg.com/aframe-htmlmesh@2.1.0/build/aframe-html.js", // html to AFRAME "stylis": "https://unpkg.com/stylis@4.3.1/dist/umd/stylis.js" // modern CSS (https://stylis.js.org) }, + dependencies: ['windowmanager'], + dom: { scale: 3.5, + modal: true, events: ['click','input'], html: (me) => `