iobroker.mywebui 1.41.4 → 1.41.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/io-package.json +1 -1
- package/package.json +1 -1
- package/www/runtime.html +17 -0
package/io-package.json
CHANGED
package/package.json
CHANGED
package/www/runtime.html
CHANGED
|
@@ -35,6 +35,23 @@
|
|
|
35
35
|
|
|
36
36
|
<!-- SCADA Utility Functions - Global for all screens -->
|
|
37
37
|
<script src="./default-additionalfiles/scada-utils.js" onerror="console.warn('SCADA utils not loaded from default-additionalfiles')"></script>
|
|
38
|
+
|
|
39
|
+
<!-- Three.js loader for 3D Editor Custom Control -->
|
|
40
|
+
<script type="module">
|
|
41
|
+
(async () => {
|
|
42
|
+
try {
|
|
43
|
+
const THREE = await import('/mywebui/node_modules/three/build/three.module.js');
|
|
44
|
+
const OrbitControls = (await import('/mywebui/node_modules/three/examples/jsm/controls/OrbitControls.js')).OrbitControls;
|
|
45
|
+
const GLTFLoader = (await import('/mywebui/node_modules/three/examples/jsm/loaders/GLTFLoader.js')).GLTFLoader;
|
|
46
|
+
window.THREE = THREE;
|
|
47
|
+
window.OrbitControls = OrbitControls;
|
|
48
|
+
window.GLTFLoader = GLTFLoader;
|
|
49
|
+
console.log('✅ Three.js loaded globally (runtime)');
|
|
50
|
+
} catch (e) {
|
|
51
|
+
console.error('❌ Three.js load error (runtime):', e);
|
|
52
|
+
}
|
|
53
|
+
})();
|
|
54
|
+
</script>
|
|
38
55
|
</head>
|
|
39
56
|
|
|
40
57
|
<style>
|