[140] Tusche-Standard: Kategorien, Kontext, Baurecht, Schatten, Achsen, Glas grau/schwarz; Bildschirm: Strichbreite unter 1 px als Deckung (Rangfolge bleibt sichtbar)
This commit is contained in:
13 files changed
+55
-43
No files matched your search
@@ -53,7 +53,7 @@ export const CONTEXT_PARENT_CATEGORY: ContextCategoryDef = {
|
||||
export const TERRAIN_CATEGORY: ContextCategoryDef = {
|
||||
code: "02",
|
||||
name: "Gelände",
|
||||
color: "#8a9478",
|
||||
color: "#808080",
|
||||
lw: 0.13,
|
||||
};
|
||||
|
||||
@@ -84,7 +84,7 @@ export const GENERIC_IMPORT_CATEGORY: ContextCategoryDef = {
|
||||
export const IMPORTED_ROOF_CATEGORY: ContextCategoryDef = {
|
||||
code: "31",
|
||||
name: "Dächer",
|
||||
color: "#7a4a3a",
|
||||
color: "#4a4a4a",
|
||||
lw: 0.18,
|
||||
};
|
||||
|
||||
@@ -95,12 +95,12 @@ export const IMPORTED_ROOF_CATEGORY: ContextCategoryDef = {
|
||||
*/
|
||||
export const GEO_CATEGORY_DEFS: Record<GeoCategory, ContextCategoryDef> = {
|
||||
building: { code: "12", name: "Gebäude", color: "#888888", lw: 0.25 },
|
||||
road: { code: "11", name: "Strasse", color: "#a89070", lw: 0.18 },
|
||||
forest: { code: "04", name: "Wald", color: "#3a7a3a", lw: 0.13 },
|
||||
road: { code: "11", name: "Strasse", color: "#808080", lw: 0.18 },
|
||||
forest: { code: "04", name: "Wald", color: "#909090", lw: 0.13 },
|
||||
parking: { code: "15", name: "Parkplätze", color: "#a0a0a0", lw: 0.13 },
|
||||
railway: { code: "16", name: "Bahn", color: "#606060", lw: 0.18 },
|
||||
water: { code: "17", name: "Gewässer", color: "#5a90b0", lw: 0.13 },
|
||||
green: { code: "18", name: "Grünflächen", color: "#70b070", lw: 0.13 },
|
||||
water: { code: "17", name: "Gewässer", color: "#909090", lw: 0.13 },
|
||||
green: { code: "18", name: "Grünflächen", color: "#a0a0a0", lw: 0.13 },
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
+18
-17
@@ -363,10 +363,11 @@ export const sampleProject: Project = {
|
||||
},
|
||||
{ id: "detail-1", name: "Detail 1", kind: "drawing", visible: true, locked: false },
|
||||
],
|
||||
// Grafik-Kategorie-Baum (DOSSIER-Codes 1:1).
|
||||
// Grafik-Kategorie-Baum (DOSSIER-Codes 1:1). [140] Standard = Tusche: Bauteile schwarz, Kontext grau;
|
||||
// Farbe nur, wo der Nutzer sie setzt.
|
||||
layers: [
|
||||
{ code: "00", name: "Raster", color: "#484850", lw: 0.13, visible: true, locked: false },
|
||||
{ code: "01", name: "Vermessung", color: "#707078", lw: 0.18, visible: true, locked: false },
|
||||
{ code: "00", name: "Raster", color: "#1a1a1a", lw: 0.13, visible: true, locked: false },
|
||||
{ code: "01", name: "Vermessung", color: "#4a4a4a", lw: 0.18, visible: true, locked: false },
|
||||
// "05 Kontext" bündelt Bestand/Umgebung (manuell gezeichnet ODER importiert,
|
||||
// s. `contextCategories.ts::CONTEXT_PARENT_CATEGORY`) als Kinder statt als
|
||||
// gleichrangige Top-Level-Einträge (Nutzer-Wunsch 2026-08-31).
|
||||
@@ -379,10 +380,10 @@ export const sampleProject: Project = {
|
||||
locked: false,
|
||||
children: [
|
||||
{ code: "10", name: "Situation", color: "#909090", lw: 0.18, visible: true, locked: false },
|
||||
{ code: "11", name: "Strasse", color: "#a89070", lw: 0.18, visible: true, locked: false },
|
||||
{ code: "11", name: "Strasse", color: "#808080", lw: 0.18, visible: true, locked: false },
|
||||
{ code: "12", name: "Gebäude", color: "#888888", lw: 0.18, visible: true, locked: false },
|
||||
{ code: "13", name: "Bäume", color: "#50a050", lw: 0.13, visible: true, locked: false },
|
||||
{ code: "14", name: "Höhenlinien", color: "#909050", lw: 0.18, visible: true, locked: false },
|
||||
{ code: "13", name: "Bäume", color: "#808080", lw: 0.13, visible: true, locked: false },
|
||||
{ code: "14", name: "Höhenlinien", color: "#808080", lw: 0.18, visible: true, locked: false },
|
||||
],
|
||||
},
|
||||
{
|
||||
@@ -395,19 +396,19 @@ export const sampleProject: Project = {
|
||||
visible: true,
|
||||
locked: false,
|
||||
children: [
|
||||
{ code: "21", name: "Türen/Fenster", color: "#5080c8", lw: 0.18, visible: true, locked: false },
|
||||
{ code: "22", name: "Möbel", color: "#909090", lw: 0.13, visible: true, locked: false },
|
||||
{ code: "25", name: "Stützen", color: "#c87050", lw: 0.25, visible: true, locked: false },
|
||||
{ code: "21", name: "Türen/Fenster", color: "#1a1a1a", lw: 0.18, visible: true, locked: false },
|
||||
{ code: "22", name: "Möbel", color: "#4a4a4a", lw: 0.13, visible: true, locked: false },
|
||||
{ code: "25", name: "Stützen", color: "#0a0a0a", lw: 0.25, visible: true, locked: false },
|
||||
],
|
||||
},
|
||||
{ code: "30", name: "Decken", color: "#605850", lw: 0.18, visible: true, locked: false },
|
||||
{ code: "31", name: "Dächer", color: "#7a4a3a", lw: 0.18, visible: true, locked: false },
|
||||
{ code: "40", name: "Treppen", color: "#4a6a58", lw: 0.18, visible: true, locked: false },
|
||||
{ code: "35", name: "Träger", color: "#a87858", lw: 0.25, visible: true, locked: false },
|
||||
{ code: "50", name: "Text", color: "#d0d0d0", lw: 0.13, visible: true, locked: false },
|
||||
{ code: "60", name: "Räume", color: "#5a7a9a", lw: 0.13, visible: true, locked: false },
|
||||
{ code: "90", name: "Referenzen", color: "#585860", lw: 0.13, visible: true, locked: false },
|
||||
{ code: "99", name: "Konstruktion", color: "#404048", lw: 0.13, visible: true, locked: false },
|
||||
{ code: "30", name: "Decken", color: "#1a1a1a", lw: 0.18, visible: true, locked: false },
|
||||
{ code: "31", name: "Dächer", color: "#1a1a1a", lw: 0.18, visible: true, locked: false },
|
||||
{ code: "40", name: "Treppen", color: "#1a1a1a", lw: 0.18, visible: true, locked: false },
|
||||
{ code: "35", name: "Träger", color: "#0a0a0a", lw: 0.25, visible: true, locked: false },
|
||||
{ code: "50", name: "Text", color: "#1a1a1a", lw: 0.13, visible: true, locked: false },
|
||||
{ code: "60", name: "Räume", color: "#4a4a4a", lw: 0.13, visible: true, locked: false },
|
||||
{ code: "90", name: "Referenzen", color: "#1a1a1a", lw: 0.13, visible: true, locked: false },
|
||||
{ code: "99", name: "Konstruktion", color: "#404040", lw: 0.13, visible: true, locked: false },
|
||||
],
|
||||
// [140] Strichstärken folgen dem Massstab (neue Projekte; bestehende behalten ihre Einstellung).
|
||||
scaleLineWeights: true,
|
||||
|
||||
@@ -119,8 +119,8 @@ const LAYERS: LayerCategory[] = [
|
||||
? {
|
||||
...l,
|
||||
children: [
|
||||
{ code: "02", name: "Gelände", color: "#8a9478", lw: 0.13, visible: true, locked: false },
|
||||
{ code: "07", name: "Baugrube", color: "#a07850", lw: 0.18, visible: true, locked: false },
|
||||
{ code: "02", name: "Gelände", color: "#808080", lw: 0.13, visible: true, locked: false },
|
||||
{ code: "07", name: "Baugrube", color: "#4a4a4a", lw: 0.18, visible: true, locked: false },
|
||||
...(l.children ?? []),
|
||||
],
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ import type { Project } from "../model/types";
|
||||
|
||||
const ALL = new Set(flattenCategories(sampleProject.layers).map((c) => c.code));
|
||||
/** Füllfarbe der Schattenflächen (`core/src/plan/extras.rs::SUN_SHADOW_FILL`). */
|
||||
const SUN_SHADOW_FILL = "#3a4a66";
|
||||
const SUN_SHADOW_FILL = "#3c3c3c";
|
||||
|
||||
const withStudy = (when: string, show = true): Project => ({ ...sampleProject, sunStudy: { when, show } });
|
||||
const shadows = (p: Project, floorId: string) =>
|
||||
|
||||
@@ -359,7 +359,7 @@ describe("toElevation — Öffnungen: Verdeckung + Reveal-Schatten", () => {
|
||||
const plan = generateElevationPlan(p, p.drawingLevels[1])!;
|
||||
// Glasflächen = weiss/blau gefüllte Polygone mit Kontur, keine Öffnung/Rahmen.
|
||||
return plan.primitives.filter(
|
||||
(pr) => pr.kind === "polygon" && pr.fill === "#9fc2d9",
|
||||
(pr) => pr.kind === "polygon" && pr.fill === "#d3d8dd",
|
||||
).length;
|
||||
};
|
||||
expect(glassCount(1)).toBe(1); // fest, 1 Feld
|
||||
@@ -405,7 +405,7 @@ describe("toElevation — Öffnungen: Verdeckung + Reveal-Schatten", () => {
|
||||
const plan = generateElevationPlan(p, p.drawingLevels[1])!;
|
||||
// Glasflächen = weiss/blau gefüllte Polygone mit Kontur, keine Öffnung/Rahmen.
|
||||
return plan.primitives.filter(
|
||||
(pr) => pr.kind === "polygon" && pr.fill === "#9fc2d9",
|
||||
(pr) => pr.kind === "polygon" && pr.fill === "#d3d8dd",
|
||||
).length;
|
||||
};
|
||||
expect(glassCount(1)).toBe(1); // fest, 1 Feld
|
||||
@@ -504,7 +504,7 @@ describe("Dächer auf L-Grundriss in der Ansicht", () => {
|
||||
});
|
||||
|
||||
describe("toElevation — Tür-Teilverglasung (glazingRatio)", () => {
|
||||
const GLASS_FILL_COLOR = "#9fc2d9";
|
||||
const GLASS_FILL_COLOR = "#d3d8dd";
|
||||
const DOOR_LEAF_FILL_COLOR = "#ede6d9";
|
||||
|
||||
function doorProject(dt: {
|
||||
|
||||
Reference in new issue
Block a user