Add whitebox selection mode and update brushes.ts

This commit is contained in:
2026-04-04 20:06:42 +02:00
parent 797ef18c6a
commit 2c39553fdd
2 changed files with 83 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
export const WHITEBOX_SELECTION_MODES = ["object", "face", "edge", "vertex"] as const;
export type WhiteboxSelectionMode = (typeof WHITEBOX_SELECTION_MODES)[number];
export const WHITEBOX_SELECTION_MODE_LABELS: Record<WhiteboxSelectionMode, string> = {
object: "Object",
face: "Face",
edge: "Edge",
vertex: "Vertex"
};
export function getWhiteboxSelectionModeLabel(mode: WhiteboxSelectionMode): string {
return WHITEBOX_SELECTION_MODE_LABELS[mode];
}