Refactor editor selection and viewer integration
This commit is contained in:
@@ -35,6 +35,8 @@ export const DoorNode = BaseNode.extend({
|
||||
// Opening mode
|
||||
openingKind: z.enum(['door', 'opening']).default('door'),
|
||||
openingShape: z.enum(['rectangle', 'rounded', 'arch']).default('rectangle'),
|
||||
openingRadiusMode: z.enum(['all', 'individual']).default('all'),
|
||||
openingTopRadii: z.tuple([z.number(), z.number()]).default([0.15, 0.15]),
|
||||
cornerRadius: z.number().min(0).default(0.15),
|
||||
archHeight: z.number().min(0).default(0.45),
|
||||
openingRevealRadius: z.number().min(0).default(0.025),
|
||||
|
||||
@@ -19,6 +19,17 @@ export const WindowNode = BaseNode.extend({
|
||||
width: z.number().default(1.5),
|
||||
height: z.number().default(1.5),
|
||||
|
||||
// Opening mode - when set to "opening", the window is only a shaped cutout
|
||||
openingKind: z.enum(['window', 'opening']).default('window'),
|
||||
openingShape: z.enum(['rectangle', 'rounded', 'arch']).default('rectangle'),
|
||||
openingRadiusMode: z.enum(['all', 'individual']).default('all'),
|
||||
openingCornerRadii: z
|
||||
.tuple([z.number(), z.number(), z.number(), z.number()])
|
||||
.default([0.15, 0.15, 0.15, 0.15]),
|
||||
cornerRadius: z.number().default(0.15),
|
||||
archHeight: z.number().default(0.35),
|
||||
openingRevealRadius: z.number().default(0.025),
|
||||
|
||||
// Frame
|
||||
frameThickness: z.number().default(0.05),
|
||||
frameDepth: z.number().default(0.07),
|
||||
|
||||
Reference in New Issue
Block a user