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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iobroker.mywebui",
3
- "version": "1.42.6",
3
+ "version": "1.42.7",
4
4
  "description": "ioBroker mywebui - Custom edited mywebui by gokturk413 with 3D Editor",
5
5
  "type": "module",
6
6
  "main": "dist/backend/main.js",
@@ -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 material
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
- const hlMat = new this.THREE.MeshStandardMaterial({
355
- color: 0xffff00,
356
- emissive: 0xffff00,
357
- emissiveIntensity: 0.3,
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
- window.appShell.openDialog(editor, { x: 50, y: 50, width: 1200, height: 800 });
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
  },