iobroker.mywebui 1.42.22 → 1.42.23
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
package/package.json
CHANGED
package/www/3d-editor/index.html
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"three/webgpu": "../3d-lib/three.module.js",
|
|
16
16
|
"three/addons/": "../3d-lib/jsm/",
|
|
17
17
|
"three/examples/jsm/": "../3d-lib/jsm/",
|
|
18
|
-
"three-gpu-pathtracer": "data:text/javascript,export
|
|
18
|
+
"three-gpu-pathtracer": "data:text/javascript,export class WebGLPathTracer{constructor(){}setScene(){}renderSample(){}updateCamera(){}updateEnvironment(){}updateMaterials(){}get samples(){return 0;}filterGlossyFactor=0.5;}",
|
|
19
19
|
"three-mesh-bvh": "data:text/javascript,export const MeshBVH={};export const acceleratedRaycast=()=>{};export const computeBoundsTree=()=>{};export const disposeBoundsTree=()=>{};"
|
|
20
20
|
}
|
|
21
21
|
}
|
|
@@ -16,6 +16,15 @@ function Script( editor ) {
|
|
|
16
16
|
container.setBackgroundColor( '#272822' );
|
|
17
17
|
container.setDisplay( 'none' );
|
|
18
18
|
|
|
19
|
+
// If CodeMirror is not loaded (e.g. iobroker integration uses external Monaco editor),
|
|
20
|
+
// return an empty container — script editing is handled via parent postMessage bridge.
|
|
21
|
+
if ( typeof CodeMirror === 'undefined' ) {
|
|
22
|
+
|
|
23
|
+
signals.editorCleared.add( function () { container.setDisplay( 'none' ); } );
|
|
24
|
+
return container;
|
|
25
|
+
|
|
26
|
+
}
|
|
27
|
+
|
|
19
28
|
const header = new UIPanel();
|
|
20
29
|
header.setPadding( '10px' );
|
|
21
30
|
container.add( header );
|