Add column hit testing and align column defaults

This commit is contained in:
sudhir
2026-05-08 14:31:58 +05:30
parent 53393b7def
commit 0514363136
13 changed files with 532 additions and 83 deletions
+16 -16
View File
@@ -88,7 +88,7 @@ export const ColumnNode = BaseNode.extend({
rotation: z.number().default(0),
style: ColumnStyle.default('plain'),
crossSection: ColumnCrossSection.default('round'),
height: z.number().positive().default(2.8),
height: z.number().positive().default(2.5),
radius: z.number().positive().default(0.22),
width: z.number().positive().default(0.44),
depth: z.number().positive().default(0.44),
@@ -179,7 +179,7 @@ export const COLUMN_PRESETS = {
label: 'Straight Round',
style: 'plain',
crossSection: 'round',
height: 2.9,
height: 2.5,
radius: 0.22,
width: 0.44,
depth: 0.44,
@@ -229,7 +229,7 @@ export const COLUMN_PRESETS = {
label: 'Square Block',
style: 'faceted',
crossSection: 'square',
height: 2.9,
height: 2.5,
radius: 0.24,
width: 0.48,
depth: 0.48,
@@ -279,7 +279,7 @@ export const COLUMN_PRESETS = {
label: 'Tapered Round',
style: 'plain',
crossSection: 'round',
height: 3,
height: 2.5,
radius: 0.23,
width: 0.46,
depth: 0.46,
@@ -329,7 +329,7 @@ export const COLUMN_PRESETS = {
label: 'Soft Bulged',
style: 'plain',
crossSection: 'round',
height: 2.9,
height: 2.5,
radius: 0.22,
width: 0.44,
depth: 0.44,
@@ -379,7 +379,7 @@ export const COLUMN_PRESETS = {
label: 'Hourglass',
style: 'plain',
crossSection: 'round',
height: 2.9,
height: 2.5,
radius: 0.22,
width: 0.44,
depth: 0.44,
@@ -430,7 +430,7 @@ export const COLUMN_PRESETS = {
supportStyle: 'a-frame',
style: 'faceted',
crossSection: 'rectangular',
height: 2.6,
height: 2.5,
radius: 0.08,
width: 0.16,
depth: 0.16,
@@ -486,7 +486,7 @@ export const COLUMN_PRESETS = {
supportStyle: 'y-frame',
style: 'faceted',
crossSection: 'rectangular',
height: 2.7,
height: 2.5,
radius: 0.08,
width: 0.16,
depth: 0.16,
@@ -542,7 +542,7 @@ export const COLUMN_PRESETS = {
supportStyle: 'v-frame',
style: 'faceted',
crossSection: 'rectangular',
height: 2.6,
height: 2.5,
radius: 0.08,
width: 0.16,
depth: 0.16,
@@ -598,7 +598,7 @@ export const COLUMN_PRESETS = {
supportStyle: 'x-brace',
style: 'faceted',
crossSection: 'rectangular',
height: 2.6,
height: 2.5,
radius: 0.07,
width: 0.14,
depth: 0.14,
@@ -654,7 +654,7 @@ export const COLUMN_PRESETS = {
supportStyle: 'k-brace',
style: 'faceted',
crossSection: 'rectangular',
height: 2.6,
height: 2.5,
radius: 0.07,
width: 0.14,
depth: 0.14,
@@ -710,7 +710,7 @@ export const COLUMN_PRESETS = {
supportStyle: 'single-strut',
style: 'faceted',
crossSection: 'rectangular',
height: 2.6,
height: 2.5,
radius: 0.07,
width: 0.14,
depth: 0.14,
@@ -766,7 +766,7 @@ export const COLUMN_PRESETS = {
supportStyle: 'tripod',
style: 'faceted',
crossSection: 'rectangular',
height: 2.6,
height: 2.5,
radius: 0.07,
width: 0.14,
depth: 0.14,
@@ -822,7 +822,7 @@ export const COLUMN_PRESETS = {
supportStyle: 'trestle',
style: 'faceted',
crossSection: 'rectangular',
height: 2.6,
height: 2.5,
radius: 0.07,
width: 0.14,
depth: 0.14,
@@ -878,7 +878,7 @@ export const COLUMN_PRESETS = {
supportStyle: 'portal-frame',
style: 'faceted',
crossSection: 'rectangular',
height: 2.6,
height: 2.5,
radius: 0.08,
width: 0.16,
depth: 0.16,
@@ -934,7 +934,7 @@ export const COLUMN_PRESETS = {
supportStyle: 'box-frame',
style: 'faceted',
crossSection: 'rectangular',
height: 2.6,
height: 2.5,
radius: 0.07,
width: 0.14,
depth: 0.14,