iobroker.mywebui 1.42.6 → 1.42.7
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/package.json
CHANGED
|
@@ -347,17 +347,14 @@ export class IobrokerWebui3DScreenEditor extends BaseCustomWebComponentConstruct
|
|
|
347
347
|
this.selectedObject = obj;
|
|
348
348
|
obj.userData.selected = true;
|
|
349
349
|
|
|
350
|
-
// Apply highlight
|
|
350
|
+
// Apply subtle highlight (outline glow, not full color change)
|
|
351
351
|
obj.traverse((child) => {
|
|
352
|
-
if (child.material) {
|
|
352
|
+
if (child.isMesh && child.material) {
|
|
353
353
|
child.userData.originalMaterial = child.material;
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
metalness: 0.3,
|
|
359
|
-
roughness: 0.4
|
|
360
|
-
});
|
|
354
|
+
// Clone original material and add slight emission
|
|
355
|
+
const hlMat = child.material.clone();
|
|
356
|
+
hlMat.emissive.setHex(0xffff00);
|
|
357
|
+
hlMat.emissiveIntensity = 0.15; // Subtle glow
|
|
361
358
|
child.material = hlMat;
|
|
362
359
|
}
|
|
363
360
|
});
|
|
@@ -369,9 +369,17 @@ export class IobrokerWebuiSolutionExplorer extends BaseCustomWebComponentConstru
|
|
|
369
369
|
window.appShell.openScreenEditor(nm, type, s.html, s.style, s.script, s.settings, s.properties);
|
|
370
370
|
}
|
|
371
371
|
else if (type == '3dscreen') {
|
|
372
|
+
// Create 3D editor component
|
|
372
373
|
const editor = document.createElement('iobroker-webui-3dscreen-editor');
|
|
373
374
|
editor.setAttribute('scene-name', nm);
|
|
374
|
-
|
|
375
|
+
// Open as borderless, full-size dialog
|
|
376
|
+
window.appShell.openDialog(editor, {
|
|
377
|
+
x: 0, y: 0,
|
|
378
|
+
width: window.innerWidth,
|
|
379
|
+
height: window.innerHeight,
|
|
380
|
+
modal: true,
|
|
381
|
+
title: '3D Screen: ' + nm
|
|
382
|
+
});
|
|
375
383
|
}
|
|
376
384
|
});
|
|
377
385
|
},
|