[100] Deckenspiegel: Leuchten (Symbol Deckenleuchte, Kategorie 65), Deckenspiegel im Layout-Viewport geprüft
This commit is contained in:
8 files changed
+117
-3
No files matched your search
@@ -35,7 +35,7 @@ describe("Standard-Bibliothek ([100]–[102])", () => {
|
||||
expect(c.components).toBe(35);
|
||||
expect(c.lineStyles).toBeGreaterThan(5);
|
||||
expect(c.wallTypes + c.ceilingTypes + c.roofTypes).toBe(5);
|
||||
expect(standardsMergeCounts(standardsMergeOps(withStandards(empty)))).toEqual({ lineStyles: 0, hatches: 0, components: 0, wallTypes: 0, ceilingTypes: 0, roofTypes: 0, viewTemplates: 0 });
|
||||
expect(standardsMergeCounts(standardsMergeOps(withStandards(empty)))).toEqual({ lineStyles: 0, hatches: 0, components: 0, wallTypes: 0, ceilingTypes: 0, roofTypes: 0, viewTemplates: 0, blockDefs: 0 });
|
||||
});
|
||||
|
||||
it("Sinnbilder nach SIA 400 Fig. 34: Putz leer, Dämmung quer, Beton gekreuzt", () => {
|
||||
|
||||
@@ -27,10 +27,12 @@ export interface StandardsMergeCounts {
|
||||
ceilingTypes: number;
|
||||
roofTypes: number;
|
||||
viewTemplates: number;
|
||||
/** Symbole (2D-Blöcke, z. B. Deckenleuchte [100]). */
|
||||
blockDefs: number;
|
||||
}
|
||||
|
||||
export function standardsMergeCounts(ops: readonly CoreOp[]): StandardsMergeCounts {
|
||||
const out: StandardsMergeCounts = { lineStyles: 0, hatches: 0, components: 0, wallTypes: 0, ceilingTypes: 0, roofTypes: 0, viewTemplates: 0 };
|
||||
const out: StandardsMergeCounts = { lineStyles: 0, hatches: 0, components: 0, wallTypes: 0, ceilingTypes: 0, roofTypes: 0, viewTemplates: 0, blockDefs: 0 };
|
||||
for (const op of ops) {
|
||||
const key = op.kind === "add" ? op.collection : op.kind === "setField" ? op.key : null;
|
||||
const n = op.kind === "add" ? op.items.length : op.kind === "setField" && Array.isArray(op.value) ? op.value.length : 0;
|
||||
|
||||
Reference in new issue
Block a user