Ressourcen: Dachtypen-Tab (Schicht-Editor wie Wand/Decke)
Dachaufbauten sind jetzt im Ressourcen-Manager anleg-/editier-/löschbar
(RoofStylesTab auf dem LayeredStylesTab-Rumpf, Ressource roofTypes):
Schichtliste mit Bauteil/Dicke/Fugen-Linienstil, Löschen geschützt solange
ein Dach den Typ referenziert. Host-/App-Handler (patch/add/deleteRoofType)
+ i18n de/en. Vervollständigt die Dach-Schichtlogik (e28b7fd) um die UI.
This commit is contained in:
@@ -38,6 +38,9 @@ export function ResourcesPanel() {
|
||||
onAddWallType: host.onAddWallType,
|
||||
onDeleteWallType: host.onDeleteWallType,
|
||||
onPatchCeilingType: host.onPatchCeilingType,
|
||||
onPatchRoofType: host.onPatchRoofType,
|
||||
onAddRoofType: host.onAddRoofType,
|
||||
onDeleteRoofType: host.onDeleteRoofType,
|
||||
onAddCeilingType: host.onAddCeilingType,
|
||||
onDeleteCeilingType: host.onDeleteCeilingType,
|
||||
onImportLineStyles: host.onImportLineStyles,
|
||||
|
||||
@@ -17,6 +17,7 @@ import type { DisplayMode } from "./types";
|
||||
import type {
|
||||
AttributeSource,
|
||||
CeilingType,
|
||||
RoofType,
|
||||
Component,
|
||||
ContextObject,
|
||||
DrawingLevel,
|
||||
@@ -132,6 +133,10 @@ export interface PanelHostValue {
|
||||
onPatchCeilingType: (id: string, patch: Partial<CeilingType>) => void;
|
||||
onAddCeilingType: () => void;
|
||||
onDeleteCeilingType: (id: string) => void;
|
||||
/** Dachtypen (Dachaufbauten): immutable Änderung/Anlage/Löschung. */
|
||||
onPatchRoofType: (id: string, patch: Partial<RoofType>) => void;
|
||||
onAddRoofType: () => void;
|
||||
onDeleteRoofType: (id: string) => void;
|
||||
/** Import fertiger (id-loser) Linienstile/Schraffuren (.lin/.pat). */
|
||||
onImportLineStyles: (styles: Omit<LineStyle, "id">[]) => void;
|
||||
onImportHatches: (hatches: Omit<HatchStyle, "id">[]) => void;
|
||||
|
||||
Reference in New Issue
Block a user