Add whitebox selection mode and update brushes.ts
This commit is contained in:
14
src/core/whitebox-selection-mode.ts
Normal file
14
src/core/whitebox-selection-mode.ts
Normal 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];
|
||||
}
|
||||
Reference in New Issue
Block a user