iobroker.mywebui 1.41.3 → 1.41.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "common": {
3
3
  "name": "mywebui",
4
- "version": "1.41.3",
4
+ "version": "1.41.4",
5
5
  "titleLang": {
6
6
  "en": "mywebui",
7
7
  "de": "mywebui",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iobroker.mywebui",
3
- "version": "1.41.3",
3
+ "version": "1.41.4",
4
4
  "description": "ioBroker mywebui - Custom edited mywebui by gokturk413 with 3D Editor",
5
5
  "type": "module",
6
6
  "main": "dist/backend/main.js",
package/www/index.html CHANGED
@@ -46,6 +46,23 @@
46
46
  <!-- License validation - gokturk413 (obfuscated) -->
47
47
  <script src="./license-check.obf.js"></script>
48
48
 
49
+ <!-- Three.js loader for 3D Editor Custom Control -->
50
+ <script type="module">
51
+ (async () => {
52
+ try {
53
+ const THREE = await import('/mywebui/node_modules/three/build/three.module.js');
54
+ const OrbitControls = (await import('/mywebui/node_modules/three/examples/jsm/controls/OrbitControls.js')).OrbitControls;
55
+ const GLTFLoader = (await import('/mywebui/node_modules/three/examples/jsm/loaders/GLTFLoader.js')).GLTFLoader;
56
+ window.THREE = THREE;
57
+ window.OrbitControls = OrbitControls;
58
+ window.GLTFLoader = GLTFLoader;
59
+ console.log('✅ Three.js loaded globally');
60
+ } catch (e) {
61
+ console.error('❌ Three.js load error:', e);
62
+ }
63
+ })();
64
+ </script>
65
+
49
66
  <script src="./node_modules/mobile-drag-drop/index.js"></script>
50
67
 
51
68
  <script type="module">