[140][141] Merge Plandarstellung Teil 5 (1:100 schwarz, dünne Schichten, Raumstempel) mit Wandknoten-Resten; Goldens neu, Knoten-Test in Detail fein
This commit is contained in:
51 files changed
+831
-270
No files matched your search
+2
-2
@@ -171,7 +171,7 @@ import { DragOverlay } from "./panels/panelDrag";
|
||||
import { hostWithMode, PanelHostProvider } from "./panels/host";
|
||||
import { deriveSelection } from "./state/selectionInfo";
|
||||
import type { SelectionInfo } from "./state/selectionInfo";
|
||||
import { centroid as roomCentroid } from "./core";
|
||||
import { roomLabelPoint } from "./core";
|
||||
import { docFromText, plainText, DEFAULT_PRESETS } from "./text/richText";
|
||||
import type { RichTextDoc } from "./text/richText";
|
||||
import { revealPanel, saveLayout } from "./panels/layout";
|
||||
@@ -655,7 +655,7 @@ export default function App() {
|
||||
selectedRoom
|
||||
? {
|
||||
roomId: selectedRoom.id,
|
||||
anchor: selectedRoom.stampAnchor ?? roomCentroid(selectedRoom.boundary),
|
||||
anchor: selectedRoom.stampAnchor ?? roomLabelPoint(selectedRoom.boundary),
|
||||
}
|
||||
: null,
|
||||
[selectedRoom],
|
||||
|
||||
@@ -7,53 +7,16 @@
|
||||
<text x="2.5" y="2.6725" font-size="0.3528" fill="#111111" font-family="sans-serif" text-anchor="middle">Wohnen</text>
|
||||
<text x="2.5" y="3.09586" font-size="0.3528" fill="#111111" font-family="sans-serif" text-anchor="middle">17.01 m²</text>
|
||||
<text x="2.5" y="3.51922" font-size="0.3528" fill="#111111" font-family="sans-serif" text-anchor="middle">HNF · Hauptnutzfläche</text>
|
||||
<polygon points="-0.1725,4.845 0.8,4.845 0.8,4.825 -0.1525,4.825" fill="#f0f0f0" stroke="none" stroke-width="0"/>
|
||||
<polygon points="-0.1525,4.825 0.8,4.825 0.8,4.665 0.0075,4.665" fill="#f0f0f0" stroke="none" stroke-width="0"/>
|
||||
<polygon points="0.0075,4.665 0.8,4.665 0.8,4.515 0.1575,4.515" fill="#f0f0f0" stroke="none" stroke-width="0"/>
|
||||
<polygon points="0.1575,4.515 0.8,4.515 0.8,4.5 0.1725,4.5" fill="#f0f0f0" stroke="none" stroke-width="0"/>
|
||||
<polygon points="-0.1725,4.845 0.8,4.845 0.8,4.5 0.1725,4.5" fill="none" stroke="none"/>
|
||||
<polygon points="1.7,4.845 3,4.845 3,4.825 1.7,4.825" fill="#f0f0f0" stroke="none" stroke-width="0"/>
|
||||
<polygon points="1.7,4.825 3,4.825 3,4.665 1.7,4.665" fill="#f0f0f0" stroke="none" stroke-width="0"/>
|
||||
<line x1="1.7" y1="4.665" x2="3" y2="4.665" stroke="#1a1a1a" stroke-width="0.013"/>
|
||||
<polygon points="1.7,4.665 3,4.665 3,4.515 1.7,4.515" fill="#f0f0f0" stroke="none" stroke-width="0"/>
|
||||
<polygon points="1.7,4.515 2.34,4.515 2.34,4.5 1.7,4.5" fill="#f0f0f0" stroke="none" stroke-width="0"/>
|
||||
<polygon points="2.46,4.515 3,4.515 3,4.5 2.46,4.5" fill="#f0f0f0" stroke="none" stroke-width="0"/>
|
||||
<polygon points="1.7,4.845 3,4.845 3,4.5 1.7,4.5" fill="none" stroke="none"/>
|
||||
<polyline points="2.34,4.5 1.7,4.5 1.7,4.845 3,4.845 3,4.5 2.46,4.5" fill="none" stroke="#1a1a1a" stroke-width="0.025"/>
|
||||
<polygon points="4,4.845 5.1725,4.845 5.1525,4.825 4,4.825" fill="#f0f0f0" stroke="none" stroke-width="0"/>
|
||||
<polygon points="4,4.825 5.1525,4.825 4.9925,4.665 4,4.665" fill="#f0f0f0" stroke="none" stroke-width="0"/>
|
||||
<polygon points="4,4.665 4.9925,4.665 4.8425,4.515 4,4.515" fill="#f0f0f0" stroke="none" stroke-width="0"/>
|
||||
<polygon points="4,4.515 4.8425,4.515 4.8275,4.5 4,4.5" fill="#f0f0f0" stroke="none" stroke-width="0"/>
|
||||
<polygon points="4,4.845 5.1725,4.845 4.8275,4.5 4,4.5" fill="none" stroke="none"/>
|
||||
<polygon points="5.1725,4.845 5.1725,0.5 5.1525,0.52 5.1525,4.825" fill="#f0f0f0" stroke="none" stroke-width="0"/>
|
||||
<polygon points="5.1525,4.825 5.1525,0.52 4.9925,0.68 4.9925,4.665" fill="#f0f0f0" stroke="none" stroke-width="0"/>
|
||||
<polygon points="4.9925,4.665 4.9925,0.68 4.8425,0.83 4.8425,4.515" fill="#f0f0f0" stroke="none" stroke-width="0"/>
|
||||
<polygon points="4.8425,4.515 4.8425,0.83 4.8275,0.845 4.8275,4.5" fill="#f0f0f0" stroke="none" stroke-width="0"/>
|
||||
<polygon points="5.1725,4.845 5.1725,0.5 4.8275,0.845 4.8275,4.5" fill="none" stroke="none"/>
|
||||
<polygon points="5.1725,0.5 4.4,0.5 4.4,0.52 5.1525,0.52" fill="#f0f0f0" stroke="none" stroke-width="0"/>
|
||||
<polygon points="5.1525,0.52 4.4,0.52 4.4,0.68 4.9925,0.68" fill="#f0f0f0" stroke="none" stroke-width="0"/>
|
||||
<polyline points="4,4.665 4.9925,4.665 4.9925,0.68 4.4,0.68" fill="none" stroke="#1a1a1a" stroke-width="0.013"/>
|
||||
<polygon points="4.9925,0.68 4.4,0.68 4.4,0.83 4.8425,0.83" fill="#f0f0f0" stroke="none" stroke-width="0"/>
|
||||
<polygon points="4.8425,0.83 4.4,0.83 4.4,0.845 4.8275,0.845" fill="#f0f0f0" stroke="none" stroke-width="0"/>
|
||||
<polygon points="5.1725,0.5 4.4,0.5 4.4,0.845 4.8275,0.845" fill="none" stroke="none"/>
|
||||
<polygon points="-0.1725,4.845 0.8,4.845 0.8,4.5 0.1725,4.5" fill="#0f0f0f" stroke="none"/>
|
||||
<polygon points="1.7,4.845 3,4.845 3,4.5 1.7,4.5" fill="#0f0f0f" stroke="#1a1a1a" stroke-width="0.025"/>
|
||||
<polygon points="4,4.845 5.1725,4.845 4.8275,4.5 4,4.5" fill="#0f0f0f" stroke="none"/>
|
||||
<polygon points="5.1725,4.845 5.1725,0.5 4.8275,0.845 4.8275,4.5" fill="#0f0f0f" stroke="none"/>
|
||||
<polygon points="5.1725,0.5 4.4,0.5 4.4,0.845 4.8275,0.845" fill="#0f0f0f" stroke="none"/>
|
||||
<polygon points="4.8275,0.845 4.8275,4.5 4,4.5 4,4.845 5.1725,4.845 5.1725,0.5 4.4,0.5 4.4,0.845" fill="none" stroke="#1a1a1a" stroke-width="0.025"/>
|
||||
<polygon points="3,0.5 -0.1725,0.5 -0.1525,0.52 3,0.52" fill="#f0f0f0" stroke="none" stroke-width="0"/>
|
||||
<polygon points="3,0.52 -0.1525,0.52 0.0075,0.68 3,0.68" fill="#f0f0f0" stroke="none" stroke-width="0"/>
|
||||
<polygon points="3,0.68 0.0075,0.68 0.1575,0.83 3,0.83" fill="#f0f0f0" stroke="none" stroke-width="0"/>
|
||||
<polygon points="3,0.83 2.46,0.83 2.46,0.845 3,0.845" fill="#f0f0f0" stroke="none" stroke-width="0"/>
|
||||
<polygon points="2.34,0.83 0.1575,0.83 0.1725,0.845 2.34,0.845" fill="#f0f0f0" stroke="none" stroke-width="0"/>
|
||||
<polygon points="3,0.5 -0.1725,0.5 0.1725,0.845 3,0.845" fill="none" stroke="none"/>
|
||||
<polygon points="-0.1725,0.5 -0.1725,4.845 -0.1525,4.825 -0.1525,0.52" fill="#f0f0f0" stroke="none" stroke-width="0"/>
|
||||
<polygon points="-0.1525,0.52 -0.1525,4.825 0.0075,4.665 0.0075,0.68" fill="#f0f0f0" stroke="none" stroke-width="0"/>
|
||||
<polyline points="3,0.68 0.0075,0.68 0.0075,4.665 0.8,4.665" fill="none" stroke="#1a1a1a" stroke-width="0.013"/>
|
||||
<polygon points="0.0075,0.68 0.0075,4.665 0.1575,4.515 0.1575,0.83" fill="#f0f0f0" stroke="none" stroke-width="0"/>
|
||||
<polygon points="0.1575,0.83 0.1575,4.515 0.1725,4.5 0.1725,0.845" fill="#f0f0f0" stroke="none" stroke-width="0"/>
|
||||
<polygon points="-0.1725,0.5 -0.1725,4.845 0.1725,4.5 0.1725,0.845" fill="none" stroke="none"/>
|
||||
<polyline points="2.46,0.845 3,0.845 3,0.5 -0.1725,0.5 -0.1725,4.845 0.8,4.845 0.8,4.5 0.1725,4.5 0.1725,0.845 2.34,0.845" fill="none" stroke="#1a1a1a" stroke-width="0.025"/>
|
||||
<polygon points="2.475,4.5 2.475,0.845 2.46,0.845 2.46,4.5" fill="#f0f0f0" stroke="none" stroke-width="0"/>
|
||||
<polygon points="2.46,4.515 2.46,0.83 2.34,0.83 2.34,4.515" fill="#f0f0f0" stroke="none" stroke-width="0"/>
|
||||
<polygon points="2.34,4.5 2.34,0.845 2.325,0.845 2.325,4.5" fill="#f0f0f0" stroke="none" stroke-width="0"/>
|
||||
<polygon points="2.475,4.5 2.475,0.845 2.325,0.845 2.325,4.5" fill="none" stroke="none"/>
|
||||
<polygon points="3,0.5 -0.1725,0.5 0.1725,0.845 3,0.845" fill="#0f0f0f" stroke="none"/>
|
||||
<polygon points="-0.1725,0.5 -0.1725,4.845 0.1725,4.5 0.1725,0.845" fill="#0f0f0f" stroke="none"/>
|
||||
<polygon points="0.1725,0.845 3,0.845 3,0.5 -0.1725,0.5 -0.1725,4.845 0.8,4.845 0.8,4.5 0.1725,4.5" fill="none" stroke="#1a1a1a" stroke-width="0.025"/>
|
||||
<polygon points="2.475,4.5 2.475,0.845 2.325,0.845 2.325,4.5" fill="#0f0f0f" stroke="none"/>
|
||||
<line x1="2.475" y1="4.5" x2="2.475" y2="0.845" stroke="#1a1a1a" stroke-width="0.025"/>
|
||||
<line x1="2.325" y1="0.845" x2="2.325" y2="4.5" stroke="#1a1a1a" stroke-width="0.025"/>
|
||||
<polygon points="3.2,4.2725 3.2,4.05917 4.2,4.05917 4.2,4.2725" fill="none" stroke="#1a1a1a" stroke-width="0.0126"/>
|
||||
|
||||
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 8.0 KiB |
@@ -2,40 +2,39 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0.1 0 6.8 7.58564" width="68mm" height="75.85641mm">
|
||||
<rect x="0.1" y="0" width="6.8" height="7.58564" fill="#ffffff"/>
|
||||
<g stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="4">
|
||||
<polygon points="5.8275,4.78564 5.8275,7.08564 5.9925,7.08564 5.9925,4.78564" fill="#f0f0f0" stroke="#1f242c" stroke-width="0.013"/>
|
||||
<polygon points="5.8425,1.88564 5.9925,1.88564 5.9925,4.58564 5.8425,4.58564" fill="#f0f0f0" stroke="#1f242c" stroke-width="0.013"/>
|
||||
<polygon points="5.9925,4.78564 5.9925,7.08564 6.1725,7.08564 6.1725,1.88564 6.1525,1.88564 6.1525,4.48564 6,4.48564 6,4.54564 5.9925,4.54564 5.9925,4.58564 6,4.58564 6,4.78564" fill="#f0f0f0" stroke="#1f242c" stroke-width="0.013"/>
|
||||
<polygon points="0.8275,1.88564 0.8275,7.08564 1.0075,7.08564 1.0075,4.78564 1,4.78564 1,4.58564 1.0075,4.58564 1.0075,4.54564 1,4.54564 1,4.48564 0.8475,4.48564 0.8475,1.88564" fill="#f0f0f0" stroke="#1f242c" stroke-width="0.013"/>
|
||||
<polygon points="1.0075,4.78564 1.0075,7.08564 1.1725,7.08564 1.1725,4.78564" fill="#f0f0f0" stroke="#1f242c" stroke-width="0.013"/>
|
||||
<polygon points="1.0075,1.88564 1.1575,1.88564 1.1575,4.58564 1.0075,4.58564" fill="#f0f0f0" stroke="#1f242c" stroke-width="0.013"/>
|
||||
<polygon points="3.325,4.78564 3.325,7.08564 3.475,7.08564 3.475,4.78564" fill="#f0f0f0" stroke="#1f242c" stroke-width="0.013"/>
|
||||
<polygon points="3.34,4.48564 3.46,4.48564 3.46,4.58564 3.34,4.58564" fill="#f0f0f0" stroke="#1f242c" stroke-width="0.013"/>
|
||||
<polygon points="5.8275,1.88564 5.8425,1.88564 5.8425,4.48564 5.8275,4.48564" fill="#f0f0f0" stroke="#1f242c" stroke-width="0.013"/>
|
||||
<polygon points="5.9925,1.88564 6.1525,1.88564 6.1525,4.48564 5.9925,4.48564" fill="#f0f0f0" stroke="#1f242c" stroke-width="0.013"/>
|
||||
<polygon points="0.8475,1.88564 1.0075,1.88564 1.0075,4.48564 0.8475,4.48564" fill="#f0f0f0" stroke="#1f242c" stroke-width="0.013"/>
|
||||
<polygon points="1.1575,1.88564 1.1725,1.88564 1.1725,4.48564 1.1575,4.48564" fill="#f0f0f0" stroke="#1f242c" stroke-width="0.013"/>
|
||||
<polygon points="1,4.48564 1.0075,4.48564 1.0075,4.54564 1,4.54564" fill="#f0f0f0" stroke="#1f242c" stroke-width="0.013"/>
|
||||
<polygon points="1.1575,4.48564 3.34,4.48564 3.34,4.54564 1.1575,4.54564" fill="#f0f0f0" stroke="#1f242c" stroke-width="0.013"/>
|
||||
<polygon points="3.46,4.48564 5.8425,4.48564 5.8425,4.54564 3.46,4.54564" fill="#f0f0f0" stroke="#1f242c" stroke-width="0.013"/>
|
||||
<polygon points="5.9925,4.48564 6,4.48564 6,4.54564 5.9925,4.54564" fill="#f0f0f0" stroke="#1f242c" stroke-width="0.013"/>
|
||||
<polygon points="1.1575,4.54564 3.34,4.54564 3.34,4.58564 1.1575,4.58564" fill="#f0f0f0" stroke="#1f242c" stroke-width="0.013"/>
|
||||
<polygon points="3.46,4.54564 5.8425,4.54564 5.8425,4.58564 3.46,4.58564" fill="#f0f0f0" stroke="#1f242c" stroke-width="0.013"/>
|
||||
<polygon points="1,4.58564 6,4.58564 6,4.78564 1,4.78564" fill="#f0f0f0" stroke="#1f242c" stroke-width="0.013"/>
|
||||
<polygon points="0.6,0.5 6.4,0.5 6.4,0.73094 0.6,0.73094" fill="#f0f0f0" stroke="#1f242c" stroke-width="0.013"/>
|
||||
<polygon points="4.2,5.69897 4.2,5.99364 5.2,5.99364 5.2,5.69897" fill="#f0f0f0" stroke="#1f242c" stroke-width="0.013"/>
|
||||
<polygon points="5.8275,4.78564 5.8425,4.78564 5.8425,7.08564 5.8275,7.08564" fill="#0f0f0f" stroke="none" stroke-width="0"/>
|
||||
<polygon points="5.8425,4.78564 5.9925,4.78564 5.9925,7.08564 5.8425,7.08564" fill="#0f0f0f" stroke="none" stroke-width="0"/>
|
||||
<polygon points="5.8425,1.88564 5.9925,1.88564 5.9925,4.58564 5.8425,4.58564" fill="#0f0f0f" stroke="none" stroke-width="0"/>
|
||||
<polygon points="6,4.48564 6.1525,4.48564 6.1525,7.08564 6,7.08564" fill="#0f0f0f" stroke="none" stroke-width="0"/>
|
||||
<polygon points="5.9925,4.78564 6,4.78564 6,7.08564 5.9925,7.08564" fill="#0f0f0f" stroke="none" stroke-width="0"/>
|
||||
<polygon points="5.9925,4.54564 6,4.54564 6,4.58564 5.9925,4.58564" fill="#0f0f0f" stroke="none" stroke-width="0"/>
|
||||
<polygon points="6.1525,1.88564 6.1725,1.88564 6.1725,7.08564 6.1525,7.08564" fill="#0f0f0f" stroke="none" stroke-width="0"/>
|
||||
<polygon points="0.8275,1.88564 0.8475,1.88564 0.8475,7.08564 0.8275,7.08564" fill="#0f0f0f" stroke="none" stroke-width="0"/>
|
||||
<polygon points="0.8475,4.48564 1,4.48564 1,7.08564 0.8475,7.08564" fill="#0f0f0f" stroke="none" stroke-width="0"/>
|
||||
<polygon points="1,4.78564 1.0075,4.78564 1.0075,7.08564 1,7.08564" fill="#0f0f0f" stroke="none" stroke-width="0"/>
|
||||
<polygon points="1,4.54564 1.0075,4.54564 1.0075,4.58564 1,4.58564" fill="#0f0f0f" stroke="none" stroke-width="0"/>
|
||||
<polygon points="1.0075,4.78564 1.1575,4.78564 1.1575,7.08564 1.0075,7.08564" fill="#0f0f0f" stroke="none" stroke-width="0"/>
|
||||
<polygon points="1.0075,1.88564 1.1575,1.88564 1.1575,4.58564 1.0075,4.58564" fill="#0f0f0f" stroke="none" stroke-width="0"/>
|
||||
<polygon points="1.1575,4.78564 1.1725,4.78564 1.1725,7.08564 1.1575,7.08564" fill="#0f0f0f" stroke="none" stroke-width="0"/>
|
||||
<polygon points="3.325,4.78564 3.34,4.78564 3.34,7.08564 3.325,7.08564" fill="#0f0f0f" stroke="none" stroke-width="0"/>
|
||||
<polygon points="3.34,4.78564 3.46,4.78564 3.46,7.08564 3.34,7.08564" fill="#0f0f0f" stroke="none" stroke-width="0"/>
|
||||
<polygon points="3.34,4.48564 3.46,4.48564 3.46,4.58564 3.34,4.58564" fill="#0f0f0f" stroke="none" stroke-width="0"/>
|
||||
<polygon points="3.46,4.78564 3.475,4.78564 3.475,7.08564 3.46,7.08564" fill="#0f0f0f" stroke="none" stroke-width="0"/>
|
||||
<polygon points="5.8275,1.88564 5.8425,1.88564 5.8425,4.48564 5.8275,4.48564" fill="#0f0f0f" stroke="none" stroke-width="0"/>
|
||||
<polygon points="5.9925,1.88564 6.1525,1.88564 6.1525,4.48564 5.9925,4.48564" fill="#0f0f0f" stroke="none" stroke-width="0"/>
|
||||
<polygon points="0.8475,1.88564 1.0075,1.88564 1.0075,4.48564 0.8475,4.48564" fill="#0f0f0f" stroke="none" stroke-width="0"/>
|
||||
<polygon points="1.1575,1.88564 1.1725,1.88564 1.1725,4.48564 1.1575,4.48564" fill="#0f0f0f" stroke="none" stroke-width="0"/>
|
||||
<polygon points="1,4.48564 1.0075,4.48564 1.0075,4.54564 1,4.54564" fill="#0f0f0f" stroke="none" stroke-width="0"/>
|
||||
<polygon points="1.1575,4.48564 3.34,4.48564 3.34,4.54564 1.1575,4.54564" fill="#0f0f0f" stroke="none" stroke-width="0"/>
|
||||
<polygon points="3.46,4.48564 5.8425,4.48564 5.8425,4.54564 3.46,4.54564" fill="#0f0f0f" stroke="none" stroke-width="0"/>
|
||||
<polygon points="5.9925,4.48564 6,4.48564 6,4.54564 5.9925,4.54564" fill="#0f0f0f" stroke="none" stroke-width="0"/>
|
||||
<polygon points="1.1575,4.54564 3.34,4.54564 3.34,4.58564 1.1575,4.58564" fill="#0f0f0f" stroke="none" stroke-width="0"/>
|
||||
<polygon points="3.46,4.54564 5.8425,4.54564 5.8425,4.58564 3.46,4.58564" fill="#0f0f0f" stroke="none" stroke-width="0"/>
|
||||
<polygon points="1,4.58564 6,4.58564 6,4.78564 1,4.78564" fill="#0f0f0f" stroke="none" stroke-width="0"/>
|
||||
<polygon points="0.6,0.5 6.4,0.5 6.4,0.73094 0.6,0.73094" fill="#0f0f0f" stroke="none" stroke-width="0"/>
|
||||
<polygon points="4.2,5.69897 4.2,5.99364 5.2,5.99364 5.2,5.69897" fill="#0f0f0f" stroke="none" stroke-width="0"/>
|
||||
<polygon points="0.6,0.5 0.6,0.73094 6.4,0.73094 6.4,0.5" fill="none" stroke="#1f242c" stroke-width="0.025"/>
|
||||
<line x1="1.0075" y1="7.08564" x2="1.0075" y2="7.08564" stroke="#1f242c" stroke-width="0.025"/>
|
||||
<polyline points="1.0075,7.08564 1.1725,7.08564 1.1725,4.78564 3.325,4.78564 3.325,7.08564 3.475,7.08564 3.475,4.78564 5.8275,4.78564 5.8275,7.08564 5.9925,7.08564" fill="none" stroke="#1f242c" stroke-width="0.025"/>
|
||||
<line x1="5.9925" y1="7.08564" x2="5.9925" y2="7.08564" stroke="#1f242c" stroke-width="0.025"/>
|
||||
<polyline points="5.9925,7.08564 6.1725,7.08564 6.1725,1.88564 5.8275,1.88564 5.8275,4.48564 1.1725,4.48564 1.1725,1.88564 0.8275,1.88564 0.8275,7.08564 1.0075,7.08564" fill="none" stroke="#1f242c" stroke-width="0.025"/>
|
||||
<line x1="1" y1="4.54564" x2="1" y2="4.54564" stroke="#1f242c" stroke-width="0.025"/>
|
||||
<line x1="1" y1="4.54564" x2="1.0075" y2="4.54564" stroke="#1f242c" stroke-width="0.025"/>
|
||||
<line x1="1.0075" y1="4.54564" x2="1.0075" y2="4.54564" stroke="#1f242c" stroke-width="0.025"/>
|
||||
<line x1="1.0075" y1="4.54564" x2="1" y2="4.54564" stroke="#1f242c" stroke-width="0.025"/>
|
||||
<line x1="5.9925" y1="4.54564" x2="5.9925" y2="4.54564" stroke="#1f242c" stroke-width="0.025"/>
|
||||
<line x1="5.9925" y1="4.54564" x2="6" y2="4.54564" stroke="#1f242c" stroke-width="0.025"/>
|
||||
<line x1="6" y1="4.54564" x2="6" y2="4.54564" stroke="#1f242c" stroke-width="0.025"/>
|
||||
<line x1="6" y1="4.54564" x2="5.9925" y2="4.54564" stroke="#1f242c" stroke-width="0.025"/>
|
||||
<polygon points="0.8275,1.88564 0.8275,7.08564 1.1725,7.08564 1.1725,4.78564 3.325,4.78564 3.325,7.08564 3.475,7.08564 3.475,4.78564 5.8275,4.78564 5.8275,7.08564 6.1725,7.08564 6.1725,1.88564 5.8275,1.88564 5.8275,4.48564 1.1725,4.48564 1.1725,1.88564" fill="none" stroke="#1f242c" stroke-width="0.025"/>
|
||||
<polygon points="4.2,5.69897 4.2,5.99364 5.2,5.99364 5.2,5.69897" fill="none" stroke="#1f242c" stroke-width="0.025"/>
|
||||
<polyline points="5.8275,7.08564 5.4,7.08564 4,7.08564 3.475,7.08564" fill="none" stroke="#2b3039" stroke-width="0.018"/>
|
||||
<line x1="3.325" y1="7.08564" x2="1.1725" y2="7.08564" stroke="#2b3039" stroke-width="0.018"/>
|
||||
|
||||
|
Before Width: | Height: | Size: 7.0 KiB After Width: | Height: | Size: 6.8 KiB |
@@ -81,6 +81,7 @@ export {
|
||||
SIA_CATEGORIES,
|
||||
balance,
|
||||
centroid,
|
||||
roomLabelPoint,
|
||||
evaluateRoom,
|
||||
polygonArea,
|
||||
roomsToCsv,
|
||||
|
||||
@@ -31,7 +31,8 @@ const visiblePolys = (polys: Extract<Plan["primitives"][number], { kind: "polygo
|
||||
polys.filter((p) => !p.openingId && !(p.stroke === "none" && p.fill === "none" && p.hatch.pattern === "none" && p.hatch.kind !== "gradient"));
|
||||
|
||||
describe("DXF-Export (R2018 über acadrust)", () => {
|
||||
const plan = generatePlan(sampleProject, "eg", allCodes(sampleProject));
|
||||
// 1:50: Wände mit Schichten und Schraffur (ab 1:100 schwarz, [140]).
|
||||
const plan = generatePlan(sampleProject, "eg", allCodes(sampleProject), undefined, "mittel", false, false, true, 50);
|
||||
|
||||
it("Version R2018, Einheit Meter, alle Kategorie-Ebenen", () => {
|
||||
const text = buildPlanDxf(plan, sampleProject);
|
||||
|
||||
@@ -6,7 +6,8 @@ import { sampleProject as project } from "../model/sampleProject";
|
||||
describe("planToSvgString hatch", () => {
|
||||
const floor = project.drawingLevels.find((l) => l.kind === "floor")!;
|
||||
const codes = new Set(project.layers.map((l) => l.code));
|
||||
const plan = generatePlan(project, floor.id, codes);
|
||||
// 1:50: Schraffuren in den Wänden (ab 1:100 schwarz, [140]).
|
||||
const plan = generatePlan(project, floor.id, codes, undefined, "mittel", false, false, true, 50);
|
||||
it("Standard und hatch:false sind byte-gleich", () => {
|
||||
const a = planToSvgString(plan, { scaleDenominator: 100 });
|
||||
expect(planToSvgString(plan, { scaleDenominator: 100, hatch: false })).toBe(a);
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { core } from "../engine/coreWasm";
|
||||
import { balance, centroid, evaluateRoom, polygonArea, roomsToCsv, SIA_CATEGORIES, siaLabel } from "./roomArea";
|
||||
import { balance, centroid, evaluateRoom, polygonArea, roomLabelPoint, roomsToCsv, SIA_CATEGORIES, siaLabel } from "./roomArea";
|
||||
|
||||
describe("Kern-Anbindung", () => {
|
||||
it("Kategorie-Namen und -Reihenfolge stimmen mit dem Rust-Kern überein", () => {
|
||||
@@ -123,3 +123,15 @@ describe("roomsToCsv() — Bilanzblock mit AGF", () => {
|
||||
expect(gfLine).toContain("26.00");
|
||||
});
|
||||
});
|
||||
|
||||
describe("roomLabelPoint", () => {
|
||||
it("[140] liegt im L-Raum, nicht am Schwerpunkt ausserhalb", () => {
|
||||
// schmales L: Schwerpunkt (≈ 1.4/1.4) liegt ausserhalb
|
||||
const l = [{ x: 0, y: 0 }, { x: 6, y: 0 }, { x: 6, y: 1 }, { x: 1, y: 1 }, { x: 1, y: 6 }, { x: 0, y: 6 }];
|
||||
const c = centroid(l);
|
||||
expect(c.x > 1 && c.y > 1).toBe(true);
|
||||
const q = roomLabelPoint(l);
|
||||
expect((q.x < 1 && q.y > 0 && q.y < 6) || (q.y < 1 && q.x > 0 && q.x < 6)).toBe(true);
|
||||
expect(roomLabelPoint([{ x: 0, y: 0 }, { x: 4, y: 0 }, { x: 4, y: 2 }, { x: 0, y: 2 }])).toEqual({ x: 2, y: 1 });
|
||||
});
|
||||
});
|
||||
@@ -34,6 +34,16 @@ export function centroid(pts: Vec2[]): Vec2 {
|
||||
return { x: c[0], y: c[1] };
|
||||
}
|
||||
|
||||
/**
|
||||
* [140] Ankerpunkt des Raumstempels ohne eigenen Anker: Pol der Unzugänglichkeit (Kern
|
||||
* `room_area::label_point`) — liegt auch in L-förmigen/konkaven Räumen im Raum, bei
|
||||
* Rechtecken in der Mitte. Gleicher Punkt wie Plan, Griff und Fang.
|
||||
*/
|
||||
export function roomLabelPoint(pts: Vec2[]): Vec2 {
|
||||
const c = core().room_label_point(new FlatWriter().pts(pts).done());
|
||||
return { x: c[0], y: c[1] };
|
||||
}
|
||||
|
||||
// ── SIA-416-Kategorie-Hierarchie ─────────────────────────────────────────────
|
||||
//
|
||||
// SIA 416 gliedert die Geschossfläche (GF) eines Gebäudes hierarchisch:
|
||||
|
||||
@@ -1148,6 +1148,7 @@ export const de = {
|
||||
"resources.viewTemplates.mono": "Tusche",
|
||||
"resources.viewTemplates.shadows": "Schatten",
|
||||
"resources.viewTemplates.hiddenLines": "Verdeckte Kanten",
|
||||
"resources.viewTemplates.cutHatch": "Schnittflächen 1:100 schraffiert (statt schwarz)",
|
||||
"resources.viewTemplates.sketch": "Skizzenstil",
|
||||
"resources.viewTemplates.scaleLineWeights": "Strichstärken skalieren",
|
||||
"resources.viewTemplates.rangeHint": "Ansichtsbereich (Meter über OKFF): Schnitthöhe, Oberkante und Unterkante der Sichtweite, darunter sichtbar bis.",
|
||||
|
||||
@@ -1142,6 +1142,7 @@ export const en: Record<TranslationKey, string> = {
|
||||
"resources.viewTemplates.mono": "Ink",
|
||||
"resources.viewTemplates.shadows": "Shadows",
|
||||
"resources.viewTemplates.hiddenLines": "Hidden lines",
|
||||
"resources.viewTemplates.cutHatch": "Hatched cut areas at 1:100 (instead of solid black)",
|
||||
"resources.viewTemplates.sketch": "Sketch style",
|
||||
"resources.viewTemplates.scaleLineWeights": "Scale line weights",
|
||||
"resources.viewTemplates.rangeHint": "View range (metres above finished floor): cut plane, top and bottom of the view depth, visible below down to.",
|
||||
|
||||
@@ -1118,6 +1118,11 @@ export type DrawingLevel = {
|
||||
* Wirkt auf Grundriss, Schnitt und Ansicht dieser Ebene; Default aus.
|
||||
*/
|
||||
sketch?: boolean;
|
||||
/**
|
||||
* [140] Schnittflächen (Wände, Stützen, Decken) auch ab 1:100 mit Schichten und Schraffur statt als
|
||||
* schwarze Fläche (Poché). Fehlt/aus: ab 1:100 schwarz, 1:50 und Detail „fein" schraffiert.
|
||||
*/
|
||||
cutHatch?: boolean;
|
||||
/**
|
||||
* Grundriss-Unterlage (nur Schnitt/Ansicht): ID eines Geschosses, dessen
|
||||
* Grundriss AUSGERICHTET unter dem Schnitt/der Ansicht gezeigt wird (Schnitt-
|
||||
@@ -3299,6 +3304,8 @@ export type ViewTemplate = {
|
||||
hiddenLines?: boolean;
|
||||
/** Skizzenstil ([67]). */
|
||||
sketch?: boolean;
|
||||
/** [140] Schnittflächen ab 1:100 schraffiert statt schwarz (s. `DrawingLevel::cut_hatch`). */
|
||||
cutHatch?: boolean;
|
||||
/** Strichstärken mit dem Massstab skalieren. */
|
||||
scaleLineWeights?: boolean;
|
||||
/** Schnitthöhe über OKFF ([36]). */
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
viewBox -4 0 23 18
|
||||
bytes 317431
|
||||
bytes 310337
|
||||
circle 14
|
||||
g 1
|
||||
line 3227
|
||||
polygon 75
|
||||
polyline 73
|
||||
line 3226
|
||||
polygon 21
|
||||
polyline 68
|
||||
rect 1
|
||||
svg 1
|
||||
text 36
|
||||
hash 008b41292083538c
|
||||
hash 45b4d584a3e141d6
|
||||
@@ -1,11 +1,11 @@
|
||||
viewBox -4 0 23 18
|
||||
bytes 323091
|
||||
bytes 320692
|
||||
circle 14
|
||||
g 1
|
||||
line 3240
|
||||
line 3227
|
||||
polygon 75
|
||||
polyline 84
|
||||
polyline 73
|
||||
rect 1
|
||||
svg 1
|
||||
text 36
|
||||
hash 92ee43948feacb35
|
||||
hash e0545755beab6d46
|
||||
@@ -1,12 +1,12 @@
|
||||
viewBox -41.5 0 95 63.6
|
||||
bytes 112686
|
||||
bytes 85358
|
||||
circle 16
|
||||
g 1
|
||||
line 338
|
||||
path 39
|
||||
polygon 266
|
||||
polyline 126
|
||||
line 314
|
||||
path 18
|
||||
polygon 104
|
||||
polyline 110
|
||||
rect 1
|
||||
svg 1
|
||||
text 115
|
||||
hash 1902777252ac56f7
|
||||
text 118
|
||||
hash cef117cef66ccd65
|
||||
@@ -1,12 +1,12 @@
|
||||
viewBox -41.5 0 95 63.6
|
||||
bytes 117858
|
||||
bytes 113593
|
||||
circle 16
|
||||
g 1
|
||||
line 349
|
||||
path 45
|
||||
line 338
|
||||
path 39
|
||||
polygon 266
|
||||
polyline 151
|
||||
polyline 126
|
||||
rect 1
|
||||
svg 1
|
||||
text 118
|
||||
hash 41dada4449c225f7
|
||||
text 121
|
||||
hash 7e22563a4804f932
|
||||
@@ -1,12 +1,11 @@
|
||||
viewBox -4.055 0 25.109 23.11
|
||||
bytes 366321
|
||||
bytes 339103
|
||||
circle 14
|
||||
g 1
|
||||
line 3333
|
||||
path 21
|
||||
polygon 227
|
||||
polyline 169
|
||||
line 3310
|
||||
polygon 66
|
||||
polyline 154
|
||||
rect 1
|
||||
svg 1
|
||||
text 89
|
||||
hash 3e20e7dadb42197b
|
||||
text 91
|
||||
hash 46723498044c422b
|
||||
@@ -1,12 +1,12 @@
|
||||
viewBox -4.055 0 25.109 23.11
|
||||
bytes 374960
|
||||
bytes 369846
|
||||
circle 14
|
||||
g 1
|
||||
line 3350
|
||||
path 27
|
||||
line 3333
|
||||
path 21
|
||||
polygon 227
|
||||
polyline 195
|
||||
polyline 169
|
||||
rect 1
|
||||
svg 1
|
||||
text 91
|
||||
hash 6e48062b617631c7
|
||||
hash be529b7ce07ecad8
|
||||
@@ -1,12 +1,12 @@
|
||||
viewBox -10.004 0 31.058 26.958
|
||||
bytes 61136
|
||||
bytes 52665
|
||||
circle 14
|
||||
g 1
|
||||
line 171
|
||||
path 13
|
||||
polygon 105
|
||||
polyline 77
|
||||
line 166
|
||||
path 2
|
||||
polygon 60
|
||||
polyline 73
|
||||
rect 1
|
||||
svg 1
|
||||
text 74
|
||||
hash 29b459e18b552b28
|
||||
text 75
|
||||
hash 5819887a677f289a
|
||||
@@ -1,12 +1,12 @@
|
||||
viewBox -10.004 0 31.058 26.958
|
||||
bytes 62056
|
||||
bytes 61331
|
||||
circle 14
|
||||
g 1
|
||||
line 173
|
||||
path 15
|
||||
line 171
|
||||
path 13
|
||||
polygon 105
|
||||
polyline 80
|
||||
polyline 77
|
||||
rect 1
|
||||
svg 1
|
||||
text 75
|
||||
hash b317c0dda4bab8ed
|
||||
hash 1f584745aa154d01
|
||||
@@ -1,11 +1,11 @@
|
||||
viewBox 4.457 0 21.343 17.678
|
||||
bytes 36282
|
||||
bytes 40531
|
||||
circle 3
|
||||
g 1
|
||||
line 105
|
||||
polygon 136
|
||||
polyline 14
|
||||
line 96
|
||||
polygon 186
|
||||
polyline 13
|
||||
rect 1
|
||||
svg 1
|
||||
text 3
|
||||
hash ff9a1be90fae7d83
|
||||
hash 2bfa93e2c1d3a9c8
|
||||
@@ -1,10 +1,10 @@
|
||||
viewBox -0.672 0 6.345 5.345
|
||||
bytes 11826
|
||||
bytes 7890
|
||||
g 1
|
||||
line 33
|
||||
polygon 62
|
||||
polyline 8
|
||||
line 32
|
||||
polygon 30
|
||||
polyline 4
|
||||
rect 1
|
||||
svg 1
|
||||
text 7
|
||||
hash 6d3b7926ca1a3a6d
|
||||
hash bdf6e70cae4a0a08
|
||||
@@ -1,10 +1,10 @@
|
||||
viewBox -0.672 0 6.345 5.345
|
||||
bytes 12491
|
||||
bytes 11830
|
||||
g 1
|
||||
line 34
|
||||
line 33
|
||||
polygon 62
|
||||
polyline 13
|
||||
polyline 8
|
||||
rect 1
|
||||
svg 1
|
||||
text 7
|
||||
hash 7378e595c698986f
|
||||
hash 24dc3848bf391596
|
||||
@@ -1,10 +1,10 @@
|
||||
viewBox -0.9 0 6.8 5.8
|
||||
bytes 5572
|
||||
bytes 3630
|
||||
g 1
|
||||
line 15
|
||||
polygon 26
|
||||
polygon 9
|
||||
polyline 4
|
||||
rect 1
|
||||
svg 1
|
||||
text 4
|
||||
hash 97d2aa8ea90eafff
|
||||
hash da75b90e9db14090
|
||||
@@ -1,10 +1,10 @@
|
||||
viewBox -0.9 0 6.8 5.8
|
||||
bytes 5816
|
||||
bytes 5578
|
||||
g 1
|
||||
line 15
|
||||
polygon 28
|
||||
polygon 26
|
||||
polyline 4
|
||||
rect 1
|
||||
svg 1
|
||||
text 4
|
||||
hash 7ca726f020333afb
|
||||
hash 860efb50b93e47d9
|
||||
@@ -1,9 +1,9 @@
|
||||
viewBox 0.1 0 6.8 7.586
|
||||
bytes 6662
|
||||
bytes 6451
|
||||
g 1
|
||||
line 31
|
||||
polygon 23
|
||||
polyline 6
|
||||
line 21
|
||||
polygon 34
|
||||
polyline 4
|
||||
rect 1
|
||||
svg 1
|
||||
hash 68fbe08143832562
|
||||
hash bfdb9a52ee2f2f02
|
||||
@@ -69,9 +69,9 @@ function column(overrides: Partial<Column> = {}): Column {
|
||||
};
|
||||
}
|
||||
|
||||
/** Grundriss des Geschosses „eg" mit genau dieser Stütze. */
|
||||
/** Grundriss des Geschosses „eg" mit genau dieser Stütze (1:50 — ab 1:100 ist die Schnittfläche schwarz, [140]). */
|
||||
function planColumn(p: Project, col: Column): Primitive[] {
|
||||
return generatePlan({ ...p, columns: [col] }, "eg", new Set(["50"])).primitives;
|
||||
return generatePlan({ ...p, columns: [col] }, "eg", new Set(["50"]), undefined, "mittel", false, false, true, 50).primitives;
|
||||
}
|
||||
|
||||
function polygonOf(out: Primitive[]): Extract<Primitive, { kind: "polygon" }> {
|
||||
|
||||
@@ -44,7 +44,7 @@ function cornerProject(): Project {
|
||||
},
|
||||
],
|
||||
drawingLevels: [
|
||||
{ id: "eg", name: "EG", kind: "floor", visible: true, locked: false, floorHeight: 2.6, cutHeight: 1.0, baseElevation: 0 },
|
||||
{ id: "eg", name: "EG", kind: "floor", visible: true, locked: false, floorHeight: 2.6, cutHeight: 1.0, baseElevation: 0, cutHatch: true },
|
||||
],
|
||||
layers: [{ code: "20", name: "Wände", color: "#0a0a0a", lw: 0.5, visible: true, locked: false }],
|
||||
walls: [
|
||||
|
||||
@@ -48,7 +48,7 @@ function tJunctionProject(): Project {
|
||||
},
|
||||
],
|
||||
drawingLevels: [
|
||||
{ id: "eg", name: "EG", kind: "floor", visible: true, locked: false, floorHeight: 2.6, cutHeight: 1.0, baseElevation: 0 },
|
||||
{ id: "eg", name: "EG", kind: "floor", visible: true, locked: false, floorHeight: 2.6, cutHeight: 1.0, baseElevation: 0, cutHatch: true },
|
||||
],
|
||||
layers: [{ code: "20", name: "Wände", color: "#0a0a0a", lw: 0.5, visible: true, locked: false }],
|
||||
walls: [
|
||||
|
||||
@@ -30,7 +30,7 @@ function project(): Project {
|
||||
components: [{ id: "a", name: "A", color: "#d8d2c7", hatchId: "none", joinPriority: 10 }],
|
||||
wallTypes: [{ id: "aw", name: "AW", layers: [{ componentId: "a", thickness: 0.2 }] }],
|
||||
drawingLevels: [
|
||||
{ id: "eg", name: "EG", kind: "floor", visible: true, locked: false, floorHeight: 2.6, cutHeight: 1.0, baseElevation: 0 },
|
||||
{ id: "eg", name: "EG", kind: "floor", visible: true, locked: false, floorHeight: 2.6, cutHeight: 1.0, baseElevation: 0, cutHatch: true },
|
||||
],
|
||||
layers: [{ code: "20", name: "Wände", color: "#0a0a0a", lw: 0.5, visible: true, locked: false }],
|
||||
walls: [
|
||||
@@ -138,7 +138,7 @@ function nonSolidWallProject(): Project {
|
||||
components: [{ id: "brick", name: "Backstein", color: "#c9a876", hatchId: "diag", joinPriority: 10 }],
|
||||
wallTypes: [{ id: "aw", name: "AW", layers: [{ componentId: "brick", thickness: 0.3 }] }],
|
||||
drawingLevels: [
|
||||
{ id: "eg", name: "EG", kind: "floor", visible: true, locked: false, floorHeight: 2.6, cutHeight: 1.0, baseElevation: 0 },
|
||||
{ id: "eg", name: "EG", kind: "floor", visible: true, locked: false, floorHeight: 2.6, cutHeight: 1.0, baseElevation: 0, cutHatch: true },
|
||||
],
|
||||
layers: [{ code: "20", name: "Wände", color: "#0a0a0a", lw: 0.5, visible: true, locked: false }],
|
||||
walls: [wall],
|
||||
@@ -185,7 +185,7 @@ function ceilingProject(): Project {
|
||||
components: [{ id: "a", name: "A", color: "#d8d2c7", hatchId: "none", joinPriority: 10 }],
|
||||
wallTypes: [{ id: "aw", name: "AW", layers: [{ componentId: "a", thickness: 0.2 }] }],
|
||||
drawingLevels: [
|
||||
{ id: "eg", name: "EG", kind: "floor", visible: true, locked: false, floorHeight: 2.6, cutHeight: 1.0, baseElevation: 0 },
|
||||
{ id: "eg", name: "EG", kind: "floor", visible: true, locked: false, floorHeight: 2.6, cutHeight: 1.0, baseElevation: 0, cutHatch: true },
|
||||
],
|
||||
layers: [{ code: "30", name: "Decken", color: "#0a0a0a", lw: 0.5, visible: true, locked: false }],
|
||||
walls: [],
|
||||
|
||||
@@ -257,13 +257,15 @@ describe('GpuChunkCache: Kern-Abschnitte (Plan-Puffer v2, Inhalts-Hash)', () =>
|
||||
const p = bigSampleProject(8);
|
||||
const { gl } = makeGl();
|
||||
const cache = new GpuChunkCache(gl);
|
||||
const a = generatePlan(p, 'eg', codes(p));
|
||||
// 1:50: Wände mit Schichten (ab 1:100 eine schwarze Fläche je Wand, [140]) → genug Chunks.
|
||||
const gen = (q: typeof p) => generatePlan(q, 'eg', codes(q), undefined, 'mittel', false, false, true, 50);
|
||||
const a = gen(p);
|
||||
cache.update(a.primitives, 90, 6, a.greyedRanges, a.underlay, a.bufRuns);
|
||||
const total = cache.lastStats.chunks;
|
||||
expect(total).toBeGreaterThan(8);
|
||||
const walls = p.walls.slice();
|
||||
walls[200] = { ...walls[200], end: { x: walls[200].end.x + 0.05, y: walls[200].end.y } };
|
||||
const b = generatePlan({ ...p, walls }, 'eg', codes(p));
|
||||
const b = gen({ ...p, walls });
|
||||
cache.update(b.primitives, 90, 6, b.greyedRanges, b.underlay, b.bufRuns);
|
||||
expect(cache.lastStats.recompiled).toBeGreaterThan(0);
|
||||
expect(cache.lastStats.recompiled).toBeLessThanOrEqual(3);
|
||||
|
||||
@@ -55,7 +55,8 @@ describe("Schnitt: Gelände und freie Körper", () => {
|
||||
brep: { spec: { kind: "sphere", center: [px, pz, 1], r: 1 }, origin: { x: px - 1, y: pz - 1 } },
|
||||
};
|
||||
const p: Project = { ...sampleProject, extrudedSolids: [...(sampleProject.extrudedSolids ?? []), sphere] };
|
||||
const plan = generateSectionPlan((await computeSection(p, section))!);
|
||||
// 1:50 (ab 1:100 sind Schnittflächen schwarz, [140])
|
||||
const plan = generateSectionPlan((await computeSection(p, section))!, false, { scaleDenominator: 50 });
|
||||
expect(plan.primitives.some((q) => q.kind === "polygon" && q.extrudedSolidId === "ball" && q.fill === "#d9dde2")).toBe(true);
|
||||
}, 30_000);
|
||||
|
||||
|
||||
@@ -53,7 +53,7 @@ describe("planToRenderScene (Kern)", () => {
|
||||
});
|
||||
|
||||
it("Binärszene: Zähler wie die Objekt-Szene", () => {
|
||||
const plan = generatePlan(sampleProject, "eg", codes);
|
||||
const plan = generatePlan(sampleProject, "eg", codes, undefined, "mittel", false, false, true, 50);
|
||||
const s = planToRenderScene(plan);
|
||||
const b = planSceneBin(plan);
|
||||
const h = new Uint32Array(b.buffer, b.byteOffset, 12);
|
||||
|
||||
+12
-2
@@ -5,7 +5,7 @@
|
||||
// Sichtbarkeit (UI-Zustand) und die asynchron gebauten truck-Körper hinein. Einheiten: Meter; u entlang
|
||||
// der Ebene (Blickrichtungs-RECHTS), v = absolute Höhe.
|
||||
|
||||
import type { DrawingLevel, Project, Vec2 } from "../model/types";
|
||||
import type { DetailLevel, DrawingLevel, Project, Vec2 } from "../model/types";
|
||||
import { flattenCategories, getFloor } from "../model/types";
|
||||
import { withDocument } from "../core/document";
|
||||
import { buildSolidMesh } from "../engine/truckSolid";
|
||||
@@ -113,6 +113,7 @@ export function levelArg(level: DrawingLevel) {
|
||||
shadows: level.shadows,
|
||||
hiddenLines: level.hiddenLines,
|
||||
sketch: level.sketch,
|
||||
cutHatch: level.cutHatch,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -123,7 +124,15 @@ export function levelArg(level: DrawingLevel) {
|
||||
export function generateSectionPlan(
|
||||
output: SectionOutput,
|
||||
mono = false,
|
||||
opts: { hiddenLines?: boolean; visibleCodes?: Set<string>; categoryDisplay?: CategoryDisplayResolver; openings?: boolean; scaleDenominator?: number } = {},
|
||||
opts: {
|
||||
hiddenLines?: boolean;
|
||||
visibleCodes?: Set<string>;
|
||||
categoryDisplay?: CategoryDisplayResolver;
|
||||
openings?: boolean;
|
||||
scaleDenominator?: number;
|
||||
/** [140] Detailgrad: „fein" zeigt auch ab 1:100 alle dünnen Schichten (Standard „mittel"). */
|
||||
detail?: DetailLevel;
|
||||
} = {},
|
||||
): Plan {
|
||||
const { project, level } = output;
|
||||
const text = JSON.stringify({
|
||||
@@ -131,6 +140,7 @@ export function generateSectionPlan(
|
||||
hiddenLines: !!opts.hiddenLines,
|
||||
// Massstabsnenner für die Achsblasen des Rasters ([112]); Default 100.
|
||||
scale: opts.scaleDenominator ?? 100,
|
||||
detail: opts.detail,
|
||||
...visibilityArgs(project, opts.visibleCodes, opts.categoryDisplay),
|
||||
});
|
||||
const args = output.bodies.slice();
|
||||
|
||||
@@ -44,7 +44,7 @@ export async function viewportLevelPlan(
|
||||
if (level.kind === "section") {
|
||||
const out = await computeSection(project, level);
|
||||
raw = out
|
||||
? generateSectionPlan(out, mono, { hiddenLines: level.hiddenLines, visibleCodes, openings: true, scaleDenominator })
|
||||
? generateSectionPlan(out, mono, { hiddenLines: level.hiddenLines, visibleCodes, openings: true, scaleDenominator, detail })
|
||||
: null;
|
||||
} else {
|
||||
raw = generateElevationPlan(project, level, { visibleCodes, scaleDenominator, mono });
|
||||
|
||||
@@ -29,7 +29,7 @@ export interface ViewTemplateUi {
|
||||
}
|
||||
|
||||
/** Geschoss-Felder, die eine Vorlage setzt (fehlt das Vorlagen-Feld, bleibt die Ansicht unberührt). */
|
||||
const LEVEL_KEYS = ["cutHeight", "viewTop", "viewBottom", "viewDepth", "shadows", "hiddenLines", "sketch"] as const;
|
||||
const LEVEL_KEYS = ["cutHeight", "viewTop", "viewBottom", "viewDepth", "shadows", "hiddenLines", "sketch", "cutHatch"] as const;
|
||||
|
||||
/** Teilobjekt für das Geschoss aus den gesetzten Feldern der Vorlage. */
|
||||
export function levelPatch(t: ViewTemplate): Partial<DrawingLevel> {
|
||||
|
||||
@@ -53,7 +53,7 @@ function TemplateDetail({
|
||||
<NumberField value={tpl[key] ?? dflt} step={0.1} onChange={(v) => patch({ [key]: v })} />
|
||||
</Optional>
|
||||
);
|
||||
const bool = (key: "mono" | "shadows" | "hiddenLines" | "scaleLineWeights" | "sketch", label: string) => (
|
||||
const bool = (key: "mono" | "shadows" | "hiddenLines" | "scaleLineWeights" | "sketch" | "cutHatch", label: string) => (
|
||||
<Optional label={label} on={tpl[key] !== undefined} onToggle={(on) => patch({ [key]: on ? false : null })}>
|
||||
<input type="checkbox" checked={tpl[key] === true} onChange={(e) => patch({ [key]: e.target.checked })} />
|
||||
</Optional>
|
||||
@@ -93,6 +93,7 @@ function TemplateDetail({
|
||||
{bool("hiddenLines", t("resources.viewTemplates.hiddenLines"))}
|
||||
{bool("scaleLineWeights", t("resources.viewTemplates.scaleLineWeights"))}
|
||||
{bool("sketch", t("resources.viewTemplates.sketch"))}
|
||||
{bool("cutHatch", t("resources.viewTemplates.cutHatch"))}
|
||||
<div className="res-hint">{t("resources.viewTemplates.rangeHint")}</div>
|
||||
{num("cutHeight", t("resources.viewTemplates.cutHeight"), 1.0)}
|
||||
{num("viewTop", t("resources.viewTemplates.viewTop"), 2.5)}
|
||||
|
||||
@@ -641,7 +641,7 @@ function useCrossKindOverlay(
|
||||
} else if (l.kind === "section") {
|
||||
const sOut = sectionOutputs[l.id];
|
||||
prims = sOut
|
||||
? generateSectionPlan(sOut, mono, { hiddenLines: l.hiddenLines, visibleCodes, categoryDisplay, scaleDenominator })
|
||||
? generateSectionPlan(sOut, mono, { hiddenLines: l.hiddenLines, visibleCodes, categoryDisplay, scaleDenominator, detail })
|
||||
.primitives
|
||||
: [];
|
||||
} else {
|
||||
@@ -1083,9 +1083,10 @@ function SectionPlanView({
|
||||
categoryDisplay,
|
||||
openings: true,
|
||||
scaleDenominator,
|
||||
detail,
|
||||
})
|
||||
: null,
|
||||
[isElevation, output, mono, level.hiddenLines, visibleCodes, categoryDisplay, inputs, scaleDenominator],
|
||||
[isElevation, output, mono, level.hiddenLines, visibleCodes, categoryDisplay, inputs, scaleDenominator, detail],
|
||||
);
|
||||
const rawPlan = isElevation ? elevationPlan : sectionPlan;
|
||||
// Grundriss-Unterlage (Nutzer-Wunsch: "in der Ansicht auch mal einen
|
||||
|
||||
Reference in new issue
Block a user