Adds two new MEP node families (HVAC ductwork, DWV plumbing) built on a shared port-connectivity model. Co-authored by @sudhir9297.
37 lines
759 B
TypeScript
37 lines
759 B
TypeScript
import type { ParametricDescriptor } from '@pascal-app/core'
|
|
import type { PipeSegmentNode } from './schema'
|
|
|
|
export const pipeSegmentParametrics: ParametricDescriptor<PipeSegmentNode> = {
|
|
groups: [
|
|
{
|
|
label: 'Drainage',
|
|
fields: [
|
|
{
|
|
key: 'system',
|
|
kind: 'enum',
|
|
options: ['waste', 'vent'],
|
|
display: 'segmented',
|
|
},
|
|
{
|
|
key: 'diameter',
|
|
kind: 'number',
|
|
unit: 'in',
|
|
min: 1.25,
|
|
max: 6,
|
|
step: 0.25,
|
|
},
|
|
],
|
|
},
|
|
{
|
|
label: 'Construction',
|
|
fields: [
|
|
{
|
|
key: 'pipeMaterial',
|
|
kind: 'enum',
|
|
options: ['pvc', 'abs', 'cast-iron'],
|
|
},
|
|
],
|
|
},
|
|
],
|
|
}
|