[109][110] Merge origin/master (Fenster/Türen [105]/[106], Manifold [107], Schraffur-Strichskala); Kurven-Schraffuren im DXF mit hatch_dash

This commit is contained in:
Claude committed 2026-10-30 02:10:15 +00:00
commit d042fc9270
68 files changed
+4480 -1089

No files matched your search

+11 -2
View File
@@ -57,7 +57,7 @@ import {
PEN_FALLBACK_COLOR,
PEN_FALLBACK_WEIGHT,
} from "../model/penSets";
import { standardsMergeOps } from "../model/standards";
import { standardsMergeCounts, standardsMergeOps } from "../model/standards";
import { reorderByIds } from "../model/reorder";
import { transformMutation } from "../tools/transform";
import type { CopyMode, TransformOp, TransformSelection } from "../tools/transform";
@@ -1024,7 +1024,16 @@ export function createProjectSlice(
}),
seedStandardPenSet: () => applyChange((p) => seedStandardPenSetOps(p)),
loadStandards: () => applyChange((p) => standardsMergeOps(p)),
loadStandards: () => {
// Rückmeldung, was hinzukam ([101]); ein Undo-Schritt.
const ops = standardsMergeOps(get().project);
const c = standardsMergeCounts(ops);
const parts = (["components", "wallTypes", "ceilingTypes", "roofTypes", "hatches", "lineStyles"] as const)
.filter((k) => c[k] > 0)
.map((k) => t(`resources.loadStandards.n.${k}`, { n: c[k] }));
if (ops.length) applyChange(ops);
get().notify(parts.length ? t("resources.loadStandards.added", { list: parts.join(", ") }) : t("resources.loadStandards.none"), "info");
},
addCustomPalette: () =>
applyChange(