26 lines
956 B
TypeScript
26 lines
956 B
TypeScript
import type { ParametricDescriptor } from '@pascal-app/core'
|
|
import type { WindowNode } from './schema'
|
|
|
|
/**
|
|
* Minimal inspector descriptor for window. Like door, the legacy
|
|
* `<WindowPanel>` has 15+ SliderControls covering sashes, dividers,
|
|
* sill, frame, opening shape — too elaborate for the auto-inspector
|
|
* at Stage A. Legacy panel keeps rendering via panel-manager's
|
|
* `case 'window':`.
|
|
*/
|
|
export const windowParametrics: ParametricDescriptor<WindowNode> = {
|
|
groups: [
|
|
{
|
|
label: 'Dimensions',
|
|
fields: [
|
|
{ key: 'width', kind: 'number', unit: 'm', min: 0.3, max: 4, step: 0.05 },
|
|
{ key: 'height', kind: 'number', unit: 'm', min: 0.3, max: 4, step: 0.05 },
|
|
],
|
|
},
|
|
],
|
|
// Stage E — kind-owned panel mounted by <ParametricInspector>. Window
|
|
// has 15+ controls (sashes, dividers, sill, frame, opening shape)
|
|
// that don't fit the generic auto-inspector.
|
|
customPanel: () => import('./panel'),
|
|
}
|