v0.4.10: wandhoogtes gekoppeld, middenpunt (nok), binnenspots langs naadwanden
- WallModel: optioneel middenpunt (heightMid, topLine), bovenregels in verstek; stijlen, openingen, beplating, doek, latwerk, BOM, 2D en PDF volgen de knik - wand-editor: schakelaar "Middenpunt (nok)" + nokhoogte, links/rechts = goothoogte - UnitModel.syncWallHeights: tegenoverliggende wand gespiegeld, haakse wanden vlak op de hoekhoogtes; wallPieces met nok per stuk - LightingModel.computeIndoor: raster vanaf binnenzijde eigen naadwanddeel Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
9bd7faeaa6
commit
9126588df7
+9
-1
@@ -133,7 +133,15 @@ function mountHouseEditor(container, callbacks) {
|
||||
if (!activeEditor || typeof activeEditor.getStateJson !== 'function' || !activePart) return;
|
||||
const [kind, a, b] = activePart.split(':');
|
||||
if (kind === 'floor' && unitById(a)) unitById(a).unit.floor = activeEditor.getStateJson();
|
||||
else if (kind === 'wall' && unitById(a)) unitById(a).unit.walls[b] = activeEditor.getStateJson();
|
||||
else if (kind === 'wall' && unitById(a)) {
|
||||
// Hoogtes gewijzigd: tegenoverliggende wand spiegelen, haakse wanden
|
||||
// vlak op de hoekhoogtes (UnitModel.syncWallHeights).
|
||||
const unit = unitById(a).unit, before = unit.walls[b].wall;
|
||||
const next = activeEditor.getStateJson();
|
||||
unit.walls[b] = next;
|
||||
const h = (w) => [w.heightLeft, w.heightRight, w.heightMid > 0 ? w.heightMid : null].join('|');
|
||||
if (h(before) !== h(next.wall)) UnitModel.syncWallHeights(unit, b);
|
||||
}
|
||||
else if (kind === 'roof' && unitById(a)) unitById(a).roof.deck = activeEditor.getStateJson();
|
||||
else if (kind === 'iw' && iwById(Number(a))) {
|
||||
const iw = iwById(Number(a));
|
||||
|
||||
Reference in New Issue
Block a user