[182] [149] Grundriss-Knopf nur im Grundriss-Reiter hervorgehoben, toter Auto-Schnitt im 3D entfernt; TODO [149] auf Stand (Auswahlrechteck/Beschriftung waren schon gebaut)
This commit is contained in:
7 files changed
+25
-16
No files matched your search
@@ -113,6 +113,11 @@ export function levelTabKind(kind: DrawingLevel["kind"]): Exclude<TabKind, "3d">
|
||||
return kind === "floor" ? "plan" : kind === "section" ? "section" : kind === "elevation" ? "elevation" : "drawing";
|
||||
}
|
||||
|
||||
/** Ist der Reiter ein Grundriss-Reiter (Hervorhebung des Grundriss-Knopfs)? Schnitt/Ansicht/Zeichnung/3D: nein. */
|
||||
export function isPlanKindActive(viewType: ViewSnapshotState["viewType"], levelKind: DrawingLevel["kind"]): boolean {
|
||||
return viewType !== "perspektive" && levelTabKind(levelKind) === "plan";
|
||||
}
|
||||
|
||||
/** Art eines Reiters aus seinem Darstellungszustand (`null`: unbekannt, z. B. ohne gemerkten Zustand). */
|
||||
export function tabKindOf(st: KindState | undefined, levels: readonly LevelLite[]): TabKind | null {
|
||||
if (!st) return null;
|
||||
|
||||
Reference in new issue
Block a user