25 lines
965 B
TypeScript
25 lines
965 B
TypeScript
import type { ParametricDescriptor } from '@pascal-app/core'
|
|
import type { ColumnNode } from './schema'
|
|
|
|
/**
|
|
* Stage A inspector — minimal. Column has 60+ schema fields (cross-
|
|
* section, shaft profile, capital style, base style, carvings, ring
|
|
* placement, etc.); the legacy `<ColumnPanel>` renders these via
|
|
* panel-manager's hardcoded switch. The descriptor below registers
|
|
* the kind as "has parametric data" without trying to express the
|
|
* full legacy panel — Stage E will replace it via `customPanel`.
|
|
*/
|
|
export const columnParametrics: ParametricDescriptor<ColumnNode> = {
|
|
groups: [
|
|
{
|
|
label: 'Dimensions',
|
|
fields: [
|
|
{ key: 'height', kind: 'number', unit: 'm', min: 0.5, max: 6, step: 0.05 },
|
|
{ key: 'width', kind: 'number', unit: 'm', min: 0.1, max: 2, step: 0.01 },
|
|
{ key: 'depth', kind: 'number', unit: 'm', min: 0.1, max: 2, step: 0.01 },
|
|
],
|
|
},
|
|
],
|
|
customPanel: () => import('./panel'),
|
|
}
|