# Beam (https://docs.bear.build/docs/bear/blueprints/Beam) Import from `bear/blueprints/Beam`. ## Type Aliases [#type-aliases] ### BeamProps [#beamprops] ```ts type BeamProps = object & SpanPlacementProps; ``` Defined in: [bear/blueprints/Beam.tsx:25](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/Beam.tsx#L25) #### Type Declaration [#type-declaration] | Name | Type | Description | | ------ | ------ | ------ | | `name?` | `string` | Name for this beam in the tree. Defaults to "Beam". | | `plies?` | `number` | Number of plies in the built-up girder. Defaults to 2. | | `size?` | [`NominalLumberSize`](https://docs.bear.build/docs/bear/blueprints/materials/NominalLumber.md#nominallumbersize) | Nominal lumber size per ply. Defaults to "2x10". | ## Variables [#variables] ### Beam [#beam] ```ts const Beam: AssemblyFn & object; ``` Defined in: [bear/blueprints/Beam.tsx:139](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/Beam.tsx#L139) Beam — a built-up girder placed like a wall: an authored `path` constant-folds; `along`/`from`/`to` and dims solve the rest. The minimal span-shaped proof that solvable() generalizes beyond walls. #### Type Declaration [#type-declaration-1] | Name | Type | | ------ | ------ | | `refs?` | readonly `string`[] | # Building (https://docs.bear.build/docs/bear/blueprints/Building) Import from `bear/blueprints/Building`. ## Interfaces [#interfaces] ### BuildingProps [#buildingprops] Defined in: [bear/blueprints/Building.tsx:12](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/Building.tsx#L12) #### Extends [#extends] - [`AssemblyProps`](https://docs.bear.build/docs/bear/engine/Assembly.md#assemblyprops) #### Indexable [#indexable] ```ts [key: string]: unknown ``` #### Properties [#properties] | Property | Type | Description | Inherited from | | ------ | ------ | ------ | ------ | | `children?` | \| [`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement)\<`object`\> \| [`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement)\<`object`\>[] | - | - | | `context?` | [`ContextMap`](https://docs.bear.build/docs/bear/engine/types.md#contextmap) | - | [`AssemblyProps`](https://docs.bear.build/docs/bear/engine/Assembly.md#assemblyprops).[`context`](https://docs.bear.build/docs/bear/engine/Assembly.md#property-context) | | `footprint` | \[[`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement), [`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement)\] | Width (X) and depth (Y), centered at (0, 0). Grade is z = 0. | - | | `gridReferences?` | [`GridReferences`](https://docs.bear.build/docs/bear/measurements.md#gridreferences) | Named grid lines in the building's local frame, in project units. Defaults to Left/Right = -width/2, +width/2 and Front/Back = -depth/2, +depth/2. Explicit coordinates are used verbatim, including imported survey grids. Example: `{ x: { A: -3840, B: 3840 }, y: { "1": -3072, "2": 3072 } }`. Reference these as `"@A"` and `"@1"`; the defaults are `"@Left"`, `"@Right"`, `"@Front"`, and `"@Back"`. | - | | `height` | [`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement) | Overall building metadata height above grade. Does not set wall heights or roof elevation; use Level wallHeight or explicit wall heights and roof placement. | - | | `hosts?` | [`HostedChildren`](https://docs.bear.build/docs/bear/engine/hosting.md#hostedchildren) | Typed declarations from descendants, used to build additional children. | [`AssemblyProps`](https://docs.bear.build/docs/bear/engine/Assembly.md#assemblyprops).[`hosts`](https://docs.bear.build/docs/bear/engine/Assembly.md#property-hosts) | | `label?` | `string` | - | [`AssemblyProps`](https://docs.bear.build/docs/bear/engine/Assembly.md#assemblyprops).[`label`](https://docs.bear.build/docs/bear/engine/Assembly.md#property-label) | | `name?` | `string` | - | [`AssemblyProps`](https://docs.bear.build/docs/bear/engine/Assembly.md#assemblyprops).[`name`](https://docs.bear.build/docs/bear/engine/Assembly.md#property-name) | | `refs?` | `Readonly`\<`Record`\<`string`, [`Surface`](https://docs.bear.build/docs/bear/geometry/shapes.md#surface)\>\> | Named reference planes this assembly publishes, in its local frame. | [`AssemblyProps`](https://docs.bear.build/docs/bear/engine/Assembly.md#assemblyprops).[`refs`](https://docs.bear.build/docs/bear/engine/Assembly.md#property-refs) | | `transform?` | [`TransformMatrix`](https://docs.bear.build/docs/bear/geometry/transform.md#transformmatrix) | This assembly's pose in its parent frame. | [`AssemblyProps`](https://docs.bear.build/docs/bear/engine/Assembly.md#assemblyprops).[`transform`](https://docs.bear.build/docs/bear/engine/Assembly.md#property-transform) | ## Functions [#functions] ### Building() [#building] ```ts function Building(__namedParameters): BearElement; ``` Defined in: [bear/blueprints/Building.tsx:29](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/Building.tsx#L29) #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `__namedParameters` | [`BuildingProps`](https://docs.bear.build/docs/bear/blueprints/Building.md#buildingprops) | #### Returns [#returns] [`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement) # Custom (https://docs.bear.build/docs/bear/blueprints/Custom) Import from `bear/blueprints/Custom`. ## Interfaces [#interfaces] ### CustomProps [#customprops] Defined in: [bear/blueprints/Custom.ts:7](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/Custom.ts#L7) #### Properties [#properties] | Property | Type | Description | | ------ | ------ | ------ | | `box` | `object` | Bounding box dimensions in project units. | | `box.depth` | `number` | - | | `box.height` | `number` | - | | `box.width` | `number` | - | | `citations?` | `string` | Optional markdown citations linking to spec references. | | `label?` | `string` | - | ## Variables [#variables] ### Custom [#custom] ```ts const Custom: PartDef; ``` Defined in: [bear/blueprints/Custom.ts:32](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/Custom.ts#L32) Custom: escape hatch for non-standard work. Produces a simple bounding box for visualization. The `citations` prop carries markdown spec references so agents/humans can link to the relevant documentation for this custom scope. # Envelope (https://docs.bear.build/docs/bear/blueprints/Envelope) Import from `bear/blueprints/Envelope`. ## Interfaces [#interfaces] ### EnvelopeProps [#envelopeprops] Defined in: [bear/blueprints/Envelope.tsx:17](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/Envelope.tsx#L17) #### Properties [#properties] | Property | Type | Description | | ------ | ------ | ------ | | `layout?` | [`PanelStrategy`](https://docs.bear.build/docs/bear/engine/panelize.md#panelstrategy) | Panel layout strategy. Defaults to "edgeAligned". | | `name?` | `string` | Display name for this assembly in the tree. Defaults to "Envelope". | | `panelOptions?` | [`PanelizeOptions`](https://docs.bear.build/docs/bear/engine/panelize.md#panelizeoptions) | Panel dimension overrides. | | `sheet` | [`Factory`](https://docs.bear.build/docs/bear/engine/factory.md#factory) | Factory producing sheet-good elements for the exterior skin. | ## Functions [#functions] ### Envelope() [#envelope] ```ts function Envelope(__namedParameters): BearElement; ``` Defined in: [bear/blueprints/Envelope.tsx:45](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/Envelope.tsx#L45) Envelope — building-level exterior sheathing. Discovers all exterior walls (those with `exterior` prop) already collected under its parent, groups their coplanar faces, and creates unified sheathing panels spanning multiple levels. Must be a child of Building, placed AFTER all Level elements: the walls and levels are then collected, and their poses and faces are props on their nodes. Wall faces are brought into the shared parent's frame (the Building's), which is the Envelope's own frame since it carries no transform; nothing above the Building is consulted. The walls' openings cut the skins: every rough-opening Void under an exterior wall is declared as a cutter of every skin, by its full name, and the hole arrives on the geometry once the model has converged. #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `__namedParameters` | [`EnvelopeProps`](https://docs.bear.build/docs/bear/blueprints/Envelope.md#envelopeprops) | #### Returns [#returns] [`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement) # ExteriorWall (https://docs.bear.build/docs/bear/blueprints/ExteriorWall) Import from `bear/blueprints/ExteriorWall`. ## Type Aliases [#type-aliases] ### ExteriorWallProps [#exteriorwallprops] ```ts type ExteriorWallProps = object & Pick & SpanPlacementProps; ``` Defined in: [bear/blueprints/ExteriorWall.tsx:12](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/ExteriorWall.tsx#L12) #### Type Declaration [#type-declaration] | Name | Type | Description | | ------ | ------ | ------ | | `children?` | \| [`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement) \| [`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement)[] | - | | `drywall?` | [`Factory`](https://docs.bear.build/docs/bear/engine/factory.md#factory) | Factory producing interior drywall (gypsum board) finish. Stacks on vapor barrier if present. | | `drywallLayout?` | [`PanelStrategy`](https://docs.bear.build/docs/bear/engine/panelize.md#panelstrategy) | Panel layout strategy for interior drywall. Defaults to "edgeAligned". | | `height?` | [`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement) | Wall height at the start of the path. Falls back to the `wallHeight` published by an ancestor Level. If neither is set, defaults to 0 (2D wall line, no framing). | | `interiorSheathing?` | [`Factory`](https://docs.bear.build/docs/bear/engine/factory.md#factory) | Factory producing interior sheathing elements. Omit to skip. | | `interiorSheathingLayout?` | [`PanelStrategy`](https://docs.bear.build/docs/bear/engine/panelize.md#panelstrategy) | Panel layout strategy for interior sheathing. Defaults to "edgeAligned". | | `isFlipped?` | `boolean` | Swaps exterior and interior faces without changing wall direction. | | `locationLine?` | [`LocationLine`](https://docs.bear.build/docs/bear/blueprints/Wall.md#locationline) | How to align the wall on the path. See [LocationLine](https://docs.bear.build/docs/bear/blueprints/Wall.md#locationline). Defaults to "coreExt". | | `name?` | `string` | Name for this wall in the tree. Defaults to "W". | | `onCenter?` | [`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement) | Stud spacing. Defaults to 16in. | | `openings?` | [`OpeningSpec`](https://docs.bear.build/docs/bear/blueprints/Opening.md#openingspec)[] | Openings (doors, windows) to frame into this wall. | | `sheathing?` | [`Factory`](https://docs.bear.build/docs/bear/engine/factory.md#factory) | Factory producing exterior sheathing elements. Omit to skip sheathing. | | `sheathingLayout?` | [`PanelStrategy`](https://docs.bear.build/docs/bear/engine/panelize.md#panelstrategy) | Panel layout strategy for exterior sheathing. Defaults to "edgeAligned". | | `sheathingPanelOptions?` | [`PanelizeOptions`](https://docs.bear.build/docs/bear/engine/panelize.md#panelizeoptions) | Panel dimension overrides for exterior sheathing. | | `siding?` | [`Factory`](https://docs.bear.build/docs/bear/engine/factory.md#factory) | Factory producing exterior siding/cladding. Stacks on the outermost exterior layer. | | `sidingLayout?` | [`PanelStrategy`](https://docs.bear.build/docs/bear/engine/panelize.md#panelstrategy) | Panel layout strategy for siding. Defaults to "edgeAligned". | | `sidingPanelOptions?` | [`PanelizeOptions`](https://docs.bear.build/docs/bear/engine/panelize.md#panelizeoptions) | Panel dimension overrides for siding (e.g. overlap, panelWidth for shingles). | | `studSize?` | [`WallStudSize`](https://docs.bear.build/docs/bear/blueprints/framing.md#wallstudsize) | Nominal lumber size for studs and plates. Defaults to "2x4". | | `topPitch?` | `string` | Pitch of the top plate (e.g. "3:12"). Defaults to "0:12" (flat). `height` is the minimum height when non-zero. | | `transform?` | [`TransformMatrix`](https://docs.bear.build/docs/bear/geometry/transform.md#transformmatrix) | Optional transform. Composed with auto-computed position. | | `vaporBarrier?` | [`Factory`](https://docs.bear.build/docs/bear/engine/factory.md#factory) | Factory producing a vapor barrier layer on the interior side, between sheathing/framing and drywall. | | `vaporBarrierLayout?` | [`PanelStrategy`](https://docs.bear.build/docs/bear/engine/panelize.md#panelstrategy) | Panel layout strategy for vapor barrier. Defaults to "edgeAligned". | ## Functions [#functions] ### ExteriorWall() [#exteriorwall] ```ts function ExteriorWall(__namedParameters): BearElement; ``` Defined in: [bear/blueprints/ExteriorWall.tsx:73](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/ExteriorWall.tsx#L73) ExteriorWall — an exterior wall that participates in the building envelope. Defaults to `locationLine="coreExt"` so the exterior core face sits on the path line, with sheathing and cladding stacking outward. Interior drywall is applied when `drywall` is specified, but exterior drywall is not automatically added (the exterior side is expected to receive envelope-level sheathing or cladding instead). #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `__namedParameters` | [`ExteriorWallProps`](https://docs.bear.build/docs/bear/blueprints/ExteriorWall.md#exteriorwallprops) | #### Returns [#returns] [`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement) # Floor (https://docs.bear.build/docs/bear/blueprints/Floor) Import from `bear/blueprints/Floor`. ## Interfaces [#interfaces] ### FloorProps [#floorprops] Defined in: [bear/blueprints/Floor.tsx:37](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/Floor.tsx#L37) #### Properties [#properties] | Property | Type | Description | | ------ | ------ | ------ | | `children?` | \| [`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement)\<`object`\> \| [`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement)\<`object`\>[] | - | | `elevation?` | [`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement) | Elevation of the floor top surface, local to the parent frame (usually a Level). | | `footprint?` | [`Point`](https://docs.bear.build/docs/bear/measurements.md#point)[] | Polygon footprint in the parent frame. Supports @-references. Rotates about its bounding-box center. | | `joistFactory?` | [`Factory`](https://docs.bear.build/docs/bear/engine/factory.md#factory) | Factory producing joist elements. Defaults to I-Joists. | | `length?` | [`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement) | Floor span length (X axis). With width, defines a rectangle centered at (0, 0). | | `name?` | `string` | Name for this floor in the tree. Defaults to "F". | | `onCenter?` | [`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement) | Joist spacing. Defaults to 16" OC. | | `rimboardFactory?` | [`Factory`](https://docs.bear.build/docs/bear/engine/factory.md#factory) | Factory producing rimboard elements. Defaults to LSL. | | `sheathing?` | [`Factory`](https://docs.bear.build/docs/bear/engine/factory.md#factory) \| `null` | Factory producing subfloor sheathing elements. Defaults to 3/4" plywood. Pass null to skip. | | `sheathingLayout?` | [`PanelStrategy`](https://docs.bear.build/docs/bear/engine/panelize.md#panelstrategy) | Panel layout strategy for sheathing. Defaults to "staggered". | | `sheathingPanelOptions?` | [`PanelizeOptions`](https://docs.bear.build/docs/bear/engine/panelize.md#panelizeoptions) | Panel dimension overrides for sheathing. | | `transform?` | [`TransformMatrix`](https://docs.bear.build/docs/bear/geometry/transform.md#transformmatrix) | Optional transform. Composed with auto-computed position. | | `width?` | [`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement) | Floor width (Y axis). Convenience for rectangular floors. | ## Functions [#functions] ### Floor() [#floor] ```ts function Floor(__namedParameters): BearElement; ``` Defined in: [bear/blueprints/Floor.tsx:77](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/Floor.tsx#L77) Floor — layered assembly for floor construction. Layers (bottom to top): 1. JoistFraming — structural joists + rimboards along the footprint 2. Subfloor sheathing — sheet good on the top face of the joists The floor is positioned so its top surface sits at the given elevation. Footprint coordinates are accepted in parent-local XY but normalized to local space internally (centered at origin). The assembly's transform positions the floor at the footprint center. #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `__namedParameters` | [`FloorProps`](https://docs.bear.build/docs/bear/blueprints/Floor.md#floorprops) | #### Returns [#returns] [`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement) # GableTrusses (https://docs.bear.build/docs/bear/blueprints/GableTrusses) Import from `bear/blueprints/GableTrusses`. ## Interfaces [#interfaces] ### GableTrussesProps [#gabletrussesprops] Defined in: [bear/blueprints/GableTrusses.tsx:12](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/GableTrusses.tsx#L12) Placement and layers shared by gable and scissor trusses. #### Extends [#extends] - [`TrussesProps`](https://docs.bear.build/docs/bear/blueprints/truss-layout.md#trussesprops) #### Properties [#properties] | Property | Type | Description | Inherited from | | ------ | ------ | ------ | ------ | | `children?` | \| [`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement)\<`object`\> \| [`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement)\<`object`\>[] | - | [`TrussesProps`](https://docs.bear.build/docs/bear/blueprints/truss-layout.md#trussesprops).[`children`](https://docs.bear.build/docs/bear/blueprints/truss-layout.md#property-children) | | `footprint` | \[[`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement), [`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement)\] | Width (X) and depth (Y), centered at (0, 0). Ridge at x = 0; eaves at z = 0. | [`TrussesProps`](https://docs.bear.build/docs/bear/blueprints/truss-layout.md#trussesprops).[`footprint`](https://docs.bear.build/docs/bear/blueprints/truss-layout.md#property-footprint) | | `name?` | `string` | Name for the truss assembly. Defaults to the blueprint name. | [`TrussesProps`](https://docs.bear.build/docs/bear/blueprints/truss-layout.md#trussesprops).[`name`](https://docs.bear.build/docs/bear/blueprints/truss-layout.md#property-name) | | `pitch` | `string` | Roof pitch in rise:run format (e.g. "6:12"). | [`TrussesProps`](https://docs.bear.build/docs/bear/blueprints/truss-layout.md#trussesprops).[`pitch`](https://docs.bear.build/docs/bear/blueprints/truss-layout.md#property-pitch) | | `sheathing?` | [`Factory`](https://docs.bear.build/docs/bear/engine/factory.md#factory) \| `null` | Factory producing roof sheathing elements. Pass null to skip. | [`TrussesProps`](https://docs.bear.build/docs/bear/blueprints/truss-layout.md#trussesprops).[`sheathing`](https://docs.bear.build/docs/bear/blueprints/truss-layout.md#property-sheathing) | | `sheathingLayout?` | [`PanelStrategy`](https://docs.bear.build/docs/bear/engine/panelize.md#panelstrategy) | Panel layout strategy for sheathing. Defaults to "staggered". | [`TrussesProps`](https://docs.bear.build/docs/bear/blueprints/truss-layout.md#trussesprops).[`sheathingLayout`](https://docs.bear.build/docs/bear/blueprints/truss-layout.md#property-sheathinglayout) | | `sheathingPanelOptions?` | [`PanelizeOptions`](https://docs.bear.build/docs/bear/engine/panelize.md#panelizeoptions) | Panel dimension overrides for sheathing. | [`TrussesProps`](https://docs.bear.build/docs/bear/blueprints/truss-layout.md#trussesprops).[`sheathingPanelOptions`](https://docs.bear.build/docs/bear/blueprints/truss-layout.md#property-sheathingpaneloptions) | | `spacing?` | [`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement) | Truss spacing. Defaults to 24" OC. | [`TrussesProps`](https://docs.bear.build/docs/bear/blueprints/truss-layout.md#trussesprops).[`spacing`](https://docs.bear.build/docs/bear/blueprints/truss-layout.md#property-spacing) | | `transform?` | [`TransformMatrix`](https://docs.bear.build/docs/bear/geometry/transform.md#transformmatrix) | Pose in the parent frame. The origin is the plan center at eave elevation. | [`TrussesProps`](https://docs.bear.build/docs/bear/blueprints/truss-layout.md#trussesprops).[`transform`](https://docs.bear.build/docs/bear/blueprints/truss-layout.md#property-transform) | ## Functions [#functions] ### GableTrusses() [#gabletrusses] ```ts function GableTrusses(__namedParameters): BearElement; ``` Defined in: [bear/blueprints/GableTrusses.tsx:25](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/GableTrusses.tsx#L25) GableTrusses — engineered gable truss assembly with Fink/W-pattern webs. Each truss has: - Two top chords (TC-L, TC-R): eave → ridge peak - One horizontal bottom chord (BC): left eave → right eave - One king post (KP): bottom chord center → ridge peak - Four web members (W-L1, W-L2, W-R1, W-R2): Fink diagonals Publishes left/right gable surfaces for sheathing. #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `__namedParameters` | [`GableTrussesProps`](https://docs.bear.build/docs/bear/blueprints/GableTrusses.md#gabletrussesprops) | #### Returns [#returns] [`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement) # InteriorWall (https://docs.bear.build/docs/bear/blueprints/InteriorWall) Import from `bear/blueprints/InteriorWall`. ## Type Aliases [#type-aliases] ### InteriorWallProps [#interiorwallprops] ```ts type InteriorWallProps = object & Pick & SpanPlacementProps; ``` Defined in: [bear/blueprints/InteriorWall.tsx:12](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/InteriorWall.tsx#L12) #### Type Declaration [#type-declaration] | Name | Type | Description | | ------ | ------ | ------ | | `children?` | \| [`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement) \| [`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement)[] | - | | `drywall?` | [`Factory`](https://docs.bear.build/docs/bear/engine/factory.md#factory) | Factory producing drywall (gypsum board) finish. Applied to both sides of the wall. | | `drywallLayout?` | [`PanelStrategy`](https://docs.bear.build/docs/bear/engine/panelize.md#panelstrategy) | Panel layout strategy for drywall. Defaults to "edgeAligned". | | `exteriorDrywall?` | [`Factory`](https://docs.bear.build/docs/bear/engine/factory.md#factory) | Factory producing explicit exterior-side drywall. Overrides the automatic both-sides behavior. | | `exteriorDrywallLayout?` | [`PanelStrategy`](https://docs.bear.build/docs/bear/engine/panelize.md#panelstrategy) | Panel layout strategy for exterior drywall. Defaults to "edgeAligned". | | `height?` | [`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement) | Wall height at the start of the path. Falls back to the `wallHeight` published by an ancestor Level. If neither is set, defaults to 0 (2D wall line, no framing). | | `interiorSheathing?` | [`Factory`](https://docs.bear.build/docs/bear/engine/factory.md#factory) | Factory producing interior sheathing elements. Omit to skip. | | `interiorSheathingLayout?` | [`PanelStrategy`](https://docs.bear.build/docs/bear/engine/panelize.md#panelstrategy) | Panel layout strategy for interior sheathing. Defaults to "edgeAligned". | | `isFlipped?` | `boolean` | Swaps which side is considered "exterior" for drywall purposes. | | `locationLine?` | [`LocationLine`](https://docs.bear.build/docs/bear/blueprints/Wall.md#locationline) | How to align the wall on the path. See [LocationLine](https://docs.bear.build/docs/bear/blueprints/Wall.md#locationline). Defaults to "centerline". | | `name?` | `string` | Name for this wall in the tree. Defaults to "W". | | `onCenter?` | [`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement) | Stud spacing. Defaults to 16in. | | `openings?` | [`OpeningSpec`](https://docs.bear.build/docs/bear/blueprints/Opening.md#openingspec)[] | Openings (doors, windows) to frame into this wall. | | `sheathing?` | [`Factory`](https://docs.bear.build/docs/bear/engine/factory.md#factory) | Factory producing exterior sheathing elements. Omit to skip sheathing. | | `sheathingLayout?` | [`PanelStrategy`](https://docs.bear.build/docs/bear/engine/panelize.md#panelstrategy) | Panel layout strategy for exterior sheathing. Defaults to "edgeAligned". | | `sheathingPanelOptions?` | [`PanelizeOptions`](https://docs.bear.build/docs/bear/engine/panelize.md#panelizeoptions) | Panel dimension overrides for exterior sheathing. | | `studSize?` | [`WallStudSize`](https://docs.bear.build/docs/bear/blueprints/framing.md#wallstudsize) | Nominal lumber size for studs and plates. Defaults to "2x4". | | `topPitch?` | `string` | Pitch of the top plate (e.g. "3:12"). Defaults to "0:12" (flat). `height` is the minimum height when non-zero. | | `transform?` | [`TransformMatrix`](https://docs.bear.build/docs/bear/geometry/transform.md#transformmatrix) | Optional transform. Composed with auto-computed position. | ## Functions [#functions] ### InteriorWall() [#interiorwall] ```ts function InteriorWall(props): BearElement; ``` Defined in: [bear/blueprints/InteriorWall.tsx:64](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/InteriorWall.tsx#L64) InteriorWall — a non-envelope wall between interior spaces. Defaults to `locationLine="centerline"` so the wall is centered on the path line. When `drywall` is specified, both sides receive drywall finish automatically. #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `props` | [`InteriorWallProps`](https://docs.bear.build/docs/bear/blueprints/InteriorWall.md#interiorwallprops) | #### Returns [#returns] [`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement) # JoistFraming (https://docs.bear.build/docs/bear/blueprints/JoistFraming) Import from `bear/blueprints/JoistFraming`. ## Type Aliases [#type-aliases] ### JoistFramingProps [#joistframingprops] ```ts type JoistFramingProps = JoistFramingBase & ( | { footprint: [number, number][]; from?: never; to?: never; transform?: TransformMatrix; } | { footprint?: never; from: JoistSupport; to: JoistSupport; transform?: never; }); ``` Defined in: [bear/blueprints/JoistFraming.tsx:72](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/JoistFraming.tsx#L72) *** ### JoistSupport [#joistsupport] ```ts type JoistSupport = | BearElement | Ref; ``` Defined in: [bear/blueprints/JoistFraming.tsx:51](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/JoistFraming.tsx#L51) A support a run of joists rests on: a ref names the plane the joist ends land on (`getRef(ledger, "back")`); an element means its `centerline` (a Beam or Wall). ## Variables [#variables] ### DEFAULT\_JOIST [#default_joist] ```ts const DEFAULT_JOIST: Factory, IJoistProps>; ``` Defined in: [bear/blueprints/JoistFraming.tsx:103](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/JoistFraming.tsx#L103) The stock JoistFraming uses when no factory is given. *** ### DEFAULT\_RIMBOARD [#default_rimboard] ```ts const DEFAULT_RIMBOARD: Factory, LSLProps>; ``` Defined in: [bear/blueprints/JoistFraming.tsx:104](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/JoistFraming.tsx#L104) ## Functions [#functions] ### JoistFraming() [#joistframing] ```ts function JoistFraming(props): BearElement; ``` Defined in: [bear/blueprints/JoistFraming.tsx:451](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/JoistFraming.tsx#L451) JoistFraming — floor/roof joist framing, two ways. A `footprint` gets rims on every edge and joists along x between them; `from`/`to` gets a run of joists between two supports. Either way the joists are solved members resting on their supports (or on their hangers' seats), and the assembly publishes `top`/`bottom` surfaces for downstream layers. Joists stand on edge (depth along Z) from z = 0, so the framing's top sits at the joists' depth: read off the stock before anything renders. #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `props` | [`JoistFramingProps`](https://docs.bear.build/docs/bear/blueprints/JoistFraming.md#joistframingprops) | #### Returns [#returns] [`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement) *** ### joistFramingDepth() [#joistframingdepth] ```ts function joistFramingDepth(joistFactory?): number; ``` Defined in: [bear/blueprints/JoistFraming.tsx:110](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/JoistFraming.tsx#L110) The framing's depth: the joists'. A pure function of the stock, so a floor can place itself before rendering the framing. #### Parameters [#parameters-1] | Parameter | Type | Default value | | ------ | ------ | ------ | | `joistFactory?` | [`Factory`](https://docs.bear.build/docs/bear/engine/factory.md#factory) | `DEFAULT_JOIST` | #### Returns [#returns-1] `number` # Level (https://docs.bear.build/docs/bear/blueprints/Level) Import from `bear/blueprints/Level`. ## Interfaces [#interfaces] ### LevelProps [#levelprops] Defined in: [bear/blueprints/Level.tsx:17](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/Level.tsx#L17) #### Properties [#properties] | Property | Type | Description | | ------ | ------ | ------ | | `children?` | \| [`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement)\<`object`\> \| [`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement)\<`object`\>[] | - | | `elevation` | [`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement) | Elevation of this level above the project origin. | | `name?` | `string` | Name for this level in the tree. Defaults to "L". | | `transform?` | [`TransformMatrix`](https://docs.bear.build/docs/bear/geometry/transform.md#transformmatrix) | Optional transform. Composed with the elevation Z-offset. | | `wallHeight?` | [`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement) | Default wall height for walls on this level. | ## Variables [#variables] ### WallHeight [#wallheight] ```ts const WallHeight: BearContext; ``` Defined in: [bear/blueprints/Level.tsx:15](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/Level.tsx#L15) Default wall height for walls on a level, in project units. ## Functions [#functions] ### Level() [#level] ```ts function Level(__namedParameters): BearElement; ``` Defined in: [bear/blueprints/Level.tsx:34](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/Level.tsx#L34) Level: transparent assembly that applies an elevation Z-offset and publishes `WallHeight` to context for descendant Walls, which read it with `getCollectionContext(WallHeight)` in their function body. #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `__namedParameters` | [`LevelProps`](https://docs.bear.build/docs/bear/blueprints/Level.md#levelprops) | #### Returns [#returns] [`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement) # Opening (https://docs.bear.build/docs/bear/blueprints/Opening) Import from `bear/blueprints/Opening`. ## Interfaces [#interfaces] ### OpeningProps [#openingprops] Defined in: [bear/blueprints/Opening.tsx:41](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/Opening.tsx#L41) #### Properties [#properties] | Property | Type | Description | | ------ | ------ | ------ | | `at?` | \[`number`, `number`\] | The opening's position in its wall's frame, in project units: the middle of the rough opening, on the wall's line. Usually completed by the engine from the solved anchor; `left` is the way to author it. | | `children?` | `unknown` | What fills the rough opening (a window, a door): it finds the opening with `host(Opening)`. | | `height` | [`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement) | Rough opening height. | | `left?` | [`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement) | Distance from the wall's start to the opening's left edge. Author it and you place the opening; omit it and dims do. | | `name` | `string` | The opening's mark (`D101`, `W101`): its name in the tree and the name dims reach it by (``). | | `sill?` | [`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement) | Sill height above the base plate. 0 (the default) frames a door. | | `width` | [`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement) | Rough opening width. | *** ### OpeningSpec [#openingspec] Defined in: [bear/blueprints/Opening.tsx:30](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/Opening.tsx#L30) Pure data describing an opening in a wall, for the `openings` prop. #### Properties [#properties-1] | Property | Type | Description | | ------ | ------ | ------ | | `bottom` | [`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement) | Elevation above base plate (0 = door, \>0 = window). | | `height` | [`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement) | Rough opening height. | | `left` | [`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement) | Distance from wall start to opening left edge. | | `width` | [`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement) | Rough opening width. | ## Functions [#functions] ### Opening() [#opening] ```ts function Opening(props): BearElement; ``` Defined in: [bear/blueprints/Opening.tsx:401](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/Opening.tsx#L401) Opening: a door or window in a wall, as a child element. ```tsx ``` An opening is a point on its wall, the way a Pier is a point on its deck: one anchor, pinned to the wall's line, free along it unless `left` is authored. It frames its own rough opening, cuts the wall's layers with a `Void`, and publishes the planes a drawing dimensions to. The wall's own studs stop at its `kingLeft` and `kingRight` planes. #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `props` | [`OpeningProps`](https://docs.bear.build/docs/bear/blueprints/Opening.md#openingprops) | #### Returns [#returns] [`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement) # Panels (https://docs.bear.build/docs/bear/blueprints/Panels) Import from `bear/blueprints/Panels`. ## Interfaces [#interfaces] ### PanelsProps [#panelsprops] Defined in: [bear/blueprints/Panels.tsx:22](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/Panels.tsx#L22) #### Properties [#properties] | Property | Type | Description | | ------ | ------ | ------ | | `face` | \| [`Surface`](https://docs.bear.build/docs/bear/geometry/shapes.md#surface) \| [`Ref`](https://docs.bear.build/docs/bear/engine/types.md#ref) | The surface to panelize. | | `layout?` | [`PanelStrategy`](https://docs.bear.build/docs/bear/engine/panelize.md#panelstrategy) | Panel layout strategy. Omit or "scaled" for a single panel. | | `name?` | `string` | Display name for this assembly in the tree. Defaults to "Panels". | | `panel` | [`Factory`](https://docs.bear.build/docs/bear/engine/factory.md#factory) | Factory that produces panel elements. Called with `{ face, panelRegion }`. | | `panelOptions?` | [`PanelizeOptions`](https://docs.bear.build/docs/bear/engine/panelize.md#panelizeoptions) | Panel dimension overrides. | | `surfaceHeight?` | `number` | Surface height in project units. Required for panelized layouts. | | `surfaceWidth?` | `number` | Surface width in project units. Required for panelized layouts. | ## Functions [#functions] ### Panels() [#panels] ```ts function Panels(__namedParameters): BearElement; ``` Defined in: [bear/blueprints/Panels.tsx:50](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/Panels.tsx#L50) Panels — generic panelized layer on a face surface. Lays out panels on a surface using a configurable strategy, poses each sheet at its footprint on the face, and publishes ext/int face surfaces offset by the sheet thickness. Everything is decided from the face and the sheet element's size, before anything is rendered. This is the general-purpose assembly behind sheathing, flooring, drywall, soffits, shingles, and any other panelized surface layer. #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `__namedParameters` | [`PanelsProps`](https://docs.bear.build/docs/bear/blueprints/Panels.md#panelsprops) | #### Returns [#returns] [`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement) # Pier (https://docs.bear.build/docs/bear/blueprints/Pier) Import from `bear/blueprints/Pier`. ## Interfaces [#interfaces] ### PierProps [#pierprops] Defined in: [bear/blueprints/Pier.tsx:22](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/Pier.tsx#L22) #### Properties [#properties] | Property | Type | Description | | ------ | ------ | ------ | | `at?` | [`Point`](https://docs.bear.build/docs/bear/measurements.md#point) | Authored position. Omit to let dims place the pier (both axes must then be pinned by dims). | | `footing?` | [`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement) | Square footing plan size. Defaults to "12in". | | `footingThickness?` | [`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement) | Footing thickness. Defaults to "10in". | | `height?` | [`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement) | Post height above the footing. Defaults to "3ft". | | `name?` | `string` | Name for this pier in the tree. Defaults to "Pier". | | `post?` | [`NominalLumberSize`](https://docs.bear.build/docs/bear/blueprints/materials/NominalLumber.md#nominallumbersize) | Post size. Defaults to "6x6". | ## Variables [#variables] ### Pier [#pier] ```ts const Pier: AssemblyFn & object; ``` Defined in: [bear/blueprints/Pier.tsx:117](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/Pier.tsx#L117) Pier — an isolated footing with a post: the minimal point-shaped proof that solvable() generalizes beyond walls. One anchor; an authored `at` constant-folds, otherwise dims must pin both axes. #### Type Declaration [#type-declaration] | Name | Type | | ------ | ------ | | `refs?` | readonly `string`[] | # RafterFraming (https://docs.bear.build/docs/bear/blueprints/RafterFraming) Import from `bear/blueprints/RafterFraming`. ## Interfaces [#interfaces] ### RafterFramingProps [#rafterframingprops] Defined in: [bear/blueprints/RafterFraming.tsx:18](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/RafterFraming.tsx#L18) #### Properties [#properties] | Property | Type | Description | | ------ | ------ | ------ | | `children?` | \| [`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement)\<`object`\> \| [`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement)\<`object`\>[] | - | | `length` | `number` | Span length (X axis) in project units, centered at x = 0. | | `onCenter?` | `number` | Rafter spacing in project units. Defaults to 16" OC (512 pu). | | `pitch?` | `string` | Roof pitch in rise:run format (e.g. "6:12"). Defaults to "6:12". | | `rafterSize?` | [`RafterSize`](https://docs.bear.build/docs/bear/blueprints/RafterFraming.md#raftersize) | Nominal lumber size for rafters. Defaults to "2x8". | | `transform?` | [`TransformMatrix`](https://docs.bear.build/docs/bear/geometry/transform.md#transformmatrix) | Pose in the parent frame, about the plan center at the low-edge bottom elevation. | | `width` | `number` | Width (Y axis) in project units, centered at y = 0. | ## Type Aliases [#type-aliases] ### RafterSize [#raftersize] ```ts type RafterSize = "2x6" | "2x8" | "2x10" | "2x12"; ``` Defined in: [bear/blueprints/RafterFraming.tsx:16](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/RafterFraming.tsx#L16) Nominal lumber sizes suitable for rafters. ## Functions [#functions] ### RafterFraming() [#rafterframing] ```ts function RafterFraming(__namedParameters): BearElement; ``` Defined in: [bear/blueprints/RafterFraming.tsx:139](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/RafterFraming.tsx#L139) RafterFraming — assembly function for roof rafter framing (shed roof). Creates rafters running along the X axis (the slope direction), spaced along Y. The roof slopes from z=0 at the low edge (-X) to z=rise at the high edge (+X). Rafters stand on edge perpendicular to the slope. Publishes top/bottom face surfaces for downstream layers (e.g. roof sheathing) to consume via FaceRefs. #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `__namedParameters` | [`RafterFramingProps`](https://docs.bear.build/docs/bear/blueprints/RafterFraming.md#rafterframingprops) | #### Returns [#returns] [`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement) # Roof (https://docs.bear.build/docs/bear/blueprints/Roof) Import from `bear/blueprints/Roof`. ## Type Aliases [#type-aliases] ### RoofPlan [#roofplan] ```ts type RoofPlan = | { footprint: Point[]; length?: never; width?: never; } | { footprint?: never; length: Measurement; width: Measurement; }; ``` Defined in: [bear/blueprints/Roof.tsx:32](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/Roof.tsx#L32) Where the roof's plan sits: a footprint in the parent frame, or a size centered at (0, 0). #### Union Members [#union-members] ##### Type Literal [#type-literal] ```ts { footprint: Point[]; length?: never; width?: never; } ``` | Name | Type | Description | | ------ | ------ | ------ | | `footprint` | [`Point`](https://docs.bear.build/docs/bear/measurements.md#point)[] | Axis-aligned rectangle (4 corners) in the parent frame. Supports @-references. Rotates about its center. | | `length?` | `never` | - | | `width?` | `never` | - | *** ##### Type Literal [#type-literal-1] ```ts { footprint?: never; length: Measurement; width: Measurement; } ``` | Name | Type | Description | | ------ | ------ | ------ | | `footprint?` | `never` | - | | `length` | [`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement) | Roof span length (X axis, the slope direction), centered at x = 0. | | `width` | [`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement) | Roof width (Y axis, perpendicular to slope), centered at y = 0. | *** ### RoofProps [#roofprops] ```ts type RoofProps = RoofPlan & object; ``` Defined in: [bear/blueprints/Roof.tsx:50](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/Roof.tsx#L50) #### Type Declaration [#type-declaration] | Name | Type | Description | | ------ | ------ | ------ | | `children?` | \| [`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement) \| [`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement)[] | - | | `elevation?` | [`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement) | Z position of the rafter bottoms at the low edge of the roof. | | `name?` | `string` | Name for this roof in the tree. Defaults to "R". | | `onCenter?` | [`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement) | Rafter spacing. Defaults to 16" OC. | | `pitch?` | `string` | Roof pitch in rise:run format (e.g. "6:12"). Defaults to "6:12". | | `rafterSize?` | [`RafterSize`](https://docs.bear.build/docs/bear/blueprints/RafterFraming.md#raftersize) | Nominal lumber size for rafters. Defaults to "2x8". | | `sheathing?` | [`Factory`](https://docs.bear.build/docs/bear/engine/factory.md#factory) \| `null` | Factory producing roof sheathing elements. Defaults to 1/2" OSB. Pass null to skip. | | `sheathingLayout?` | [`PanelStrategy`](https://docs.bear.build/docs/bear/engine/panelize.md#panelstrategy) | Panel layout strategy for sheathing. Defaults to "staggered". | | `sheathingPanelOptions?` | [`PanelizeOptions`](https://docs.bear.build/docs/bear/engine/panelize.md#panelizeoptions) | Panel dimension overrides for sheathing. | | `transform?` | [`TransformMatrix`](https://docs.bear.build/docs/bear/geometry/transform.md#transformmatrix) | Optional transform. Composed with auto-computed position. | ## Functions [#functions] ### Roof() [#roof] ```ts function Roof(__namedParameters): BearElement; ``` Defined in: [bear/blueprints/Roof.tsx:112](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/Roof.tsx#L112) Roof — layered assembly for roof construction (shed roof). Layers (bottom to top): 1. RafterFraming — structural rafters along the slope 2. Roof sheathing — sheet good on the top face of the rafters The roof is positioned so the low edge of the rafter bottoms sits at the given elevation. The roof slopes upward from -X to +X. A `footprint` places the plan in the parent frame, resolving grid references against the enclosing Building; `length`/`width` center it at (0, 0). #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `__namedParameters` | [`RoofProps`](https://docs.bear.build/docs/bear/blueprints/Roof.md#roofprops) | #### Returns [#returns] [`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement) # ScissorTrusses (https://docs.bear.build/docs/bear/blueprints/ScissorTrusses) Import from `bear/blueprints/ScissorTrusses`. ## Interfaces [#interfaces] ### ScissorTrussesProps [#scissortrussesprops] Defined in: [bear/blueprints/ScissorTrusses.tsx:41](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/ScissorTrusses.tsx#L41) Placement and layers shared by gable and scissor trusses. #### Extends [#extends] - [`TrussesProps`](https://docs.bear.build/docs/bear/blueprints/truss-layout.md#trussesprops) #### Properties [#properties] | Property | Type | Description | Inherited from | | ------ | ------ | ------ | ------ | | `ceilingPitch` | `string` | Ceiling pitch in rise:run format. Per TPI 1-2014 §2.3.2, must not exceed half the roof pitch to maintain adequate structural depth at the heel and midspan. | - | | `children?` | \| [`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement)\<`object`\> \| [`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement)\<`object`\>[] | - | [`TrussesProps`](https://docs.bear.build/docs/bear/blueprints/truss-layout.md#trussesprops).[`children`](https://docs.bear.build/docs/bear/blueprints/truss-layout.md#property-children) | | `footprint` | \[[`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement), [`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement)\] | Width (X) and depth (Y), centered at (0, 0). Ridge at x = 0; eaves at z = 0. | [`TrussesProps`](https://docs.bear.build/docs/bear/blueprints/truss-layout.md#trussesprops).[`footprint`](https://docs.bear.build/docs/bear/blueprints/truss-layout.md#property-footprint) | | `name?` | `string` | Name for the truss assembly. Defaults to the blueprint name. | [`TrussesProps`](https://docs.bear.build/docs/bear/blueprints/truss-layout.md#trussesprops).[`name`](https://docs.bear.build/docs/bear/blueprints/truss-layout.md#property-name) | | `pitch` | `string` | Roof pitch in rise:run format (e.g. "6:12"). | [`TrussesProps`](https://docs.bear.build/docs/bear/blueprints/truss-layout.md#trussesprops).[`pitch`](https://docs.bear.build/docs/bear/blueprints/truss-layout.md#property-pitch) | | `sheathing?` | [`Factory`](https://docs.bear.build/docs/bear/engine/factory.md#factory) \| `null` | Factory producing roof sheathing elements. Pass null to skip. | [`TrussesProps`](https://docs.bear.build/docs/bear/blueprints/truss-layout.md#trussesprops).[`sheathing`](https://docs.bear.build/docs/bear/blueprints/truss-layout.md#property-sheathing) | | `sheathingLayout?` | [`PanelStrategy`](https://docs.bear.build/docs/bear/engine/panelize.md#panelstrategy) | Panel layout strategy for sheathing. Defaults to "staggered". | [`TrussesProps`](https://docs.bear.build/docs/bear/blueprints/truss-layout.md#trussesprops).[`sheathingLayout`](https://docs.bear.build/docs/bear/blueprints/truss-layout.md#property-sheathinglayout) | | `sheathingPanelOptions?` | [`PanelizeOptions`](https://docs.bear.build/docs/bear/engine/panelize.md#panelizeoptions) | Panel dimension overrides for sheathing. | [`TrussesProps`](https://docs.bear.build/docs/bear/blueprints/truss-layout.md#trussesprops).[`sheathingPanelOptions`](https://docs.bear.build/docs/bear/blueprints/truss-layout.md#property-sheathingpaneloptions) | | `spacing?` | [`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement) | Truss spacing. Defaults to 24" OC. | [`TrussesProps`](https://docs.bear.build/docs/bear/blueprints/truss-layout.md#trussesprops).[`spacing`](https://docs.bear.build/docs/bear/blueprints/truss-layout.md#property-spacing) | | `transform?` | [`TransformMatrix`](https://docs.bear.build/docs/bear/geometry/transform.md#transformmatrix) | Pose in the parent frame. The origin is the plan center at eave elevation. | [`TrussesProps`](https://docs.bear.build/docs/bear/blueprints/truss-layout.md#trussesprops).[`transform`](https://docs.bear.build/docs/bear/blueprints/truss-layout.md#property-transform) | ## Functions [#functions] ### ScissorTrusses() [#scissortrusses] ```ts function ScissorTrusses(__namedParameters): BearElement; ``` Defined in: [bear/blueprints/ScissorTrusses.tsx:63](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/ScissorTrusses.tsx#L63) ScissorTrusses — engineered scissor truss assembly with Fink/W-pattern webs. Each truss has: - Two top chords (TC-L, TC-R): eave → ridge peak - Two crossed bottom chords (BC-L, BC-R): each starts at one eave and rises at the ceiling pitch to meet the opposite top chord - One king post (KP): crossing point → ridge peak - Four web members (W-L1, W-L2, W-R1, W-R2): Fink diagonals Publishes left/right gable surfaces for sheathing. #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `__namedParameters` | [`ScissorTrussesProps`](https://docs.bear.build/docs/bear/blueprints/ScissorTrusses.md#scissortrussesprops) | #### Returns [#returns] [`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement) # Sheathing (https://docs.bear.build/docs/bear/blueprints/Sheathing) Import from `bear/blueprints/Sheathing`. ## Interfaces [#interfaces] ### SheathingProps [#sheathingprops] Defined in: [bear/blueprints/Sheathing.tsx:8](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/Sheathing.tsx#L8) #### Properties [#properties] | Property | Type | Description | | ------ | ------ | ------ | | `face` | \| [`Surface`](https://docs.bear.build/docs/bear/geometry/shapes.md#surface) \| [`Ref`](https://docs.bear.build/docs/bear/engine/types.md#ref) | - | | `layout?` | [`PanelStrategy`](https://docs.bear.build/docs/bear/engine/panelize.md#panelstrategy) | Panel layout strategy. Omit or "scaled" for a single sheet. | | `name?` | `string` | Display name for this assembly in the tree. | | `panelOptions?` | [`PanelizeOptions`](https://docs.bear.build/docs/bear/engine/panelize.md#panelizeoptions) | Panel dimension overrides. | | `sheet` | [`Factory`](https://docs.bear.build/docs/bear/engine/factory.md#factory) | Factory that produces sheet-good elements. Called with `{ face, panelRegion }`. | | `surfaceHeight?` | `number` | Surface height in project units. Required for panelized layouts. | | `surfaceWidth?` | `number` | Surface width in project units. Required for panelized layouts. | ## Functions [#functions] ### Sheathing() [#sheathing] ```ts function Sheathing(__namedParameters): BearElement; ``` Defined in: [bear/blueprints/Sheathing.tsx:30](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/Sheathing.tsx#L30) Sheathing — panelized sheet layer on a face surface. Thin wrapper around [Panels](https://docs.bear.build/docs/bear/blueprints/Panels.md#panels) that preserves the `sheet` prop name for backward compatibility with wall/floor/roof assemblies. #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `__namedParameters` | [`SheathingProps`](https://docs.bear.build/docs/bear/blueprints/Sheathing.md#sheathingprops) | #### Returns [#returns] [`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement) # Slab (https://docs.bear.build/docs/bear/blueprints/Slab) Import from `bear/blueprints/Slab`. ## Interfaces [#interfaces] ### SlabGradient [#slabgradient] Defined in: [bear/blueprints/Slab.ts:26](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/Slab.ts#L26) #### Properties [#properties] | Property | Type | Description | | ------ | ------ | ------ | | `path` | \[[`Point`](https://docs.bear.build/docs/bear/measurements.md#point), [`Point`](https://docs.bear.build/docs/bear/measurements.md#point)\] | Two points defining the gradient direction. Supports @-references. | | `pitch` | `string` | Pitch in rise:run format (e.g. "1:48"). | *** ### SlabProps [#slabprops] Defined in: [bear/blueprints/Slab.ts:33](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/Slab.ts#L33) #### Properties [#properties-1] | Property | Type | Description | | ------ | ------ | ------ | | `footprint` | [`Point`](https://docs.bear.build/docs/bear/measurements.md#point)[] | Polygon boundary in the parent frame. Supports @-references. | | `gradient?` | [`SlabGradient`](https://docs.bear.build/docs/bear/blueprints/Slab.md#slabgradient) | Optional gradient for pitched slabs. | | `label?` | `string` | - | | `thickness` | [`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement) | Slab thickness. | | `transform?` | [`TransformMatrix`](https://docs.bear.build/docs/bear/geometry/transform.md#transformmatrix) | Additional pose about the footprint's bounding-box center at the top surface. | ## Functions [#functions] ### Slab() [#slab] ```ts function Slab(__namedParameters): BearElement; ``` Defined in: [bear/blueprints/Slab.ts:128](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/Slab.ts#L128) Slab — a concrete slab over a footprint. Resolves the footprint's grid references, centers the body on the footprint with its top surface at z = 0, and tilts it for a gradient. #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `__namedParameters` | [`SlabProps`](https://docs.bear.build/docs/bear/blueprints/Slab.md#slabprops) | #### Returns [#returns] [`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement) # StudFraming (https://docs.bear.build/docs/bear/blueprints/StudFraming) Import from `bear/blueprints/StudFraming`. ## Interfaces [#interfaces] ### StudFramingProps [#studframingprops] Defined in: [bear/blueprints/StudFraming.tsx:33](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/StudFraming.tsx#L33) #### Properties [#properties] | Property | Type | Description | | ------ | ------ | ------ | | `children?` | \| [`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement)\<`object`\> \| [`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement)\<`object`\>[] | Hosted components declare excluded stud spans in authored order. | | `height` | `number` | Wall height in project units. | | `isFlipped?` | `boolean` | When true, swap ext/int face labels so "ext" faces the +Y direction. | | `length` | `number` | Wall length in project units, centered at x = 0. | | `onCenter?` | `number` | Stud spacing in project units. Defaults to 16in (512 project units). | | `span?` | \[`number`, `number`\] | Where the plates and studs run (local x). Defaults to the wall line, `[-length/2, length/2]`; a wall join moves an end. | | `studSize?` | [`WallStudSize`](https://docs.bear.build/docs/bear/blueprints/framing.md#wallstudsize) | Nominal lumber size for studs and plates. Defaults to "2x4". | | `topPitch?` | `string` | Pitch of the top plate (e.g. "3:12"). Defaults to "0:12" (flat). | | `transform?` | [`TransformMatrix`](https://docs.bear.build/docs/bear/geometry/transform.md#transformmatrix) | Pose in the parent frame, about the wall's plan center at its base. | ## Functions [#functions] ### StudFraming() [#studframing] ```ts function StudFraming(__namedParameters): BearElement; ``` Defined in: [bear/blueprints/StudFraming.tsx:74](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/StudFraming.tsx#L74) StudFraming — a wall's framing: continuous plates, the openings it was given, and the common studs between them. Hosted descendants declare their excluded spans through FramedOpenings. The plates run the wall's full length; a door cuts the base plate out once the wall stands, which its Opening declares as a `cuts` edge. The studs are N+1 stud runs around N openings, each run a solvable span dimmed to the king planes of the openings beside it, so the framing never has to know where the solver put an opening. Publishes ext/int face surfaces (see studFramingFaces) for downstream layers, and `start`/`end` planes the runs are dimmed from. #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `__namedParameters` | [`StudFramingProps`](https://docs.bear.build/docs/bear/blueprints/StudFraming.md#studframingprops) | #### Returns [#returns] [`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement) *** ### studFramingFaces() [#studframingfaces] ```ts function studFramingFaces(spec): object; ``` Defined in: [bear/blueprints/StudFraming.tsx:258](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/StudFraming.tsx#L258) The framing's exterior and interior faces in the framing's local frame. A pure function of what builds the framing, so a wall can size its layer stack before rendering anything. Openings are not here: a layer covers the whole face and the opening's Void cuts the hole afterward. `length` and `height` are the wall line's, `pitch` the top plate's rise per unit run; `span` is where along that line the faces run (the whole line by default). #### Parameters [#parameters-1] | Parameter | Type | | ------ | ------ | | `spec` | \{ `height`: `number`; `isFlipped`: `boolean`; `length`: `number`; `pitch`: `number`; `span?`: \[`number`, `number`\]; `studSize`: [`WallStudSize`](https://docs.bear.build/docs/bear/blueprints/framing.md#wallstudsize); \} | | `spec.height` | `number` | | `spec.isFlipped` | `boolean` | | `spec.length` | `number` | | `spec.pitch` | `number` | | `spec.span?` | \[`number`, `number`\] | | `spec.studSize` | [`WallStudSize`](https://docs.bear.build/docs/bear/blueprints/framing.md#wallstudsize) | #### Returns [#returns-1] `object` | Name | Type | | ------ | ------ | | `ext` | [`Surface`](https://docs.bear.build/docs/bear/geometry/shapes.md#surface) | | `int` | [`Surface`](https://docs.bear.build/docs/bear/geometry/shapes.md#surface) | # StudRun (https://docs.bear.build/docs/bear/blueprints/StudRun) Import from `bear/blueprints/StudRun`. ## Interfaces [#interfaces] ### StudRunProps [#studrunprops] Defined in: [bear/blueprints/StudRun.tsx:25](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/StudRun.tsx#L25) #### Properties [#properties] | Property | Type | Description | | ------ | ------ | ------ | | `name?` | `string` | Name for this run in the tree. Defaults to "Run". | | `span?` | \[`number`, `number`\] | The run's extent along the wall, in the framing's frame. The framing authors it between authored openings; otherwise the engine completes it from the anchors the framing's dims place. | ## Variables [#variables] ### StudRun [#studrun] ```ts const StudRun: AssemblyFn & object; ``` Defined in: [bear/blueprints/StudRun.tsx:106](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/StudRun.tsx#L106) StudRun — a stretch of a wall's common studs between two solved ends. A wall's framing is N+1 runs around N openings, each run dimmed to the king planes of the openings beside it, so the studs a wall places and the openings the solver places never have to know about each other. #### Type Declaration [#type-declaration] | Name | Type | | ------ | ------ | | `refs?` | readonly `string`[] | # Void (https://docs.bear.build/docs/bear/blueprints/Void) Import from `bear/blueprints/Void`. ## Interfaces [#interfaces] ### VoidProps [#voidprops] Defined in: [bear/blueprints/Void.ts:11](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/Void.ts#L11) #### Properties [#properties] | Property | Type | Description | | ------ | ------ | ------ | | `depth?` | `number` | Depth (Y) in project units. Defaults to 32 (1 inch). Ignored with a `footprint`. | | `footprint?` | [`Vec2`](https://docs.bear.build/docs/bear/geometry/types.md#vec2)[] | A plan outline (local XY, project units) to extrude from z = 0 up `height`, for a cut that is not a box (a mitered end). Replaces the centered `width` × `depth` box. | | `height` | `number` | Height (Z) in project units. | | `label?` | `string` | - | | `width?` | `number` | Width (X) in project units. Required without a `footprint`. | ## Variables [#variables] ### Void [#void] ```ts const Void: PartDef; ``` Defined in: [bear/blueprints/Void.ts:62](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/Void.ts#L62) Void: a transparent placeholder for holes or cutouts. A box by default, or a plan `footprint` extruded upward. Consumers should render it with transparency to indicate it's a void, not a solid object. # Wall (https://docs.bear.build/docs/bear/blueprints/Wall) Import from `bear/blueprints/Wall`. ## Interfaces [#interfaces] ### WallBaseProps [#wallbaseprops] Defined in: [bear/blueprints/Wall.tsx:80](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/Wall.tsx#L80) Everything a wall is, apart from where it goes (see SpanPlacementProps). #### Properties [#properties] | Property | Type | Description | | ------ | ------ | ------ | | `children?` | \| [`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement)\<`object`\> \| [`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement)\<`object`\>[] | - | | `drywall?` | [`Factory`](https://docs.bear.build/docs/bear/engine/factory.md#factory) | Factory producing interior drywall (gypsum board) finish. Stacks on interior sheathing if present. | | `drywallLayout?` | [`PanelStrategy`](https://docs.bear.build/docs/bear/engine/panelize.md#panelstrategy) | Panel layout strategy for interior drywall. Defaults to "edgeAligned". | | `endJoin?` | [`WallJoin`](https://docs.bear.build/docs/bear/blueprints/wall-joins.md#walljoin) | How the wall's end meets another wall. See `startJoin`. | | `exterior?` | `boolean` | Marks this wall as exterior (participates in the building envelope). | | `exteriorDrywall?` | [`Factory`](https://docs.bear.build/docs/bear/engine/factory.md#factory) | Factory producing exterior drywall (gypsum board) finish. Stacks on exterior sheathing if present. | | `exteriorDrywallLayout?` | [`PanelStrategy`](https://docs.bear.build/docs/bear/engine/panelize.md#panelstrategy) | Panel layout strategy for exterior drywall. Defaults to "edgeAligned". | | `height?` | [`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement) | Wall height at the start of the path. Falls back to the `wallHeight` published by an ancestor Level. If neither is set, defaults to 0 (2D wall line, no framing). | | `interiorSheathing?` | [`Factory`](https://docs.bear.build/docs/bear/engine/factory.md#factory) | Factory producing interior sheathing elements. Omit to skip. | | `interiorSheathingLayout?` | [`PanelStrategy`](https://docs.bear.build/docs/bear/engine/panelize.md#panelstrategy) | Panel layout strategy for interior sheathing. Defaults to "edgeAligned". | | `isFlipped?` | `boolean` | Swaps exterior and interior faces without changing wall direction. | | `locationLine?` | [`LocationLine`](https://docs.bear.build/docs/bear/blueprints/Wall.md#locationline) | How to align the wall on the path. See [LocationLine](https://docs.bear.build/docs/bear/blueprints/Wall.md#locationline). Defaults to "centerline". | | `name?` | `string` | Name for this wall in the tree. Defaults to "W". | | `onCenter?` | [`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement) | Stud spacing. Defaults to 16in. | | `openings?` | [`OpeningSpec`](https://docs.bear.build/docs/bear/blueprints/Opening.md#openingspec)[] | Openings (doors, windows) to frame into this wall, as plain specs. Each becomes an `` named `Opening-1`, `Opening-2`, ... Prefer `` children: they can be named and placed by dims. | | `sheathing?` | [`Factory`](https://docs.bear.build/docs/bear/engine/factory.md#factory) | Factory producing exterior sheathing elements. Omit to skip sheathing. | | `sheathingLayout?` | [`PanelStrategy`](https://docs.bear.build/docs/bear/engine/panelize.md#panelstrategy) | Panel layout strategy for exterior sheathing. Defaults to "edgeAligned". | | `sheathingPanelOptions?` | [`PanelizeOptions`](https://docs.bear.build/docs/bear/engine/panelize.md#panelizeoptions) | Panel dimension overrides for exterior sheathing. | | `siding?` | [`Factory`](https://docs.bear.build/docs/bear/engine/factory.md#factory) | Factory producing exterior siding/cladding. Stacks on the outermost exterior layer. | | `sidingLayout?` | [`PanelStrategy`](https://docs.bear.build/docs/bear/engine/panelize.md#panelstrategy) | Panel layout strategy for siding. Defaults to "edgeAligned". | | `sidingPanelOptions?` | [`PanelizeOptions`](https://docs.bear.build/docs/bear/engine/panelize.md#panelizeoptions) | Panel dimension overrides for siding. | | `startJoin?` | [`WallJoin`](https://docs.bear.build/docs/bear/blueprints/wall-joins.md#walljoin) | How the wall's start meets another wall: `butt`, `through` or `miter` at an L corner, `tee` into the side of a wall that carries on. Each of the wall's bands (exterior layers, core, interior layers) then ends on that wall's faces instead of square on the wall line. See `wall-joins.ts`. | | `studSize?` | [`WallStudSize`](https://docs.bear.build/docs/bear/blueprints/framing.md#wallstudsize) | Nominal lumber size for studs and plates. Defaults to "2x4". | | `topPitch?` | `string` | Pitch of the top plate (e.g. "3:12"). Defaults to "0:12" (flat). `height` is the minimum height when non-zero. | | `transform?` | [`TransformMatrix`](https://docs.bear.build/docs/bear/geometry/transform.md#transformmatrix) | Optional transform. Composed with auto-computed position. | | `vaporBarrier?` | [`Factory`](https://docs.bear.build/docs/bear/engine/factory.md#factory) | Factory producing a vapor barrier layer on the interior side, between sheathing/framing and drywall. | | `vaporBarrierLayout?` | [`PanelStrategy`](https://docs.bear.build/docs/bear/engine/panelize.md#panelstrategy) | Panel layout strategy for vapor barrier. Defaults to "edgeAligned". | ## Type Aliases [#type-aliases] ### LocationLine [#locationline] ```ts type LocationLine = | "centerline" | "coreCenter" | "finishExt" | "finishInt" | "coreExt" | "coreInt"; ``` Defined in: [bear/blueprints/Wall.tsx:65](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/Wall.tsx#L65) Possible alignments for the wall along its path. These are the same names the wall publishes as refs, so aligning a wall to its path and dimensioning to it share one vocabulary. *** ### WallProps [#wallprops] ```ts type WallProps = WallBaseProps & SpanPlacementProps; ``` Defined in: [bear/blueprints/Wall.tsx:150](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/Wall.tsx#L150) ## Variables [#variables] ### Wall [#wall] ```ts const Wall: AssemblyFn & object; ``` Defined in: [bear/blueprints/Wall.tsx:679](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/Wall.tsx#L679) Wall — placement is one constraint mechanism with two syntaxes. An authored `path` pins both anchors and never touches the solver (constant-folded); `along`/`from`/`to` pin what they pin, and dims supply the rest. Solved walls are axis-aligned; angled walls author a path. #### Type Declaration [#type-declaration] | Name | Type | | ------ | ------ | | `refs?` | readonly `string`[] | # WallStrip (https://docs.bear.build/docs/bear/blueprints/WallStrip) Import from `bear/blueprints/WallStrip`. ## Interfaces [#interfaces] ### StripEnds [#stripends] Defined in: [bear/blueprints/WallStrip.tsx:22](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/WallStrip.tsx#L22) A strip's solved ends: each a segment across it, one point per line. #### Properties [#properties] | Property | Type | | ------ | ------ | | `end` | readonly \[[`Vec2`](https://docs.bear.build/docs/bear/engine/solvable.md#vec2), [`Vec2`](https://docs.bear.build/docs/bear/engine/solvable.md#vec2)\] | | `start` | readonly \[[`Vec2`](https://docs.bear.build/docs/bear/engine/solvable.md#vec2), [`Vec2`](https://docs.bear.build/docs/bear/engine/solvable.md#vec2)\] | *** ### WallStripProps [#wallstripprops] Defined in: [bear/blueprints/WallStrip.tsx:27](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/WallStrip.tsx#L27) #### Properties [#properties-1] | Property | Type | Description | | ------ | ------ | ------ | | `build` | (`ends`) => [`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement) | What fills the strip, from its solved ends. | | `end` | [`StripEnd`](https://docs.bear.build/docs/bear/blueprints/WallStrip.md#stripend) | - | | `ends?` | [`StripEnds`](https://docs.bear.build/docs/bear/blueprints/WallStrip.md#stripends) | Completed by the engine from the solved anchors. | | `lines` | readonly \[`number`, `number`\] | The two lines the strip runs between, as local y in the wall's frame. | | `name` | `string` | The name of what the strip builds, which is also its own. | | `start` | [`StripEnd`](https://docs.bear.build/docs/bear/blueprints/WallStrip.md#stripend) | - | ## Type Aliases [#type-aliases] ### StripEnd [#stripend] ```ts type StripEnd = | { at: number; } | { faces: readonly [string, string]; meets: RelationTarget; }; ``` Defined in: [bear/blueprints/WallStrip.tsx:17](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/WallStrip.tsx#L17) One end of a strip: square at a point on the wall line, or landing on another element's faces, one face per line. ## Variables [#variables] ### WallStrip [#wallstrip] ```ts const WallStrip: AssemblyFn & object; ``` Defined in: [bear/blueprints/WallStrip.tsx:72](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/WallStrip.tsx#L72) WallStrip: a run of a wall between two lines along it (a layer, the framing, a cut), whose ends the solver places. Each end is a segment across the strip, one anchor on each line, so an end that meets another wall at an angle comes back exactly. A square end pins its anchors and folds away, so a wall with no joins never touches the solver; an end that meets another wall lands each anchor on that wall's face. The solver carries the other wall's faces to this one across passes, which is what lets two walls at a corner each read the other whatever order they are written in. The strip is transparent: the tree holds what `build` returns. #### Type Declaration [#type-declaration] | Name | Type | | ------ | ------ | | `refs?` | readonly `string`[] | ## Functions [#functions] ### endCuts() [#endcuts] ```ts function endCuts( name, heightAt, targets ): (ends) => BearElement; ``` Defined in: [bear/blueprints/WallStrip.tsx:167](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/WallStrip.tsx#L167) A strip's `build` that trims what its siblings built to `stripSpan` back to the angled cut lines at its ends. #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `name` | `string` | | `heightAt` | (`x`) => `number` | | `targets` | readonly [`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement)\<`object`\>[] | #### Returns [#returns] (`ends`) => [`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement) *** ### notch() [#notch] ```ts function notch( name, heightAt, target ): (ends) => BearElement; ``` Defined in: [bear/blueprints/WallStrip.tsx:187](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/WallStrip.tsx#L187) A strip's `build` that cuts its whole outline out of `target`, up to this wall's own top and no further: the target may stand taller. #### Parameters [#parameters-1] | Parameter | Type | | ------ | ------ | | `name` | `string` | | `heightAt` | (`x`) => `number` | | `target` | [`RelationTarget`](https://docs.bear.build/docs/bear/engine/relations.md#relationtarget) | #### Returns [#returns-1] (`ends`) => [`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement) *** ### stripSpan() [#stripspan] ```ts function stripSpan(ends): [number, number]; ``` Defined in: [bear/blueprints/WallStrip.tsx:103](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/WallStrip.tsx#L103) Where a strip runs along the wall: from its start's far point to its end's. #### Parameters [#parameters-2] | Parameter | Type | | ------ | ------ | | `ends` | [`StripEnds`](https://docs.bear.build/docs/bear/blueprints/WallStrip.md#stripends) | #### Returns [#returns-2] \[`number`, `number`\] # anchorBolts (https://docs.bear.build/docs/bear/blueprints/connectors/anchorBolts) Import from `bear/blueprints/connectors/anchorBolts`. ## Interfaces [#interfaces] ### AnchorBoltSpec [#anchorboltspec] Defined in: [bear/blueprints/connectors/anchorBolts.ts:42](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/connectors/anchorBolts.ts#L42) One catalog row, plus the edge distance its series publishes. #### Extends [#extends] - [`AnchorBoltDims`](https://docs.bear.build/docs/bear/blueprints/connectors/types.md#anchorboltdims) #### Properties [#properties] | Property | Type | Description | Inherited from | | ------ | ------ | ------ | ------ | | `diameter` | `number` | - | [`AnchorBoltDims`](https://docs.bear.build/docs/bear/blueprints/connectors/types.md#anchorboltdims).[`diameter`](https://docs.bear.build/docs/bear/blueprints/connectors/types.md#property-diameter) | | `edgeDistance` | `number` | The least cover from the bolt's centerline to the pour's side. | [`AnchorBoltDims`](https://docs.bear.build/docs/bear/blueprints/connectors/types.md#anchorboltdims).[`edgeDistance`](https://docs.bear.build/docs/bear/blueprints/connectors/types.md#property-edgedistance) | | `embedment` | `number` | Catalog le: how far below the top of the concrete it reaches. | [`AnchorBoltDims`](https://docs.bear.build/docs/bear/blueprints/connectors/types.md#anchorboltdims).[`embedment`](https://docs.bear.build/docs/bear/blueprints/connectors/types.md#property-embedment) | | `finish` | `"G90"` \| `"grayPaint"` \| `"uncoated"` \| `"ZMAX"` \| `"HDG"` \| `"stainless"` | What it is coated with, or made of. | - | | `length` | `number` | Overall length, embedded and projecting. | [`AnchorBoltDims`](https://docs.bear.build/docs/bear/blueprints/connectors/types.md#anchorboltdims).[`length`](https://docs.bear.build/docs/bear/blueprints/connectors/types.md#property-length) | | `model` | `string` | Model number, e.g. "SSTB16". | - | | `solid?` | [`ConnectorSolid`](https://docs.bear.build/docs/bear/catalog/types.md#connectorsolid) | The manufacturer's solid, on this archetype's datum. | - | ## Functions [#functions] ### anchorBolt() [#anchorbolt] ```ts function anchorBolt(spec): AnchorBoltPart; ``` Defined in: [bear/blueprints/connectors/anchorBolts.ts:51](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/connectors/anchorBolts.ts#L51) #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `spec` | [`AnchorBoltSpec`](https://docs.bear.build/docs/bear/blueprints/connectors/anchorBolts.md#anchorboltspec) | #### Returns [#returns] [`AnchorBoltPart`](https://docs.bear.build/docs/bear/blueprints/connectors/types.md#anchorboltpart) *** ### anchorBoltEnvelope() [#anchorboltenvelope] ```ts function anchorBoltEnvelope(__namedParameters): Box; ``` Defined in: [bear/blueprints/connectors/anchorBolts.ts:103](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/connectors/anchorBolts.ts#L103) The rod on the datum: le below the top of the concrete, the rest above. #### Parameters [#parameters-1] | Parameter | Type | | ------ | ------ | | `__namedParameters` | [`AnchorBoltDims`](https://docs.bear.build/docs/bear/blueprints/connectors/types.md#anchorboltdims) | #### Returns [#returns-1] [`Box`](https://docs.bear.build/docs/bear/geometry/types.md#box) *** ### anchorBoltSolidProblem() [#anchorboltsolidproblem] ```ts function anchorBoltSolidProblem(bounds, dims): string | undefined; ``` Defined in: [bear/blueprints/connectors/anchorBolts.ts:124](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/connectors/anchorBolts.ts#L124) Why this solid cannot be the bolt the row describes, or nothing. Its ends are the datum: le below the embedment line and the rest above it. Its plan box is not, because a bolt's foot sweeps off its centerline. Read by `bolt simpson generate`, which ships the envelope instead. #### Parameters [#parameters-2] | Parameter | Type | | ------ | ------ | | `bounds` | [`Box`](https://docs.bear.build/docs/bear/geometry/types.md#box) | | `dims` | [`AnchorBoltDims`](https://docs.bear.build/docs/bear/blueprints/connectors/types.md#anchorboltdims) | #### Returns [#returns-2] `string` \| `undefined` # angles (https://docs.bear.build/docs/bear/blueprints/connectors/angles) Import from `bear/blueprints/connectors/angles`. ## Interfaces [#interfaces] ### AngleSpec [#anglespec] Defined in: [bear/blueprints/connectors/angles.ts:47](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/connectors/angles.ts#L47) One catalog row, as the archetype constructor takes it. #### Properties [#properties] | Property | Type | Description | | ------ | ------ | ------ | | `defaultSchedule?` | `string` | - | | `division?` | `string` | CSI division. Defaults to wood-connector metal fastenings. | | `finish` | `"G90"` \| `"grayPaint"` \| `"uncoated"` \| `"ZMAX"` \| `"HDG"` \| `"stainless"` | What it is coated with, or made of. | | `gauge?` | `number` | Sheet steel gauge; sets the legs' thickness. | | `legA` | `number` | The leg that lies on the first member's face. | | `legB` | `number` | The leg that lies on the second member's face. | | `length` | `number` | Catalog L: the length along the fold. | | `model` | `string` | Model number, e.g. "A35". | | `schedules?` | `Record`\<`string`, [`ConnectorSchedule`](https://docs.bear.build/docs/bear/blueprints/connectors/schedules.md#connectorschedule)\> | Fastener and capacity options by name; empty for an untranscribed model. | | `solid?` | [`ConnectorSolid`](https://docs.bear.build/docs/bear/catalog/types.md#connectorsolid) | The manufacturer's solid, on this archetype's datum. | ## Functions [#functions] ### angleDims() [#angledims] ```ts function angleDims(spec): AngleDims; ``` Defined in: [bear/blueprints/connectors/angles.ts:76](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/connectors/angles.ts#L76) The dimensions a catalog row implies, without building the part. #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `spec` | [`AngleSpec`](https://docs.bear.build/docs/bear/blueprints/connectors/angles.md#anglespec) | #### Returns [#returns] [`AngleDims`](https://docs.bear.build/docs/bear/blueprints/connectors/types.md#angledims) *** ### angleEnvelope() [#angleenvelope] ```ts function angleEnvelope(dims): Box; ``` Defined in: [bear/blueprints/connectors/angles.ts:89](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/connectors/angles.ts#L89) The datum's box: what a model with no solid is, and what `bolt simpson generate` holds a published one to. One statement, so the two agree. #### Parameters [#parameters-1] | Parameter | Type | | ------ | ------ | | `dims` | [`AngleDims`](https://docs.bear.build/docs/bear/blueprints/connectors/types.md#angledims) | #### Returns [#returns-1] [`Box`](https://docs.bear.build/docs/bear/geometry/types.md#box) *** ### angleLegs() [#anglelegs] ```ts function angleLegs(bounds): object; ``` Defined in: [bear/blueprints/connectors/angles.ts:97](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/connectors/angles.ts#L97) The legs a solid on this datum has. L and GA publish them nowhere else. #### Parameters [#parameters-2] | Parameter | Type | | ------ | ------ | | `bounds` | [`Box`](https://docs.bear.build/docs/bear/geometry/types.md#box) | #### Returns [#returns-2] `object` | Name | Type | | ------ | ------ | | `legA` | `number` | | `legB` | `number` | *** ### framingAngle() [#framingangle] ```ts function framingAngle(spec): FramingAnglePart; ``` Defined in: [bear/blueprints/connectors/angles.ts:102](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/connectors/angles.ts#L102) A framing angle: one leg nailed flat to each member's named face. #### Parameters [#parameters-3] | Parameter | Type | | ------ | ------ | | `spec` | [`AngleSpec`](https://docs.bear.build/docs/bear/blueprints/connectors/angles.md#anglespec) | #### Returns [#returns-3] [`FramingAnglePart`](https://docs.bear.build/docs/bear/blueprints/connectors/types.md#framinganglepart) # columnCaps (https://docs.bear.build/docs/bear/blueprints/connectors/columnCaps) Import from `bear/blueprints/connectors/columnCaps`. ## Interfaces [#interfaces] ### ColumnCapSpec [#columncapspec] Defined in: [bear/blueprints/connectors/columnCaps.ts:46](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/connectors/columnCaps.ts#L46) One catalog row. #### Properties [#properties] | Property | Type | Description | | ------ | ------ | ------ | | `defaultSchedule?` | `string` | - | | `division?` | `string` | - | | `finish` | `"G90"` \| `"grayPaint"` \| `"uncoated"` \| `"ZMAX"` \| `"HDG"` \| `"stainless"` | What it is coated with, or made of. | | `gauge?` | `number` | - | | `model` | `string` | - | | `postWidth` | `number` | Catalog W2, across the post. | | `schedules?` | `Record`\<`string`, [`ConnectorSchedule`](https://docs.bear.build/docs/bear/blueprints/connectors/schedules.md#connectorschedule)\> | - | | `solid?` | [`ConnectorSolid`](https://docs.bear.build/docs/bear/catalog/types.md#connectorsolid) | - | | `width` | `number` | Catalog W1, across the beam. | ## Functions [#functions] ### columnCap() [#columncap] ```ts function columnCap(spec): ColumnCapPart; ``` Defined in: [bear/blueprints/connectors/columnCaps.ts:61](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/connectors/columnCaps.ts#L61) #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `spec` | [`ColumnCapSpec`](https://docs.bear.build/docs/bear/blueprints/connectors/columnCaps.md#columncapspec) | #### Returns [#returns] [`ColumnCapPart`](https://docs.bear.build/docs/bear/blueprints/connectors/types.md#columncappart) *** ### columnCapEnvelope() [#columncapenvelope] ```ts function columnCapEnvelope(__namedParameters): Box; ``` Defined in: [bear/blueprints/connectors/columnCaps.ts:127](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/connectors/columnCaps.ts#L127) The seat plate: the only part of the cap the table dimensions. #### Parameters [#parameters-1] | Parameter | Type | | ------ | ------ | | `__namedParameters` | [`ColumnCapDims`](https://docs.bear.build/docs/bear/blueprints/connectors/types.md#columncapdims) | #### Returns [#returns-1] [`Box`](https://docs.bear.build/docs/bear/geometry/types.md#box) *** ### columnCapSolidProblem() [#columncapsolidproblem] ```ts function columnCapSolidProblem( bounds, dims, published ): string | undefined; ``` Defined in: [bear/blueprints/connectors/columnCaps.ts:141](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/connectors/columnCaps.ts#L141) Why a solid is off the datum, or nothing. `bolt simpson generate` drops one that is. #### Parameters [#parameters-2] | Parameter | Type | | ------ | ------ | | `bounds` | [`Box`](https://docs.bear.build/docs/bear/geometry/types.md#box) | | `dims` | [`ColumnCapDims`](https://docs.bear.build/docs/bear/blueprints/connectors/types.md#columncapdims) | | `published` | \{ `height?`: `number`; `length?`: `number`; \} | | `published.height?` | `number` | | `published.length?` | `number` | #### Returns [#returns-2] `string` \| `undefined` *** ### strapMisfit() [#strapmisfit] ```ts function strapMisfit(inside, width): "tight" | "loose" | undefined; ``` Defined in: [bear/blueprints/connectors/columnCaps.ts:284](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/connectors/columnCaps.ts#L284) How a member of this width sits in straps `inside` apart; nothing when it fits. #### Parameters [#parameters-3] | Parameter | Type | | ------ | ------ | | `inside` | `number` | | `width` | `number` | #### Returns [#returns-3] `"tight"` \| `"loose"` \| `undefined` # concrete (https://docs.bear.build/docs/bear/blueprints/connectors/concrete) Import from `bear/blueprints/connectors/concrete`. ## Interfaces [#interfaces] ### Embedment [#embedment] Defined in: [bear/blueprints/connectors/concrete.ts:94](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/connectors/concrete.ts#L94) What a cast-in part asks of the concrete around it, in project units. #### Properties [#properties] | Property | Type | Description | | ------ | ------ | ------ | | `depth` | `number` | How far below the top it reaches. | | `edgeDistance` | `number` | The least cover from its centerline to the pour's nearest side. | *** ### Footprint [#footprint] Defined in: [bear/blueprints/connectors/concrete.ts:145](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/connectors/concrete.ts#L145) A plan rectangle in a part's own frame: what it occupies below the top. #### Properties [#properties-1] | Property | Type | | ------ | ------ | | `max` | `object` | | `max.x` | `number` | | `max.y` | `number` | | `min` | `object` | | `min.x` | `number` | | `min.y` | `number` | *** ### Pour [#pour] Defined in: [bear/blueprints/connectors/concrete.ts:49](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/connectors/concrete.ts#L49) A pour as a cast-in part reads it, in the part's parent frame. #### Properties [#properties-2] | Property | Type | Description | | ------ | ------ | ------ | | `depth` | `number` | How much concrete stands under that top. | | `label` | `string` | The pour's fqn, for the messages that name it. | | `member` | [`SquareMember`](https://docs.bear.build/docs/bear/blueprints/connectors/members.md#squaremember) | - | | `top` | `number` | The top of the concrete: the embedment line. | ## Variables [#variables] ### CAST\_IN\_DIVISION [#cast_in_division] ```ts const CAST_IN_DIVISION: "03 15 19" = "03 15 19"; ``` Defined in: [bear/blueprints/connectors/concrete.ts:46](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/connectors/concrete.ts#L46) CSI division: cast-in concrete anchors. ## Functions [#functions] ### castInPose() [#castinpose] ```ts function castInPose(pour, at): TransformMatrix; ``` Defined in: [bear/blueprints/connectors/concrete.ts:80](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/connectors/concrete.ts#L80) The pose, which is only the datum written in the parent frame: on the plan point, at the top of the concrete, turned onto the pour's own sides so a square envelope runs with the wall it is cast in. #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `pour` | [`Pour`](https://docs.bear.build/docs/bear/blueprints/connectors/concrete.md#pour) | | `at` | \{ `x`: `number`; `y`: `number`; \} | | `at.x` | `number` | | `at.y` | `number` | #### Returns [#returns] [`TransformMatrix`](https://docs.bear.build/docs/bear/geometry/transform.md#transformmatrix) *** ### coverAt() [#coverat] ```ts function coverAt(pour, at): number; ``` Defined in: [bear/blueprints/connectors/concrete.ts:134](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/connectors/concrete.ts#L134) How far a plan point stands in from the pour's nearest side, read off the pour's own section. Negative is outside it. #### Parameters [#parameters-1] | Parameter | Type | | ------ | ------ | | `pour` | [`Pour`](https://docs.bear.build/docs/bear/blueprints/connectors/concrete.md#pour) | | `at` | \{ `x`: `number`; `y`: `number`; \} | | `at.x` | `number` | | `at.y` | `number` | #### Returns [#returns-1] `number` *** ### depthProblems() [#depthproblems] ```ts function depthProblems( model, pour, depth ): readonly string[]; ``` Defined in: [bear/blueprints/connectors/concrete.ts:171](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/connectors/concrete.ts#L171) Whether the pour is deep enough to take a part embedded `depth`. #### Parameters [#parameters-2] | Parameter | Type | | ------ | ------ | | `model` | `string` | | `pour` | [`Pour`](https://docs.bear.build/docs/bear/blueprints/connectors/concrete.md#pour) | | `depth` | `number` | #### Returns [#returns-2] readonly `string`[] *** ### embedmentProblems() [#embedmentproblems] ```ts function embedmentProblems( model, pour, at, need ): readonly string[]; ``` Defined in: [bear/blueprints/connectors/concrete.ts:108](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/connectors/concrete.ts#L108) Every rule the pour breaks for a part cast in at `at`, in plain language. Empty means the concrete holds it. The cover is measured to the pour's own sides, off its section, so a wall run at an angle is read the same as one square to the assembly. #### Parameters [#parameters-3] | Parameter | Type | | ------ | ------ | | `model` | `string` | | `pour` | [`Pour`](https://docs.bear.build/docs/bear/blueprints/connectors/concrete.md#pour) | | `at` | \{ `x`: `number`; `y`: `number`; \} | | `at.x` | `number` | | `at.y` | `number` | | `need` | [`Embedment`](https://docs.bear.build/docs/bear/blueprints/connectors/concrete.md#embedment) | #### Returns [#returns-3] readonly `string`[] *** ### footprintCover() [#footprintcover] ```ts function footprintCover( pour, pose, __namedParameters ): number; ``` Defined in: [bear/blueprints/connectors/concrete.ts:155](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/connectors/concrete.ts#L155) The least cover over a part's footprint where `pose` puts it: negative is how far it reaches outside the pour. A pour's plan is a rectangle, so the footprint's corners are the whole question. #### Parameters [#parameters-4] | Parameter | Type | | ------ | ------ | | `pour` | [`Pour`](https://docs.bear.build/docs/bear/blueprints/connectors/concrete.md#pour) | | `pose` | [`TransformMatrix`](https://docs.bear.build/docs/bear/geometry/transform.md#transformmatrix) | | `__namedParameters` | [`Footprint`](https://docs.bear.build/docs/bear/blueprints/connectors/concrete.md#footprint) | #### Returns [#returns-4] `number` *** ### pour() [#pour-1] ```ts function pour(role, model): Pour; ``` Defined in: [bear/blueprints/connectors/concrete.ts:65](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/connectors/concrete.ts#L65) The pour, for `place`: anything but plumb or level is a named error. #### Parameters [#parameters-5] | Parameter | Type | | ------ | ------ | | `role` | [`PlacedRole`](https://docs.bear.build/docs/bear/engine/place.md#placedrole) | | `model` | `string` | #### Returns [#returns-5] [`Pour`](https://docs.bear.build/docs/bear/blueprints/connectors/concrete.md#pour) *** ### squarePour() [#squarepour] ```ts function squarePour(role): Pour | undefined; ``` Defined in: [bear/blueprints/connectors/concrete.ts:70](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/connectors/concrete.ts#L70) The pour, for `check`: a sloped one is `place`'s error, not a warning. #### Parameters [#parameters-6] | Parameter | Type | | ------ | ------ | | `role` | [`PlacedRole`](https://docs.bear.build/docs/bear/engine/place.md#placedrole) | #### Returns [#returns-6] [`Pour`](https://docs.bear.build/docs/bear/blueprints/connectors/concrete.md#pour) \| `undefined` # finishes (https://docs.bear.build/docs/bear/blueprints/connectors/finishes) Import from `bear/blueprints/connectors/finishes`. ## Type Aliases [#type-aliases] ### ConnectorFinish [#connectorfinish] ```ts type ConnectorFinish = typeof CONNECTOR_FINISHES[number]; ``` Defined in: [bear/blueprints/connectors/finishes.ts:27](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/connectors/finishes.ts#L27) ## Variables [#variables] ### CONNECTOR\_FINISHES [#connector_finishes] ```ts const CONNECTOR_FINISHES: readonly ["G90", "grayPaint", "uncoated", "ZMAX", "HDG", "stainless"]; ``` Defined in: [bear/blueprints/connectors/finishes.ts:18](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/connectors/finishes.ts#L18) The coatings and materials a connector is sold in, plainest first. That order is what a product is named by: an LUS210 is the G90 one, and an ABU88Z, which is sold in nothing plainer, is the ZMAX® one. *** ### FINISH\_LABELS [#finish_labels] ```ts const FINISH_LABELS: Record; ``` Defined in: [bear/blueprints/connectors/finishes.ts:30](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/connectors/finishes.ts#L30) How a finish reads on a parts list. ## Functions [#functions] ### catalogColumns() [#catalogcolumns] ```ts function catalogColumns(__namedParameters): PartColumn[]; ``` Defined in: [bear/blueprints/connectors/finishes.ts:40](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/connectors/finishes.ts#L40) A connector as ordered: its model number and its finish. #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `__namedParameters` | \{ `finish`: `"G90"` \| `"grayPaint"` \| `"uncoated"` \| `"ZMAX"` \| `"HDG"` \| `"stainless"`; `model`: `string`; \} | | `__namedParameters.finish` | `"G90"` \| `"grayPaint"` \| `"uncoated"` \| `"ZMAX"` \| `"HDG"` \| `"stainless"` | | `__namedParameters.model` | `string` | #### Returns [#returns] [`PartColumn`](https://docs.bear.build/docs/bear/engine/part.md#partcolumn)[] # hangers (https://docs.bear.build/docs/bear/blueprints/connectors/hangers) Import from `bear/blueprints/connectors/hangers`. ## Interfaces [#interfaces] ### HangerSpec [#hangerspec] Defined in: [bear/blueprints/connectors/hangers.ts:79](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/connectors/hangers.ts#L79) One catalog row, as an archetype constructor takes it. #### Properties [#properties] | Property | Type | Description | | ------ | ------ | ------ | | `bearing` | `number` | Catalog B: the seat's depth. | | `defaultSchedule?` | `string` | - | | `division?` | `string` | CSI division. Defaults to wood-connector metal fastenings. | | `finish` | `"G90"` \| `"grayPaint"` \| `"uncoated"` \| `"ZMAX"` \| `"HDG"` \| `"stainless"` | What it is coated with, or made of. | | `gauge?` | `number` | Sheet steel gauge; sets the seat's thickness. | | `height` | `number` | Catalog H: overall height, or the height it was ordered at. | | `madeTo?` | readonly [`OrderedDimension`](https://docs.bear.build/docs/bear/blueprints/connectors/hangers.md#ordereddimension)[] | The dimensions this one was made to at order time rather than sold at (a girder hanger's height). Each is a line of the purchase order, so each is a column of the parts list. None for stock. | | `model` | `string` | Model number, e.g. "LUS28". | | `schedules?` | `Record`\<`string`, [`ConnectorSchedule`](https://docs.bear.build/docs/bear/blueprints/connectors/schedules.md#connectorschedule)\> | Fastener and capacity options by name. A model nobody has transcribed has none, and wires its roles plainly: the topology is still real, the edges simply carry no schedule. | | `solid?` | [`ConnectorSolid`](https://docs.bear.build/docs/bear/catalog/types.md#connectorsolid) | The manufacturer's solid, on this archetype's datum. Without one the hanger is its envelope box, which is enough to see the connector, clash against it and take it off, but is not a shop drawing. | | `width` | `number` | Catalog W: the seat's inside width. | ## Type Aliases [#type-aliases] ### OrderedDimension [#ordereddimension] ```ts type OrderedDimension = "width" | "height" | "bearing"; ``` Defined in: [bear/blueprints/connectors/hangers.ts:134](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/connectors/hangers.ts#L134) A catalog dimension an order can specify. ## Functions [#functions] ### faceMountHanger() [#facemounthanger] ```ts function faceMountHanger(spec): JoistHangerPart; ``` Defined in: [bear/blueprints/connectors/hangers.ts:120](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/connectors/hangers.ts#L120) A face-mount hanger: its flange lies against the header's face and the joist sits in its seat at the joist's own bottom, so the joist's top and the header's top need not agree. #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `spec` | [`HangerSpec`](https://docs.bear.build/docs/bear/blueprints/connectors/hangers.md#hangerspec) | #### Returns [#returns] [`JoistHangerPart`](https://docs.bear.build/docs/bear/blueprints/connectors/types.md#joisthangerpart) *** ### hangerDatum() [#hangerdatum] ```ts function hangerDatum( mount, height, steel ): object; ``` Defined in: [bear/blueprints/connectors/hangers.ts:253](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/connectors/hangers.ts#L253) Where the archetype's datum puts a hanger's top and bottom, given the catalog height and the thickness of the steel. The one statement of it, and it has to stay that way. The envelope below is cut from it, and `bolt simpson generate` checks every published solid against it, so a hanger wearing the manufacturer's mesh and a hanger wearing a box stand on the same plane. Said twice, the two drift and nothing catches it — they already did once, by one steel thickness on the top-flange bottom. face-mount: the joist bears at z = 0 and the hanger rises to H, with the seat's own steel hanging below. top-flange: the flange bears on the header's top at z = 0, so its steel sits above that and the hanger hangs to -(H + steel). #### Parameters [#parameters-1] | Parameter | Type | | ------ | ------ | | `mount` | `"faceMount"` \| `"topFlange"` | | `height` | `number` | | `steel` | `number` | #### Returns [#returns-1] `object` | Name | Type | | ------ | ------ | | `bottom` | `number` | | `top` | `number` | *** ### hangerDims() [#hangerdims] ```ts function hangerDims(spec): HangerDims; ``` Defined in: [bear/blueprints/connectors/hangers.ts:151](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/connectors/hangers.ts#L151) The dimensions a catalog row implies, without building the part. Sizing helpers sift hundreds of rows, so they read this rather than construct hundreds of parts to throw away. #### Parameters [#parameters-2] | Parameter | Type | | ------ | ------ | | `spec` | `Pick`\<[`HangerSpec`](https://docs.bear.build/docs/bear/blueprints/connectors/hangers.md#hangerspec), `"width"` \| `"height"` \| `"bearing"` \| `"gauge"`\> | #### Returns [#returns-2] [`HangerDims`](https://docs.bear.build/docs/bear/blueprints/connectors/types.md#hangerdims) *** ### topFlangeHanger() [#topflangehanger] ```ts function topFlangeHanger(spec): JoistHangerPart; ``` Defined in: [bear/blueprints/connectors/hangers.ts:129](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/connectors/hangers.ts#L129) A top-flange hanger: its flange folds over the header and bears on the header's top, so the hanger hangs from that plane and the joist's top lands flush with the header's. #### Parameters [#parameters-3] | Parameter | Type | | ------ | ------ | | `spec` | [`HangerSpec`](https://docs.bear.build/docs/bear/blueprints/connectors/hangers.md#hangerspec) | #### Returns [#returns-3] [`JoistHangerPart`](https://docs.bear.build/docs/bear/blueprints/connectors/types.md#joisthangerpart) # holdowns (https://docs.bear.build/docs/bear/blueprints/connectors/holdowns) Import from `bear/blueprints/connectors/holdowns`. ## Interfaces [#interfaces] ### HoldownSpec [#holdownspec] Defined in: [bear/blueprints/connectors/holdowns.ts:41](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/connectors/holdowns.ts#L41) One catalog row. #### Properties [#properties] | Property | Type | Description | | ------ | ------ | ------ | | `defaultSchedule?` | `string` | - | | `depth` | `number` | Catalog B, how far the seat stands off the post face. | | `division?` | `string` | - | | `finish` | `"G90"` \| `"grayPaint"` \| `"uncoated"` \| `"ZMAX"` \| `"HDG"` \| `"stainless"` | What it is coated with, or made of. | | `height` | `number` | Catalog H, up the post from the seat. | | `model` | `string` | - | | `schedules?` | `Record`\<`string`, [`ConnectorSchedule`](https://docs.bear.build/docs/bear/blueprints/connectors/schedules.md#connectorschedule)\> | - | | `solid?` | [`ConnectorSolid`](https://docs.bear.build/docs/bear/catalog/types.md#connectorsolid) | - | | `width` | `number` | Catalog W, across the post face. | ## Functions [#functions] ### drivesThrough() [#drivesthrough] ```ts function drivesThrough(reach, thickness): boolean; ``` Defined in: [bear/blueprints/connectors/holdowns.ts:291](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/connectors/holdowns.ts#L291) Whether fasteners `reach` long come out the back of a post `thickness` thick. #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `reach` | `number` | | `thickness` | `number` | #### Returns [#returns] `boolean` *** ### fastenerReach() [#fastenerreach] ```ts function fastenerReach(schedule): number; ``` Defined in: [bear/blueprints/connectors/holdowns.ts:282](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/connectors/holdowns.ts#L282) How far a schedule's post fasteners reach into the wood, from the "diameter x length" spelling `loads.json` promises. A through-bolt is meant to come out the far side, so it reaches nothing. #### Parameters [#parameters-1] | Parameter | Type | | ------ | ------ | | `schedule` | [`ConnectorSchedule`](https://docs.bear.build/docs/bear/blueprints/connectors/schedules.md#connectorschedule) \| `undefined` | #### Returns [#returns-1] `number` *** ### hangsOff() [#hangsoff] ```ts function hangsOff(width, face): boolean; ``` Defined in: [bear/blueprints/connectors/holdowns.ts:273](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/connectors/holdowns.ts#L273) Whether a holdown `width` wide overhangs a post face `face` wide. #### Parameters [#parameters-2] | Parameter | Type | | ------ | ------ | | `width` | `number` | | `face` | `number` | #### Returns [#returns-2] `boolean` *** ### holdown() [#holdown] ```ts function holdown(spec): HoldownPart; ``` Defined in: [bear/blueprints/connectors/holdowns.ts:60](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/connectors/holdowns.ts#L60) #### Parameters [#parameters-3] | Parameter | Type | | ------ | ------ | | `spec` | [`HoldownSpec`](https://docs.bear.build/docs/bear/blueprints/connectors/holdowns.md#holdownspec) | #### Returns [#returns-3] [`HoldownPart`](https://docs.bear.build/docs/bear/blueprints/connectors/types.md#holdownpart) *** ### holdownEnvelope() [#holdownenvelope] ```ts function holdownEnvelope(__namedParameters): Box; ``` Defined in: [bear/blueprints/connectors/holdowns.ts:126](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/connectors/holdowns.ts#L126) The datum's box: what a model with no solid is, and what generate holds one to. #### Parameters [#parameters-4] | Parameter | Type | | ------ | ------ | | `__namedParameters` | [`HoldownDims`](https://docs.bear.build/docs/bear/blueprints/connectors/types.md#holdowndims) | #### Returns [#returns-4] [`Box`](https://docs.bear.build/docs/bear/geometry/types.md#box) *** ### holdownSolidProblem() [#holdownsolidproblem] ```ts function holdownSolidProblem(bounds, dims): string | undefined; ``` Defined in: [bear/blueprints/connectors/holdowns.ts:136](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/connectors/holdowns.ts#L136) Why a solid is off the datum, or nothing. `bolt simpson generate` drops one that is. #### Parameters [#parameters-5] | Parameter | Type | | ------ | ------ | | `bounds` | [`Box`](https://docs.bear.build/docs/bear/geometry/types.md#box) | | `dims` | [`HoldownDims`](https://docs.bear.build/docs/bear/blueprints/connectors/types.md#holdowndims) | #### Returns [#returns-5] `string` \| `undefined` # members (https://docs.bear.build/docs/bear/blueprints/connectors/members) Import from `bear/blueprints/connectors/members`. ## Interfaces [#interfaces] ### MemberAxis [#memberaxis] Defined in: [bear/blueprints/connectors/members.ts:36](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/connectors/members.ts#L36) One of a member's own axes, as the connector sees it. #### Properties [#properties] | Property | Type | Description | | ------ | ------ | ------ | | `direction` | `Vector3` | Where it points in the connector's frame; unit length. | | `extent` | `number` | The member's own extent along it: the dimension it was cut to. | *** ### MemberFrame [#memberframe] Defined in: [bear/blueprints/connectors/members.ts:44](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/connectors/members.ts#L44) A member in the connector's frame: its center and its three axes. #### Extended by [#extended-by] - [`SquareMember`](https://docs.bear.build/docs/bear/blueprints/connectors/members.md#squaremember) #### Properties [#properties-1] | Property | Type | | ------ | ------ | | `axes` | readonly \[[`MemberAxis`](https://docs.bear.build/docs/bear/blueprints/connectors/members.md#memberaxis), [`MemberAxis`](https://docs.bear.build/docs/bear/blueprints/connectors/members.md#memberaxis), [`MemberAxis`](https://docs.bear.build/docs/bear/blueprints/connectors/members.md#memberaxis)\] | | `center` | `Vector3` | *** ### SquareMember [#squaremember] Defined in: [bear/blueprints/connectors/members.ts:50](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/connectors/members.ts#L50) A member that is plumb or level: one axis standing, two lying level. #### Extends [#extends] - [`MemberFrame`](https://docs.bear.build/docs/bear/blueprints/connectors/members.md#memberframe) #### Properties [#properties-2] | Property | Type | Inherited from | | ------ | ------ | ------ | | `axes` | readonly \[[`MemberAxis`](https://docs.bear.build/docs/bear/blueprints/connectors/members.md#memberaxis), [`MemberAxis`](https://docs.bear.build/docs/bear/blueprints/connectors/members.md#memberaxis), [`MemberAxis`](https://docs.bear.build/docs/bear/blueprints/connectors/members.md#memberaxis)\] | [`MemberFrame`](https://docs.bear.build/docs/bear/blueprints/connectors/members.md#memberframe).[`axes`](https://docs.bear.build/docs/bear/blueprints/connectors/members.md#property-axes) | | `center` | `Vector3` | [`MemberFrame`](https://docs.bear.build/docs/bear/blueprints/connectors/members.md#memberframe).[`center`](https://docs.bear.build/docs/bear/blueprints/connectors/members.md#property-center) | | `level` | readonly \[[`MemberAxis`](https://docs.bear.build/docs/bear/blueprints/connectors/members.md#memberaxis), [`MemberAxis`](https://docs.bear.build/docs/bear/blueprints/connectors/members.md#memberaxis)\] | - | | `plumb` | [`MemberAxis`](https://docs.bear.build/docs/bear/blueprints/connectors/members.md#memberaxis) | - | ## Functions [#functions] ### faceOffset() [#faceoffset] ```ts function faceOffset( member, axis, plane ): number; ``` Defined in: [bear/blueprints/connectors/members.ts:165](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/connectors/members.ts#L165) How far a member's face stands along one of its axes, from the frame's origin: the plane the connector meets it on. The named port wins when the author pointed at one, since that is the author saying which face. #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `member` | [`MemberFrame`](https://docs.bear.build/docs/bear/blueprints/connectors/members.md#memberframe) | | `axis` | [`MemberAxis`](https://docs.bear.build/docs/bear/blueprints/connectors/members.md#memberaxis) | | `plane` | [`WorldPlane`](https://docs.bear.build/docs/bear/engine/planeOf.md#worldplane) \| `undefined` | #### Returns [#returns] `number` *** ### facing() [#facing] ```ts function facing(axis, towards): MemberAxis; ``` Defined in: [bear/blueprints/connectors/members.ts:154](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/connectors/members.ts#L154) The axis pointed the way asked for: `direction` flipped, if need be, to face the same way as `towards`. An axis is a line, not an arrow, and which end of it a connector wants is always something the connector knows (the side the joist is on, the way the post leaves). #### Parameters [#parameters-1] | Parameter | Type | | ------ | ------ | | `axis` | [`MemberAxis`](https://docs.bear.build/docs/bear/blueprints/connectors/members.md#memberaxis) | | `towards` | `Vector3` | #### Returns [#returns-1] [`MemberAxis`](https://docs.bear.build/docs/bear/blueprints/connectors/members.md#memberaxis) *** ### levelled() [#levelled] ```ts function levelled(direction): Vector3; ``` Defined in: [bear/blueprints/connectors/members.ts:144](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/connectors/members.ts#L144) A level direction with the float noise taken out of its z, so a frame built on it and on plumb is square: a post base stands on concrete and a hanger hangs plumb, whatever the tolerance let through. #### Parameters [#parameters-2] | Parameter | Type | | ------ | ------ | | `direction` | `Vector3` | #### Returns [#returns-2] `Vector3` *** ### memberFrame() [#memberframe-1] ```ts function memberFrame(role): MemberFrame; ``` Defined in: [bear/blueprints/connectors/members.ts:65](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/connectors/members.ts#L65) The member a role resolved to, read in the connector's frame. #### Parameters [#parameters-3] | Parameter | Type | | ------ | ------ | | `role` | [`PlacedRole`](https://docs.bear.build/docs/bear/engine/place.md#placedrole) | #### Returns [#returns-3] [`MemberFrame`](https://docs.bear.build/docs/bear/blueprints/connectors/members.md#memberframe) *** ### memberSpan() [#memberspan] ```ts function memberSpan(member, direction): [number, number]; ``` Defined in: [bear/blueprints/connectors/members.ts:126](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/connectors/members.ts#L126) A member's interval along a unit direction: its own box, oriented, rather than the box it swells to in the connector's frame. #### Parameters [#parameters-4] | Parameter | Type | | ------ | ------ | | `member` | [`MemberFrame`](https://docs.bear.build/docs/bear/blueprints/connectors/members.md#memberframe) | | `direction` | `Vector3` | #### Returns [#returns-4] \[`number`, `number`\] *** ### plumbOrLevel() [#plumborlevel] ```ts function plumbOrLevel(role, model): SquareMember; ``` Defined in: [bear/blueprints/connectors/members.ts:106](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/connectors/members.ts#L106) The member as plumb or level, for a connector whose contract is that it is. Anything else is the precondition failing, named, for `place` to report; `check` reads `squareMember` and leaves the member to it. #### Parameters [#parameters-5] | Parameter | Type | | ------ | ------ | | `role` | [`PlacedRole`](https://docs.bear.build/docs/bear/engine/place.md#placedrole) | | `model` | `string` | #### Returns [#returns-5] [`SquareMember`](https://docs.bear.build/docs/bear/blueprints/connectors/members.md#squaremember) *** ### plumbSpan() [#plumbspan] ```ts function plumbSpan(member): [number, number]; ``` Defined in: [bear/blueprints/connectors/members.ts:117](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/connectors/members.ts#L117) A plumb member's bottom and top, in the connector's frame. #### Parameters [#parameters-6] | Parameter | Type | | ------ | ------ | | `member` | [`SquareMember`](https://docs.bear.build/docs/bear/blueprints/connectors/members.md#squaremember) | #### Returns [#returns-6] \[`number`, `number`\] *** ### squareMember() [#squaremember-1] ```ts function squareMember(role): SquareMember | undefined; ``` Defined in: [bear/blueprints/connectors/members.ts:89](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/connectors/members.ts#L89) The member as plumb or level, or nothing when it is neither. #### Parameters [#parameters-7] | Parameter | Type | | ------ | ------ | | `role` | [`PlacedRole`](https://docs.bear.build/docs/bear/engine/place.md#placedrole) | #### Returns [#returns-7] [`SquareMember`](https://docs.bear.build/docs/bear/blueprints/connectors/members.md#squaremember) \| `undefined` # mudsillAnchors (https://docs.bear.build/docs/bear/blueprints/connectors/mudsillAnchors) Import from `bear/blueprints/connectors/mudsillAnchors`. ## Interfaces [#interfaces] ### MudsillAnchorSpec [#mudsillanchorspec] Defined in: [bear/blueprints/connectors/mudsillAnchors.ts:67](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/connectors/mudsillAnchors.ts#L67) One catalog model, and its series' printed dimensions. #### Extends [#extends] - [`MudsillAnchorDims`](https://docs.bear.build/docs/bear/blueprints/connectors/types.md#mudsillanchordims) #### Properties [#properties] | Property | Type | Description | Inherited from | | ------ | ------ | ------ | ------ | | `embedment` | `number` | How far the leg reaches below the top of the concrete. | [`MudsillAnchorDims`](https://docs.bear.build/docs/bear/blueprints/connectors/types.md#mudsillanchordims).[`embedment`](https://docs.bear.build/docs/bear/blueprints/connectors/types.md#property-embedment-1) | | `endDistance` | `number` | The least distance from the end of the sill for its full load. | [`MudsillAnchorDims`](https://docs.bear.build/docs/bear/blueprints/connectors/types.md#mudsillanchordims).[`endDistance`](https://docs.bear.build/docs/bear/blueprints/connectors/types.md#property-enddistance) | | `finish` | `"G90"` \| `"grayPaint"` \| `"uncoated"` \| `"ZMAX"` \| `"HDG"` \| `"stainless"` | What it is coated with, or made of. | - | | `model` | `string` | Model number, e.g. "MASA". | - | | `reach` | `number` | How far the leg reaches in from the face, under the sill. | [`MudsillAnchorDims`](https://docs.bear.build/docs/bear/blueprints/connectors/types.md#mudsillanchordims).[`reach`](https://docs.bear.build/docs/bear/blueprints/connectors/types.md#property-reach) | | `solid` | [`ConnectorSolid`](https://docs.bear.build/docs/bear/catalog/types.md#connectorsolid) | The manufacturer's solid, on this archetype's datum. | - | ## Functions [#functions] ### mudsillAnchor() [#mudsillanchor] ```ts function mudsillAnchor(spec): MudsillAnchorPart; ``` Defined in: [bear/blueprints/connectors/mudsillAnchors.ts:76](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/connectors/mudsillAnchors.ts#L76) #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `spec` | [`MudsillAnchorSpec`](https://docs.bear.build/docs/bear/blueprints/connectors/mudsillAnchors.md#mudsillanchorspec) | #### Returns [#returns] [`MudsillAnchorPart`](https://docs.bear.build/docs/bear/blueprints/connectors/types.md#mudsillanchorpart) *** ### mudsillAnchorSolidProblem() [#mudsillanchorsolidproblem] ```ts function mudsillAnchorSolidProblem(bounds, dims): string | undefined; ``` Defined in: [bear/blueprints/connectors/mudsillAnchors.ts:245](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/connectors/mudsillAnchors.ts#L245) Why this solid cannot be the anchor the series' drawing describes, or nothing. The drawing fixes three of its faces (the leg's foot, the leg's reach and the sill face the straps lie on); the CAD adds the width, which has to be centered on the anchor. Read by `bolt simpson generate`, which drops the solid, and so the model, when it fails. #### Parameters [#parameters-1] | Parameter | Type | | ------ | ------ | | `bounds` | [`Box`](https://docs.bear.build/docs/bear/geometry/types.md#box) | | `dims` | [`MudsillAnchorDims`](https://docs.bear.build/docs/bear/blueprints/connectors/types.md#mudsillanchordims) | #### Returns [#returns-1] `string` \| `undefined` # postBases (https://docs.bear.build/docs/bear/blueprints/connectors/postBases) Import from `bear/blueprints/connectors/postBases`. ## Interfaces [#interfaces] ### PostBaseSpec [#postbasespec] Defined in: [bear/blueprints/connectors/postBases.ts:78](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/connectors/postBases.ts#L78) One catalog row, as the archetype takes it. #### Properties [#properties] | Property | Type | Description | | ------ | ------ | ------ | | `defaultSchedule?` | `string` | - | | `division?` | `string` | CSI division. Defaults to wood-connector metal fastenings. | | `finish` | `"G90"` \| `"grayPaint"` \| `"uncoated"` \| `"ZMAX"` \| `"HDG"` \| `"stainless"` | What it is coated with, or made of. | | `height` | `number` | Catalog H: overall height above the bearing plane. | | `length` | `number` | Catalog L: the plate's length. | | `model` | `string` | Model number, e.g. "ABU66Z". | | `schedules?` | `Record`\<`string`, [`ConnectorSchedule`](https://docs.bear.build/docs/bear/blueprints/connectors/schedules.md#connectorschedule)\> | Fastener and capacity options by name; a model nobody has transcribed has none. | | `solid?` | [`ConnectorSolid`](https://docs.bear.build/docs/bear/catalog/types.md#connectorsolid) | The manufacturer's solid, on this archetype's datum. Without one the base is its envelope box, which is enough to see the connector, clash against it and take it off, but is not a shop drawing. | | `standoff` | `number` | How far above that plane the post bears. | | `width` | `number` | Catalog W: the pocket's inside width. | ## Functions [#functions] ### postBase() [#postbase] ```ts function postBase(spec): PostBasePart; ``` Defined in: [bear/blueprints/connectors/postBases.ts:108](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/connectors/postBases.ts#L108) A post base: it carries the post, seats it one standoff off the concrete, and says so when the post is not the one it is cut for. #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `spec` | [`PostBaseSpec`](https://docs.bear.build/docs/bear/blueprints/connectors/postBases.md#postbasespec) | #### Returns [#returns] [`PostBasePart`](https://docs.bear.build/docs/bear/blueprints/connectors/types.md#postbasepart) *** ### postBaseEnvelope() [#postbaseenvelope] ```ts function postBaseEnvelope(__namedParameters): Box; ``` Defined in: [bear/blueprints/connectors/postBases.ts:163](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/connectors/postBases.ts#L163) The catalog envelope on the datum: what a model with no published solid is. It stands on the bearing plane, centered on the post, and rises to the published height. An embedded base's anchor is not in it, because the table does not publish how deep it reaches. #### Parameters [#parameters-1] | Parameter | Type | | ------ | ------ | | `__namedParameters` | [`PostBaseDims`](https://docs.bear.build/docs/bear/blueprints/connectors/types.md#postbasedims) | #### Returns [#returns-1] [`Box`](https://docs.bear.build/docs/bear/geometry/types.md#box) *** ### postBaseSolidProblem() [#postbasesolidproblem] ```ts function postBaseSolidProblem(bounds, dims): string | undefined; ``` Defined in: [bear/blueprints/connectors/postBases.ts:190](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/connectors/postBases.ts#L190) Why this solid cannot be the base the row describes, or nothing. Stated here, beside the envelope it is the check for, and read from both ends: `bolt simpson generate` rejects a solid that fails it (the model then ships with its envelope box), and the catalog's tests hold the published table to the same rule. Said in two places, the check and the fallback drift and neither means anything. #### Parameters [#parameters-2] | Parameter | Type | | ------ | ------ | | `bounds` | [`Box`](https://docs.bear.build/docs/bear/geometry/types.md#box) | | `dims` | [`PostBaseDims`](https://docs.bear.build/docs/bear/blueprints/connectors/types.md#postbasedims) | #### Returns [#returns-2] `string` \| `undefined` # schedules (https://docs.bear.build/docs/bear/blueprints/connectors/schedules) Import from `bear/blueprints/connectors/schedules`. ## Interfaces [#interfaces] ### ConnectorSchedule [#connectorschedule] Defined in: [bear/blueprints/connectors/schedules.ts:25](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/connectors/schedules.ts#L25) One catalog option for a connector part: per-role fastener rows plus allowable loads (lb) per direction, as the table publishes them. #### Properties [#properties] | Property | Type | | ------ | ------ | | `capacity?` | `object` | | `capacity.download?` | `number` | | `capacity.f1?` | `number` | | `capacity.f2?` | `number` | | `capacity.uplift?` | `number` | | `fasteners` | `Record`\<`string`, [`FastenerSpec`](https://docs.bear.build/docs/bear/blueprints/connectors/schedules.md#fastenerspec)\> | *** ### FastenerSpec [#fastenerspec] Defined in: [bear/blueprints/connectors/schedules.ts:11](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/connectors/schedules.ts#L11) One row of a connector schedule: the fasteners for one role. #### Properties [#properties-1] | Property | Type | | ------ | ------ | | `count` | `number` | | `product` | `string` | ## Functions [#functions] ### nails() [#nails] ```ts function nails(product, count): FastenerSpec; ``` Defined in: [bear/blueprints/connectors/schedules.ts:17](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/connectors/schedules.ts#L17) Shorthand for a schedule row: `nails("10dx1.5", 4)`. #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `product` | `string` | | `count` | `number` | #### Returns [#returns] [`FastenerSpec`](https://docs.bear.build/docs/bear/blueprints/connectors/schedules.md#fastenerspec) *** ### scheduledRoles() [#scheduledroles] ```ts function scheduledRoles( roles, schedules, defaultSchedule ): Record; ``` Defined in: [bear/blueprints/connectors/schedules.ts:40](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/connectors/schedules.ts#L40) Wire connector roles to a schedule table: each role lowers through its relation spelling, and the chosen option's row (the element's `schedule` prop, else the default) rides that role's edge. An empty table wires the roles plainly, with no row on the edge. A catalog part whose loads nobody has transcribed is in exactly that state, and its topology is no less real for it: demanding a row it cannot have would make every such part report a missing schedule. #### Type Parameters [#type-parameters] | Type Parameter | | ------ | | `R` *extends* `string` | #### Parameters [#parameters-1] | Parameter | Type | | ------ | ------ | | `roles` | `Record`\<`R`, `string`\> | | `schedules` | `Record`\<`string`, [`ConnectorSchedule`](https://docs.bear.build/docs/bear/blueprints/connectors/schedules.md#connectorschedule)\> | | `defaultSchedule` | `string` \| `undefined` | #### Returns [#returns-1] `Record`\<`R`, [`ConnectRole`](https://docs.bear.build/docs/bear/engine/relations.md#connectrole)\> # LUS28 (https://docs.bear.build/docs/bear/blueprints/connectors/simpson/LUS28) Import from `bear/blueprints/connectors/simpson/LUS28`. ## Type Aliases [#type-aliases] ### LUS28Props [#lus28props] ```ts type LUS28Props = JoistHangerProps; ``` Defined in: [bear/blueprints/connectors/simpson/LUS28.ts:18](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/connectors/simpson/LUS28.ts#L18) ## Variables [#variables] ### LUS28 [#lus28] ```ts const LUS28: JoistHangerPart; ``` Defined in: [bear/blueprints/connectors/simpson/LUS28.ts:20](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/connectors/simpson/LUS28.ts#L20) # solids (https://docs.bear.build/docs/bear/blueprints/connectors/solids) Import from `bear/blueprints/connectors/solids`. ## Type Aliases [#type-aliases] ### SolidLoader [#solidloader] ```ts type SolidLoader = (solid) => Promise; ``` Defined in: [bear/blueprints/connectors/solids.ts:30](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/connectors/solids.ts#L30) Loads one shape's mesh, given the record's pointer to it. #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `solid` | [`ConnectorSolid`](https://docs.bear.build/docs/bear/catalog/types.md#connectorsolid) | #### Returns [#returns] `Promise`\<[`Geometry`](https://docs.bear.build/docs/bear/engine/types.md#geometry)\[`"manifold"`\]\> ## Functions [#functions] ### loadSolid() [#loadsolid] ```ts function loadSolid(solid): Promise; ``` Defined in: [bear/blueprints/connectors/solids.ts:63](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/connectors/solids.ts#L63) A connector's `load`: its record's mesh, when it has one. #### Parameters [#parameters-1] | Parameter | Type | | ------ | ------ | | `solid` | [`ConnectorSolid`](https://docs.bear.build/docs/bear/catalog/types.md#connectorsolid) \| `undefined` | #### Returns [#returns-1] `Promise`\<`Manifold` \| `undefined`\> *** ### setConnectorSolidLoader() [#setconnectorsolidloader] ```ts function setConnectorSolidLoader(next): void; ``` Defined in: [bear/blueprints/connectors/solids.ts:58](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/connectors/solids.ts#L58) Swap where solids are read from. Pass `undefined` to restore the bucket. Tests use this; nothing in a running model does. #### Parameters [#parameters-2] | Parameter | Type | | ------ | ------ | | `next` | [`SolidLoader`](https://docs.bear.build/docs/bear/blueprints/connectors/solids.md#solidloader) \| `undefined` | #### Returns [#returns-2] `void` *** ### solidGeometry() [#solidgeometry] ```ts function solidGeometry(loaded, box): Geometry; ``` Defined in: [bear/blueprints/connectors/solids.ts:75](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/connectors/solids.ts#L75) A connector's solid: the manufacturer's mesh when it could be had, and the part's own box when it could not. One rule, so a record with no published solid and a build with nowhere to read one from come out the same way — as the box the part is already sized by. #### Parameters [#parameters-3] | Parameter | Type | | ------ | ------ | | `loaded` | `Manifold` \| `undefined` | | `box` | [`Box`](https://docs.bear.build/docs/bear/geometry/types.md#box) | #### Returns [#returns-3] [`Geometry`](https://docs.bear.build/docs/bear/engine/types.md#geometry) # steel (https://docs.bear.build/docs/bear/blueprints/connectors/steel) Import from `bear/blueprints/connectors/steel`. ## Variables [#variables] ### CONNECTOR\_DIVISION [#connector_division] ```ts const CONNECTOR_DIVISION: "06 05 23" = "06 05 23"; ``` Defined in: [bear/blueprints/connectors/steel.ts:26](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/connectors/steel.ts#L26) CSI division for metal fastenings in wood framing. *** ### GAUGE\_THICKNESS [#gauge_thickness] ```ts const GAUGE_THICKNESS: Record; ``` Defined in: [bear/blueprints/connectors/steel.ts:14](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/connectors/steel.ts#L14) Steel sheet thickness by gauge, in inches (manufacturer's standard). ## Functions [#functions] ### steelThickness() [#steelthickness] ```ts function steelThickness(gauge): number; ``` Defined in: [bear/blueprints/connectors/steel.ts:33](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/connectors/steel.ts#L33) Converts rather than measures: sheet steel is thinner than a project unit, and `toProjectUnits` would round 14ga through 20ga to the same 32nd, putting an envelope's datum a hair off its solid's. #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `gauge` | `number` \| `undefined` | #### Returns [#returns] `number` # types (https://docs.bear.build/docs/bear/blueprints/connectors/types) Import from `bear/blueprints/connectors/types`. ## Interfaces [#interfaces] ### AnchorBoltDims [#anchorboltdims] Defined in: [bear/blueprints/connectors/types.ts:229](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/connectors/types.ts#L229) Project units. #### Extended by [#extended-by] - [`AnchorBoltSpec`](https://docs.bear.build/docs/bear/blueprints/connectors/anchorBolts.md#anchorboltspec) #### Properties [#properties] | Property | Type | Description | | ------ | ------ | ------ | | `diameter` | `number` | - | | `edgeDistance` | `number` | The least cover from the bolt's centerline to the pour's side. | | `embedment` | `number` | Catalog le: how far below the top of the concrete it reaches. | | `length` | `number` | Overall length, embedded and projecting. | *** ### AnchorBoltProps [#anchorboltprops] Defined in: [bear/blueprints/connectors/types.ts:220](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/connectors/types.ts#L220) The props every cast-in anchor bolt accepts. Both are required: the pour sets its depth and `at` sets where it stands in plan, which is a layout decision the concrete cannot make. #### Properties [#properties-1] | Property | Type | Description | | ------ | ------ | ------ | | `at` | [`Point`](https://docs.bear.build/docs/bear/measurements.md#point) | The bolt's centerline in plan, in the bolt's parent frame. | | `concrete` | \| [`RelationTargetDescriptor`](https://docs.bear.build/docs/bear/engine/relations.md#relationtargetdescriptor)\<[`RelationKind`](https://docs.bear.build/docs/bear/engine/relations.md#relationkind)\> \| [`RelationTarget`](https://docs.bear.build/docs/bear/engine/relations.md#relationtarget) | The pour the bolt is cast into, entered from its top. | | `name?` | `string` | - | *** ### AngleDims [#angledims] Defined in: [bear/blueprints/connectors/types.ts:101](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/connectors/types.ts#L101) The catalog dimensions a fit check reads, in project units. #### Properties [#properties-2] | Property | Type | Description | | ------ | ------ | ------ | | `legA` | `number` | The leg lying on the first member's face. | | `legB` | `number` | The leg lying on the second member's face. | | `length` | `number` | Catalog L: how long the piece is along the fold. | | `steel` | `number` | Steel thickness from the gauge; each leg is this thick. | *** ### ColumnCapDims [#columncapdims] Defined in: [bear/blueprints/connectors/types.ts:207](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/connectors/types.ts#L207) Project units. #### Properties [#properties-3] | Property | Type | Description | | ------ | ------ | ------ | | `postWidth` | `number` | Catalog W2, across the post. | | `steel` | `number` | - | | `width` | `number` | Catalog W1, across the beam. | *** ### ColumnCapProps [#columncapprops] Defined in: [bear/blueprints/connectors/types.ts:198](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/connectors/types.ts#L198) Both roles are required: the post places the cap and the beam turns it. #### Properties [#properties-4] | Property | Type | Description | | ------ | ------ | ------ | | `beam` | \| [`RelationTargetDescriptor`](https://docs.bear.build/docs/bear/engine/relations.md#relationtargetdescriptor)\<[`RelationKind`](https://docs.bear.build/docs/bear/engine/relations.md#relationkind)\> \| [`RelationTarget`](https://docs.bear.build/docs/bear/engine/relations.md#relationtarget) | - | | `name?` | `string` | - | | `post` | \| [`RelationTargetDescriptor`](https://docs.bear.build/docs/bear/engine/relations.md#relationtargetdescriptor)\<[`RelationKind`](https://docs.bear.build/docs/bear/engine/relations.md#relationkind)\> \| [`RelationTarget`](https://docs.bear.build/docs/bear/engine/relations.md#relationtarget) | - | | `schedule?` | `string` | Catalog fastening option; the part's default when omitted. | *** ### CornerFit [#cornerfit] Defined in: [bear/blueprints/connectors/types.ts:116](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/connectors/types.ts#L116) What the corner offers the angle, in project units. Measured off the resolved roles by `./angles.ts`, which knows where the fold sits. #### Properties [#properties-5] | Property | Type | Description | | ------ | ------ | ------ | | `legA` | `number` | How far leg A's member runs past the corner, along leg A's reach. | | `legB` | `number` | How far leg B's member runs past the corner, along leg B's reach. | | `run` | `number` | The run the two members share along the fold. | *** ### FramingAngleProps [#framingangleprops] Defined in: [bear/blueprints/connectors/types.ts:90](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/connectors/types.ts#L90) The props every framing angle accepts, whoever makes it. Both targets must be Refs — `legA={getRef(plate, "top")}` — because a box does not say which corner: a joist on a plate takes an A35 on either cheek. #### Properties [#properties-6] | Property | Type | Description | | ------ | ------ | ------ | | `legA?` | \| [`RelationTargetDescriptor`](https://docs.bear.build/docs/bear/engine/relations.md#relationtargetdescriptor)\<[`RelationKind`](https://docs.bear.build/docs/bear/engine/relations.md#relationkind)\> \| [`RelationTarget`](https://docs.bear.build/docs/bear/engine/relations.md#relationtarget) | The member leg A lies on, by the face it lies on. | | `legB?` | \| [`RelationTargetDescriptor`](https://docs.bear.build/docs/bear/engine/relations.md#relationtargetdescriptor)\<[`RelationKind`](https://docs.bear.build/docs/bear/engine/relations.md#relationkind)\> \| [`RelationTarget`](https://docs.bear.build/docs/bear/engine/relations.md#relationtarget) | The member leg B lies on, by the face it lies on. | | `name?` | `string` | - | | `schedule?` | `string` | Catalog nailing option; the part's default when omitted. | *** ### HangerDims [#hangerdims] Defined in: [bear/blueprints/connectors/types.ts:50](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/connectors/types.ts#L50) The catalog dimensions a fit check reads, in project units. Stated as data on the part rather than re-derived from its geometry, so a checker never has to guess which box axis was which. #### Properties [#properties-7] | Property | Type | Description | | ------ | ------ | ------ | | `bearing` | `number` | Catalog B: the seat's depth, i.e. how far the joist bears in. | | `height` | `number` | Catalog H: overall height of the hanger. | | `steel` | `number` | Steel thickness from the gauge; the seat sits this far off the bottom. | | `width` | `number` | Catalog W: the seat's inside width, i.e. the joist thickness it takes. | *** ### HoldownDims [#holdowndims] Defined in: [bear/blueprints/connectors/types.ts:263](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/connectors/types.ts#L263) Project units. #### Properties [#properties-8] | Property | Type | Description | | ------ | ------ | ------ | | `depth` | `number` | Catalog B, how far the seat stands off the post face. | | `height` | `number` | Catalog H, up the post from the seat. | | `width` | `number` | Catalog W, across the post face. | *** ### HoldownProps [#holdownprops] Defined in: [bear/blueprints/connectors/types.ts:252](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/connectors/types.ts#L252) Both roles are required and both must be Refs, the way an angle's are: a post has four faces a holdown could lie on, and which end its seat goes to is the anchor's to say (a floor-to-floor holdown hangs seat-up), so neither is read off a box. #### Properties [#properties-9] | Property | Type | Description | | ------ | ------ | ------ | | `anchor` | \| [`RelationTargetDescriptor`](https://docs.bear.build/docs/bear/engine/relations.md#relationtargetdescriptor)\<[`RelationKind`](https://docs.bear.build/docs/bear/engine/relations.md#relationkind)\> \| [`RelationTarget`](https://docs.bear.build/docs/bear/engine/relations.md#relationtarget) | The plane the seat is set at, square to that face: `getRef(sill, "top")`. | | `name?` | `string` | - | | `post` | \| [`RelationTargetDescriptor`](https://docs.bear.build/docs/bear/engine/relations.md#relationtargetdescriptor)\<[`RelationKind`](https://docs.bear.build/docs/bear/engine/relations.md#relationkind)\> \| [`RelationTarget`](https://docs.bear.build/docs/bear/engine/relations.md#relationtarget) | The face the holdown's back lies on: `getRef(post, "front")`. | | `schedule?` | `string` | Catalog fastening option; the part's default when omitted. | *** ### JoistHangerProps [#joisthangerprops] Defined in: [bear/blueprints/connectors/types.ts:35](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/connectors/types.ts#L35) The props every joist hanger accepts, whoever makes it. #### Properties [#properties-10] | Property | Type | Description | | ------ | ------ | ------ | | `header?` | \| [`RelationTargetDescriptor`](https://docs.bear.build/docs/bear/engine/relations.md#relationtargetdescriptor)\<[`RelationKind`](https://docs.bear.build/docs/bear/engine/relations.md#relationkind)\> \| [`RelationTarget`](https://docs.bear.build/docs/bear/engine/relations.md#relationtarget) | The header, ledger or rim this hanger fastens to and bears on. | | `joist?` | \| [`RelationTargetDescriptor`](https://docs.bear.build/docs/bear/engine/relations.md#relationtargetdescriptor)\<[`RelationKind`](https://docs.bear.build/docs/bear/engine/relations.md#relationkind)\> \| [`RelationTarget`](https://docs.bear.build/docs/bear/engine/relations.md#relationtarget) | The joist seated in the hanger (the joist bears on the hanger). | | `name?` | `string` | - | | `schedule?` | `string` | Catalog nailing option; the part's default when omitted. | *** ### MudsillAnchorDims [#mudsillanchordims] Defined in: [bear/blueprints/connectors/types.ts:302](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/connectors/types.ts#L302) Project units. Printed on the series' drawing, not in a table. #### Extended by [#extended-by-1] - [`MudsillAnchorSpec`](https://docs.bear.build/docs/bear/blueprints/connectors/mudsillAnchors.md#mudsillanchorspec) #### Properties [#properties-11] | Property | Type | Description | | ------ | ------ | ------ | | `embedment` | `number` | How far the leg reaches below the top of the concrete. | | `endDistance` | `number` | The least distance from the end of the sill for its full load. | | `reach` | `number` | How far the leg reaches in from the face, under the sill. | *** ### MudsillAnchorProps [#mudsillanchorprops] Defined in: [bear/blueprints/connectors/types.ts:288](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/connectors/types.ts#L288) The props every mudsill anchor accepts. The sill is a Ref because the anchor goes on one face of it, and which one is the author's to say: `sill={getRef(sill, "front")}`. #### Properties [#properties-12] | Property | Type | Description | | ------ | ------ | ------ | | `at` | [`Point`](https://docs.bear.build/docs/bear/measurements.md#point) | Where along the sill it goes: a plan point, in the parent frame, that the anchor is carried square onto the named face from. | | `concrete` | \| [`RelationTargetDescriptor`](https://docs.bear.build/docs/bear/engine/relations.md#relationtargetdescriptor)\<[`RelationKind`](https://docs.bear.build/docs/bear/engine/relations.md#relationkind)\> \| [`RelationTarget`](https://docs.bear.build/docs/bear/engine/relations.md#relationtarget) | The pour the anchor is cast into, at the named face of the sill. | | `name?` | `string` | - | | `sill` | [`Ref`](https://docs.bear.build/docs/bear/engine/types.md#ref) | The sill face the straps are nailed to. | *** ### PostBaseDims [#postbasedims] Defined in: [bear/blueprints/connectors/types.ts:167](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/connectors/types.ts#L167) The catalog dimensions a post base's fit check and datum read, in project units. Stated as data on the part for the same reason a hanger's are: a checker never has to guess which box axis was which. #### Properties [#properties-13] | Property | Type | Description | | ------ | ------ | ------ | | `height` | `number` | Catalog H: overall height above the bearing plane. | | `length` | `number` | Catalog L: the plate's length, along the direction the pocket opens. | | `standoff` | `number` | How far above that plane the post bears: the standoff. | | `width` | `number` | Catalog W: the pocket's inside width, i.e. the post face it takes. | *** ### PostBaseProps [#postbaseprops] Defined in: [bear/blueprints/connectors/types.ts:154](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/connectors/types.ts#L154) The props every post base accepts, whoever makes it. `post` is required, where a hanger's and an angle's roles are optional, and the difference is not taste: a hanger is built before the joist that spans onto its seat, so `JoistFraming` fills that role in after the fact. A post base has nothing to fill in later — its post has to precede it in tree order for the role to resolve at all — so a base with no post is a base that would sit at its assembly's origin connected to nothing, and requiring the prop makes that unwritable. #### Properties [#properties-14] | Property | Type | Description | | ------ | ------ | ------ | | `name?` | `string` | - | | `post` | \| [`RelationTargetDescriptor`](https://docs.bear.build/docs/bear/engine/relations.md#relationtargetdescriptor)\<[`RelationKind`](https://docs.bear.build/docs/bear/engine/relations.md#relationkind)\> \| [`RelationTarget`](https://docs.bear.build/docs/bear/engine/relations.md#relationtarget) | The post this base stands under and carries. | | `schedule?` | `string` | Catalog fastening option; the part's default when omitted. | ## Type Aliases [#type-aliases] ### AnchorBoltPart [#anchorboltpart] ```ts type AnchorBoltPart = PartDef & object; ``` Defined in: [bear/blueprints/connectors/types.ts:240](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/connectors/types.ts#L240) A cast-in anchor bolt: bears on `concrete`, publishes no planes. #### Type Declaration [#type-declaration] | Name | Type | Description | | ------ | ------ | ------ | | `dims` | [`AnchorBoltDims`](https://docs.bear.build/docs/bear/blueprints/connectors/types.md#anchorboltdims) | - | | `model` | `string` | Catalog model number, e.g. "SSTB16". | *** ### ColumnCapPart [#columncappart] ```ts type ColumnCapPart = PartDef & object; ``` Defined in: [bear/blueprints/connectors/types.ts:323](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/connectors/types.ts#L323) A column cap: bears on `post`, carries `beam`, publishes `seat` and `base`. #### Type Declaration [#type-declaration-1] | Name | Type | Description | | ------ | ------ | ------ | | `defaultSchedule?` | `string` | The option that applies when an element names none; absent when unrated. | | `dims` | [`ColumnCapDims`](https://docs.bear.build/docs/bear/blueprints/connectors/types.md#columncapdims) | - | | `model` | `string` | Catalog model number, e.g. "BC4Z". | | `schedules` | `Readonly`\<`Record`\<`string`, [`ConnectorSchedule`](https://docs.bear.build/docs/bear/blueprints/connectors/schedules.md#connectorschedule)\>\> | Fastener and capacity options, by schedule name; empty when unrated. | *** ### FramingAnglePart [#framinganglepart] ```ts type FramingAnglePart = PartDef & object; ``` Defined in: [bear/blueprints/connectors/types.ts:129](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/connectors/types.ts#L129) A framing angle: the `legA` and `legB` roles and its catalog identity. It publishes no planes — nothing lands on an angle, it is nailed on. #### Type Declaration [#type-declaration-2] | Name | Type | Description | | ------ | ------ | ------ | | `defaultSchedule?` | `string` | The option that applies when an element names none; absent when unrated. | | `dims` | [`AngleDims`](https://docs.bear.build/docs/bear/blueprints/connectors/types.md#angledims) | - | | `model` | `string` | Catalog model number, e.g. "A35". | | `schedules` | `Readonly`\<`Record`\<`string`, [`ConnectorSchedule`](https://docs.bear.build/docs/bear/blueprints/connectors/schedules.md#connectorschedule)\>\> | Fastener and capacity options, by schedule name; empty when unrated. | *** ### HoldownPart [#holdownpart] ```ts type HoldownPart = PartDef & object; ``` Defined in: [bear/blueprints/connectors/types.ts:273](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/connectors/types.ts#L273) A holdown: carries `post`, bears on `anchor`, publishes no planes. #### Type Declaration [#type-declaration-3] | Name | Type | Description | | ------ | ------ | ------ | | `defaultSchedule?` | `string` | The option that applies when an element names none; absent when unrated. | | `dims` | [`HoldownDims`](https://docs.bear.build/docs/bear/blueprints/connectors/types.md#holdowndims) | - | | `model` | `string` | Catalog model number, e.g. "DTT2Z". | | `schedules` | `Readonly`\<`Record`\<`string`, [`ConnectorSchedule`](https://docs.bear.build/docs/bear/blueprints/connectors/schedules.md#connectorschedule)\>\> | Fastener and capacity options, by schedule name; empty when unrated. | *** ### JoistHangerPart [#joisthangerpart] ```ts type JoistHangerPart = PartDef & object; ``` Defined in: [bear/blueprints/connectors/types.ts:69](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/connectors/types.ts#L69) A joist hanger: two roles, one published plane, and its catalog identity. - props take `header` and `joist` relation targets; - `connects` has exactly the `header` and `joist` roles; - `refs` publishes `"face"` (the flange against the header) and `"seat"` (where the joist end lands), so a joist can rest on one. #### Type Declaration [#type-declaration-4] | Name | Type | Description | | ------ | ------ | ------ | | `defaultSchedule?` | `string` | The option that applies when an element names none; absent when unrated. | | `dims` | [`HangerDims`](https://docs.bear.build/docs/bear/blueprints/connectors/types.md#hangerdims) | - | | `model` | `string` | Catalog model number, e.g. "LUS28". | | `mount` | `"faceMount"` \| `"topFlange"` | How the hanger meets its header: the pose it derives. | | `schedules` | `Readonly`\<`Record`\<`string`, [`ConnectorSchedule`](https://docs.bear.build/docs/bear/blueprints/connectors/schedules.md#connectorschedule)\>\> | Fastener and capacity options, by schedule name; empty when unrated. | *** ### MudsillAnchorPart [#mudsillanchorpart] ```ts type MudsillAnchorPart = PartDef & object; ``` Defined in: [bear/blueprints/connectors/types.ts:312](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/connectors/types.ts#L312) A mudsill anchor: bears on `concrete`, fastened to `sill`, no planes. #### Type Declaration [#type-declaration-5] | Name | Type | Description | | ------ | ------ | ------ | | `dims` | [`MudsillAnchorDims`](https://docs.bear.build/docs/bear/blueprints/connectors/types.md#mudsillanchordims) | - | | `model` | `string` | Catalog model number, e.g. "MASA". | *** ### PostBasePart [#postbasepart] ```ts type PostBasePart = PartDef & object; ``` Defined in: [bear/blueprints/connectors/types.ts:187](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/connectors/types.ts#L187) A post base: one role, two published planes, and its catalog identity. - props take a `post` relation target; - `connects` has exactly the `post` role, which the base carries; - `refs` publishes `"seat"` (the surface the post bears on, one standoff up) and `"base"` (the bearing plane it stands on), so a post can rest on one and a pier can carry one. #### Type Declaration [#type-declaration-6] | Name | Type | Description | | ------ | ------ | ------ | | `defaultSchedule?` | `string` | The option that applies when an element names none; absent when unrated. | | `dims` | [`PostBaseDims`](https://docs.bear.build/docs/bear/blueprints/connectors/types.md#postbasedims) | - | | `model` | `string` | Catalog model number, e.g. "ABU66Z". | | `schedules` | `Readonly`\<`Record`\<`string`, [`ConnectorSchedule`](https://docs.bear.build/docs/bear/blueprints/connectors/schedules.md#connectorschedule)\>\> | Fastener and capacity options, by schedule name; empty when unrated. | # framing (https://docs.bear.build/docs/bear/blueprints/framing) Import from `bear/blueprints/framing`. ## Interfaces [#interfaces] ### FramedOpening [#framedopening] Defined in: [bear/blueprints/framing.ts:13](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/framing.ts#L13) The excluded span a hosted component reserves in a stud field, in authored order. #### Properties [#properties] | Property | Type | | ------ | ------ | | `end` | [`Ref`](https://docs.bear.build/docs/bear/engine/types.md#ref) | | `start` | [`Ref`](https://docs.bear.build/docs/bear/engine/types.md#ref) | *** ### StudFrame [#studframe] Defined in: [bear/blueprints/framing.ts:32](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/framing.ts#L32) The framing's facts, in its own frame (x along the wall, centered). #### Properties [#properties-1] | Property | Type | Description | | ------ | ------ | ------ | | `height` | `number` | Wall height at the start, in project units; 0 for a wall line. | | `length` | `number` | Wall length in project units: the wall line, which openings and pitch measure from. | | `onCenter` | `number` | Stud spacing in project units. | | `pitch` | `number` | Rise per unit run of the top plate (0 when flat). | | `plateTop` | `number` | Top of the base plate: where studs and rough openings begin. | | `span` | \[`number`, `number`\] | Where the framing runs (local x): the wall line, unless a join at an end stretches or shortens it. Studs lay out from its start. | | `studSize` | [`WallStudSize`](https://docs.bear.build/docs/bear/blueprints/framing.md#wallstudsize) | - | *** ### WallLayers [#walllayers] Defined in: [bear/blueprints/framing.ts:84](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/framing.ts#L84) The layers stacked on a wall's framing, for the openings that cut them: the layer elements themselves (a relation target by identity, so no name can be ambiguous), and how far the stack reaches on each side of the framing (local y). #### Properties [#properties-2] | Property | Type | | ------ | ------ | | `elements` | readonly [`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement)\<`object`\>[] | | `yMax` | `number` | | `yMin` | `number` | ## Type Aliases [#type-aliases] ### WallStudSize [#wallstudsize] ```ts type WallStudSize = "2x3" | "2x4" | "2x6" | "2x8"; ``` Defined in: [bear/blueprints/framing.ts:20](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/framing.ts#L20) Nominal lumber sizes suitable for wall studs and plates. ## Variables [#variables] ### FramedOpenings [#framedopenings] ```ts const FramedOpenings: HostSlot; ``` Defined in: [bear/blueprints/framing.ts:17](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/framing.ts#L17) *** ### FramingSupports [#framingsupports] ```ts const FramingSupports: BearContext<{ base: BearElement; top: BearElement; }>; ``` Defined in: [bear/blueprints/framing.ts:53](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/framing.ts#L53) Physical supports are identities, independent of nested names and wrapper scopes. *** ### StudFrame [#studframe-1] ```ts StudFrame: BearContext; ``` Defined in: [bear/blueprints/framing.ts:32](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/framing.ts#L32) *** ### WallLayers [#walllayers-1] ```ts WallLayers: BearContext; ``` Defined in: [bear/blueprints/framing.ts:84](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/framing.ts#L84) ## Functions [#functions] ### crossSectionPu() [#crosssectionpu] ```ts function crossSectionPu(size): [number, number]; ``` Defined in: [bear/blueprints/framing.ts:25](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/framing.ts#L25) Actual cross-section dimensions for a nominal lumber size, in project units. #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `size` | [`WallStudSize`](https://docs.bear.build/docs/bear/blueprints/framing.md#wallstudsize) | #### Returns [#returns] \[`number`, `number`\] *** ### openingLeft() [#openingleft] ```ts function openingLeft( x, width, length ): number; ``` Defined in: [bear/blueprints/framing.ts:74](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/framing.ts#L74) The inverse of `openingX`. #### Parameters [#parameters-1] | Parameter | Type | | ------ | ------ | | `x` | `number` | | `width` | `number` | | `length` | `number` | #### Returns [#returns-1] `number` *** ### openingX() [#openingx] ```ts function openingX( left, width, length ): number; ``` Defined in: [bear/blueprints/framing.ts:69](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/framing.ts#L69) An opening's position along its wall, from its offset from the wall's start. #### Parameters [#parameters-2] | Parameter | Type | | ------ | ------ | | `left` | `number` | | `width` | `number` | | `length` | `number` | #### Returns [#returns-2] `number` *** ### studFieldHeight() [#studfieldheight] ```ts function studFieldHeight(frame, x): number; ``` Defined in: [bear/blueprints/framing.ts:63](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/framing.ts#L63) The height a stud reaches between the plates at a position along the wall (local x, centered). Linear in x, so a raked wall's low point is one of its ends. #### Parameters [#parameters-3] | Parameter | Type | | ------ | ------ | | `frame` | [`StudFrame`](https://docs.bear.build/docs/bear/blueprints/framing.md#studframe) | | `x` | `number` | #### Returns [#returns-3] `number` # AsphaltShingles (https://docs.bear.build/docs/bear/blueprints/materials/AsphaltShingles) Import from `bear/blueprints/materials/AsphaltShingles`. ## Interfaces [#interfaces] ### AsphaltShinglesProps [#asphaltshinglesprops] Defined in: [bear/blueprints/materials/AsphaltShingles.ts:14](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/AsphaltShingles.ts#L14) #### Properties [#properties] | Property | Type | Description | | ------ | ------ | ------ | | `color?` | `number` | Shingle color (hex for rendering, name string for BOM). Defaults per style. | | `exposure?` | [`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement) | Exposure per course. Defaults per style. | | `face` | \| [`Surface`](https://docs.bear.build/docs/bear/geometry/shapes.md#surface) \| [`Ref`](https://docs.bear.build/docs/bear/engine/types.md#ref) | Authored as a Ref (resolved when the node is collected) or a literal Surface. | | `label?` | `string` | - | | `overlap?` | [`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement) | Overlap between courses. This is shingleHeight - exposure. | | `panelRegion?` | [`PanelPlacement`](https://docs.bear.build/docs/bear/engine/panelize.md#panelplacement) | Optional sub-region for panelized (overlapping) layout. | | `shingleHeight?` | [`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement) | Shingle height (perpendicular to course). Defaults to "12in". | | `shingleWidth?` | [`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement) | Shingle width (along the course). Defaults to "36in". | | `style?` | [`AsphaltShingleStyle`](https://docs.bear.build/docs/bear/blueprints/materials/AsphaltShingles.md#asphaltshinglestyle) | Shingle style. Defaults to "architectural". | ## Type Aliases [#type-aliases] ### AsphaltShingleStyle [#asphaltshinglestyle] ```ts type AsphaltShingleStyle = "3-tab" | "architectural" | "designer"; ``` Defined in: [bear/blueprints/materials/AsphaltShingles.ts:12](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/AsphaltShingles.ts#L12) ## Variables [#variables] ### AsphaltShingles [#asphaltshingles] ```ts const AsphaltShingles: PartDef; ``` Defined in: [bear/blueprints/materials/AsphaltShingles.ts:89](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/AsphaltShingles.ts#L89) AsphaltShingles: asphalt roofing shingle. Renders as a flat slab per panel region (individual shingle or course segment). Designed to be used with the "overlapping" panelization strategy so that courses overlap with the correct exposure. The overlap (shingleHeight - exposure) determines how much of each course is covered by the course above it. CSI Division 07 31 13. # BasePlate (https://docs.bear.build/docs/bear/blueprints/materials/BasePlate) Import from `bear/blueprints/materials/BasePlate`. ## Interfaces [#interfaces] ### BasePlateProps [#baseplateprops] Defined in: [bear/blueprints/materials/BasePlate.ts:21](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/BasePlate.ts#L21) #### Properties [#properties] | Property | Type | Description | | ------ | ------ | ------ | | `anchorBoltCount?` | `number` | Number of anchor bolts (for BOM, not geometry). | | `anchorBoltDiameter?` | `string` | Anchor bolt diameter, e.g., "3/4in", "1in". | | `depth` | `number` | Plate depth in project units. | | `grade?` | `"A36"` \| `"A572-50"` | Steel grade. Defaults to "A36". | | `label?` | `string` | - | | `thickness?` | [`PlateThickness`](https://docs.bear.build/docs/bear/blueprints/materials/BasePlate.md#platethickness) | Plate thickness. Defaults to "3/4in". | | `width` | `number` | Plate width in project units. | ## Type Aliases [#type-aliases] ### PlateThickness [#platethickness] ```ts type PlateThickness = "1/2in" | "5/8in" | "3/4in" | "1in" | "1-1/4in" | "1-1/2in" | "2in"; ``` Defined in: [bear/blueprints/materials/BasePlate.ts:12](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/BasePlate.ts#L12) ## Variables [#variables] ### BasePlate [#baseplate] ```ts const BasePlate: PartDef; ``` Defined in: [bear/blueprints/materials/BasePlate.ts:64](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/BasePlate.ts#L64) BasePlate: steel base plate for column connections. Simple box geometry: width x depth x thickness. Anchor bolt info is tracked for BOM but not rendered in geometry. CSI Division 05 10 00. # BuildingPaper (https://docs.bear.build/docs/bear/blueprints/materials/BuildingPaper) Import from `bear/blueprints/materials/BuildingPaper`. ## Interfaces [#interfaces] ### BuildingPaperProps [#buildingpaperprops] Defined in: [bear/blueprints/materials/BuildingPaper.ts:3](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/BuildingPaper.ts#L3) #### Properties [#properties] | Property | Type | Description | | ------ | ------ | ------ | | `grade?` | `"D"` | Paper grade. Defaults to "D". | | `label?` | `string` | - | | `layers?` | `number` | Number of layers. Defaults to 1. | ## Variables [#variables] ### BuildingPaper [#buildingpaper] ```ts const BuildingPaper: PartDef; ``` Defined in: [bear/blueprints/materials/BuildingPaper.ts:16](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/BuildingPaper.ts#L16) BuildingPaper — weather-resistive barrier. BOM-only part (no geometry). Tracks material for takeoff. CSI Division 07 25 00. # CMU (https://docs.bear.build/docs/bear/blueprints/materials/CMU) Import from `bear/blueprints/materials/CMU`. ## Interfaces [#interfaces] ### CMUProps [#cmuprops] Defined in: [bear/blueprints/materials/CMU.ts:21](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/CMU.ts#L21) #### Properties [#properties] | Property | Type | Description | | ------ | ------ | ------ | | `density?` | [`CMUDensity`](https://docs.bear.build/docs/bear/blueprints/materials/CMU.md#cmudensity) | Density class. Defaults to "normal". | | `grouted?` | `boolean` | Whether cells are grouted. Defaults to false. | | `label?` | `string` | - | | `length` | `number` | Height/length in project units (the dimension the block extends along). | | `mortarType?` | [`MortarType`](https://docs.bear.build/docs/bear/blueprints/materials/CMU.md#mortartype) | Mortar type. Defaults to "S". | | `nominalWidth?` | [`CMUNominalWidth`](https://docs.bear.build/docs/bear/blueprints/materials/CMU.md#cmunominalwidth) | Nominal block width. Defaults to "8in". | | `type?` | [`CMUType`](https://docs.bear.build/docs/bear/blueprints/materials/CMU.md#cmutype) | Block type. Defaults to "stretcher". | ## Type Aliases [#type-aliases] ### CMUDensity [#cmudensity] ```ts type CMUDensity = "lightweight" | "medium" | "normal"; ``` Defined in: [bear/blueprints/materials/CMU.ts:18](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/CMU.ts#L18) *** ### CMUNominalWidth [#cmunominalwidth] ```ts type CMUNominalWidth = "4in" | "6in" | "8in" | "10in" | "12in"; ``` Defined in: [bear/blueprints/materials/CMU.ts:10](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/CMU.ts#L10) *** ### CMUType [#cmutype] ```ts type CMUType = | "stretcher" | "bond-beam" | "lintel" | "pilaster" | "split-face" | "solid"; ``` Defined in: [bear/blueprints/materials/CMU.ts:11](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/CMU.ts#L11) *** ### MortarType [#mortartype] ```ts type MortarType = "M" | "S" | "N"; ``` Defined in: [bear/blueprints/materials/CMU.ts:19](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/CMU.ts#L19) ## Variables [#variables] ### CMU [#cmu] ```ts const CMU: PartDef; ``` Defined in: [bear/blueprints/materials/CMU.ts:97](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/CMU.ts#L97) Concrete masonry unit (CMU) block. Models a single block extruded along the `length` axis (wall run direction). Hollow stretcher blocks (non-grouted) have two rectangular cores subtracted. CSI Division 04 20 00. # CedarShingles (https://docs.bear.build/docs/bear/blueprints/materials/CedarShingles) Import from `bear/blueprints/materials/CedarShingles`. ## Interfaces [#interfaces] ### CedarShinglesProps [#cedarshinglesprops] Defined in: [bear/blueprints/materials/CedarShingles.ts:6](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/CedarShingles.ts#L6) #### Properties [#properties] | Property | Type | Description | | ------ | ------ | ------ | | `color?` | `string` | Stain/finish color. | | `exposure?` | `string` | Shingle exposure. | | `finish?` | [`CedarShingleFinish`](https://docs.bear.build/docs/bear/blueprints/materials/CedarShingles.md#cedarshinglefinish) | Finish type. Defaults to "solid-stain". | | `grade?` | [`CedarShingleGrade`](https://docs.bear.build/docs/bear/blueprints/materials/CedarShingles.md#cedarshinglegrade) | Shingle grade. Defaults to "Blue Label". | | `label?` | `string` | - | ## Type Aliases [#type-aliases] ### CedarShingleFinish [#cedarshinglefinish] ```ts type CedarShingleFinish = "solid-stain" | "semi-transparent" | "natural"; ``` Defined in: [bear/blueprints/materials/CedarShingles.ts:4](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/CedarShingles.ts#L4) *** ### CedarShingleGrade [#cedarshinglegrade] ```ts type CedarShingleGrade = "Blue Label" | "Red Label" | "Black Label"; ``` Defined in: [bear/blueprints/materials/CedarShingles.ts:3](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/CedarShingles.ts#L3) ## Variables [#variables] ### CedarShingles [#cedarshingles] ```ts const CedarShingles: PartDef; ``` Defined in: [bear/blueprints/materials/CedarShingles.ts:23](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/CedarShingles.ts#L23) CedarShingles — cedar shingle siding/roofing. BOM-only part (no geometry). Tracks material for takeoff. CSI Division 07 46 23. # ColdFormedSteel (https://docs.bear.build/docs/bear/blueprints/materials/ColdFormedSteel) Import from `bear/blueprints/materials/ColdFormedSteel`. ## Interfaces [#interfaces] ### ColdFormedSteelProps [#coldformedsteelprops] Defined in: [bear/blueprints/materials/ColdFormedSteel.ts:26](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/ColdFormedSteel.ts#L26) #### Properties [#properties] | Property | Type | Description | | ------ | ------ | ------ | | `coating?` | [`CFSCoating`](https://docs.bear.build/docs/bear/blueprints/materials/ColdFormedSteel.md#cfscoating) | Galvanized coating. Defaults to "G60". | | `gauge?` | [`CFSGauge`](https://docs.bear.build/docs/bear/blueprints/materials/ColdFormedSteel.md#cfsgauge) | Steel gauge. Defaults to "20ga". | | `label?` | `string` | - | | `length` | `number` | Member length in project units. | | `member?` | [`CFSMember`](https://docs.bear.build/docs/bear/blueprints/materials/ColdFormedSteel.md#cfsmember) | Member type. Defaults to "stud". | | `structural?` | `boolean` | Whether this is a structural (load-bearing) member. | | `webDepth?` | [`CFSWebDepth`](https://docs.bear.build/docs/bear/blueprints/materials/ColdFormedSteel.md#cfswebdepth) | Web depth. Defaults to "3-5/8in". | ## Type Aliases [#type-aliases] ### CFSCoating [#cfscoating] ```ts type CFSCoating = "G60" | "G90"; ``` Defined in: [bear/blueprints/materials/ColdFormedSteel.ts:24](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/ColdFormedSteel.ts#L24) *** ### CFSGauge [#cfsgauge] ```ts type CFSGauge = "20ga" | "18ga" | "16ga" | "14ga" | "12ga"; ``` Defined in: [bear/blueprints/materials/ColdFormedSteel.ts:23](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/ColdFormedSteel.ts#L23) *** ### CFSMember [#cfsmember] ```ts type CFSMember = "stud" | "track"; ``` Defined in: [bear/blueprints/materials/ColdFormedSteel.ts:14](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/ColdFormedSteel.ts#L14) *** ### CFSWebDepth [#cfswebdepth] ```ts type CFSWebDepth = "2-1/2in" | "3-5/8in" | "4in" | "6in" | "8in" | "10in" | "12in"; ``` Defined in: [bear/blueprints/materials/ColdFormedSteel.ts:15](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/ColdFormedSteel.ts#L15) ## Variables [#variables] ### ColdFormedSteel [#coldformedsteel] ```ts const ColdFormedSteel: PartDef; ``` Defined in: [bear/blueprints/materials/ColdFormedSteel.ts:101](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/ColdFormedSteel.ts#L101) Cold-formed steel framing member: C-studs and tracks. Studs have a C-shaped cross section (web + two flanges with lips). Tracks have a U-shaped cross section (web + two legs, no lips). Geometry is built from manifold boxes approximating the thin-wall profile. CSI Division 05 40 00. # Concrete (https://docs.bear.build/docs/bear/blueprints/materials/Concrete) Import from `bear/blueprints/materials/Concrete`. ## Interfaces [#interfaces] ### ConcreteProps [#concreteprops] Defined in: [bear/blueprints/materials/Concrete.ts:21](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/Concrete.ts#L21) #### Properties [#properties] | Property | Type | Description | | ------ | ------ | ------ | | `depth` | `number` | Depth/thickness in project units. | | `height` | `number` | Height/length in project units. | | `label?` | `string` | - | | `rebar?` | [`RebarSize`](https://docs.bear.build/docs/bear/blueprints/materials/Concrete.md#rebarsize) | Primary reinforcement bar size. | | `rebarSpacing?` | `string` | Rebar spacing (e.g., "12in"). | | `strength?` | [`ConcreteStrength`](https://docs.bear.build/docs/bear/blueprints/materials/Concrete.md#concretestrength) | 28-day compressive strength in PSI. Defaults to "4000". | | `use?` | [`ConcreteUse`](https://docs.bear.build/docs/bear/blueprints/materials/Concrete.md#concreteuse) | Intended use. | | `width` | `number` | Width in project units. | ## Type Aliases [#type-aliases] ### ConcreteStrength [#concretestrength] ```ts type ConcreteStrength = "3000" | "3500" | "4000" | "5000"; ``` Defined in: [bear/blueprints/materials/Concrete.ts:13](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/Concrete.ts#L13) 28-day compressive strength in PSI. *** ### ConcreteUse [#concreteuse] ```ts type ConcreteUse = "footing" | "slab" | "wall" | "grade-beam"; ``` Defined in: [bear/blueprints/materials/Concrete.ts:16](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/Concrete.ts#L16) Intended use of the concrete member. *** ### RebarSize [#rebarsize] ```ts type RebarSize = "#3" | "#4" | "#5" | "#6" | "#7" | "#8"; ``` Defined in: [bear/blueprints/materials/Concrete.ts:19](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/Concrete.ts#L19) Standard rebar bar size. ## Variables [#variables] ### Concrete [#concrete] ```ts const Concrete: PartDef; ``` Defined in: [bear/blueprints/materials/Concrete.ts:57](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/Concrete.ts#L57) # CortenCorrugate (https://docs.bear.build/docs/bear/blueprints/materials/CortenCorrugate) Import from `bear/blueprints/materials/CortenCorrugate`. ## Interfaces [#interfaces] ### CortenCorrugateProps [#cortencorrugateprops] Defined in: [bear/blueprints/materials/CortenCorrugate.ts:40](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/CortenCorrugate.ts#L40) #### Properties [#properties] | Property | Type | Description | | ------ | ------ | ------ | | `amplitude?` | [`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement) | Corrugation amplitude (half the wave height). Defaults per profile. | | `color?` | `number` | Custom color hex. Overrides the default corten color. | | `face` | \| [`Surface`](https://docs.bear.build/docs/bear/geometry/shapes.md#surface) \| [`Ref`](https://docs.bear.build/docs/bear/engine/types.md#ref) | Authored as a Ref (resolved when the node is collected) or a literal Surface. | | `gauge?` | [`CortenGauge`](https://docs.bear.build/docs/bear/blueprints/materials/CortenCorrugate.md#cortengauge) | Steel gauge. Defaults to "22". | | `label?` | `string` | - | | `panelRegion?` | [`PanelPlacement`](https://docs.bear.build/docs/bear/engine/panelize.md#panelplacement) | Optional sub-region for panelized layout. | | `pitch?` | [`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement) | Corrugation pitch (wave period). Defaults per profile. | | `profile?` | [`CorrugateProfile`](https://docs.bear.build/docs/bear/blueprints/materials/CortenCorrugate.md#corrugateprofile) | Corrugation profile. Defaults to "7/8-corrugated". | | `ridgeDirection?` | [`CorrugateRidgeDirection`](https://docs.bear.build/docs/bear/blueprints/materials/CortenCorrugate.md#corrugateridgedirection) | Direction the corrugation ridges run. Defaults to "downhill" which auto-detects slope from the face frame so water flows down the troughs. | | `segments?` | `number` | Number of line segments per wave cycle for mesh quality. Defaults to 12. | ## Type Aliases [#type-aliases] ### CorrugateProfile [#corrugateprofile] ```ts type CorrugateProfile = "7/8-corrugated" | "1/2-corrugated"; ``` Defined in: [bear/blueprints/materials/CortenCorrugate.ts:26](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/CortenCorrugate.ts#L26) *** ### CorrugateRidgeDirection [#corrugateridgedirection] ```ts type CorrugateRidgeDirection = "u" | "v" | "downhill"; ``` Defined in: [bear/blueprints/materials/CortenCorrugate.ts:38](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/CortenCorrugate.ts#L38) Which axis the corrugation ridges run along. - `"downhill"` (default): automatically orient ridges along whichever face axis has the steeper slope so water channels down the troughs. Falls back to `"v"` when the face has no slope information or both axes are equally steep. - `"u"`: ridges run along the face U axis. - `"v"`: ridges run along the face V axis (the original fixed behavior). *** ### CortenGauge [#cortengauge] ```ts type CortenGauge = "22" | "20" | "18" | "16"; ``` Defined in: [bear/blueprints/materials/CortenCorrugate.ts:24](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/CortenCorrugate.ts#L24) ## Variables [#variables] ### CortenCorrugate [#cortencorrugate] ```ts const CortenCorrugate: PartDef; ``` Defined in: [bear/blueprints/materials/CortenCorrugate.ts:286](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/CortenCorrugate.ts#L286) CortenCorrugate: corrugated Corten (weathering steel) panel. A sine-wave corrugated panel that sits flush on its mounting surface and publishes a "top" face at the corrugation crest for any subsequent layer (though typically nothing is laid on top). CSI Division 07 41 13: Metal Roof Panels. # CortenShingle (https://docs.bear.build/docs/bear/blueprints/materials/CortenShingle) Import from `bear/blueprints/materials/CortenShingle`. ## Interfaces [#interfaces] ### CortenShingleProps [#cortenshingleprops] Defined in: [bear/blueprints/materials/CortenShingle.ts:15](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/CortenShingle.ts#L15) #### Properties [#properties] | Property | Type | Description | | ------ | ------ | ------ | | `color?` | `number` | Custom color hex. Overrides the default corten color. | | `exposure?` | [`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement) | Exposure per course (the visible portion). Defaults to 12in (giving a 6in overlap for an 18in shingle). | | `face` | \| [`Surface`](https://docs.bear.build/docs/bear/geometry/shapes.md#surface) \| [`Ref`](https://docs.bear.build/docs/bear/engine/types.md#ref) | Authored as a Ref (resolved when the node is collected) or a literal Surface. | | `gauge?` | [`CortenShingleGauge`](https://docs.bear.build/docs/bear/blueprints/materials/CortenShingle.md#cortenshinglegauge) | Steel gauge. Defaults to "22". | | `label?` | `string` | - | | `panelRegion?` | [`PanelPlacement`](https://docs.bear.build/docs/bear/engine/panelize.md#panelplacement) | Optional sub-region for panelized (overlapping) layout. | | `shingleHeight?` | [`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement) | Shingle height (perpendicular to course, i.e. the full shingle dimension including the portion hidden by the course above). Defaults to 18in. | | `shingleWidth?` | [`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement) | Shingle width (along the course direction). Defaults to 36in (3ft). | ## Type Aliases [#type-aliases] ### CortenShingleGauge [#cortenshinglegauge] ```ts type CortenShingleGauge = "22" | "20" | "18" | "16"; ``` Defined in: [bear/blueprints/materials/CortenShingle.ts:13](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/CortenShingle.ts#L13) ## Variables [#variables] ### CortenShingle [#cortenshingle] ```ts const CortenShingle: PartDef; ``` Defined in: [bear/blueprints/materials/CortenShingle.ts:93](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/CortenShingle.ts#L93) CortenShingle: flat Corten (weathering steel) shingle. Renders as a flat slab per panel region, designed to be used with the "overlapping" panelization strategy so that courses overlap with the correct exposure. The overlap (shingleHeight - exposure) determines how much of each course is covered by the course above it. CSI Division 07 42 13: Metal Wall Panels. # Drywall (https://docs.bear.build/docs/bear/blueprints/materials/Drywall) Import from `bear/blueprints/materials/Drywall`. ## Interfaces [#interfaces] ### DrywallProps [#drywallprops] Defined in: [bear/blueprints/materials/Drywall.ts:23](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/Drywall.ts#L23) Base props shared by all sheet-good types (OSB, Plywood, Drywall, etc.). #### Extends [#extends] - [`SheetGoodBaseProps`](https://docs.bear.build/docs/bear/blueprints/materials/SheetGood.md#sheetgoodbaseprops) #### Properties [#properties] | Property | Type | Description | Inherited from | | ------ | ------ | ------ | ------ | | `edge?` | [`DrywallEdge`](https://docs.bear.build/docs/bear/blueprints/materials/Drywall.md#drywalledge) | Edge profile. Tapered edges are standard for taping joints. | - | | `face` | \| [`Surface`](https://docs.bear.build/docs/bear/geometry/shapes.md#surface) \| [`Ref`](https://docs.bear.build/docs/bear/engine/types.md#ref) | Authored as a Ref (resolved when the node is collected) or a literal Surface. | [`SheetGoodBaseProps`](https://docs.bear.build/docs/bear/blueprints/materials/SheetGood.md#sheetgoodbaseprops).[`face`](https://docs.bear.build/docs/bear/blueprints/materials/SheetGood.md#property-face) | | `fireRating?` | [`DrywallFireRating`](https://docs.bear.build/docs/bear/blueprints/materials/Drywall.md#drywallfirerating) | Fire classification. "Type X" is 1-hour rated, "Type C" is enhanced. Defaults to "regular". | - | | `moistureResistant?` | `boolean` | Moisture resistant gypsum board (green board). | - | | `moldResistant?` | `boolean` | Mold resistant gypsum board (paperless / fiberglass-faced). | - | | `panelRegion?` | [`PanelPlacement`](https://docs.bear.build/docs/bear/engine/panelize.md#panelplacement) | - | [`SheetGoodBaseProps`](https://docs.bear.build/docs/bear/blueprints/materials/SheetGood.md#sheetgoodbaseprops).[`panelRegion`](https://docs.bear.build/docs/bear/blueprints/materials/SheetGood.md#property-panelregion) | | `product?` | `string` | - | [`SheetGoodBaseProps`](https://docs.bear.build/docs/bear/blueprints/materials/SheetGood.md#sheetgoodbaseprops).[`product`](https://docs.bear.build/docs/bear/blueprints/materials/SheetGood.md#property-product) | | `thickness` | [`DrywallThickness`](https://docs.bear.build/docs/bear/blueprints/materials/Drywall.md#drywallthickness) | Board thickness. Standard residential is "1/2in", fire-rated is "5/8in". | - | ## Type Aliases [#type-aliases] ### DrywallEdge [#drywalledge] ```ts type DrywallEdge = "tapered" | "square"; ``` Defined in: [bear/blueprints/materials/Drywall.ts:21](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/Drywall.ts#L21) *** ### DrywallFireRating [#drywallfirerating] ```ts type DrywallFireRating = "regular" | "Type X" | "Type C"; ``` Defined in: [bear/blueprints/materials/Drywall.ts:19](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/Drywall.ts#L19) Fire classification per ASTM C1396. *** ### DrywallThickness [#drywallthickness] ```ts type DrywallThickness = "1/4in" | "3/8in" | "1/2in" | "5/8in"; ``` Defined in: [bear/blueprints/materials/Drywall.ts:16](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/Drywall.ts#L16) Standard gypsum board thickness. Matches industry-standard fractional-inch sizes per ASTM C1396. ## Variables [#variables] ### default [#default] ```ts const default: PartDef; ``` Defined in: [bear/blueprints/materials/Drywall.ts:74](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/Drywall.ts#L74) Drywall (gypsum wallboard): interior finish sheet good. Thickness determines the board size. Fire rating, moisture/mold resistance, and edge type are specifiable properties. CSI Division 09 29 00. # Glulam (https://docs.bear.build/docs/bear/blueprints/materials/Glulam) Import from `bear/blueprints/materials/Glulam`. ## Interfaces [#interfaces] ### GlulamProps [#glulamprops] Defined in: [bear/blueprints/materials/Glulam.ts:85](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/Glulam.ts#L85) #### Properties [#properties] | Property | Type | Description | | ------ | ------ | ------ | | `appearance?` | [`GlulamAppearance`](https://docs.bear.build/docs/bear/blueprints/materials/Glulam.md#glulamappearance) | Visual appearance grade. Defaults to "framing". | | `depth` | [`GlulamDepth`](https://docs.bear.build/docs/bear/blueprints/materials/Glulam.md#glulamdepth) | Cross-section depth (actual dimension). | | `label?` | `string` | - | | `length` | [`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement) | Member length (e.g. "20ft", "240in", or raw project units). | | `species?` | [`GlulamSpecies`](https://docs.bear.build/docs/bear/blueprints/materials/Glulam.md#glulamspecies) | Lamination species group. Defaults to "DF" (Douglas Fir). | | `stressClass?` | [`GlulamStressClass`](https://docs.bear.build/docs/bear/blueprints/materials/Glulam.md#glulamstressclass) | AITC stress class / combination symbol. Defaults to "24F-V4". | | `treatment?` | [`GlulamTreatment`](https://docs.bear.build/docs/bear/blueprints/materials/Glulam.md#glulamtreatment) | Treatment applied. Defaults to "none". | | `width` | [`GlulamWidth`](https://docs.bear.build/docs/bear/blueprints/materials/Glulam.md#glulamwidth) | Cross-section width (actual dimension). | ## Type Aliases [#type-aliases] ### GlulamAppearance [#glulamappearance] ```ts type GlulamAppearance = "framing" | "industrial" | "architectural" | "premium"; ``` Defined in: [bear/blueprints/materials/Glulam.ts:76](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/Glulam.ts#L76) Visual appearance grade per AITC 110. - Framing: concealed members, roughest finish - Industrial: exposed but utilitarian - Architectural: smooth, filled voids, attractive - Premium: highest quality, clear face laminations *** ### GlulamDepth [#glulamdepth] ```ts type GlulamDepth = | "6in" | "7-1/2in" | "9in" | "10-1/2in" | "12in" | "13-1/2in" | "15in" | "16-1/2in" | "18in" | "19-1/2in" | "21in" | "22-1/2in" | "24in" | "25-1/2in" | "27in" | "28-1/2in" | "30in"; ``` Defined in: [bear/blueprints/materials/Glulam.ts:30](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/Glulam.ts#L30) Standard glulam depths. Built up from 1-1/2" laminations (Western species) or 1-3/8" (Southern Pine). Values here are the common Western species depths. *** ### GlulamSpecies [#glulamspecies] ```ts type GlulamSpecies = "DF" | "SP" | "SPF" | "AYC" | "HF"; ``` Defined in: [bear/blueprints/materials/Glulam.ts:67](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/Glulam.ts#L67) Wood species group used for the laminations. *** ### GlulamStressClass [#glulamstressclass] ```ts type GlulamStressClass = | "16F-V2" | "20F-V7" | "24F-V4" | "24F-V8" | "24F-V10" | "26F-V3" | "26F-V6" | "30F-V4" | "24F-1.8E" | "26F-1.9E"; ``` Defined in: [bear/blueprints/materials/Glulam.ts:54](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/Glulam.ts#L54) AITC stress class / combination symbol. The first number is the allowable bending stress (x100 psi), F = balanced, V = unbalanced layup, number = combination ID. *** ### GlulamTreatment [#glulamtreatment] ```ts type GlulamTreatment = "none" | "preservative" | "fire-retardant"; ``` Defined in: [bear/blueprints/materials/Glulam.ts:83](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/Glulam.ts#L83) Treatment applied to the glulam member. *** ### GlulamWidth [#glulamwidth] ```ts type GlulamWidth = "3-1/8in" | "5-1/8in" | "6-3/4in" | "8-3/4in" | "10-3/4in"; ``` Defined in: [bear/blueprints/materials/Glulam.ts:18](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/Glulam.ts#L18) Standard glulam widths (actual dimensions). Per AITC/APA standard, widths correspond to common lumber widths minus surfacing allowance. ## Variables [#variables] ### Glulam [#glulam] ```ts const Glulam: PartDef; ``` Defined in: [bear/blueprints/materials/Glulam.ts:156](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/Glulam.ts#L156) Glulam (Glue-Laminated Timber): engineered wood beam/column. Structural members made from layers of dimensional lumber bonded with durable adhesives. Used for beams, columns, arches, and other large-span structural members. CSI Division 06 17 00, Shop-Fabricated Structural Wood. # IJoist (https://docs.bear.build/docs/bear/blueprints/materials/IJoist) Import from `bear/blueprints/materials/IJoist`. ## Interfaces [#interfaces] ### IJoistProps [#ijoistprops] Defined in: [bear/blueprints/materials/IJoist.ts:13](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/IJoist.ts#L13) #### Properties [#properties] | Property | Type | | ------ | ------ | | `depth?` | [`IJoistDepth`](https://docs.bear.build/docs/bear/blueprints/materials/IJoist.md#ijoistdepth) | | `label?` | `string` | | `length` | `number` | ## Type Aliases [#type-aliases] ### IJoistDepth [#ijoistdepth] ```ts type IJoistDepth = "9.5in" | "11.875in" | "14in" | "16in"; ``` Defined in: [bear/blueprints/materials/IJoist.ts:11](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/IJoist.ts#L11) Supported I-joist depths. ## Variables [#variables] ### FLANGE\_WIDTH [#flange_width] ```ts const FLANGE_WIDTH: number; ``` Defined in: [bear/blueprints/materials/IJoist.ts:20](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/IJoist.ts#L20) I-joist dimensional constants in project units. *** ### IJoist [#ijoist] ```ts const IJoist: PartDef; ``` Defined in: [bear/blueprints/materials/IJoist.ts:49](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/IJoist.ts#L49) IJoist: engineered I-beam floor joist part. Produces an I-beam cross-section extruded along the length axis. The profile has LVL flanges (top and bottom) connected by an OSB web. Props: - `depth`: overall depth (e.g. "9.5in") - `length`: joist length in project units # Insulation (https://docs.bear.build/docs/bear/blueprints/materials/Insulation) Import from `bear/blueprints/materials/Insulation`. ## Interfaces [#interfaces] ### InsulationProps [#insulationprops] Defined in: [bear/blueprints/materials/Insulation.ts:5](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/Insulation.ts#L5) #### Properties [#properties] | Property | Type | Description | | ------ | ------ | ------ | | `label?` | `string` | - | | `rValue?` | `string` | R-value. | | `thickness?` | `number` | Thickness in project units. | | `type?` | [`InsulationType`](https://docs.bear.build/docs/bear/blueprints/materials/Insulation.md#insulationtype) | Insulation type. Defaults to "batt". | ## Type Aliases [#type-aliases] ### InsulationType [#insulationtype] ```ts type InsulationType = "batt" | "blown" | "spray-foam" | "rigid"; ``` Defined in: [bear/blueprints/materials/Insulation.ts:3](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/Insulation.ts#L3) ## Variables [#variables] ### Insulation [#insulation] ```ts const Insulation: PartDef; ``` Defined in: [bear/blueprints/materials/Insulation.ts:27](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/Insulation.ts#L27) Insulation — cavity or continuous insulation. BOM-only part (no geometry). Tracks material for takeoff. CSI Division 07 21 00. # LSL (https://docs.bear.build/docs/bear/blueprints/materials/LSL) Import from `bear/blueprints/materials/LSL`. ## Interfaces [#interfaces] ### LSLProps [#lslprops] Defined in: [bear/blueprints/materials/LSL.ts:15](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/LSL.ts#L15) #### Properties [#properties] | Property | Type | | ------ | ------ | | `label?` | `string` | | `length` | `number` | | `size` | [`LSLSize`](https://docs.bear.build/docs/bear/blueprints/materials/LSL.md#lslsize) | ## Type Aliases [#type-aliases] ### LSLSize [#lslsize] ```ts type LSLSize = "1.75x9.5" | "1.75x11.875" | "1.75x14" | "1.75x16"; ``` Defined in: [bear/blueprints/materials/LSL.ts:13](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/LSL.ts#L13) Supported LSL cross-section sizes. Width is always 1-3/4" (standard LSL). Depth varies. ## Variables [#variables] ### default [#default] ```ts const default: PartDef; ``` Defined in: [bear/blueprints/materials/LSL.ts:51](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/LSL.ts#L51) LSL (Laminated Strand Lumber): engineered lumber part. Used primarily for headers in framed openings. Similar geometry to NominalLumber (box extrusion) but with LSL-specific sizes and material. Props: - `size`: LSL cross-section (e.g. "1.75x11.875") - `length`: beam length in project units # MetalDeck (https://docs.bear.build/docs/bear/blueprints/materials/MetalDeck) Import from `bear/blueprints/materials/MetalDeck`. ## Interfaces [#interfaces] ### MetalDeckProps [#metaldeckprops] Defined in: [bear/blueprints/materials/MetalDeck.ts:24](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/MetalDeck.ts#L24) #### Properties [#properties] | Property | Type | Description | | ------ | ------ | ------ | | `coating?` | [`DeckCoating`](https://docs.bear.build/docs/bear/blueprints/materials/MetalDeck.md#deckcoating) | Zinc coating class. Defaults to "G60". | | `concreteTopping?` | `number` | Concrete topping thickness in project units (for composite profiles). | | `gauge?` | [`DeckGauge`](https://docs.bear.build/docs/bear/blueprints/materials/MetalDeck.md#deckgauge) | Steel gauge. Defaults to "20". | | `label?` | `string` | - | | `length` | `number` | Span length in project units. | | `profile?` | [`DeckProfile`](https://docs.bear.build/docs/bear/blueprints/materials/MetalDeck.md#deckprofile) | Deck profile type. Defaults to "B". | | `width` | `number` | Width (coverage) in project units. | ## Type Aliases [#type-aliases] ### DeckCoating [#deckcoating] ```ts type DeckCoating = "G60" | "G90" | "PTD"; ``` Defined in: [bear/blueprints/materials/MetalDeck.ts:22](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/MetalDeck.ts#L22) *** ### DeckGauge [#deckgauge] ```ts type DeckGauge = "22" | "20" | "18" | "16"; ``` Defined in: [bear/blueprints/materials/MetalDeck.ts:20](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/MetalDeck.ts#L20) *** ### DeckProfile [#deckprofile] ```ts type DeckProfile = "B" | "N" | "A" | "F" | "composite-1.5" | "composite-2" | "composite-3"; ``` Defined in: [bear/blueprints/materials/MetalDeck.ts:11](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/MetalDeck.ts#L11) ## Variables [#variables] ### MetalDeck [#metaldeck] ```ts const MetalDeck: PartDef; ``` Defined in: [bear/blueprints/materials/MetalDeck.ts:111](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/MetalDeck.ts#L111) Metal deck: corrugated steel decking for floors and roofs. Supports standard profiles (B, N, A, F) and composite profiles. Geometry is simplified as a box (width x profileDepth x length); corrugation detail is a future enhancement. CSI Division 05 31 00. # MetalPanel (https://docs.bear.build/docs/bear/blueprints/materials/MetalPanel) Import from `bear/blueprints/materials/MetalPanel`. ## Interfaces [#interfaces] ### MetalPanelProps [#metalpanelprops] Defined in: [bear/blueprints/materials/MetalPanel.ts:22](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/MetalPanel.ts#L22) #### Extends [#extends] - `Partial`\<[`SheetGoodBaseProps`](https://docs.bear.build/docs/bear/blueprints/materials/SheetGood.md#sheetgoodbaseprops)\> #### Properties [#properties] | Property | Type | Description | Inherited from | | ------ | ------ | ------ | ------ | | `color?` | `number` | Custom color hex. Defaults per material. | - | | `face?` | \| [`Surface`](https://docs.bear.build/docs/bear/geometry/shapes.md#surface) \| [`Ref`](https://docs.bear.build/docs/bear/engine/types.md#ref) | Authored as a Ref (resolved when the node is collected) or a literal Surface. | [`SheetGoodBaseProps`](https://docs.bear.build/docs/bear/blueprints/materials/SheetGood.md#sheetgoodbaseprops).[`face`](https://docs.bear.build/docs/bear/blueprints/materials/SheetGood.md#property-face) | | `finish?` | [`PanelFinish`](https://docs.bear.build/docs/bear/blueprints/materials/MetalPanel.md#panelfinish) | Surface finish. Defaults to "PVDF". | - | | `height?` | [`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement) | Stock panel height. Defaults to 8ft. | - | | `label?` | `string` | - | - | | `material?` | [`PanelMaterial`](https://docs.bear.build/docs/bear/blueprints/materials/MetalPanel.md#panelmaterial) | Panel material type. Defaults to "ACM". | - | | `panelRegion?` | [`PanelPlacement`](https://docs.bear.build/docs/bear/engine/panelize.md#panelplacement) | - | [`SheetGoodBaseProps`](https://docs.bear.build/docs/bear/blueprints/materials/SheetGood.md#sheetgoodbaseprops).[`panelRegion`](https://docs.bear.build/docs/bear/blueprints/materials/SheetGood.md#property-panelregion) | | `product?` | `string` | - | [`SheetGoodBaseProps`](https://docs.bear.build/docs/bear/blueprints/materials/SheetGood.md#sheetgoodbaseprops).[`product`](https://docs.bear.build/docs/bear/blueprints/materials/SheetGood.md#property-product) | | `profile?` | [`PanelProfile`](https://docs.bear.build/docs/bear/blueprints/materials/MetalPanel.md#panelprofile) | Panel profile. Defaults to "flat". | - | | `thickness?` | `string` | Panel thickness. Defaults to "4mm" for ACM, "22ga" for steel/aluminum. | - | | `width?` | [`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement) | Stock panel width. Defaults to 4ft; placed panels are clipped to their face. | - | ## Type Aliases [#type-aliases] ### PanelFinish [#panelfinish] ```ts type PanelFinish = "PVDF" | "polyester" | "anodized" | "galvalume"; ``` Defined in: [bear/blueprints/materials/MetalPanel.ts:20](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/MetalPanel.ts#L20) *** ### PanelMaterial [#panelmaterial] ```ts type PanelMaterial = "ACM" | "steel" | "aluminum"; ``` Defined in: [bear/blueprints/materials/MetalPanel.ts:18](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/MetalPanel.ts#L18) *** ### PanelProfile [#panelprofile] ```ts type PanelProfile = "flat" | "ribbed" | "corrugated"; ``` Defined in: [bear/blueprints/materials/MetalPanel.ts:19](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/MetalPanel.ts#L19) ## Variables [#variables] ### MetalPanel [#metalpanel] ```ts const MetalPanel: PartDef; ``` Defined in: [bear/blueprints/materials/MetalPanel.ts:107](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/MetalPanel.ts#L107) Metal panel: flat or profiled metal cladding panel. Supports ACM (aluminium composite), steel, and aluminum panel materials with various profiles and finishes. Geometry is a simple box. CSI Division 07 42 43. # Molding (https://docs.bear.build/docs/bear/blueprints/materials/Molding) Import from `bear/blueprints/materials/Molding`. ## Interfaces [#interfaces] ### MoldingProps [#moldingprops] Defined in: [bear/blueprints/materials/Molding.ts:6](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/Molding.ts#L6) #### Properties [#properties] | Property | Type | Description | | ------ | ------ | ------ | | `finish?` | `string` | Finish. | | `label?` | `string` | - | | `length?` | `number` | Length in project units. | | `material?` | [`MoldingMaterial`](https://docs.bear.build/docs/bear/blueprints/materials/Molding.md#moldingmaterial) | Material. Defaults to "paint-grade". | | `profile` | [`MoldingProfile`](https://docs.bear.build/docs/bear/blueprints/materials/Molding.md#moldingprofile) | Molding profile type. | | `profileSize?` | `string` | Profile size designation. | ## Type Aliases [#type-aliases] ### MoldingMaterial [#moldingmaterial] ```ts type MoldingMaterial = "paint-grade" | "stain-grade" | "MDF" | "WRC"; ``` Defined in: [bear/blueprints/materials/Molding.ts:4](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/Molding.ts#L4) *** ### MoldingProfile [#moldingprofile] ```ts type MoldingProfile = "crown" | "baseboard" | "casing" | "chair-rail"; ``` Defined in: [bear/blueprints/materials/Molding.ts:3](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/Molding.ts#L3) ## Variables [#variables] ### Molding [#molding] ```ts const Molding: PartDef; ``` Defined in: [bear/blueprints/materials/Molding.ts:32](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/Molding.ts#L32) Molding — interior trim and molding profiles. BOM-only part (no geometry). Future: GLB-based profile extrusion. CSI Division 06 22 00. # NominalLumber (https://docs.bear.build/docs/bear/blueprints/materials/NominalLumber) Import from `bear/blueprints/materials/NominalLumber`. ## Interfaces [#interfaces] ### NominalLumberProps [#nominallumberprops] Defined in: [bear/blueprints/materials/NominalLumber.ts:65](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/NominalLumber.ts#L65) #### Properties [#properties] | Property | Type | Description | | ------ | ------ | ------ | | `grade?` | [`LumberGrade`](https://docs.bear.build/docs/bear/blueprints/materials/NominalLumber.md#lumbergrade) | Lumber grade. Defaults to "#2". | | `label?` | `string` | - | | `length` | `number` | - | | `size` | [`NominalLumberSize`](https://docs.bear.build/docs/bear/blueprints/materials/NominalLumber.md#nominallumbersize) | - | | `species?` | [`LumberSpecies`](https://docs.bear.build/docs/bear/blueprints/materials/NominalLumber.md#lumberspecies) | Wood species. Defaults to "DFL" (Douglas Fir-Larch). | | `treatment?` | [`LumberTreatment`](https://docs.bear.build/docs/bear/blueprints/materials/NominalLumber.md#lumbertreatment) | Treatment applied to the lumber. Defaults to "none". | ## Type Aliases [#type-aliases] ### LumberGrade [#lumbergrade] ```ts type LumberGrade = "select-structural" | "#1" | "#2" | "stud" | "S4S" | "S3S" | "appearance"; ``` Defined in: [bear/blueprints/materials/NominalLumber.ts:50](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/NominalLumber.ts#L50) *** ### LumberSpecies [#lumberspecies] ```ts type LumberSpecies = "DFL" | "WRC" | "SPF" | "HF" | "SYP" | "PP"; ``` Defined in: [bear/blueprints/materials/NominalLumber.ts:48](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/NominalLumber.ts#L48) *** ### LumberTreatment [#lumbertreatment] ```ts type LumberTreatment = "none" | "PT-ground-contact" | "PT-above-ground" | "fire-retardant"; ``` Defined in: [bear/blueprints/materials/NominalLumber.ts:59](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/NominalLumber.ts#L59) *** ### NominalLumberSize [#nominallumbersize] ```ts type NominalLumberSize = | "1x2" | "1x3" | "1x4" | "1x6" | "1x8" | "1x10" | "1x12" | "2x2" | "2x3" | "2x4" | "2x6" | "2x8" | "2x10" | "2x12" | "3x3" | "3x4" | "3x6" | "3x8" | "3x10" | "3x12" | "4x4" | "4x6" | "4x8" | "4x10" | "4x12" | "6x6" | "6x8" | "6x10" | "6x12" | "8x8" | "8x10" | "8x12" | "10x10" | "10x12" | "12x12"; ``` Defined in: [bear/blueprints/materials/NominalLumber.ts:11](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/NominalLumber.ts#L11) All supported nominal lumber sizes. Replicates the type from blueprints/materials/NominalLumber.tsx. ## Variables [#variables] ### NominalLumber [#nominallumber] ```ts const NominalLumber: PartDef; ``` Defined in: [bear/blueprints/materials/NominalLumber.ts:98](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/NominalLumber.ts#L98) ## Functions [#functions] ### nominalToPu() [#nominaltopu] ```ts function nominalToPu(nominal): number; ``` Defined in: [bear/blueprints/materials/NominalLumber.ts:78](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/NominalLumber.ts#L78) Convert a single nominal dimension to project units (32nds of an inch). #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `nominal` | `number` | #### Returns [#returns] `number` # OSB (https://docs.bear.build/docs/bear/blueprints/materials/OSB) Import from `bear/blueprints/materials/OSB`. ## Interfaces [#interfaces] ### OSBProps [#osbprops] Defined in: [bear/blueprints/materials/OSB.ts:37](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/OSB.ts#L37) Base props shared by all sheet-good types (OSB, Plywood, Drywall, etc.). #### Extends [#extends] - [`SheetGoodBaseProps`](https://docs.bear.build/docs/bear/blueprints/materials/SheetGood.md#sheetgoodbaseprops) #### Properties [#properties] | Property | Type | Description | Inherited from | | ------ | ------ | ------ | ------ | | `category` | [`OSBCategory`](https://docs.bear.build/docs/bear/blueprints/materials/OSB.md#osbcategory) | Performance category (nominal thickness) of the OSB panel. | - | | `face` | \| [`Surface`](https://docs.bear.build/docs/bear/geometry/shapes.md#surface) \| [`Ref`](https://docs.bear.build/docs/bear/engine/types.md#ref) | Authored as a Ref (resolved when the node is collected) or a literal Surface. | [`SheetGoodBaseProps`](https://docs.bear.build/docs/bear/blueprints/materials/SheetGood.md#sheetgoodbaseprops).[`face`](https://docs.bear.build/docs/bear/blueprints/materials/SheetGood.md#property-face) | | `panelRegion?` | [`PanelPlacement`](https://docs.bear.build/docs/bear/engine/panelize.md#panelplacement) | - | [`SheetGoodBaseProps`](https://docs.bear.build/docs/bear/blueprints/materials/SheetGood.md#sheetgoodbaseprops).[`panelRegion`](https://docs.bear.build/docs/bear/blueprints/materials/SheetGood.md#property-panelregion) | | `product?` | `string` | - | [`SheetGoodBaseProps`](https://docs.bear.build/docs/bear/blueprints/materials/SheetGood.md#sheetgoodbaseprops).[`product`](https://docs.bear.build/docs/bear/blueprints/materials/SheetGood.md#property-product) | | `rating?` | [`OSBRating`](https://docs.bear.build/docs/bear/blueprints/materials/OSB.md#osbrating) | Panel rating. Sturd-I-Floor rated for flooring applications. | - | | `tg?` | `boolean` | Tongue and groove edges for better panel-to-panel connection. | - | ## Type Aliases [#type-aliases] ### OSBCategory [#osbcategory] ```ts type OSBCategory = | "1/4in" | "5/16in" | "11/32in" | "3/8in" | "7/16in" | "15/32in" | "1/2in" | "9/16in" | "19/32in" | "5/8in" | "23/32in" | "3/4in" | "13/16in" | "7/8in" | "1in" | "1-1/8in" | "1-1/4in"; ``` Defined in: [bear/blueprints/materials/OSB.ts:16](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/OSB.ts#L16) Performance category (nominal thickness) of an OSB panel. Matches APA Engineered Wood panel categories. *** ### OSBRating [#osbrating] ```ts type OSBRating = "sturd-i-floor" | "sheathing"; ``` Defined in: [bear/blueprints/materials/OSB.ts:35](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/OSB.ts#L35) ## Variables [#variables] ### default [#default] ```ts const default: PartDef; ``` Defined in: [bear/blueprints/materials/OSB.ts:66](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/OSB.ts#L66) OSB: oriented strand board sheet good. Extends SheetGood with performance category, panel rating, and tongue-and-groove options. Category determines panel thickness. CSI Division 06 16 00. # Plywood (https://docs.bear.build/docs/bear/blueprints/materials/Plywood) Import from `bear/blueprints/materials/Plywood`. ## Variables [#variables] ### default [#default] ```ts const default: PartDef; ``` Defined in: [bear/blueprints/materials/Plywood.ts:27](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/Plywood.ts#L27) Plywood: a sheet good with wood grain appearance. Identical geometry to SheetGood (CrossSection extrusion) but with a distinct wood grain material. Used for subfloor, roof sheathing, and cabinet panels. Accepts the same props as SheetGood: `face`, `thickness`, `product`, `panelRegion`. # RigidInsulation (https://docs.bear.build/docs/bear/blueprints/materials/RigidInsulation) Import from `bear/blueprints/materials/RigidInsulation`. ## Interfaces [#interfaces] ### RigidInsulationProps [#rigidinsulationprops] Defined in: [bear/blueprints/materials/RigidInsulation.ts:10](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/RigidInsulation.ts#L10) #### Properties [#properties] | Property | Type | Description | | ------ | ------ | ------ | | `facer?` | `"foil"` \| `"fiberglass"` \| `"unfaced"` | Facer type. Defaults to "foil" for polyiso. | | `label?` | `string` | - | | `rValue?` | `string` | R-value, e.g., "R-17", "R-25". | | `thickness?` | `string` | Board thickness, e.g., "2in", "3in", "4in". | | `type?` | [`RigidInsulationType`](https://docs.bear.build/docs/bear/blueprints/materials/RigidInsulation.md#rigidinsulationtype) | Insulation type. Defaults to "polyiso". | ## Type Aliases [#type-aliases] ### RigidInsulationType [#rigidinsulationtype] ```ts type RigidInsulationType = "polyiso" | "XPS" | "EPS" | "mineral-wool"; ``` Defined in: [bear/blueprints/materials/RigidInsulation.ts:8](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/RigidInsulation.ts#L8) ## Variables [#variables] ### RigidInsulation [#rigidinsulation] ```ts const RigidInsulation: PartDef; ``` Defined in: [bear/blueprints/materials/RigidInsulation.ts:39](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/RigidInsulation.ts#L39) RigidInsulation — rigid board insulation. BOM-only part (no geometry). Tracks material for takeoff. CSI Division 07 21 00. # SheetGood (https://docs.bear.build/docs/bear/blueprints/materials/SheetGood) Import from `bear/blueprints/materials/SheetGood`. ## Interfaces [#interfaces] ### SheetGoodBaseProps [#sheetgoodbaseprops] Defined in: [bear/blueprints/materials/SheetGood.ts:21](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/SheetGood.ts#L21) Base props shared by all sheet-good types (OSB, Plywood, Drywall, etc.). #### Extended by [#extended-by] - [`DrywallProps`](https://docs.bear.build/docs/bear/blueprints/materials/Drywall.md#drywallprops) - [`SheetGoodProps`](https://docs.bear.build/docs/bear/blueprints/materials/SheetGood.md#sheetgoodprops) - [`OSBProps`](https://docs.bear.build/docs/bear/blueprints/materials/OSB.md#osbprops) #### Properties [#properties] | Property | Type | Description | | ------ | ------ | ------ | | `face` | \| [`Surface`](https://docs.bear.build/docs/bear/geometry/shapes.md#surface) \| [`Ref`](https://docs.bear.build/docs/bear/engine/types.md#ref) | Authored as a Ref (resolved when the node is collected) or a literal Surface. | | `panelRegion?` | [`PanelPlacement`](https://docs.bear.build/docs/bear/engine/panelize.md#panelplacement) | - | | `product?` | `string` | - | *** ### SheetGoodProps [#sheetgoodprops] Defined in: [bear/blueprints/materials/SheetGood.ts:28](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/SheetGood.ts#L28) Base props shared by all sheet-good types (OSB, Plywood, Drywall, etc.). #### Extends [#extends] - [`SheetGoodBaseProps`](https://docs.bear.build/docs/bear/blueprints/materials/SheetGood.md#sheetgoodbaseprops) #### Properties [#properties-1] | Property | Type | Description | Inherited from | | ------ | ------ | ------ | ------ | | `face` | \| [`Surface`](https://docs.bear.build/docs/bear/geometry/shapes.md#surface) \| [`Ref`](https://docs.bear.build/docs/bear/engine/types.md#ref) | Authored as a Ref (resolved when the node is collected) or a literal Surface. | [`SheetGoodBaseProps`](https://docs.bear.build/docs/bear/blueprints/materials/SheetGood.md#sheetgoodbaseprops).[`face`](https://docs.bear.build/docs/bear/blueprints/materials/SheetGood.md#property-face) | | `panelRegion?` | [`PanelPlacement`](https://docs.bear.build/docs/bear/engine/panelize.md#panelplacement) | - | [`SheetGoodBaseProps`](https://docs.bear.build/docs/bear/blueprints/materials/SheetGood.md#sheetgoodbaseprops).[`panelRegion`](https://docs.bear.build/docs/bear/blueprints/materials/SheetGood.md#property-panelregion) | | `product?` | `string` | - | [`SheetGoodBaseProps`](https://docs.bear.build/docs/bear/blueprints/materials/SheetGood.md#sheetgoodbaseprops).[`product`](https://docs.bear.build/docs/bear/blueprints/materials/SheetGood.md#property-product) | | `thickness` | `number` | - | - | ## Variables [#variables] ### default [#default] ```ts const default: PartDef; ``` Defined in: [bear/blueprints/materials/SheetGood.ts:236](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/SheetGood.ts#L236) SheetGood: a part that extrudes a surface into manifold geometry. Expects `face` (a Surface, or a Ref to one) and `thickness` in its props. If `panelRegion` (a PanelPlacement) is provided, the sheet is just that sub-region of the surface instead of the full area. Its parent (Panels) poses it on the face with `sheetGoodTransform`. ## Functions [#functions] ### extractShapeData() [#extractshapedata] ```ts function extractShapeData(geometry): CrossSectionData | undefined; ``` Defined in: [bear/blueprints/materials/SheetGood.ts:208](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/SheetGood.ts#L208) Extract the 2D outline of a part's solid as polygon data. Projects the manifold onto the X-Y plane and returns the outer boundary, canonicalized so identical shapes produce equal arrays. Used by sheet goods to show the panel shape in the parts list, outside materialize, so it frees its own projection. #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `geometry` | [`Geometry`](https://docs.bear.build/docs/bear/engine/types.md#geometry) | #### Returns [#returns] [`CrossSectionData`](https://docs.bear.build/docs/bear/engine/part.md#crosssectiondata) \| `undefined` *** ### sheetExtents() [#sheetextents] ```ts function sheetExtents( props, resolved, thickness ): Box; ``` Defined in: [bear/blueprints/materials/SheetGood.ts:83](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/SheetGood.ts#L83) The sheet's size, centered on its local origin: face-space width and height by thickness. #### Parameters [#parameters-1] | Parameter | Type | | ------ | ------ | | `props` | [`SheetGoodBaseProps`](https://docs.bear.build/docs/bear/blueprints/materials/SheetGood.md#sheetgoodbaseprops) | | `resolved` | [`ResolvedRefs`](https://docs.bear.build/docs/bear/engine/types.md#resolvedrefs) | | `thickness` | `number` | #### Returns [#returns-1] [`Box`](https://docs.bear.build/docs/bear/geometry/types.md#box) *** ### sheetFootprint() [#sheetfootprint] ```ts function sheetFootprint(face, region): | { cross: CrossSection; height: number; minX: number; minY: number; width: number; } | undefined; ``` Defined in: [bear/blueprints/materials/SheetGood.ts:45](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/SheetGood.ts#L45) A sheet's footprint on its face, in face space: the face boundary clipped to the panel region. Undefined when nothing is left (a region off the face). This is the one place the 2D shape is computed; extents, geometry and placement all read it. Openings are not here: a `cuts` edge takes the hole out of the built solid. #### Parameters [#parameters-2] | Parameter | Type | | ------ | ------ | | `face` | [`Surface`](https://docs.bear.build/docs/bear/geometry/shapes.md#surface) | | `region` | [`PanelPlacement`](https://docs.bear.build/docs/bear/engine/panelize.md#panelplacement) \| `undefined` | #### Returns [#returns-2] \| \{ `cross`: `CrossSection`; `height`: `number`; `minX`: `number`; `minY`: `number`; `width`: `number`; \} \| `undefined` *** ### sheetGeometry() [#sheetgeometry] ```ts function sheetGeometry( props, resolved, thickness, material ): Geometry; ``` Defined in: [bear/blueprints/materials/SheetGood.ts:99](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/SheetGood.ts#L99) The sheet's solid: the footprint extruded to thickness, centered on the local origin so identical shapes produce identical manifolds. #### Parameters [#parameters-3] | Parameter | Type | | ------ | ------ | | `props` | [`SheetGoodBaseProps`](https://docs.bear.build/docs/bear/blueprints/materials/SheetGood.md#sheetgoodbaseprops) | | `resolved` | [`ResolvedRefs`](https://docs.bear.build/docs/bear/engine/types.md#resolvedrefs) | | `thickness` | `number` | | `material` | [`MaterialDescriptor`](https://docs.bear.build/docs/bear/engine/types.md#materialdescriptor) | #### Returns [#returns-3] [`Geometry`](https://docs.bear.build/docs/bear/engine/types.md#geometry) *** ### sheetGoodTransform() [#sheetgoodtransform] ```ts function sheetGoodTransform( face, region, thickness ): | TransformMatrix | undefined; ``` Defined in: [bear/blueprints/materials/SheetGood.ts:126](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/SheetGood.ts#L126) Where a sheet sits on its face: its footprint's center, in the face's frame, as the sheet's local transform. The parent (Panels) states this as the sheet element's `transform` prop. #### Parameters [#parameters-4] | Parameter | Type | | ------ | ------ | | `face` | [`Surface`](https://docs.bear.build/docs/bear/geometry/shapes.md#surface) | | `region` | [`PanelPlacement`](https://docs.bear.build/docs/bear/engine/panelize.md#panelplacement) \| `undefined` | | `thickness` | `number` | #### Returns [#returns-4] \| [`TransformMatrix`](https://docs.bear.build/docs/bear/geometry/transform.md#transformmatrix) \| `undefined` # ShiplapSiding (https://docs.bear.build/docs/bear/blueprints/materials/ShiplapSiding) Import from `bear/blueprints/materials/ShiplapSiding`. ## Interfaces [#interfaces] ### ShiplapSidingProps [#shiplapsidingprops] Defined in: [bear/blueprints/materials/ShiplapSiding.ts:13](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/ShiplapSiding.ts#L13) #### Extends [#extends] - `Partial`\<[`SheetGoodBaseProps`](https://docs.bear.build/docs/bear/blueprints/materials/SheetGood.md#sheetgoodbaseprops)\> #### Properties [#properties] | Property | Type | Description | Inherited from | | ------ | ------ | ------ | ------ | | `boardWidth?` | [`ShiplapBoardWidth`](https://docs.bear.build/docs/bear/blueprints/materials/ShiplapSiding.md#shiplapboardwidth) | Board width. Defaults to "1x6". | - | | `color?` | `string` | Color. | - | | `face?` | \| [`Surface`](https://docs.bear.build/docs/bear/geometry/shapes.md#surface) \| [`Ref`](https://docs.bear.build/docs/bear/engine/types.md#ref) | Authored as a Ref (resolved when the node is collected) or a literal Surface. | [`SheetGoodBaseProps`](https://docs.bear.build/docs/bear/blueprints/materials/SheetGood.md#sheetgoodbaseprops).[`face`](https://docs.bear.build/docs/bear/blueprints/materials/SheetGood.md#property-face) | | `finish?` | `string` | Finish. | - | | `label?` | `string` | - | - | | `panelRegion?` | [`PanelPlacement`](https://docs.bear.build/docs/bear/engine/panelize.md#panelplacement) | - | [`SheetGoodBaseProps`](https://docs.bear.build/docs/bear/blueprints/materials/SheetGood.md#sheetgoodbaseprops).[`panelRegion`](https://docs.bear.build/docs/bear/blueprints/materials/SheetGood.md#property-panelregion) | | `product?` | `string` | - | [`SheetGoodBaseProps`](https://docs.bear.build/docs/bear/blueprints/materials/SheetGood.md#sheetgoodbaseprops).[`product`](https://docs.bear.build/docs/bear/blueprints/materials/SheetGood.md#property-product) | | `species?` | [`ShiplapSpecies`](https://docs.bear.build/docs/bear/blueprints/materials/ShiplapSiding.md#shiplapspecies) | Wood species. Defaults to "WRC". | - | ## Type Aliases [#type-aliases] ### ShiplapBoardWidth [#shiplapboardwidth] ```ts type ShiplapBoardWidth = "1x6" | "1x8"; ``` Defined in: [bear/blueprints/materials/ShiplapSiding.ts:11](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/ShiplapSiding.ts#L11) *** ### ShiplapSpecies [#shiplapspecies] ```ts type ShiplapSpecies = "WRC" | "pine" | "SPF"; ``` Defined in: [bear/blueprints/materials/ShiplapSiding.ts:10](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/ShiplapSiding.ts#L10) ## Variables [#variables] ### ShiplapSiding [#shiplapsiding] ```ts const ShiplapSiding: PartDef; ``` Defined in: [bear/blueprints/materials/ShiplapSiding.ts:30](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/ShiplapSiding.ts#L30) ShiplapSiding — exterior shiplap siding. Renders a 3/4in sheet on a supplied face. Without a face, tracks material for takeoff. CSI Division 06 20 00. # SinglePlyRoofing (https://docs.bear.build/docs/bear/blueprints/materials/SinglePlyRoofing) Import from `bear/blueprints/materials/SinglePlyRoofing`. ## Interfaces [#interfaces] ### SinglePlyRoofingProps [#singleplyroofingprops] Defined in: [bear/blueprints/materials/SinglePlyRoofing.ts:14](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/SinglePlyRoofing.ts#L14) #### Properties [#properties] | Property | Type | Description | | ------ | ------ | ------ | | `attachment?` | [`RoofingAttachment`](https://docs.bear.build/docs/bear/blueprints/materials/SinglePlyRoofing.md#roofingattachment) | Attachment method. Defaults to "mechanically-fastened". | | `color?` | `string` | Membrane color. Defaults to "white" for TPO, "black" for EPDM. | | `label?` | `string` | - | | `membrane?` | [`RoofingMembrane`](https://docs.bear.build/docs/bear/blueprints/materials/SinglePlyRoofing.md#roofingmembrane) | Membrane type. Defaults to "TPO". | | `thickness?` | [`RoofingThickness`](https://docs.bear.build/docs/bear/blueprints/materials/SinglePlyRoofing.md#roofingthickness) | Membrane thickness. Defaults to "60mil". | ## Type Aliases [#type-aliases] ### RoofingAttachment [#roofingattachment] ```ts type RoofingAttachment = "mechanically-fastened" | "fully-adhered" | "ballasted"; ``` Defined in: [bear/blueprints/materials/SinglePlyRoofing.ts:9](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/SinglePlyRoofing.ts#L9) *** ### RoofingMembrane [#roofingmembrane] ```ts type RoofingMembrane = "TPO" | "EPDM" | "PVC"; ``` Defined in: [bear/blueprints/materials/SinglePlyRoofing.ts:7](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/SinglePlyRoofing.ts#L7) *** ### RoofingThickness [#roofingthickness] ```ts type RoofingThickness = "45mil" | "60mil" | "80mil" | "90mil"; ``` Defined in: [bear/blueprints/materials/SinglePlyRoofing.ts:8](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/SinglePlyRoofing.ts#L8) ## Variables [#variables] ### SinglePlyRoofing [#singleplyroofing] ```ts const SinglePlyRoofing: PartDef; ``` Defined in: [bear/blueprints/materials/SinglePlyRoofing.ts:43](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/SinglePlyRoofing.ts#L43) SinglePlyRoofing — single-ply membrane roofing system. BOM-only part (no geometry). Tracks material for takeoff. CSI Division 07 54 00. # SprayFireproofing (https://docs.bear.build/docs/bear/blueprints/materials/SprayFireproofing) Import from `bear/blueprints/materials/SprayFireproofing`. ## Interfaces [#interfaces] ### SprayFireproofingProps [#sprayfireproofingprops] Defined in: [bear/blueprints/materials/SprayFireproofing.ts:7](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/SprayFireproofing.ts#L7) #### Properties [#properties] | Property | Type | Description | | ------ | ------ | ------ | | `density?` | [`SFRMDensity`](https://docs.bear.build/docs/bear/blueprints/materials/SprayFireproofing.md#sfrmdensity) | Density class. Defaults to "low". | | `label?` | `string` | - | | `rating?` | [`FireRatingHours`](https://docs.bear.build/docs/bear/blueprints/materials/SprayFireproofing.md#fireratinghours) | Fire rating. Defaults to "2-hour". | | `thickness?` | `string` | Applied thickness (e.g., "3/4in", "1in"). | | `type?` | [`SFRMType`](https://docs.bear.build/docs/bear/blueprints/materials/SprayFireproofing.md#sfrmtype) | Fireproofing type. Defaults to "cementitious". | | `ulDesign?` | `string` | UL design number (e.g., "D902", "N791"). | ## Type Aliases [#type-aliases] ### FireRatingHours [#fireratinghours] ```ts type FireRatingHours = "1-hour" | "2-hour" | "3-hour"; ``` Defined in: [bear/blueprints/materials/SprayFireproofing.ts:4](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/SprayFireproofing.ts#L4) *** ### SFRMDensity [#sfrmdensity] ```ts type SFRMDensity = "low" | "medium"; ``` Defined in: [bear/blueprints/materials/SprayFireproofing.ts:5](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/SprayFireproofing.ts#L5) *** ### SFRMType [#sfrmtype] ```ts type SFRMType = "cementitious" | "intumescent" | "gypsum-enclosure"; ``` Defined in: [bear/blueprints/materials/SprayFireproofing.ts:3](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/SprayFireproofing.ts#L3) ## Variables [#variables] ### SprayFireproofing [#sprayfireproofing] ```ts const SprayFireproofing: PartDef; ``` Defined in: [bear/blueprints/materials/SprayFireproofing.ts:26](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/SprayFireproofing.ts#L26) Spray-applied fire-resistive material (SFRM) — fireproofing for structural steel. BOM-only part (no geometry). Tracks material for takeoff. CSI Division 07 81 00. # SteelJoist (https://docs.bear.build/docs/bear/blueprints/materials/SteelJoist) Import from `bear/blueprints/materials/SteelJoist`. ## Interfaces [#interfaces] ### SteelJoistProps [#steeljoistprops] Defined in: [bear/blueprints/materials/SteelJoist.ts:13](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/SteelJoist.ts#L13) #### Properties [#properties] | Property | Type | Description | | ------ | ------ | ------ | | `depth` | `number` | Overall depth in project units. | | `designation?` | `string` | Designation (e.g., "20K5", "28LH07"). | | `label?` | `string` | - | | `length` | `number` | Span length in project units. | | `series?` | [`JoistSeries`](https://docs.bear.build/docs/bear/blueprints/materials/SteelJoist.md#joistseries) | Joist series. Defaults to "K". | ## Type Aliases [#type-aliases] ### JoistSeries [#joistseries] ```ts type JoistSeries = "K" | "LH" | "DLH"; ``` Defined in: [bear/blueprints/materials/SteelJoist.ts:11](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/SteelJoist.ts#L11) ## Variables [#variables] ### SteelJoist [#steeljoist] ```ts const SteelJoist: PartDef; ``` Defined in: [bear/blueprints/materials/SteelJoist.ts:57](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/SteelJoist.ts#L57) Open-web steel joist, simplified as top chord, bottom chord, and a continuous vertical web plate. CSI Division 05 21 00. # StorefrontGlazing (https://docs.bear.build/docs/bear/blueprints/materials/StorefrontGlazing) Import from `bear/blueprints/materials/StorefrontGlazing`. ## Interfaces [#interfaces] ### StorefrontGlazingProps [#storefrontglazingprops] Defined in: [bear/blueprints/materials/StorefrontGlazing.ts:23](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/StorefrontGlazing.ts#L23) #### Properties [#properties] | Property | Type | Description | | ------ | ------ | ------ | | `finish?` | [`StorefrontFinish`](https://docs.bear.build/docs/bear/blueprints/materials/StorefrontGlazing.md#storefrontfinish) | Frame finish. Defaults to "dark-bronze-anodized". | | `glassType?` | [`GlassType`](https://docs.bear.build/docs/bear/blueprints/materials/StorefrontGlazing.md#glasstype) | Glass type. Defaults to "insulating". | | `height` | `number` | Panel height in project units. | | `label?` | `string` | - | | `system?` | [`StorefrontSystem`](https://docs.bear.build/docs/bear/blueprints/materials/StorefrontGlazing.md#storefrontsystem) | System type. Defaults to "center-set". | | `width` | `number` | Panel width in project units. | ## Type Aliases [#type-aliases] ### GlassType [#glasstype] ```ts type GlassType = "clear" | "tempered" | "laminated" | "insulating" | "low-E"; ``` Defined in: [bear/blueprints/materials/StorefrontGlazing.ts:16](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/StorefrontGlazing.ts#L16) *** ### StorefrontFinish [#storefrontfinish] ```ts type StorefrontFinish = "dark-bronze-anodized" | "clear-anodized" | "painted"; ``` Defined in: [bear/blueprints/materials/StorefrontGlazing.ts:12](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/StorefrontGlazing.ts#L12) *** ### StorefrontSystem [#storefrontsystem] ```ts type StorefrontSystem = "center-set" | "front-set" | "offset"; ``` Defined in: [bear/blueprints/materials/StorefrontGlazing.ts:11](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/StorefrontGlazing.ts#L11) ## Variables [#variables] ### StorefrontGlazing [#storefrontglazing] ```ts const StorefrontGlazing: PartDef; ``` Defined in: [bear/blueprints/materials/StorefrontGlazing.ts:96](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/StorefrontGlazing.ts#L96) Storefront glazing: aluminum-framed glass panel. Models a single storefront panel as a glass lite surrounded by mullion framing on all four sides. The frame is 6063-T6 aluminum per ASTM B221; glass is IGU per ASTM E2190 by default. CSI Division 08 41 13. # StructuralFastener (https://docs.bear.build/docs/bear/blueprints/materials/StructuralFastener) Import from `bear/blueprints/materials/StructuralFastener`. ## Interfaces [#interfaces] ### StructuralFastenerProps [#structuralfastenerprops] Defined in: [bear/blueprints/materials/StructuralFastener.ts:11](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/StructuralFastener.ts#L11) #### Properties [#properties] | Property | Type | Description | | ------ | ------ | ------ | | `anchorGrade?` | [`AnchorGrade`](https://docs.bear.build/docs/bear/blueprints/materials/StructuralFastener.md#anchorgrade) | Anchor grade (for anchors). | | `boltGrade?` | [`BoltGrade`](https://docs.bear.build/docs/bear/blueprints/materials/StructuralFastener.md#boltgrade) | Bolt grade (for bolts). | | `diameter?` | `string` | Bolt or anchor diameter, e.g., "3/4in", "7/8in". | | `label?` | `string` | - | | `type` | [`FastenerType`](https://docs.bear.build/docs/bear/blueprints/materials/StructuralFastener.md#fastenertype) | Fastener type. | | `weldSize?` | `string` | Weld size, e.g., "1/4in", "5/16in". | | `weldType?` | `"fillet"` \| `"CJP"` \| `"PJP"` | Weld type (for welds). | ## Type Aliases [#type-aliases] ### AnchorGrade [#anchorgrade] ```ts type AnchorGrade = "F1554-36" | "F1554-55" | "F1554-105"; ``` Defined in: [bear/blueprints/materials/StructuralFastener.ts:9](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/StructuralFastener.ts#L9) *** ### BoltGrade [#boltgrade] ```ts type BoltGrade = "A325" | "A490" | "A307"; ``` Defined in: [bear/blueprints/materials/StructuralFastener.ts:8](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/StructuralFastener.ts#L8) *** ### FastenerType [#fastenertype] ```ts type FastenerType = "bolt" | "anchor" | "weld"; ``` Defined in: [bear/blueprints/materials/StructuralFastener.ts:7](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/StructuralFastener.ts#L7) ## Variables [#variables] ### StructuralFastener [#structuralfastener] ```ts const StructuralFastener: PartDef; ``` Defined in: [bear/blueprints/materials/StructuralFastener.ts:36](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/StructuralFastener.ts#L36) StructuralFastener — bolts, anchors, and welds. BOM-only part (no geometry). Tracks fastener info for takeoff. CSI Division 05 05 23. # StructuralSteel (https://docs.bear.build/docs/bear/blueprints/materials/StructuralSteel) Import from `bear/blueprints/materials/StructuralSteel`. ## Interfaces [#interfaces] ### StructuralSteelProps [#structuralsteelprops] Defined in: [bear/blueprints/materials/StructuralSteel.ts:89](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/StructuralSteel.ts#L89) #### Properties [#properties] | Property | Type | Description | | ------ | ------ | ------ | | `finish?` | [`SteelFinish`](https://docs.bear.build/docs/bear/blueprints/materials/StructuralSteel.md#steelfinish) | Surface finish. Defaults to "red-oxide-primer". | | `grade?` | [`SteelGrade`](https://docs.bear.build/docs/bear/blueprints/materials/StructuralSteel.md#steelgrade) | ASTM grade. Defaults based on shape family. | | `label?` | `string` | - | | `length` | `number` | Member length in project units. | | `size` | [`SteelSize`](https://docs.bear.build/docs/bear/blueprints/materials/StructuralSteel.md#steelsize) | Shape designation (e.g., "W12x26", "HSS6x6x1/4"). | ## Type Aliases [#type-aliases] ### AngleSize [#anglesize] ```ts type AngleSize = | "L3x3x1/4" | "L3x3x3/8" | "L4x3x1/4" | "L4x3x3/8" | "L4x4x1/4" | "L4x4x3/8" | "L5x5x3/8" | "L6x4x3/8"; ``` Defined in: [bear/blueprints/materials/StructuralSteel.ts:60](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/StructuralSteel.ts#L60) Angle (L) shape designation. *** ### ChannelSize [#channelsize] ```ts type ChannelSize = "C6x8.2" | "C8x11.5" | "C8x13.75" | "C10x15.3" | "C10x20" | "C12x20.7"; ``` Defined in: [bear/blueprints/materials/StructuralSteel.ts:71](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/StructuralSteel.ts#L71) Channel (C) shape designation. *** ### HSSSize [#hsssize] ```ts type HSSSize = | "HSS4x4x1/4" | "HSS4x4x3/8" | "HSS5x5x1/4" | "HSS5x5x3/8" | "HSS6x6x1/4" | "HSS6x6x3/8" | "HSS6x6x1/2" | "HSS8x4x1/4" | "HSS8x4x3/8" | "HSS8x6x1/4" | "HSS8x6x3/8" | "HSS8x8x1/4" | "HSS8x8x3/8" | "HSS8x8x1/2"; ``` Defined in: [bear/blueprints/materials/StructuralSteel.ts:43](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/StructuralSteel.ts#L43) HSS (Hollow Structural Section) designation. *** ### SteelFinish [#steelfinish] ```ts type SteelFinish = "bare" | "red-oxide-primer" | "galvanized" | "painted"; ``` Defined in: [bear/blueprints/materials/StructuralSteel.ts:83](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/StructuralSteel.ts#L83) *** ### SteelGrade [#steelgrade] ```ts type SteelGrade = "A992" | "A500-C" | "A36" | "A572-50"; ``` Defined in: [bear/blueprints/materials/StructuralSteel.ts:82](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/StructuralSteel.ts#L82) *** ### SteelShapeFamily [#steelshapefamily] ```ts type SteelShapeFamily = "W" | "HSS" | "L" | "C"; ``` Defined in: [bear/blueprints/materials/StructuralSteel.ts:79](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/StructuralSteel.ts#L79) *** ### SteelSize [#steelsize] ```ts type SteelSize = | WShapeSize | HSSSize | AngleSize | ChannelSize; ``` Defined in: [bear/blueprints/materials/StructuralSteel.ts:80](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/StructuralSteel.ts#L80) *** ### WShapeSize [#wshapesize] ```ts type WShapeSize = | "W8x18" | "W8x24" | "W8x31" | "W8x35" | "W8x48" | "W10x22" | "W10x26" | "W10x33" | "W10x39" | "W10x49" | "W12x26" | "W12x35" | "W12x40" | "W12x50" | "W12x53" | "W12x65" | "W14x22" | "W14x30" | "W14x34" | "W14x43" | "W14x48" | "W14x61" | "W16x26" | "W16x31" | "W16x36" | "W16x40"; ``` Defined in: [bear/blueprints/materials/StructuralSteel.ts:14](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/StructuralSteel.ts#L14) Wide-flange (W) shape designation. ## Variables [#variables] ### StructuralSteel [#structuralsteel] ```ts const StructuralSteel: PartDef; ``` Defined in: [bear/blueprints/materials/StructuralSteel.ts:304](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/StructuralSteel.ts#L304) Structural steel member: hot-rolled shapes. Supports W-shapes (wide flange), HSS (hollow structural sections), angles (L), and channels (C). Geometry is built by composing manifold boxes to approximate the cross-section profile, extruded along the length axis. CSI Division 05 10 00. # TongueAndGroove (https://docs.bear.build/docs/bear/blueprints/materials/TongueAndGroove) Import from `bear/blueprints/materials/TongueAndGroove`. ## Interfaces [#interfaces] ### TongueAndGrooveProps [#tongueandgrooveprops] Defined in: [bear/blueprints/materials/TongueAndGroove.ts:13](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/TongueAndGroove.ts#L13) #### Extends [#extends] - `Partial`\<[`SheetGoodBaseProps`](https://docs.bear.build/docs/bear/blueprints/materials/SheetGood.md#sheetgoodbaseprops)\> #### Properties [#properties] | Property | Type | Description | Inherited from | | ------ | ------ | ------ | ------ | | `application?` | [`TAndGApplication`](https://docs.bear.build/docs/bear/blueprints/materials/TongueAndGroove.md#tandgapplication) | Application. Defaults to "ceiling". | - | | `boardWidth?` | [`TAndGBoardWidth`](https://docs.bear.build/docs/bear/blueprints/materials/TongueAndGroove.md#tandgboardwidth) | Board width. Defaults to "1x6". | - | | `face?` | \| [`Surface`](https://docs.bear.build/docs/bear/geometry/shapes.md#surface) \| [`Ref`](https://docs.bear.build/docs/bear/engine/types.md#ref) | Authored as a Ref (resolved when the node is collected) or a literal Surface. | [`SheetGoodBaseProps`](https://docs.bear.build/docs/bear/blueprints/materials/SheetGood.md#sheetgoodbaseprops).[`face`](https://docs.bear.build/docs/bear/blueprints/materials/SheetGood.md#property-face) | | `finish?` | `string` | Finish. | - | | `label?` | `string` | - | - | | `panelRegion?` | [`PanelPlacement`](https://docs.bear.build/docs/bear/engine/panelize.md#panelplacement) | - | [`SheetGoodBaseProps`](https://docs.bear.build/docs/bear/blueprints/materials/SheetGood.md#sheetgoodbaseprops).[`panelRegion`](https://docs.bear.build/docs/bear/blueprints/materials/SheetGood.md#property-panelregion) | | `product?` | `string` | - | [`SheetGoodBaseProps`](https://docs.bear.build/docs/bear/blueprints/materials/SheetGood.md#sheetgoodbaseprops).[`product`](https://docs.bear.build/docs/bear/blueprints/materials/SheetGood.md#property-product) | | `species?` | `string` | Wood species. Defaults to "WRC". | - | ## Type Aliases [#type-aliases] ### TAndGApplication [#tandgapplication] ```ts type TAndGApplication = "ceiling" | "wall-paneling"; ``` Defined in: [bear/blueprints/materials/TongueAndGroove.ts:11](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/TongueAndGroove.ts#L11) *** ### TAndGBoardWidth [#tandgboardwidth] ```ts type TAndGBoardWidth = "1x4" | "1x6"; ``` Defined in: [bear/blueprints/materials/TongueAndGroove.ts:10](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/TongueAndGroove.ts#L10) ## Variables [#variables] ### TongueAndGroove [#tongueandgroove] ```ts const TongueAndGroove: PartDef; ``` Defined in: [bear/blueprints/materials/TongueAndGroove.ts:30](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/TongueAndGroove.ts#L30) TongueAndGroove — T&G boards for ceilings and wall paneling. Renders a 3/4in sheet on a supplied face. Without a face, tracks material for takeoff. CSI Division 06 20 00. # Waterproofing (https://docs.bear.build/docs/bear/blueprints/materials/Waterproofing) Import from `bear/blueprints/materials/Waterproofing`. ## Interfaces [#interfaces] ### WaterproofingProps [#waterproofingprops] Defined in: [bear/blueprints/materials/Waterproofing.ts:15](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/Waterproofing.ts#L15) #### Properties [#properties] | Property | Type | Description | | ------ | ------ | ------ | | `label?` | `string` | - | | `location?` | [`WaterproofingLocation`](https://docs.bear.build/docs/bear/blueprints/materials/Waterproofing.md#waterproofinglocation) | Application location. | | `thicknessMil?` | `string` | Thickness in mils (for sheet/vapor barriers). | | `type?` | [`WaterproofingType`](https://docs.bear.build/docs/bear/blueprints/materials/Waterproofing.md#waterproofingtype) | Waterproofing type. Defaults to "sheet-membrane". | | `vaporClass?` | `"B"` \| `"C"` \| `"A"` | Vapor barrier class (for under-slab). | ## Type Aliases [#type-aliases] ### WaterproofingLocation [#waterproofinglocation] ```ts type WaterproofingLocation = "foundation-wall" | "under-slab" | "below-grade" | "above-grade"; ``` Defined in: [bear/blueprints/materials/Waterproofing.ts:9](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/Waterproofing.ts#L9) *** ### WaterproofingType [#waterproofingtype] ```ts type WaterproofingType = | "fluid-applied" | "sheet-membrane" | "bentonite" | "dampproofing" | "vapor-barrier"; ``` Defined in: [bear/blueprints/materials/Waterproofing.ts:3](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/Waterproofing.ts#L3) ## Variables [#variables] ### Waterproofing [#waterproofing] ```ts const Waterproofing: PartDef; ``` Defined in: [bear/blueprints/materials/Waterproofing.ts:40](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/Waterproofing.ts#L40) Waterproofing and vapor barriers — below-grade and under-slab moisture protection. BOM-only part (no geometry). Tracks material for takeoff. CSI Division 07 10 00. # keynote (https://docs.bear.build/docs/bear/blueprints/materials/keynote) Import from `bear/blueprints/materials/keynote`. ## Functions [#functions] ### gauge() [#gauge] ```ts function gauge(value): string; ``` Defined in: [bear/blueprints/materials/keynote.ts:16](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/keynote.ts#L16) A sheet-metal gauge as lettered on drawings: `22ga` or `22` becomes `22 ga.`. #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `value` | `string` | #### Returns [#returns] `string` *** ### inches() [#inches] ```ts function inches(length): string; ``` Defined in: [bear/blueprints/materials/keynote.ts:6](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/materials/keynote.ts#L6) A length in inches as a drafter letters it: `7/16"`, `11-7/8"`, `14"`. #### Parameters [#parameters-1] | Parameter | Type | | ------ | ------ | | `length` | [`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement) | #### Returns [#returns-1] `string` # Plumbing (https://docs.bear.build/docs/bear/blueprints/mep/Plumbing) Import from `bear/blueprints/mep/Plumbing`. ## Interfaces [#interfaces] ### PlumbingProps [#plumbingprops] Defined in: [bear/blueprints/mep/Plumbing.tsx:5](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/mep/Plumbing.tsx#L5) #### Properties [#properties] | Property | Type | | ------ | ------ | | `children?` | \| [`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement)\<`object`\> \| [`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement)\<`object`\>[] | | `name?` | `string` | ## Functions [#functions] ### Plumbing() [#plumbing] ```ts function Plumbing(__namedParameters): BearElement; ``` Defined in: [bear/blueprints/mep/Plumbing.tsx:15](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/mep/Plumbing.tsx#L15) Plumbing — top-level system assembly for plumbing elements. Sits as a direct child of Building alongside Structure, Envelope, etc. #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `__namedParameters` | [`PlumbingProps`](https://docs.bear.build/docs/bear/blueprints/mep/Plumbing.md#plumbingprops) | #### Returns [#returns] [`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement) # SupplyBranch (https://docs.bear.build/docs/bear/blueprints/mep/SupplyBranch) Import from `bear/blueprints/mep/SupplyBranch`. ## Interfaces [#interfaces] ### SupplyBranchProps [#supplybranchprops] Defined in: [bear/blueprints/mep/SupplyBranch.tsx:14](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/mep/SupplyBranch.tsx#L14) #### Properties [#properties] | Property | Type | Description | | ------ | ------ | ------ | | `diameter?` | [`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement) | Nominal pipe diameter. Default "3/4in". | | `elevation?` | [`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement) | Z offset within the level. Default "8ft". | | `name?` | `string` | - | | `path` | \[[`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement), [`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement)\][] | 2D waypoints [x, y] defining the horizontal route. | | `service` | `"hot"` \| `"cold"` | Water service type. | ## Functions [#functions] ### SupplyBranch() [#supplybranch] ```ts function SupplyBranch(__namedParameters): BearElement; ``` Defined in: [bear/blueprints/mep/SupplyBranch.tsx:77](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/mep/SupplyBranch.tsx#L77) SupplyBranch — horizontal pipe run within a level's footprint. Takes a 2D path of waypoints and an elevation offset. Each consecutive pair of waypoints becomes a SupplyTrace segment positioned and rotated to lie along the XY plane at the given elevation. #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `__namedParameters` | [`SupplyBranchProps`](https://docs.bear.build/docs/bear/blueprints/mep/SupplyBranch.md#supplybranchprops) | #### Returns [#returns] [`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement) # SupplyNetwork (https://docs.bear.build/docs/bear/blueprints/mep/SupplyNetwork) Import from `bear/blueprints/mep/SupplyNetwork`. ## Interfaces [#interfaces] ### SupplyNetworkProps [#supplynetworkprops] Defined in: [bear/blueprints/mep/SupplyNetwork.tsx:10](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/mep/SupplyNetwork.tsx#L10) #### Properties [#properties] | Property | Type | Description | | ------ | ------ | ------ | | `branchDiameter?` | [`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement) | Branch pipe diameter. Default "1/2in". | | `diameter?` | [`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement) | Trunk pipe diameter. Omit to size it from the fixture count. | | `elevation?` | [`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement) | Z offset within the level. Default "8ft". | | `entry` | \[[`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement), [`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement)\] | Where water enters the network. [x, y] | | `fixtures` | \[[`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement), [`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement)\][] | Fixture locations to route to. Each is [x, y]. | | `name?` | `string` | - | | `service` | `"hot"` \| `"cold"` | Water service type. | ## Functions [#functions] ### SupplyNetwork() [#supplynetwork] ```ts function SupplyNetwork(__namedParameters): BearElement; ``` Defined in: [bear/blueprints/mep/SupplyNetwork.tsx:51](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/mep/SupplyNetwork.tsx#L51) SupplyNetwork — dead-simple trunk-and-branch auto-router. Runs a trunk line along X from the entry through the full X extent of fixture positions; each off-trunk fixture gets a perpendicular Y branch; every fixture gets a SupplyStub terminal. All Manhattan routing. The routing decisions are also the flow graph: the trunk `feeds` each branch and each on-trunk stub, and each branch feeds its stub, so the topology that sized the pipes is queryable (`q(trunk).trace("feeds")`) instead of discarded. The trunk diameter, when not authored, comes from the number of fixtures downstream. #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `__namedParameters` | [`SupplyNetworkProps`](https://docs.bear.build/docs/bear/blueprints/mep/SupplyNetwork.md#supplynetworkprops) | #### Returns [#returns] [`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement) # SupplyRiser (https://docs.bear.build/docs/bear/blueprints/mep/SupplyRiser) Import from `bear/blueprints/mep/SupplyRiser`. ## Interfaces [#interfaces] ### SupplyRiserProps [#supplyriserprops] Defined in: [bear/blueprints/mep/SupplyRiser.tsx:8](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/mep/SupplyRiser.tsx#L8) #### Properties [#properties] | Property | Type | Description | | ------ | ------ | ------ | | `diameter?` | [`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement) | Nominal pipe diameter. Default "3/4in". | | `from` | [`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement) | Bottom elevation. | | `name?` | `string` | - | | `position` | \[[`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement), [`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement)\] | XY position of the riser. | | `service` | `"hot"` \| `"cold"` | Water service type. | | `to` | [`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement) | Top elevation. | ## Functions [#functions] ### SupplyRiser() [#supplyriser] ```ts function SupplyRiser(__namedParameters): BearElement; ``` Defined in: [bear/blueprints/mep/SupplyRiser.tsx:28](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/mep/SupplyRiser.tsx#L28) SupplyRiser — vertical pipe connecting between elevations. Placed at a specific XY point, runs straight up from `from` to `to`. The cylinder is Z-aligned by default so no rotation is needed. #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `__namedParameters` | [`SupplyRiserProps`](https://docs.bear.build/docs/bear/blueprints/mep/SupplyRiser.md#supplyriserprops) | #### Returns [#returns] [`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement) # SupplyStub (https://docs.bear.build/docs/bear/blueprints/mep/SupplyStub) Import from `bear/blueprints/mep/SupplyStub`. ## Interfaces [#interfaces] ### SupplyStubProps [#supplystubprops] Defined in: [bear/blueprints/mep/SupplyStub.ts:8](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/mep/SupplyStub.ts#L8) #### Properties [#properties] | Property | Type | Description | | ------ | ------ | ------ | | `diameter?` | [`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement) | Nominal connection diameter. Default "1/2in". | | `name?` | `string` | - | | `service` | `"hot"` \| `"cold"` | Water service type, which determines color. | ## Variables [#variables] ### SupplyStub [#supplystub] ```ts const SupplyStub: PartDef; ``` Defined in: [bear/blueprints/mep/SupplyStub.ts:49](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/mep/SupplyStub.ts#L49) SupplyStub: a fixture connection point, the short drop where a supply run terminates at a fixture. It exists so the flow graph has a node at every demand point: branches `feeds` their stub, and sizing counts stubs downstream. # SupplyTrace (https://docs.bear.build/docs/bear/blueprints/mep/SupplyTrace) Import from `bear/blueprints/mep/SupplyTrace`. ## Interfaces [#interfaces] ### SupplyTraceProps [#supplytraceprops] Defined in: [bear/blueprints/mep/SupplyTrace.ts:8](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/mep/SupplyTrace.ts#L8) #### Properties [#properties] | Property | Type | Description | | ------ | ------ | ------ | | `diameter?` | [`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement) | Nominal pipe diameter. Default "3/4in". | | `length` | `number` | Segment length in project units (set by parent assembly). | | `service` | `"hot"` \| `"cold"` | Water service type, which determines color. | ## Variables [#variables] ### SupplyTrace [#supplytrace] ```ts const SupplyTrace: PartDef; ``` Defined in: [bear/blueprints/mep/SupplyTrace.ts:45](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/mep/SupplyTrace.ts#L45) SupplyTrace: a single straight pipe segment rendered as a cylinder. This is a schematic routing element. Fittings, insulation, and detailed pipe specifications come at higher levels of detail. # Barrier (https://docs.bear.build/docs/bear/blueprints/playground/Barrier) Import from `bear/blueprints/playground/Barrier`. ## Interfaces [#interfaces] ### BarrierProps [#barrierprops] Defined in: [bear/blueprints/playground/Barrier.tsx:16](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/playground/Barrier.tsx#L16) The props the engine reads on any element, whatever its part. #### Extends [#extends] - [`ElementProps`](https://docs.bear.build/docs/bear/engine/types.md#elementprops) #### Properties [#properties] | Property | Type | Description | Inherited from | | ------ | ------ | ------ | ------ | | `bearsOn?` | [`RelationPropValue`](https://docs.bear.build/docs/bear/engine/relations.md#relationpropvalue) | - | [`ElementProps`](https://docs.bear.build/docs/bear/engine/types.md#elementprops).[`bearsOn`](https://docs.bear.build/docs/bear/engine/types.md#property-bearson) | | `carries?` | [`RelationPropValue`](https://docs.bear.build/docs/bear/engine/relations.md#relationpropvalue) | - | [`ElementProps`](https://docs.bear.build/docs/bear/engine/types.md#elementprops).[`carries`](https://docs.bear.build/docs/bear/engine/types.md#property-carries) | | `context?` | [`ContextMap`](https://docs.bear.build/docs/bear/engine/types.md#contextmap) | Context values this element provides to its descendants. | [`ElementProps`](https://docs.bear.build/docs/bear/engine/types.md#elementprops).[`context`](https://docs.bear.build/docs/bear/engine/types.md#property-context-3) | | `cutBy?` | [`RelationPropValue`](https://docs.bear.build/docs/bear/engine/relations.md#relationpropvalue) | - | [`ElementProps`](https://docs.bear.build/docs/bear/engine/types.md#elementprops).[`cutBy`](https://docs.bear.build/docs/bear/engine/types.md#property-cutby) | | `cuts?` | [`RelationPropValue`](https://docs.bear.build/docs/bear/engine/relations.md#relationpropvalue) | - | [`ElementProps`](https://docs.bear.build/docs/bear/engine/types.md#elementprops).[`cuts`](https://docs.bear.build/docs/bear/engine/types.md#property-cuts) | | `fastenedTo?` | [`RelationPropValue`](https://docs.bear.build/docs/bear/engine/relations.md#relationpropvalue) | - | [`ElementProps`](https://docs.bear.build/docs/bear/engine/types.md#elementprops).[`fastenedTo`](https://docs.bear.build/docs/bear/engine/types.md#property-fastenedto) | | `fedBy?` | [`RelationPropValue`](https://docs.bear.build/docs/bear/engine/relations.md#relationpropvalue) | - | [`ElementProps`](https://docs.bear.build/docs/bear/engine/types.md#elementprops).[`fedBy`](https://docs.bear.build/docs/bear/engine/types.md#property-fedby) | | `feeds?` | [`RelationPropValue`](https://docs.bear.build/docs/bear/engine/relations.md#relationpropvalue) | - | [`ElementProps`](https://docs.bear.build/docs/bear/engine/types.md#elementprops).[`feeds`](https://docs.bear.build/docs/bear/engine/types.md#property-feeds) | | `height?` | [`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement) | - | - | | `hosts?` | [`HostedChildren`](https://docs.bear.build/docs/bear/engine/hosting.md#hostedchildren) | Collect typed member declarations before building host-owned children. | [`ElementProps`](https://docs.bear.build/docs/bear/engine/types.md#elementprops).[`hosts`](https://docs.bear.build/docs/bear/engine/types.md#property-hosts) | | `label?` | `string` | - | [`ElementProps`](https://docs.bear.build/docs/bear/engine/types.md#elementprops).[`label`](https://docs.bear.build/docs/bear/engine/types.md#property-label) | | `name?` | `string` | FQN segment for this element. Falls back to `label`, then the part name. | [`ElementProps`](https://docs.bear.build/docs/bear/engine/types.md#elementprops).[`name`](https://docs.bear.build/docs/bear/engine/types.md#property-name) | | `refs?` | `Readonly`\<`Record`\<`string`, [`Surface`](https://docs.bear.build/docs/bear/geometry/shapes.md#surface)\>\> | Named reference planes this element publishes, in its local frame. | [`ElementProps`](https://docs.bear.build/docs/bear/engine/types.md#elementprops).[`refs`](https://docs.bear.build/docs/bear/engine/types.md#property-refs-2) | | `rides?` | `Readonly`\<`Record`\<`string`, `string`\>\> | The solvable anchor a published ref rides, by ref key. See `NodeBase.rides`. | [`ElementProps`](https://docs.bear.build/docs/bear/engine/types.md#elementprops).[`rides`](https://docs.bear.build/docs/bear/engine/types.md#property-rides-2) | | `transform?` | [`TransformMatrix`](https://docs.bear.build/docs/bear/geometry/transform.md#transformmatrix) | This element's pose in its parent frame. | [`ElementProps`](https://docs.bear.build/docs/bear/engine/types.md#elementprops).[`transform`](https://docs.bear.build/docs/bear/engine/types.md#property-transform-3) | | `width` | [`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement) | - | - | ## Functions [#functions] ### default() [#default] ```ts function default(__namedParameters): Element; ``` Defined in: [bear/blueprints/playground/Barrier.tsx:22](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/playground/Barrier.tsx#L22) Runs along X, centered in plan, bottom at z=0. Layout screen, not a compliance result. #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `__namedParameters` | [`BarrierProps`](https://docs.bear.build/docs/bear/blueprints/playground/Barrier.md#barrierprops) | #### Returns [#returns] [`Element`](https://docs.bear.build/docs/bear/engine/jsx-runtime/namespaces/JSX.md#element) # Bridge (https://docs.bear.build/docs/bear/blueprints/playground/Bridge) Import from `bear/blueprints/playground/Bridge`. ## Interfaces [#interfaces] ### BridgeProps [#bridgeprops] Defined in: [bear/blueprints/playground/Bridge.tsx:10](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/playground/Bridge.tsx#L10) The props the engine reads on any element, whatever its part. #### Extends [#extends] - [`ElementProps`](https://docs.bear.build/docs/bear/engine/types.md#elementprops) #### Properties [#properties] | Property | Type | Description | Inherited from | | ------ | ------ | ------ | ------ | | `bearsOn?` | [`RelationPropValue`](https://docs.bear.build/docs/bear/engine/relations.md#relationpropvalue) | - | [`ElementProps`](https://docs.bear.build/docs/bear/engine/types.md#elementprops).[`bearsOn`](https://docs.bear.build/docs/bear/engine/types.md#property-bearson) | | `carries?` | [`RelationPropValue`](https://docs.bear.build/docs/bear/engine/relations.md#relationpropvalue) | - | [`ElementProps`](https://docs.bear.build/docs/bear/engine/types.md#elementprops).[`carries`](https://docs.bear.build/docs/bear/engine/types.md#property-carries) | | `context?` | [`ContextMap`](https://docs.bear.build/docs/bear/engine/types.md#contextmap) | Context values this element provides to its descendants. | [`ElementProps`](https://docs.bear.build/docs/bear/engine/types.md#elementprops).[`context`](https://docs.bear.build/docs/bear/engine/types.md#property-context-3) | | `cutBy?` | [`RelationPropValue`](https://docs.bear.build/docs/bear/engine/relations.md#relationpropvalue) | - | [`ElementProps`](https://docs.bear.build/docs/bear/engine/types.md#elementprops).[`cutBy`](https://docs.bear.build/docs/bear/engine/types.md#property-cutby) | | `cuts?` | [`RelationPropValue`](https://docs.bear.build/docs/bear/engine/relations.md#relationpropvalue) | - | [`ElementProps`](https://docs.bear.build/docs/bear/engine/types.md#elementprops).[`cuts`](https://docs.bear.build/docs/bear/engine/types.md#property-cuts) | | `deckHeight?` | [`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement) | - | - | | `fastenedTo?` | [`RelationPropValue`](https://docs.bear.build/docs/bear/engine/relations.md#relationpropvalue) | - | [`ElementProps`](https://docs.bear.build/docs/bear/engine/types.md#elementprops).[`fastenedTo`](https://docs.bear.build/docs/bear/engine/types.md#property-fastenedto) | | `fedBy?` | [`RelationPropValue`](https://docs.bear.build/docs/bear/engine/relations.md#relationpropvalue) | - | [`ElementProps`](https://docs.bear.build/docs/bear/engine/types.md#elementprops).[`fedBy`](https://docs.bear.build/docs/bear/engine/types.md#property-fedby) | | `feeds?` | [`RelationPropValue`](https://docs.bear.build/docs/bear/engine/relations.md#relationpropvalue) | - | [`ElementProps`](https://docs.bear.build/docs/bear/engine/types.md#elementprops).[`feeds`](https://docs.bear.build/docs/bear/engine/types.md#property-feeds) | | `hosts?` | [`HostedChildren`](https://docs.bear.build/docs/bear/engine/hosting.md#hostedchildren) | Collect typed member declarations before building host-owned children. | [`ElementProps`](https://docs.bear.build/docs/bear/engine/types.md#elementprops).[`hosts`](https://docs.bear.build/docs/bear/engine/types.md#property-hosts) | | `label?` | `string` | - | [`ElementProps`](https://docs.bear.build/docs/bear/engine/types.md#elementprops).[`label`](https://docs.bear.build/docs/bear/engine/types.md#property-label) | | `length` | [`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement) | - | - | | `name?` | `string` | FQN segment for this element. Falls back to `label`, then the part name. | [`ElementProps`](https://docs.bear.build/docs/bear/engine/types.md#elementprops).[`name`](https://docs.bear.build/docs/bear/engine/types.md#property-name) | | `refs?` | `Readonly`\<`Record`\<`string`, [`Surface`](https://docs.bear.build/docs/bear/geometry/shapes.md#surface)\>\> | Named reference planes this element publishes, in its local frame. | [`ElementProps`](https://docs.bear.build/docs/bear/engine/types.md#elementprops).[`refs`](https://docs.bear.build/docs/bear/engine/types.md#property-refs-2) | | `rides?` | `Readonly`\<`Record`\<`string`, `string`\>\> | The solvable anchor a published ref rides, by ref key. See `NodeBase.rides`. | [`ElementProps`](https://docs.bear.build/docs/bear/engine/types.md#elementprops).[`rides`](https://docs.bear.build/docs/bear/engine/types.md#property-rides-2) | | `transform?` | [`TransformMatrix`](https://docs.bear.build/docs/bear/geometry/transform.md#transformmatrix) | This element's pose in its parent frame. | [`ElementProps`](https://docs.bear.build/docs/bear/engine/types.md#elementprops).[`transform`](https://docs.bear.build/docs/bear/engine/types.md#property-transform-3) | | `width?` | [`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement) | - | - | ## Functions [#functions] ### default() [#default] ```ts function default(__namedParameters): Element; ``` Defined in: [bear/blueprints/playground/Bridge.tsx:17](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/playground/Bridge.tsx#L17) Fixed bridge along Y, centered in plan, walking surface z=0. Ends must be supported. #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `__namedParameters` | [`BridgeProps`](https://docs.bear.build/docs/bear/blueprints/playground/Bridge.md#bridgeprops) | #### Returns [#returns] [`Element`](https://docs.bear.build/docs/bear/engine/jsx-runtime/namespaces/JSX.md#element) # Canopy (https://docs.bear.build/docs/bear/blueprints/playground/Canopy) Import from `bear/blueprints/playground/Canopy`. ## Interfaces [#interfaces] ### CanopyProps [#canopyprops] Defined in: [bear/blueprints/playground/Canopy.tsx:16](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/playground/Canopy.tsx#L16) The props the engine reads on any element, whatever its part. #### Extends [#extends] - [`ElementProps`](https://docs.bear.build/docs/bear/engine/types.md#elementprops) #### Properties [#properties] | Property | Type | Description | Inherited from | | ------ | ------ | ------ | ------ | | `bearsOn?` | [`RelationPropValue`](https://docs.bear.build/docs/bear/engine/relations.md#relationpropvalue) | - | [`ElementProps`](https://docs.bear.build/docs/bear/engine/types.md#elementprops).[`bearsOn`](https://docs.bear.build/docs/bear/engine/types.md#property-bearson) | | `carries?` | [`RelationPropValue`](https://docs.bear.build/docs/bear/engine/relations.md#relationpropvalue) | - | [`ElementProps`](https://docs.bear.build/docs/bear/engine/types.md#elementprops).[`carries`](https://docs.bear.build/docs/bear/engine/types.md#property-carries) | | `context?` | [`ContextMap`](https://docs.bear.build/docs/bear/engine/types.md#contextmap) | Context values this element provides to its descendants. | [`ElementProps`](https://docs.bear.build/docs/bear/engine/types.md#elementprops).[`context`](https://docs.bear.build/docs/bear/engine/types.md#property-context-3) | | `cutBy?` | [`RelationPropValue`](https://docs.bear.build/docs/bear/engine/relations.md#relationpropvalue) | - | [`ElementProps`](https://docs.bear.build/docs/bear/engine/types.md#elementprops).[`cutBy`](https://docs.bear.build/docs/bear/engine/types.md#property-cutby) | | `cuts?` | [`RelationPropValue`](https://docs.bear.build/docs/bear/engine/relations.md#relationpropvalue) | - | [`ElementProps`](https://docs.bear.build/docs/bear/engine/types.md#elementprops).[`cuts`](https://docs.bear.build/docs/bear/engine/types.md#property-cuts) | | `fastenedTo?` | [`RelationPropValue`](https://docs.bear.build/docs/bear/engine/relations.md#relationpropvalue) | - | [`ElementProps`](https://docs.bear.build/docs/bear/engine/types.md#elementprops).[`fastenedTo`](https://docs.bear.build/docs/bear/engine/types.md#property-fastenedto) | | `fedBy?` | [`RelationPropValue`](https://docs.bear.build/docs/bear/engine/relations.md#relationpropvalue) | - | [`ElementProps`](https://docs.bear.build/docs/bear/engine/types.md#elementprops).[`fedBy`](https://docs.bear.build/docs/bear/engine/types.md#property-fedby) | | `feeds?` | [`RelationPropValue`](https://docs.bear.build/docs/bear/engine/relations.md#relationpropvalue) | - | [`ElementProps`](https://docs.bear.build/docs/bear/engine/types.md#elementprops).[`feeds`](https://docs.bear.build/docs/bear/engine/types.md#property-feeds) | | `hosts?` | [`HostedChildren`](https://docs.bear.build/docs/bear/engine/hosting.md#hostedchildren) | Collect typed member declarations before building host-owned children. | [`ElementProps`](https://docs.bear.build/docs/bear/engine/types.md#elementprops).[`hosts`](https://docs.bear.build/docs/bear/engine/types.md#property-hosts) | | `label?` | `string` | - | [`ElementProps`](https://docs.bear.build/docs/bear/engine/types.md#elementprops).[`label`](https://docs.bear.build/docs/bear/engine/types.md#property-label) | | `name?` | `string` | FQN segment for this element. Falls back to `label`, then the part name. | [`ElementProps`](https://docs.bear.build/docs/bear/engine/types.md#elementprops).[`name`](https://docs.bear.build/docs/bear/engine/types.md#property-name) | | `refs?` | `Readonly`\<`Record`\<`string`, [`Surface`](https://docs.bear.build/docs/bear/geometry/shapes.md#surface)\>\> | Named reference planes this element publishes, in its local frame. | [`ElementProps`](https://docs.bear.build/docs/bear/engine/types.md#elementprops).[`refs`](https://docs.bear.build/docs/bear/engine/types.md#property-refs-2) | | `rides?` | `Readonly`\<`Record`\<`string`, `string`\>\> | The solvable anchor a published ref rides, by ref key. See `NodeBase.rides`. | [`ElementProps`](https://docs.bear.build/docs/bear/engine/types.md#elementprops).[`rides`](https://docs.bear.build/docs/bear/engine/types.md#property-rides-2) | | `rise` | [`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement) | - | - | | `transform?` | [`TransformMatrix`](https://docs.bear.build/docs/bear/geometry/transform.md#transformmatrix) | This element's pose in its parent frame. | [`ElementProps`](https://docs.bear.build/docs/bear/engine/types.md#elementprops).[`transform`](https://docs.bear.build/docs/bear/engine/types.md#property-transform-3) | | `width` | [`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement) | - | - | ## Functions [#functions] ### default() [#default] ```ts function default(__namedParameters): Element; ``` Defined in: [bear/blueprints/playground/Canopy.tsx:22](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/playground/Canopy.tsx#L22) Open slatted shade canopy. All stock is modeled; roof joints remain a design task. #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `__namedParameters` | [`CanopyProps`](https://docs.bear.build/docs/bear/blueprints/playground/Canopy.md#canopyprops) | #### Returns [#returns] [`Element`](https://docs.bear.build/docs/bear/engine/jsx-runtime/namespaces/JSX.md#element) # Deck (https://docs.bear.build/docs/bear/blueprints/playground/Deck) Import from `bear/blueprints/playground/Deck`. ## Interfaces [#interfaces] ### DeckProps [#deckprops] Defined in: [bear/blueprints/playground/Deck.tsx:19](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/playground/Deck.tsx#L19) The props the engine reads on any element, whatever its part. #### Extends [#extends] - [`ElementProps`](https://docs.bear.build/docs/bear/engine/types.md#elementprops) #### Properties [#properties] | Property | Type | Description | Inherited from | | ------ | ------ | ------ | ------ | | `bearsOn?` | [`RelationPropValue`](https://docs.bear.build/docs/bear/engine/relations.md#relationpropvalue) | - | [`ElementProps`](https://docs.bear.build/docs/bear/engine/types.md#elementprops).[`bearsOn`](https://docs.bear.build/docs/bear/engine/types.md#property-bearson) | | `carries?` | [`RelationPropValue`](https://docs.bear.build/docs/bear/engine/relations.md#relationpropvalue) | - | [`ElementProps`](https://docs.bear.build/docs/bear/engine/types.md#elementprops).[`carries`](https://docs.bear.build/docs/bear/engine/types.md#property-carries) | | `context?` | [`ContextMap`](https://docs.bear.build/docs/bear/engine/types.md#contextmap) | Context values this element provides to its descendants. | [`ElementProps`](https://docs.bear.build/docs/bear/engine/types.md#elementprops).[`context`](https://docs.bear.build/docs/bear/engine/types.md#property-context-3) | | `cutBy?` | [`RelationPropValue`](https://docs.bear.build/docs/bear/engine/relations.md#relationpropvalue) | - | [`ElementProps`](https://docs.bear.build/docs/bear/engine/types.md#elementprops).[`cutBy`](https://docs.bear.build/docs/bear/engine/types.md#property-cutby) | | `cuts?` | [`RelationPropValue`](https://docs.bear.build/docs/bear/engine/relations.md#relationpropvalue) | - | [`ElementProps`](https://docs.bear.build/docs/bear/engine/types.md#elementprops).[`cuts`](https://docs.bear.build/docs/bear/engine/types.md#property-cuts) | | `depth` | [`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement) | - | - | | `fastenedTo?` | [`RelationPropValue`](https://docs.bear.build/docs/bear/engine/relations.md#relationpropvalue) | - | [`ElementProps`](https://docs.bear.build/docs/bear/engine/types.md#elementprops).[`fastenedTo`](https://docs.bear.build/docs/bear/engine/types.md#property-fastenedto) | | `fedBy?` | [`RelationPropValue`](https://docs.bear.build/docs/bear/engine/relations.md#relationpropvalue) | - | [`ElementProps`](https://docs.bear.build/docs/bear/engine/types.md#elementprops).[`fedBy`](https://docs.bear.build/docs/bear/engine/types.md#property-fedby) | | `feeds?` | [`RelationPropValue`](https://docs.bear.build/docs/bear/engine/relations.md#relationpropvalue) | - | [`ElementProps`](https://docs.bear.build/docs/bear/engine/types.md#elementprops).[`feeds`](https://docs.bear.build/docs/bear/engine/types.md#property-feeds) | | `hosts?` | [`HostedChildren`](https://docs.bear.build/docs/bear/engine/hosting.md#hostedchildren) | Collect typed member declarations before building host-owned children. | [`ElementProps`](https://docs.bear.build/docs/bear/engine/types.md#elementprops).[`hosts`](https://docs.bear.build/docs/bear/engine/types.md#property-hosts) | | `label?` | `string` | - | [`ElementProps`](https://docs.bear.build/docs/bear/engine/types.md#elementprops).[`label`](https://docs.bear.build/docs/bear/engine/types.md#property-label) | | `name?` | `string` | FQN segment for this element. Falls back to `label`, then the part name. | [`ElementProps`](https://docs.bear.build/docs/bear/engine/types.md#elementprops).[`name`](https://docs.bear.build/docs/bear/engine/types.md#property-name) | | `refs?` | `Readonly`\<`Record`\<`string`, [`Surface`](https://docs.bear.build/docs/bear/geometry/shapes.md#surface)\>\> | Named reference planes this element publishes, in its local frame. | [`ElementProps`](https://docs.bear.build/docs/bear/engine/types.md#elementprops).[`refs`](https://docs.bear.build/docs/bear/engine/types.md#property-refs-2) | | `rides?` | `Readonly`\<`Record`\<`string`, `string`\>\> | The solvable anchor a published ref rides, by ref key. See `NodeBase.rides`. | [`ElementProps`](https://docs.bear.build/docs/bear/engine/types.md#elementprops).[`rides`](https://docs.bear.build/docs/bear/engine/types.md#property-rides-2) | | `supports?` | readonly \[[`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement)\<`object`\>, [`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement)\<`object`\>\] | Bearing beams at -Y and +Y, already rendered. | - | | `transform?` | [`TransformMatrix`](https://docs.bear.build/docs/bear/geometry/transform.md#transformmatrix) | This element's pose in its parent frame. | [`ElementProps`](https://docs.bear.build/docs/bear/engine/types.md#elementprops).[`transform`](https://docs.bear.build/docs/bear/engine/types.md#property-transform-3) | | `width` | [`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement) | - | - | ## Functions [#functions] ### default() [#default] ```ts function default(__namedParameters): Element; ``` Defined in: [bear/blueprints/playground/Deck.tsx:28](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/playground/Deck.tsx#L28) Plan centered, walking surface z=0. Preliminary framing, not a span rating. #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `__namedParameters` | [`DeckProps`](https://docs.bear.build/docs/bear/blueprints/playground/Deck.md#deckprops) | #### Returns [#returns] [`Element`](https://docs.bear.build/docs/bear/engine/jsx-runtime/namespaces/JSX.md#element) # Platform (https://docs.bear.build/docs/bear/blueprints/playground/Platform) Import from `bear/blueprints/playground/Platform`. ## Functions [#functions] ### default() [#default] ```ts function default(__namedParameters): Element; ``` Defined in: [bear/blueprints/playground/Platform.tsx:27](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/playground/Platform.tsx#L27) Floor and its gravity path, from decking through bearing beams/posts to post bases. #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `__namedParameters` | `Props` | #### Returns [#returns] [`Element`](https://docs.bear.build/docs/bear/engine/jsx-runtime/namespaces/JSX.md#element) # Stairs (https://docs.bear.build/docs/bear/blueprints/playground/Stairs) Import from `bear/blueprints/playground/Stairs`. ## Interfaces [#interfaces] ### StairsProps [#stairsprops] Defined in: [bear/blueprints/playground/Stairs.tsx:18](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/playground/Stairs.tsx#L18) The props the engine reads on any element, whatever its part. #### Extends [#extends] - [`ElementProps`](https://docs.bear.build/docs/bear/engine/types.md#elementprops) #### Properties [#properties] | Property | Type | Description | Inherited from | | ------ | ------ | ------ | ------ | | `bearsOn?` | [`RelationPropValue`](https://docs.bear.build/docs/bear/engine/relations.md#relationpropvalue) | - | [`ElementProps`](https://docs.bear.build/docs/bear/engine/types.md#elementprops).[`bearsOn`](https://docs.bear.build/docs/bear/engine/types.md#property-bearson) | | `carries?` | [`RelationPropValue`](https://docs.bear.build/docs/bear/engine/relations.md#relationpropvalue) | - | [`ElementProps`](https://docs.bear.build/docs/bear/engine/types.md#elementprops).[`carries`](https://docs.bear.build/docs/bear/engine/types.md#property-carries) | | `context?` | [`ContextMap`](https://docs.bear.build/docs/bear/engine/types.md#contextmap) | Context values this element provides to its descendants. | [`ElementProps`](https://docs.bear.build/docs/bear/engine/types.md#elementprops).[`context`](https://docs.bear.build/docs/bear/engine/types.md#property-context-3) | | `cutBy?` | [`RelationPropValue`](https://docs.bear.build/docs/bear/engine/relations.md#relationpropvalue) | - | [`ElementProps`](https://docs.bear.build/docs/bear/engine/types.md#elementprops).[`cutBy`](https://docs.bear.build/docs/bear/engine/types.md#property-cutby) | | `cuts?` | [`RelationPropValue`](https://docs.bear.build/docs/bear/engine/relations.md#relationpropvalue) | - | [`ElementProps`](https://docs.bear.build/docs/bear/engine/types.md#elementprops).[`cuts`](https://docs.bear.build/docs/bear/engine/types.md#property-cuts) | | `fastenedTo?` | [`RelationPropValue`](https://docs.bear.build/docs/bear/engine/relations.md#relationpropvalue) | - | [`ElementProps`](https://docs.bear.build/docs/bear/engine/types.md#elementprops).[`fastenedTo`](https://docs.bear.build/docs/bear/engine/types.md#property-fastenedto) | | `fedBy?` | [`RelationPropValue`](https://docs.bear.build/docs/bear/engine/relations.md#relationpropvalue) | - | [`ElementProps`](https://docs.bear.build/docs/bear/engine/types.md#elementprops).[`fedBy`](https://docs.bear.build/docs/bear/engine/types.md#property-fedby) | | `feeds?` | [`RelationPropValue`](https://docs.bear.build/docs/bear/engine/relations.md#relationpropvalue) | - | [`ElementProps`](https://docs.bear.build/docs/bear/engine/types.md#elementprops).[`feeds`](https://docs.bear.build/docs/bear/engine/types.md#property-feeds) | | `hosts?` | [`HostedChildren`](https://docs.bear.build/docs/bear/engine/hosting.md#hostedchildren) | Collect typed member declarations before building host-owned children. | [`ElementProps`](https://docs.bear.build/docs/bear/engine/types.md#elementprops).[`hosts`](https://docs.bear.build/docs/bear/engine/types.md#property-hosts) | | `label?` | `string` | - | [`ElementProps`](https://docs.bear.build/docs/bear/engine/types.md#elementprops).[`label`](https://docs.bear.build/docs/bear/engine/types.md#property-label) | | `name?` | `string` | FQN segment for this element. Falls back to `label`, then the part name. | [`ElementProps`](https://docs.bear.build/docs/bear/engine/types.md#elementprops).[`name`](https://docs.bear.build/docs/bear/engine/types.md#property-name) | | `refs?` | `Readonly`\<`Record`\<`string`, [`Surface`](https://docs.bear.build/docs/bear/geometry/shapes.md#surface)\>\> | Named reference planes this element publishes, in its local frame. | [`ElementProps`](https://docs.bear.build/docs/bear/engine/types.md#elementprops).[`refs`](https://docs.bear.build/docs/bear/engine/types.md#property-refs-2) | | `rides?` | `Readonly`\<`Record`\<`string`, `string`\>\> | The solvable anchor a published ref rides, by ref key. See `NodeBase.rides`. | [`ElementProps`](https://docs.bear.build/docs/bear/engine/types.md#elementprops).[`rides`](https://docs.bear.build/docs/bear/engine/types.md#property-rides-2) | | `rise` | [`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement) | - | - | | `transform?` | [`TransformMatrix`](https://docs.bear.build/docs/bear/geometry/transform.md#transformmatrix) | This element's pose in its parent frame. | [`ElementProps`](https://docs.bear.build/docs/bear/engine/types.md#elementprops).[`transform`](https://docs.bear.build/docs/bear/engine/types.md#property-transform-3) | | `width?` | [`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement) | - | - | ## Functions [#functions] ### default() [#default] ```ts function default(__namedParameters): Element; ``` Defined in: [bear/blueprints/playground/Stairs.tsx:24](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/playground/Stairs.tsx#L24) Landing edge y=0. Real cut stringers, two-board treads and closed risers. #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `__namedParameters` | [`StairsProps`](https://docs.bear.build/docs/bear/blueprints/playground/Stairs.md#stairsprops) | #### Returns [#returns] [`Element`](https://docs.bear.build/docs/bear/engine/jsx-runtime/namespaces/JSX.md#element) # Tower (https://docs.bear.build/docs/bear/blueprints/playground/Tower) Import from `bear/blueprints/playground/Tower`. ## Interfaces [#interfaces] ### TowerProps [#towerprops] Defined in: [bear/blueprints/playground/Tower.tsx:20](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/playground/Tower.tsx#L20) The props the engine reads on any element, whatever its part. #### Extends [#extends] - [`ElementProps`](https://docs.bear.build/docs/bear/engine/types.md#elementprops) #### Properties [#properties] | Property | Type | Description | Inherited from | | ------ | ------ | ------ | ------ | | `bearsOn?` | [`RelationPropValue`](https://docs.bear.build/docs/bear/engine/relations.md#relationpropvalue) | - | [`ElementProps`](https://docs.bear.build/docs/bear/engine/types.md#elementprops).[`bearsOn`](https://docs.bear.build/docs/bear/engine/types.md#property-bearson) | | `canopy?` | `boolean` | - | - | | `carries?` | [`RelationPropValue`](https://docs.bear.build/docs/bear/engine/relations.md#relationpropvalue) | - | [`ElementProps`](https://docs.bear.build/docs/bear/engine/types.md#elementprops).[`carries`](https://docs.bear.build/docs/bear/engine/types.md#property-carries) | | `context?` | [`ContextMap`](https://docs.bear.build/docs/bear/engine/types.md#contextmap) | Context values this element provides to its descendants. | [`ElementProps`](https://docs.bear.build/docs/bear/engine/types.md#elementprops).[`context`](https://docs.bear.build/docs/bear/engine/types.md#property-context-3) | | `cutBy?` | [`RelationPropValue`](https://docs.bear.build/docs/bear/engine/relations.md#relationpropvalue) | - | [`ElementProps`](https://docs.bear.build/docs/bear/engine/types.md#elementprops).[`cutBy`](https://docs.bear.build/docs/bear/engine/types.md#property-cutby) | | `cuts?` | [`RelationPropValue`](https://docs.bear.build/docs/bear/engine/relations.md#relationpropvalue) | - | [`ElementProps`](https://docs.bear.build/docs/bear/engine/types.md#elementprops).[`cuts`](https://docs.bear.build/docs/bear/engine/types.md#property-cuts) | | `deckHeight?` | [`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement) | - | - | | `fastenedTo?` | [`RelationPropValue`](https://docs.bear.build/docs/bear/engine/relations.md#relationpropvalue) | - | [`ElementProps`](https://docs.bear.build/docs/bear/engine/types.md#elementprops).[`fastenedTo`](https://docs.bear.build/docs/bear/engine/types.md#property-fastenedto) | | `fedBy?` | [`RelationPropValue`](https://docs.bear.build/docs/bear/engine/relations.md#relationpropvalue) | - | [`ElementProps`](https://docs.bear.build/docs/bear/engine/types.md#elementprops).[`fedBy`](https://docs.bear.build/docs/bear/engine/types.md#property-fedby) | | `feeds?` | [`RelationPropValue`](https://docs.bear.build/docs/bear/engine/relations.md#relationpropvalue) | - | [`ElementProps`](https://docs.bear.build/docs/bear/engine/types.md#elementprops).[`feeds`](https://docs.bear.build/docs/bear/engine/types.md#property-feeds) | | `hosts?` | [`HostedChildren`](https://docs.bear.build/docs/bear/engine/hosting.md#hostedchildren) | Collect typed member declarations before building host-owned children. | [`ElementProps`](https://docs.bear.build/docs/bear/engine/types.md#elementprops).[`hosts`](https://docs.bear.build/docs/bear/engine/types.md#property-hosts) | | `label?` | `string` | - | [`ElementProps`](https://docs.bear.build/docs/bear/engine/types.md#elementprops).[`label`](https://docs.bear.build/docs/bear/engine/types.md#property-label) | | `name?` | `string` | FQN segment for this element. Falls back to `label`, then the part name. | [`ElementProps`](https://docs.bear.build/docs/bear/engine/types.md#elementprops).[`name`](https://docs.bear.build/docs/bear/engine/types.md#property-name) | | `openings` | `Partial`\<`Record`\<[`TowerSide`](https://docs.bear.build/docs/bear/blueprints/playground/Tower.md#towerside), [`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement)\>\> | Centered clear openings. Every opening needs a matching route or equipment interface. | - | | `refs?` | `Readonly`\<`Record`\<`string`, [`Surface`](https://docs.bear.build/docs/bear/geometry/shapes.md#surface)\>\> | Named reference planes this element publishes, in its local frame. | [`ElementProps`](https://docs.bear.build/docs/bear/engine/types.md#elementprops).[`refs`](https://docs.bear.build/docs/bear/engine/types.md#property-refs-2) | | `rides?` | `Readonly`\<`Record`\<`string`, `string`\>\> | The solvable anchor a published ref rides, by ref key. See `NodeBase.rides`. | [`ElementProps`](https://docs.bear.build/docs/bear/engine/types.md#elementprops).[`rides`](https://docs.bear.build/docs/bear/engine/types.md#property-rides-2) | | `transform?` | [`TransformMatrix`](https://docs.bear.build/docs/bear/geometry/transform.md#transformmatrix) | This element's pose in its parent frame. | [`ElementProps`](https://docs.bear.build/docs/bear/engine/types.md#elementprops).[`transform`](https://docs.bear.build/docs/bear/engine/types.md#property-transform-3) | | `width?` | [`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement) | - | - | ## Type Aliases [#type-aliases] ### TowerSide [#towerside] ```ts type TowerSide = "north" | "east" | "south" | "west"; ``` Defined in: [bear/blueprints/playground/Tower.tsx:19](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/playground/Tower.tsx#L19) ## Functions [#functions] ### default() [#default] ```ts function default(__namedParameters): Element; ``` Defined in: [bear/blueprints/playground/Tower.tsx:29](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/playground/Tower.tsx#L29) Plan centered at grade. Posts outboard of deck; deck and rail positions share one datum. #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `__namedParameters` | [`TowerProps`](https://docs.bear.build/docs/bear/blueprints/playground/Tower.md#towerprops) | #### Returns [#returns] [`Element`](https://docs.bear.build/docs/bear/engine/jsx-runtime/namespaces/JSX.md#element) # span-placement (https://docs.bear.build/docs/bear/blueprints/span-placement) Import from `bear/blueprints/span-placement`. ## Interfaces [#interfaces] ### SpanSupports [#spansupports] Defined in: [bear/blueprints/span-placement.ts:24](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/span-placement.ts#L24) The supports a span rests on: its `start` rests on `from`, its `end` on `to`, and each is also a `bears` edge. A bare element is a point support (the end lands on its plan center: a post, a pier); a ref names the plane the end lands on (`getRef(ledger, "back")`, a hanger's `seat`), which pins the end along that plane's normal only. #### Properties [#properties] | Property | Type | | ------ | ------ | | `from` | [`BearingTarget`](https://docs.bear.build/docs/bear/engine/solvable.md#bearingtarget) | | `to` | [`BearingTarget`](https://docs.bear.build/docs/bear/engine/solvable.md#bearingtarget) | ## Type Aliases [#type-aliases] ### SpanPlacementProps [#spanplacementprops] ```ts type SpanPlacementProps = | { along?: never; direction?: never; from?: never; path: [Point, Point]; spans?: never; to?: never; } | { along?: `@${string}`; direction?: "x" | "y"; from?: `@${string}`; path?: never; spans?: SpanSupports; to?: `@${string}`; }; ``` Defined in: [bear/blueprints/span-placement.ts:35](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/span-placement.ts#L35) Placement props shared by span-shaped solvable elements: either a fully authored `path`, or solved placement from `along`/`from`/`to`, `spans` and dims. The two are exclusive, and the type makes mixing them a compile error. #### Union Members [#union-members] ##### Type Literal [#type-literal] ```ts { along?: never; direction?: never; from?: never; path: [Point, Point]; spans?: never; to?: never; } ``` | Name | Type | Description | | ------ | ------ | ------ | | `along?` | `never` | - | | `direction?` | `never` | - | | `from?` | `never` | - | | `path` | \[[`Point`](https://docs.bear.build/docs/bear/measurements.md#point), [`Point`](https://docs.bear.build/docs/bear/measurements.md#point)\] | The path the span follows. Pins both anchors; never solved. | | `spans?` | `never` | - | | `to?` | `never` | - | *** ##### Type Literal [#type-literal-1] ```ts { along?: `@${string}`; direction?: "x" | "y"; from?: `@${string}`; path?: never; spans?: SpanSupports; to?: `@${string}`; } ``` | Name | Type | Description | | ------ | ------ | ------ | | `along?` | `` `@${string}` `` | Put the span's line on this gridline (e.g. "@1"). | | `direction?` | `"x"` \| `"y"` | Axis a solver-placed span runs along. Usually inferred: `along`, `from`, and `to` gridline names each imply it. A span between two point supports needs none: its line is the line between them. | | `from?` | `` `@${string}` `` | Pin the span's start to this gridline along its direction. | | `path?` | `never` | - | | `spans?` | [`SpanSupports`](https://docs.bear.build/docs/bear/blueprints/span-placement.md#spansupports) | The supports the span rests on. Length is a consequence: the distance between where the ends land. Exclusive with `from`/`to`. | | `to?` | `` `@${string}` `` | Pin the span's end to this gridline along its direction. | ## Functions [#functions] ### completeSpanPath() [#completespanpath] ```ts function completeSpanPath(anchors): object; ``` Defined in: [bear/blueprints/span-placement.ts:173](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/span-placement.ts#L173) Rebuild the completed `path` from solved anchors. #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `anchors` | `Record`\<`string`, [`Vec2`](https://docs.bear.build/docs/bear/engine/solvable.md#vec2)\> | #### Returns [#returns] `object` | Name | Type | | ------ | ------ | | `path` | \[[`Point`](https://docs.bear.build/docs/bear/measurements.md#point), [`Point`](https://docs.bear.build/docs/bear/measurements.md#point)\] | *** ### gridValue() [#gridvalue] ```ts function gridValue( grid, name, axis ): number; ``` Defined in: [bear/blueprints/span-placement.ts:75](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/span-placement.ts#L75) #### Parameters [#parameters-1] | Parameter | Type | | ------ | ------ | | `grid` | [`GridReferences`](https://docs.bear.build/docs/bear/measurements.md#gridreferences) \| `undefined` | | `name` | `string` | | `axis` | `"y"` \| `"x"` | #### Returns [#returns-1] `number` *** ### lowerSpanPlacement() [#lowerspanplacement] ```ts function lowerSpanPlacement( p, c, grid, what ): void; ``` Defined in: [bear/blueprints/span-placement.ts:122](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/span-placement.ts#L122) Lower span placement props onto `start`/`end` anchors. An authored path pins both anchors (constant-folded); otherwise `along`/`from`/`to` pin what they pin on an axis-aligned span, `spans` rests the ends on their supports, and dims supply the rest. Whatever stays unpinned is the solver's standard "unbound" diagnostic: a span between two faces still needs `along` or a dim for its position along the supports. #### Parameters [#parameters-2] | Parameter | Type | | ------ | ------ | | `p` | [`SpanPlacementProps`](https://docs.bear.build/docs/bear/blueprints/span-placement.md#spanplacementprops) | | `c` | [`Lowerer`](https://docs.bear.build/docs/bear/engine/solvable.md#lowerer) | | `grid` | [`GridReferences`](https://docs.bear.build/docs/bear/measurements.md#gridreferences) \| `undefined` | | `what` | `string` | #### Returns [#returns-2] `void` *** ### resolvePlacementPoint() [#resolveplacementpoint] ```ts function resolvePlacementPoint(point, grid): Vec2; ``` Defined in: [bear/blueprints/span-placement.ts:85](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/span-placement.ts#L85) Resolve an authored point: numbers, measurement strings, or grid refs. #### Parameters [#parameters-3] | Parameter | Type | | ------ | ------ | | `point` | [`Point`](https://docs.bear.build/docs/bear/measurements.md#point) | | `grid` | [`GridReferences`](https://docs.bear.build/docs/bear/measurements.md#gridreferences) \| `undefined` | #### Returns [#returns-3] [`Vec2`](https://docs.bear.build/docs/bear/engine/solvable.md#vec2) *** ### resolveSpanPath() [#resolvespanpath] ```ts function resolveSpanPath(path, grid): [[number, number], [number, number]]; ``` Defined in: [bear/blueprints/span-placement.ts:102](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/span-placement.ts#L102) Resolve an authored path to numeric project-unit points. #### Parameters [#parameters-4] | Parameter | Type | | ------ | ------ | | `path` | \[[`Point`](https://docs.bear.build/docs/bear/measurements.md#point), [`Point`](https://docs.bear.build/docs/bear/measurements.md#point)\] | | `grid` | [`GridReferences`](https://docs.bear.build/docs/bear/measurements.md#gridreferences) \| `undefined` | #### Returns [#returns-4] \[\[`number`, `number`\], \[`number`, `number`\]\] # truss-layout (https://docs.bear.build/docs/bear/blueprints/truss-layout) Import from `bear/blueprints/truss-layout`. ## Interfaces [#interfaces] ### TrussesProps [#trussesprops] Defined in: [bear/blueprints/truss-layout.tsx:157](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/truss-layout.tsx#L157) Placement and layers shared by gable and scissor trusses. #### Extends [#extends] - [`TrussLayoutOptions`](https://docs.bear.build/docs/bear/blueprints/truss-layout.md#trusslayoutoptions) #### Extended by [#extended-by] - [`ScissorTrussesProps`](https://docs.bear.build/docs/bear/blueprints/ScissorTrusses.md#scissortrussesprops) - [`GableTrussesProps`](https://docs.bear.build/docs/bear/blueprints/GableTrusses.md#gabletrussesprops) #### Properties [#properties] | Property | Type | Description | Inherited from | | ------ | ------ | ------ | ------ | | `children?` | \| [`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement)\<`object`\> \| [`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement)\<`object`\>[] | - | [`TrussLayoutOptions`](https://docs.bear.build/docs/bear/blueprints/truss-layout.md#trusslayoutoptions).[`children`](https://docs.bear.build/docs/bear/blueprints/truss-layout.md#property-children-1) | | `footprint` | \[[`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement), [`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement)\] | Width (X) and depth (Y), centered at (0, 0). Ridge at x = 0; eaves at z = 0. | - | | `name?` | `string` | Name for the truss assembly. Defaults to the blueprint name. | - | | `pitch` | `string` | Roof pitch in rise:run format (e.g. "6:12"). | - | | `sheathing?` | [`Factory`](https://docs.bear.build/docs/bear/engine/factory.md#factory) \| `null` | Factory producing roof sheathing elements. Pass null to skip. | [`TrussLayoutOptions`](https://docs.bear.build/docs/bear/blueprints/truss-layout.md#trusslayoutoptions).[`sheathing`](https://docs.bear.build/docs/bear/blueprints/truss-layout.md#property-sheathing-1) | | `sheathingLayout?` | [`PanelStrategy`](https://docs.bear.build/docs/bear/engine/panelize.md#panelstrategy) | Panel layout strategy for sheathing. Defaults to "staggered". | [`TrussLayoutOptions`](https://docs.bear.build/docs/bear/blueprints/truss-layout.md#trusslayoutoptions).[`sheathingLayout`](https://docs.bear.build/docs/bear/blueprints/truss-layout.md#property-sheathinglayout-1) | | `sheathingPanelOptions?` | [`PanelizeOptions`](https://docs.bear.build/docs/bear/engine/panelize.md#panelizeoptions) | Panel dimension overrides for sheathing. | [`TrussLayoutOptions`](https://docs.bear.build/docs/bear/blueprints/truss-layout.md#trusslayoutoptions).[`sheathingPanelOptions`](https://docs.bear.build/docs/bear/blueprints/truss-layout.md#property-sheathingpaneloptions-1) | | `spacing?` | [`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement) | Truss spacing. Defaults to 24" OC. | - | | `transform?` | [`TransformMatrix`](https://docs.bear.build/docs/bear/geometry/transform.md#transformmatrix) | Pose in the parent frame. The origin is the plan center at eave elevation. | [`TrussLayoutOptions`](https://docs.bear.build/docs/bear/blueprints/truss-layout.md#trusslayoutoptions).[`transform`](https://docs.bear.build/docs/bear/blueprints/truss-layout.md#property-transform-1) | *** ### TrussGeometry [#trussgeometry] Defined in: [bear/blueprints/truss-layout.tsx:134](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/truss-layout.tsx#L134) Parameters passed to the per-truss builder callback. #### Properties [#properties-1] | Property | Type | | ------ | ------ | | `halfWidth` | `number` | | `label` | `string` | | `leftEave` | `Vector3` | | `peak` | `Vector3` | | `rightEave` | `Vector3` | | `rise` | `number` | | `y` | `number` | *** ### TrussLayoutOptions [#trusslayoutoptions] Defined in: [bear/blueprints/truss-layout.tsx:145](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/truss-layout.tsx#L145) Placement and layers shared by gable and scissor trusses. #### Extended by [#extended-by-1] - [`TrussesProps`](https://docs.bear.build/docs/bear/blueprints/truss-layout.md#trussesprops) #### Properties [#properties-2] | Property | Type | Description | | ------ | ------ | ------ | | `children?` | \| [`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement)\<`object`\> \| [`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement)\<`object`\>[] | - | | `sheathing?` | [`Factory`](https://docs.bear.build/docs/bear/engine/factory.md#factory) \| `null` | Factory producing roof sheathing elements. Pass null to skip. | | `sheathingLayout?` | [`PanelStrategy`](https://docs.bear.build/docs/bear/engine/panelize.md#panelstrategy) | Panel layout strategy for sheathing. Defaults to "staggered". | | `sheathingPanelOptions?` | [`PanelizeOptions`](https://docs.bear.build/docs/bear/engine/panelize.md#panelizeoptions) | Panel dimension overrides for sheathing. | | `transform?` | [`TransformMatrix`](https://docs.bear.build/docs/bear/geometry/transform.md#transformmatrix) | Pose in the parent frame. The origin is the plan center at eave elevation. | ## Variables [#variables] ### TRUSS\_HALF\_WIDTH [#truss_half_width] ```ts const TRUSS_HALF_WIDTH: number; ``` Defined in: [bear/blueprints/truss-layout.tsx:22](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/truss-layout.tsx#L22) ## Functions [#functions] ### beamProps() [#beamprops] ```ts function beamProps(from, to): object; ``` Defined in: [bear/blueprints/truss-layout.tsx:27](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/truss-layout.tsx#L27) Compute transform and length for a beam between two 3D points. #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `from` | `Vector3` | | `to` | `Vector3` | #### Returns [#returns] `object` | Name | Type | | ------ | ------ | | `length` | `number` | | `transform` | [`TransformMatrix`](https://docs.bear.build/docs/bear/geometry/transform.md#transformmatrix) | *** ### computeGableSurfaces() [#computegablesurfaces] ```ts function computeGableSurfaces( footprintWidth, footprintDepth, rise ): object; ``` Defined in: [bear/blueprints/truss-layout.tsx:45](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/truss-layout.tsx#L45) Compute gable roof surfaces (left and right slopes) for truss-based roofing. #### Parameters [#parameters-1] | Parameter | Type | | ------ | ------ | | `footprintWidth` | `number` | | `footprintDepth` | `number` | | `rise` | `number` | #### Returns [#returns-1] `object` | Name | Type | | ------ | ------ | | `left` | [`Surface`](https://docs.bear.build/docs/bear/geometry/shapes.md#surface) | | `right` | [`Surface`](https://docs.bear.build/docs/bear/geometry/shapes.md#surface) | *** ### halfWebs() [#halfwebs] ```ts function halfWebs( tcEave, tcPeak, bcEave, bcCenter, y, side ): object[]; ``` Defined in: [bear/blueprints/truss-layout.tsx:106](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/truss-layout.tsx#L106) Generate Fink/W-pattern web members for one half of a truss. Divides each chord into thirds and creates two diagonal webs that zigzag between top and bottom chord panel points — the classic "W" shape seen in metal-plate-connected engineered trusses. #### Parameters [#parameters-2] | Parameter | Type | | ------ | ------ | | `tcEave` | `Vector3` | | `tcPeak` | `Vector3` | | `bcEave` | `Vector3` | | `bcCenter` | `Vector3` | | `y` | `number` | | `side` | `"R"` \| `"L"` | #### Returns [#returns-2] `object`[] *** ### layoutTrusses() [#layouttrusses] ```ts function layoutTrusses( name, footprint, pitch, spacingM, buildTruss, options? ): BearElement; ``` Defined in: [bear/blueprints/truss-layout.tsx:177](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/truss-layout.tsx#L177) Lay out trusses along the Y axis and wrap in an Assembly that publishes gable roof surfaces. The plan is centered at (0, 0), with the ridge at x = 0 and chord endpoints at eave elevation z = 0. When `sheathing` is provided, creates sheathing layers on both gable faces and publishes the sheathing exterior as the left/right faces — so roofing can be layered on top via `getRef(trusses, "left")`. #### Parameters [#parameters-3] | Parameter | Type | | ------ | ------ | | `name` | `string` | | `footprint` | \[[`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement), [`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement)\] | | `pitch` | `string` | | `spacingM` | [`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement) | | `buildTruss` | (`geo`) => [`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement) | | `options?` | [`TrussLayoutOptions`](https://docs.bear.build/docs/bear/blueprints/truss-layout.md#trusslayoutoptions) | #### Returns [#returns-3] [`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement) # wall-joins (https://docs.bear.build/docs/bear/blueprints/wall-joins) Import from `bear/blueprints/wall-joins`. How a wall's end meets another wall: Revit's wall joins, reduced to one rule. A wall's section is three bands: its exterior layers, its core (the framing) and its interior layers. At a joined end each band ends on a plane of the other wall, so a join is only a table of which plane: butt the band stops at the near face of the other wall's same band through it runs on to that band's far face miter each of its faces meets the other wall's same face tee it stops at the face of the wall it runs into, and its core at that wall's core (cutting the finish it passes through) Every combination is two ends added together, not a case of its own. An L corner is `butt` on one wall and `through` on the other, or `miter` on both. A tee is one end; the wall it meets declares nothing. A band can override its wall's choice (siding that wraps a butted corner is `butt(n, { ext: "through" })` against `through(e, { ext: "butt" })`), and the rule holds for any layer stack, either side, and any angle, because it names faces rather than distances. A join is where two walls' location lines meet, as in Revit: the end's anchor lies on the other wall's `location` plane, so a join places the end as well as shaping it. An end left open by its other constraints is placed by the join; an end placed some other way is checked against it. Revit finds joins where lines happen to meet; Bear joins only what an end declares, so an undeclared end stays square where it was placed. ```tsx import { butt, tee, through } from "bear/blueprints/wall-joins"; // An outside corner: south runs through, east butts into it. East // needs no `from`: its join places its start. // A partition between them: a tee at each end, and a dim for its line. ``` ## Interfaces [#interfaces] ### CornerWallJoin [#cornerwalljoin] Defined in: [bear/blueprints/wall-joins.ts:87](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/wall-joins.ts#L87) An L corner: each band butts, runs through, or miters. #### Extends [#extends] - `JoinBase` #### Properties [#properties] | Property | Type | Description | Inherited from | | ------ | ------ | ------ | ------ | | `bands` | `Readonly`\<`Record`\<[`WallBand`](https://docs.bear.build/docs/bear/blueprints/wall-joins.md#wallband), [`CornerJoin`](https://docs.bear.build/docs/bear/blueprints/wall-joins.md#cornerjoin)\>\> | - | - | | `side` | [`WallSide`](https://docs.bear.build/docs/bear/blueprints/wall-joins.md#wallside) | The side of `wall` this wall stands on. At a corner both walls' sides face each other: "int" for an outside corner of a building, "ext" for an inside one. | `JoinBase.side` | | `type` | `"corner"` | - | - | | `wall` | [`RelationTarget`](https://docs.bear.build/docs/bear/engine/relations.md#relationtarget) | The wall this end meets: its element, or its name. | `JoinBase.wall` | *** ### TeeWallJoin [#teewalljoin] Defined in: [bear/blueprints/wall-joins.ts:93](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/wall-joins.ts#L93) A tee: this end runs into the side of a wall that carries on past it. #### Extends [#extends-1] - `JoinBase` #### Properties [#properties-1] | Property | Type | Description | Inherited from | | ------ | ------ | ------ | ------ | | `side` | [`WallSide`](https://docs.bear.build/docs/bear/blueprints/wall-joins.md#wallside) | The side of `wall` this wall stands on. At a corner both walls' sides face each other: "int" for an outside corner of a building, "ext" for an inside one. | `JoinBase.side` | | `type` | `"tee"` | - | - | | `wall` | [`RelationTarget`](https://docs.bear.build/docs/bear/engine/relations.md#relationtarget) | The wall this end meets: its element, or its name. | `JoinBase.wall` | ## Type Aliases [#type-aliases] ### CornerJoin [#cornerjoin] ```ts type CornerJoin = "butt" | "through" | "miter"; ``` Defined in: [bear/blueprints/wall-joins.ts:73](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/wall-joins.ts#L73) How one band meets the other wall's same band at an L corner. *** ### CornerOptions [#corneroptions] ```ts type CornerOptions = object & Partial>; ``` Defined in: [bear/blueprints/wall-joins.ts:101](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/wall-joins.ts#L101) Options for a corner: the side, and per-band overrides. #### Type Declaration [#type-declaration] | Name | Type | | ------ | ------ | | `side?` | [`WallSide`](https://docs.bear.build/docs/bear/blueprints/wall-joins.md#wallside) | *** ### WallBand [#wallband] ```ts type WallBand = "ext" | "core" | "int"; ``` Defined in: [bear/blueprints/wall-joins.ts:67](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/wall-joins.ts#L67) A band of a wall's section: the layers outside the core, the core, the layers inside. *** ### WallFace [#wallface] ```ts type WallFace = "finishExt" | "coreExt" | "coreInt" | "finishInt"; ``` Defined in: [bear/blueprints/wall-joins.ts:64](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/wall-joins.ts#L64) The four faces every wall publishes, from its exterior to its interior. *** ### WallJoin [#walljoin] ```ts type WallJoin = CornerWallJoin | TeeWallJoin; ``` Defined in: [bear/blueprints/wall-joins.ts:98](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/wall-joins.ts#L98) How one end of a wall meets another wall. *** ### WallSide [#wallside] ```ts type WallSide = "int" | "ext"; ``` Defined in: [bear/blueprints/wall-joins.ts:70](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/wall-joins.ts#L70) One side of a wall. ## Variables [#variables] ### BAND\_FACES [#band_faces] ```ts const BAND_FACES: Readonly>; ``` Defined in: [bear/blueprints/wall-joins.ts:151](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/wall-joins.ts#L151) Each band's two faces, exterior first: the lines it runs between. *** ### joins [#joins] ```ts const joins: RelationTargetFactory<"joins">; ``` Defined in: [bear/blueprints/wall-joins.ts:233](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/wall-joins.ts#L233) "My end meets you": a wall's end at a corner or a tee. The edge carries how (`at`, `type`, `side`); the end lands on the other wall's `location`, and each of the wall's layers on the face its join names. ## Functions [#functions] ### butt() [#butt] ```ts function butt(wall, options?): CornerWallJoin; ``` Defined in: [bear/blueprints/wall-joins.ts:119](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/wall-joins.ts#L119) This end stops against `wall`, which runs through the corner. #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `wall` | [`RelationTarget`](https://docs.bear.build/docs/bear/engine/relations.md#relationtarget) | | `options?` | [`CornerOptions`](https://docs.bear.build/docs/bear/blueprints/wall-joins.md#corneroptions) | #### Returns [#returns] [`CornerWallJoin`](https://docs.bear.build/docs/bear/blueprints/wall-joins.md#cornerwalljoin) *** ### joinFaces() [#joinfaces] ```ts function joinFaces(join, band): [WallFace, WallFace]; ``` Defined in: [bear/blueprints/wall-joins.ts:166](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/wall-joins.ts#L166) The faces of the other wall that a band of this one ends on, one for each of the band's lines (`BAND_FACES` order). #### Parameters [#parameters-1] | Parameter | Type | | ------ | ------ | | `join` | [`WallJoin`](https://docs.bear.build/docs/bear/blueprints/wall-joins.md#walljoin) | | `band` | [`WallBand`](https://docs.bear.build/docs/bear/blueprints/wall-joins.md#wallband) | #### Returns [#returns-1] \[[`WallFace`](https://docs.bear.build/docs/bear/blueprints/wall-joins.md#wallface), [`WallFace`](https://docs.bear.build/docs/bear/blueprints/wall-joins.md#wallface)\] *** ### lowerJoins() [#lowerjoins] ```ts function lowerJoins(p, c): void; ``` Defined in: [bear/blueprints/wall-joins.ts:243](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/wall-joins.ts#L243) A wall's joins, lowered: each joined end is one declaration, the edge and the end's anchor on the other wall's location line together. #### Parameters [#parameters-2] | Parameter | Type | | ------ | ------ | | `p` | \{ `endJoin?`: [`WallJoin`](https://docs.bear.build/docs/bear/blueprints/wall-joins.md#walljoin); `startJoin?`: [`WallJoin`](https://docs.bear.build/docs/bear/blueprints/wall-joins.md#walljoin); \} | | `p.endJoin?` | [`WallJoin`](https://docs.bear.build/docs/bear/blueprints/wall-joins.md#walljoin) | | `p.startJoin?` | [`WallJoin`](https://docs.bear.build/docs/bear/blueprints/wall-joins.md#walljoin) | | `c` | [`Lowerer`](https://docs.bear.build/docs/bear/engine/solvable.md#lowerer) | #### Returns [#returns-2] `void` *** ### miter() [#miter] ```ts function miter(wall, options?): CornerWallJoin; ``` Defined in: [bear/blueprints/wall-joins.ts:135](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/wall-joins.ts#L135) This end and `wall`'s meet face to face, on the corner's diagonal. #### Parameters [#parameters-3] | Parameter | Type | | ------ | ------ | | `wall` | [`RelationTarget`](https://docs.bear.build/docs/bear/engine/relations.md#relationtarget) | | `options?` | [`CornerOptions`](https://docs.bear.build/docs/bear/blueprints/wall-joins.md#corneroptions) | #### Returns [#returns-3] [`CornerWallJoin`](https://docs.bear.build/docs/bear/blueprints/wall-joins.md#cornerwalljoin) *** ### tee() [#tee] ```ts function tee(wall, __namedParameters?): TeeWallJoin; ``` Defined in: [bear/blueprints/wall-joins.ts:143](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/wall-joins.ts#L143) This end runs into the `side` face of `wall`, which carries on past it. #### Parameters [#parameters-4] | Parameter | Type | | ------ | ------ | | `wall` | [`RelationTarget`](https://docs.bear.build/docs/bear/engine/relations.md#relationtarget) | | `__namedParameters?` | \{ `side?`: [`WallSide`](https://docs.bear.build/docs/bear/blueprints/wall-joins.md#wallside); \} | | `__namedParameters.side?` | [`WallSide`](https://docs.bear.build/docs/bear/blueprints/wall-joins.md#wallside) | #### Returns [#returns-4] [`TeeWallJoin`](https://docs.bear.build/docs/bear/blueprints/wall-joins.md#teewalljoin) *** ### teeNotchFaces() [#teenotchfaces] ```ts function teeNotchFaces(join): [WallFace, WallFace]; ``` Defined in: [bear/blueprints/wall-joins.ts:189](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/wall-joins.ts#L189) Where a tee's core passes through the other wall's finish: between that wall's finish and core faces on the side this wall stands on. #### Parameters [#parameters-5] | Parameter | Type | | ------ | ------ | | `join` | [`TeeWallJoin`](https://docs.bear.build/docs/bear/blueprints/wall-joins.md#teewalljoin) | #### Returns [#returns-5] \[[`WallFace`](https://docs.bear.build/docs/bear/blueprints/wall-joins.md#wallface), [`WallFace`](https://docs.bear.build/docs/bear/blueprints/wall-joins.md#wallface)\] *** ### through() [#through] ```ts function through(wall, options?): CornerWallJoin; ``` Defined in: [bear/blueprints/wall-joins.ts:127](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/blueprints/wall-joins.ts#L127) This end runs through the corner, past the end of `wall`, which butts into it. #### Parameters [#parameters-6] | Parameter | Type | | ------ | ------ | | `wall` | [`RelationTarget`](https://docs.bear.build/docs/bear/engine/relations.md#relationtarget) | | `options?` | [`CornerOptions`](https://docs.bear.build/docs/bear/blueprints/wall-joins.md#corneroptions) | #### Returns [#returns-6] [`CornerWallJoin`](https://docs.bear.build/docs/bear/blueprints/wall-joins.md#cornerwalljoin) # record (https://docs.bear.build/docs/bear/catalog/andersen/AndersenEAwning/record) Import from `bear/catalog/andersen/AndersenEAwning/record`. ## Variables [#variables] ### default [#default] ```ts const default: RevitFamilyRecord; ``` Defined in: [bear/catalog/andersen/AndersenEAwning/record.ts:4](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/andersen/AndersenEAwning/record.ts#L4) # AndersenEAwning (https://docs.bear.build/docs/bear/catalog/andersen/AndersenEAwning) Import from `bear/catalog/andersen/AndersenEAwning`. ## Interfaces [#interfaces] ### AndersenEAwningProps [#anderseneawningprops] Defined in: [bear/catalog/andersen/AndersenEAwning/index.tsx:94](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/andersen/AndersenEAwning/index.tsx#L94) #### Properties [#properties] | Property | Type | Description | | ------ | ------ | ------ | | `craftsmanLightsHigh?` | `2` \| `1` | Craftsman grilles only: lights above the bottom bar. | | `designation` | [`Designation`](https://docs.bear.build/docs/bear/catalog/andersen/AndersenEAwning.md#designation) | - | | `extensionJamb?` | `boolean` | - | | `exteriorTrim?` | [`ExteriorTrim`](https://docs.bear.build/docs/bear/catalog/andersen/AndersenEAwning.md#exteriortrim) | - | | `grille?` | [`GrillePattern`](https://docs.bear.build/docs/bear/catalog/andersen/AndersenEAwning.md#grillepattern) | - | | `interiorCasing?` | `boolean` | - | | `jamb?` | [`JambCondition`](https://docs.bear.build/docs/bear/catalog/andersen/AndersenEAwning.md#jambcondition) | - | | `operation?` | `"push"` \| `"crank"` | How the sash opens. | | `wallDepth?` | [`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement) | Interior finish face to the outside of the exterior sheathing. A hosted window reads it from its wall. | | `wallThickness?` | [`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement) | Interior finish face to exterior finish face. A hosted window reads it from its wall. | ## Type Aliases [#type-aliases] ### Designation [#designation] ```ts type Designation = | "AWN2018" | "AWN2020" | "AWN2026" | "AWN2030" | "AWN2034" | "AWN2040" | "AWN2418" | "AWN2420" | "AWN2426" | "AWN2430" | "AWN2434" | "AWN2440" | "AWN2618" | "AWN2620" | "AWN2626" | "AWN2630" | "AWN2634" | "AWN2640" | "AWN2818" | "AWN2820" | "AWN2826" | "AWN2830" | "AWN2834" | "AWN2840" | "AWN3018" | "AWN3020" | "AWN3026" | "AWN3030" | "AWN3034" | "AWN3040" | "AWN3418" | "AWN3420" | "AWN3426" | "AWN3430" | "AWN3434" | "AWN3440" | "AWN4018" | "AWN4020" | "AWN4026" | "AWN4030" | "AWN4034" | "AWN4040"; ``` Defined in: [bear/catalog/andersen/AndersenEAwning/index.tsx:35](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/andersen/AndersenEAwning/index.tsx#L35) Andersen's designation: width and height in feet and inches (AWN2030 is 2'0" × 3'0"). *** ### ExteriorTrim [#exteriortrim] ```ts type ExteriorTrim = | "none" | "brick-mould-2in" | "ovolo-brick-mould-2in" | "brick-mould-3.5in" | "flat-casing-5.5in"; ``` Defined in: [bear/catalog/andersen/AndersenEAwning/index.tsx:79](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/andersen/AndersenEAwning/index.tsx#L79) *** ### GrillePattern [#grillepattern] ```ts type GrillePattern = "traditional" | "prairie" | "craftsman"; ``` Defined in: [bear/catalog/andersen/AndersenEAwning/index.tsx:92](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/andersen/AndersenEAwning/index.tsx#L92) *** ### JambCondition [#jambcondition] ```ts type JambCondition = | "extension" | "step" | "one-piece-step" | "drywall-return-7/16in" | "drywall-return-9/16in" | "drywall-return-11/16in"; ``` Defined in: [bear/catalog/andersen/AndersenEAwning/index.tsx:85](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/andersen/AndersenEAwning/index.tsx#L85) ## Variables [#variables] ### default [#default] ```ts const default: PartDef; ``` Defined in: [bear/catalog/andersen/AndersenEAwning/index.tsx:408](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/andersen/AndersenEAwning/index.tsx#L408) ## Functions [#functions] ### evaluate() [#evaluate] ```ts function evaluate(p, host?): Record; ``` Defined in: [bear/catalog/andersen/AndersenEAwning/index.tsx:275](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/andersen/AndersenEAwning/index.tsx#L275) Every value the record reads, in Revit internal units. In a wall, its depth and thickness are the wall's. #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `p` | [`AndersenEAwningProps`](https://docs.bear.build/docs/bear/catalog/andersen/AndersenEAwning.md#anderseneawningprops) | | `host?` | [`ResolvedRefs`](https://docs.bear.build/docs/bear/engine/types.md#resolvedrefs) | #### Returns [#returns] `Record`\<`string`, [`RevitValue`](https://docs.bear.build/docs/bear/revit/family.md#revitvalue)\> # record (https://docs.bear.build/docs/bear/catalog/caterpillar/Cat3516C2000kW/record) Import from `bear/catalog/caterpillar/Cat3516C2000kW/record`. ## Variables [#variables] ### default [#default] ```ts const default: RevitFamilyRecord; ``` Defined in: [bear/catalog/caterpillar/Cat3516C2000kW/record.ts:4](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/caterpillar/Cat3516C2000kW/record.ts#L4) # Cat3516C2000kW (https://docs.bear.build/docs/bear/catalog/caterpillar/Cat3516C2000kW) Import from `bear/catalog/caterpillar/Cat3516C2000kW`. ## Interfaces [#interfaces] ### Cat3516C2000kWOptions [#cat3516c2000kwoptions] Defined in: [bear/catalog/caterpillar/Cat3516C2000kW/index.ts:143](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/caterpillar/Cat3516C2000kW/index.ts#L143) Every option, flat: what an untyped caller can pass, and what Revit's own configurations are. Revit's checks reject what no generator is. #### Properties [#properties] | Property | Type | | ------ | ------ | | `controlPanel?` | [`ControlPanel`](https://docs.bear.build/docs/bear/catalog/caterpillar/Cat3516C2000kW.md#controlpanel) | | `excitation?` | [`Excitation`](https://docs.bear.build/docs/bear/catalog/caterpillar/Cat3516C2000kW.md#excitation) | | `highMotorStart?` | `boolean` | | `hvConnection?` | [`HvConnection`](https://docs.bear.build/docs/bear/catalog/caterpillar/Cat3516C2000kW.md#hvconnection) | | `isolators?` | [`Isolators`](https://docs.bear.build/docs/bear/catalog/caterpillar/Cat3516C2000kW.md#isolators) | | `jacketWaterHeater?` | [`JacketWaterHeater`](https://docs.bear.build/docs/bear/catalog/caterpillar/Cat3516C2000kW.md#jacketwaterheater) | | `radiatorAmbient?` | [`RadiatorAmbient`](https://docs.bear.build/docs/bear/catalog/caterpillar/Cat3516C2000kW.md#radiatorambient) | | `rearEnclosure?` | `boolean` | | `sideEnclosures?` | [`SideEnclosures`](https://docs.bear.build/docs/bear/catalog/caterpillar/Cat3516C2000kW.md#sideenclosures) | | `spaceHeater?` | `boolean` | | `sr5?` | `boolean` | | `temperatureRise?` | [`TemperatureRise`](https://docs.bear.build/docs/bear/catalog/caterpillar/Cat3516C2000kW.md#temperaturerise) | | `voltage?` | [`Voltage`](https://docs.bear.build/docs/bear/catalog/caterpillar/Cat3516C2000kW.md#voltage) | | `winding?` | [`Winding`](https://docs.bear.build/docs/bear/catalog/caterpillar/Cat3516C2000kW.md#winding) | ## Type Aliases [#type-aliases] ### Cat3516C2000kWProps [#cat3516c2000kwprops] ```ts type Cat3516C2000kWProps = | Low & Random & object | Low & Form & object | Low & Random & object | Low & Form & object | Low & Form & object | Medium & Form & object | Medium & Form & object | High & Form & object | High<"none" | "spring", "left" | "right"> & Form & object | High<"none" | "spring", "left" | "right"> & Form & object; ``` Defined in: [bear/catalog/caterpillar/Cat3516C2000kW/index.ts:115](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/caterpillar/Cat3516C2000kW/index.ts#L115) The options of one Caterpillar 3516C 2000 kW set, by voltage class: each branch offers only what Caterpillar makes at its voltages, so a configuration the types accept is one the family accepts. - 480 V (the default): random wound at 150 (the default), 125 or 105 °C, or form wound at 150, 125, 105 or 80 °C. - 600 and 440 V: random wound at 150 or 125 °C, or form wound at 150, 125, 105 or 80 °C. - 416 V: form wound, 80 °C. - 4160 V (150, 105 or 80 °C) and 2400 V (150, 125, 105 or 80 °C): form wound, with empty enclosures on one side or both. - 6300 to 13800 V: form wound, 130 °C (the default), 105 or 80 °C, with a high voltage connection. At 12470 to 13800 V and 80 °C an SR5 generator is made too, on the 3000 frame; at 13800 V in a high motor start build. *** ### ControlPanel [#controlpanel] ```ts type ControlPanel = "wall" | "left" | "right" | "rear"; ``` Defined in: [bear/catalog/caterpillar/Cat3516C2000kW/index.ts:37](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/caterpillar/Cat3516C2000kW/index.ts#L37) *** ### Excitation [#excitation] ```ts type Excitation = "internal" | "permanent-magnet"; ``` Defined in: [bear/catalog/caterpillar/Cat3516C2000kW/index.ts:34](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/caterpillar/Cat3516C2000kW/index.ts#L34) *** ### HvConnection [#hvconnection] ```ts type HvConnection = "none" | "left" | "right" | "6-lead-6-terminal"; ``` Defined in: [bear/catalog/caterpillar/Cat3516C2000kW/index.ts:38](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/caterpillar/Cat3516C2000kW/index.ts#L38) *** ### Isolators [#isolators] ```ts type Isolators = "none" | "rubber" | "spring"; ``` Defined in: [bear/catalog/caterpillar/Cat3516C2000kW/index.ts:36](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/caterpillar/Cat3516C2000kW/index.ts#L36) *** ### JacketWaterHeater [#jacketwaterheater] ```ts type JacketWaterHeater = "none" | 480 | 240 | 208; ``` Defined in: [bear/catalog/caterpillar/Cat3516C2000kW/index.ts:40](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/caterpillar/Cat3516C2000kW/index.ts#L40) *** ### RadiatorAmbient [#radiatorambient] ```ts type RadiatorAmbient = 46 | 53; ``` Defined in: [bear/catalog/caterpillar/Cat3516C2000kW/index.ts:35](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/caterpillar/Cat3516C2000kW/index.ts#L35) *** ### SideEnclosures [#sideenclosures] ```ts type SideEnclosures = "none" | "left" | "right" | "both"; ``` Defined in: [bear/catalog/caterpillar/Cat3516C2000kW/index.ts:39](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/caterpillar/Cat3516C2000kW/index.ts#L39) *** ### TemperatureRise [#temperaturerise] ```ts type TemperatureRise = 150 | 130 | 125 | 105 | 80; ``` Defined in: [bear/catalog/caterpillar/Cat3516C2000kW/index.ts:32](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/caterpillar/Cat3516C2000kW/index.ts#L32) *** ### Voltage [#voltage] ```ts type Voltage = | 13800 | 13200 | 12470 | 6900 | 6600 | 6300 | 4160 | 2400 | 600 | 480 | 440 | 416; ``` Defined in: [bear/catalog/caterpillar/Cat3516C2000kW/index.ts:19](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/caterpillar/Cat3516C2000kW/index.ts#L19) *** ### Winding [#winding] ```ts type Winding = "random" | "form"; ``` Defined in: [bear/catalog/caterpillar/Cat3516C2000kW/index.ts:33](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/caterpillar/Cat3516C2000kW/index.ts#L33) ## Variables [#variables] ### default [#default] ```ts const default: PartDef; ``` Defined in: [bear/catalog/caterpillar/Cat3516C2000kW/index.ts:638](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/caterpillar/Cat3516C2000kW/index.ts#L638) Caterpillar 3516C 2000 kW Tier 2 diesel generator set. Its length runs along x, the radiator toward +x and the generator toward -x; z = 0 is the bottom of its base rails. Its origin is Caterpillar's insertion point, which stays put whatever the options, so it is not the middle of the set: place it by its refs (`bottom`, and `center`, whose `center:x` and `center:y` planes run through the middle of its footprint), not by coordinates. ## Functions [#functions] ### evaluate() [#evaluate] ```ts function evaluate(props): Record; ``` Defined in: [bear/catalog/caterpillar/Cat3516C2000kW/index.ts:610](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/caterpillar/Cat3516C2000kW/index.ts#L610) Revit's values by Revit name; a configuration Revit rejects has only its message. #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `props` | [`Cat3516C2000kWOptions`](https://docs.bear.build/docs/bear/catalog/caterpillar/Cat3516C2000kW.md#cat3516c2000kwoptions) | #### Returns [#returns] `Record`\<`string`, [`RevitValue`](https://docs.bear.build/docs/bear/revit/family.md#revitvalue)\> # record (https://docs.bear.build/docs/bear/catalog/caterpillar/Cat3516C2500kW/record) Import from `bear/catalog/caterpillar/Cat3516C2500kW/record`. ## Variables [#variables] ### default [#default] ```ts const default: RevitFamilyRecord; ``` Defined in: [bear/catalog/caterpillar/Cat3516C2500kW/record.ts:4](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/caterpillar/Cat3516C2500kW/record.ts#L4) # Cat3516C2500kW (https://docs.bear.build/docs/bear/catalog/caterpillar/Cat3516C2500kW) Import from `bear/catalog/caterpillar/Cat3516C2500kW`. ## Interfaces [#interfaces] ### Cat3516C2500kWOptions [#cat3516c2500kwoptions] Defined in: [bear/catalog/caterpillar/Cat3516C2500kW/index.ts:146](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/caterpillar/Cat3516C2500kW/index.ts#L146) Every option, flat: what an untyped caller can pass, and what Revit's own configurations are. Revit's checks reject what no generator is. #### Properties [#properties] | Property | Type | | ------ | ------ | | `controlPanel?` | [`ControlPanel`](https://docs.bear.build/docs/bear/catalog/caterpillar/Cat3516C2500kW.md#controlpanel) | | `highMotorStart?` | `boolean` | | `hvConnection?` | [`HvConnection`](https://docs.bear.build/docs/bear/catalog/caterpillar/Cat3516C2500kW.md#hvconnection) | | `isolators?` | [`Isolators`](https://docs.bear.build/docs/bear/catalog/caterpillar/Cat3516C2500kW.md#isolators) | | `jacketWaterHeater?` | [`JacketWaterHeater`](https://docs.bear.build/docs/bear/catalog/caterpillar/Cat3516C2500kW.md#jacketwaterheater) | | `radiatorAmbient?` | [`RadiatorAmbient`](https://docs.bear.build/docs/bear/catalog/caterpillar/Cat3516C2500kW.md#radiatorambient) | | `rearEnclosure?` | `boolean` | | `sideEnclosure?` | [`SideEnclosure`](https://docs.bear.build/docs/bear/catalog/caterpillar/Cat3516C2500kW.md#sideenclosure) | | `spaceHeater?` | `boolean` | | `temperatureRise?` | [`TemperatureRise`](https://docs.bear.build/docs/bear/catalog/caterpillar/Cat3516C2500kW.md#temperaturerise) | | `voltage?` | [`Voltage`](https://docs.bear.build/docs/bear/catalog/caterpillar/Cat3516C2500kW.md#voltage) | | `winding?` | [`Winding`](https://docs.bear.build/docs/bear/catalog/caterpillar/Cat3516C2500kW.md#winding) | ## Type Aliases [#type-aliases] ### Cat3516C2500kWProps [#cat3516c2500kwprops] ```ts type Cat3516C2500kWProps = | Low & object | Low & object | Low & object | Medium & object | High & object | High & object | HighOn3000 & object | HighOn3000 & object | HighOn3000 & object; ``` Defined in: [bear/catalog/caterpillar/Cat3516C2500kW/index.ts:102](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/caterpillar/Cat3516C2500kW/index.ts#L102) The options of one Caterpillar 3516C 2500 kW set, by voltage class: each branch offers only what Caterpillar makes at its voltages, so a configuration the types accept is one the family accepts. - 480 V (the default): random wound at 150 or 125 °C (the default), or form wound at 150, 125 or 105 °C. - 600 V: form wound, 150, 125 or 105 °C. - 4160 V: form wound, 150, 125 or 105 °C, with a side enclosure. - 6300 to 6900 V: form wound, 130 °C, with a high voltage connection. - 12470 to 13800 V: form wound, 130 °C (the default), 105 or 80 °C; at 105 or 80 °C the generator is on the 3000 frame. A high motor start build is made at 13200 and 13800 V and 80 °C. *** ### ControlPanel [#controlpanel] ```ts type ControlPanel = "wall" | "left" | "right" | "rear"; ``` Defined in: [bear/catalog/caterpillar/Cat3516C2500kW/index.ts:33](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/caterpillar/Cat3516C2500kW/index.ts#L33) *** ### HvConnection [#hvconnection] ```ts type HvConnection = "none" | "left" | "right" | "6-lead-6-terminal"; ``` Defined in: [bear/catalog/caterpillar/Cat3516C2500kW/index.ts:34](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/caterpillar/Cat3516C2500kW/index.ts#L34) *** ### Isolators [#isolators] ```ts type Isolators = "none" | "rubber" | "spring"; ``` Defined in: [bear/catalog/caterpillar/Cat3516C2500kW/index.ts:32](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/caterpillar/Cat3516C2500kW/index.ts#L32) *** ### JacketWaterHeater [#jacketwaterheater] ```ts type JacketWaterHeater = "none" | 480 | 240 | 208; ``` Defined in: [bear/catalog/caterpillar/Cat3516C2500kW/index.ts:36](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/caterpillar/Cat3516C2500kW/index.ts#L36) *** ### RadiatorAmbient [#radiatorambient] ```ts type RadiatorAmbient = 45 | 53; ``` Defined in: [bear/catalog/caterpillar/Cat3516C2500kW/index.ts:31](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/caterpillar/Cat3516C2500kW/index.ts#L31) *** ### SideEnclosure [#sideenclosure] ```ts type SideEnclosure = "none" | "left" | "right"; ``` Defined in: [bear/catalog/caterpillar/Cat3516C2500kW/index.ts:35](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/caterpillar/Cat3516C2500kW/index.ts#L35) *** ### TemperatureRise [#temperaturerise] ```ts type TemperatureRise = 150 | 130 | 125 | 105 | 80; ``` Defined in: [bear/catalog/caterpillar/Cat3516C2500kW/index.ts:29](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/caterpillar/Cat3516C2500kW/index.ts#L29) *** ### Voltage [#voltage] ```ts type Voltage = 13800 | 13200 | 12470 | 6900 | 6600 | 6300 | 4160 | 600 | 480; ``` Defined in: [bear/catalog/caterpillar/Cat3516C2500kW/index.ts:19](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/caterpillar/Cat3516C2500kW/index.ts#L19) *** ### Winding [#winding] ```ts type Winding = "random" | "form"; ``` Defined in: [bear/catalog/caterpillar/Cat3516C2500kW/index.ts:30](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/caterpillar/Cat3516C2500kW/index.ts#L30) ## Variables [#variables] ### default [#default] ```ts const default: PartDef; ``` Defined in: [bear/catalog/caterpillar/Cat3516C2500kW/index.ts:523](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/caterpillar/Cat3516C2500kW/index.ts#L523) Caterpillar 3516C 2500 kW Tier 2 diesel generator set. Its length runs along x, the radiator toward +x and the generator toward -x; z = 0 is the bottom of its base rails. Its origin is Caterpillar's insertion point, which stays put whatever the options, so it is not the middle of the set: place it by its refs (`bottom`, and `center`, whose `center:x` and `center:y` planes run through the middle of its footprint), not by coordinates. ## Functions [#functions] ### evaluate() [#evaluate] ```ts function evaluate(props): Record; ``` Defined in: [bear/catalog/caterpillar/Cat3516C2500kW/index.ts:495](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/caterpillar/Cat3516C2500kW/index.ts#L495) Revit's values by Revit name; a configuration Revit rejects has only its message. #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `props` | [`Cat3516C2500kWOptions`](https://docs.bear.build/docs/bear/catalog/caterpillar/Cat3516C2500kW.md#cat3516c2500kwoptions) | #### Returns [#returns] `Record`\<`string`, [`RevitValue`](https://docs.bear.build/docs/bear/revit/family.md#revitvalue)\> # prehung (https://docs.bear.build/docs/bear/catalog/doors/prehung) Import from `bear/catalog/doors/prehung`. ## Interfaces [#interfaces] ### Swing [#swing] Defined in: [bear/catalog/doors/prehung.tsx:40](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/doors/prehung.tsx#L40) Where a door's hinges are (the opening's `roLeft` or `roRight` jamb) and the side of its wall it swings into. #### Properties [#properties] | Property | Type | | ------ | ------ | | `hinge` | `"left"` \| `"right"` | | `into` | `"exterior"` \| `"interior"` | *** ### UnitSpec [#unitspec] Defined in: [bear/catalog/doors/prehung.tsx:54](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/doors/prehung.tsx#L54) A unit's sizes, all in project units. #### Properties [#properties-1] | Property | Type | Description | | ------ | ------ | ------ | | `jamb` | `object` | Jamb thickness (face to back) and depth (through the wall). | | `jamb.depth` | `number` | - | | `jamb.thickness` | `number` | - | | `leaf` | `object` | - | | `leaf.height` | `number` | - | | `leaf.thickness` | `number` | - | | `leaf.width` | `number` | - | | `rough` | `object` | The rough opening the unit is made for. | | `rough.height` | `number` | - | | `rough.width` | `number` | - | | `sill` | `number` | An exterior unit's sill height; 0 for none. | | `undercut` | `number` | The leaf's clearance above the floor or sill. | | `unit` | `object` | The unit's outside, frame to frame, and from the bottom of its sill (or its jambs) to the top of its head jamb. | | `unit.height` | `number` | - | | `unit.width` | `number` | - | ## Type Aliases [#type-aliases] ### Handing [#handing] ```ts type Handing = "LH" | "RH" | "LHR" | "RHR"; ``` Defined in: [bear/catalog/doors/prehung.tsx:37](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/doors/prehung.tsx#L37) ## Functions [#functions] ### prehung() [#prehung] ```ts function prehung

( Unit, props, spec, leaf ): BearElement; ``` Defined in: [bear/catalog/doors/prehung.tsx:110](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/doors/prehung.tsx#L110) The unit, laid in the Opening that hosts it. `Unit` is the product's own part, so a schedule and a plan find the door by it. #### Type Parameters [#type-parameters] | Type Parameter | | ------ | | `P` *extends* `object` | #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `Unit` | [`PartDef`](https://docs.bear.build/docs/bear/engine/types.md#partdef)\<`P`\> | | `props` | `P` | | `spec` | [`UnitSpec`](https://docs.bear.build/docs/bear/catalog/doors/prehung.md#unitspec) | | `leaf` | \{ `hatch`: [`HatchPattern`](https://docs.bear.build/docs/bear/drawings/types.md#hatchpattern); `material`: [`MaterialDescriptor`](https://docs.bear.build/docs/bear/engine/types.md#materialdescriptor); `text`: `string`; \} | | `leaf.hatch` | [`HatchPattern`](https://docs.bear.build/docs/bear/drawings/types.md#hatchpattern) | | `leaf.material` | [`MaterialDescriptor`](https://docs.bear.build/docs/bear/engine/types.md#materialdescriptor) | | `leaf.text` | `string` | #### Returns [#returns] [`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement) *** ### swingOf() [#swingof] ```ts function swingOf(handing): Swing; ``` Defined in: [bear/catalog/doors/prehung.tsx:46](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/doors/prehung.tsx#L46) Seen from the exterior, the opening's roLeft jamb is on the left. #### Parameters [#parameters-1] | Parameter | Type | | ------ | ------ | | `handing` | [`Handing`](https://docs.bear.build/docs/bear/catalog/doors/prehung.md#handing) | #### Returns [#returns-1] [`Swing`](https://docs.bear.build/docs/bear/catalog/doors/prehung.md#swing) # fit (https://docs.bear.build/docs/bear/catalog/fit) Import from `bear/catalog/fit`. ## Interfaces [#interfaces] ### AngleFitSubject [#anglefitsubject] Defined in: [bear/catalog/fit.ts:104](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/fit.ts#L104) [FitSubject](https://docs.bear.build/docs/bear/catalog/fit.md#fitsubject) for the archetype whose dimensions are two legs. #### Properties [#properties] | Property | Modifier | Type | | ------ | ------ | ------ | | `dims` | `readonly` | [`AngleDims`](https://docs.bear.build/docs/bear/blueprints/connectors/types.md#angledims) | | `model` | `readonly` | `string` | *** ### FitMember [#fitmember] Defined in: [bear/catalog/fit.ts:25](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/fit.ts#L25) A member as a fit check sees it: a cross-section and a name to blame. #### Properties [#properties-1] | Property | Type | | ------ | ------ | | `depth` | `number` | | `label` | `string` | | `width` | `number` | *** ### FitSubject [#fitsubject] Defined in: [bear/catalog/fit.ts:57](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/fit.ts#L57) What a fit check needs to know about the connector. A built `JoistHangerPart` is one; so is a bare catalog row, which is how `selectHanger` sifts hundreds of models without building a part for each. #### Properties [#properties-2] | Property | Modifier | Type | | ------ | ------ | ------ | | `dims` | `readonly` | [`HangerDims`](https://docs.bear.build/docs/bear/blueprints/connectors/types.md#hangerdims) | | `model` | `readonly` | `string` | ## Functions [#functions] ### angleFitProblems() [#anglefitproblems] ```ts function angleFitProblems( part, corner, members ): readonly string[]; ``` Defined in: [bear/catalog/fit.ts:114](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/fit.ts#L114) Every rule the angle breaks against its corner. Empty means it fits. One model suits any corner it does not run off, so all three rules are the same rule: steel with nothing behind it is steel nailed to nothing. #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `part` | [`AngleFitSubject`](https://docs.bear.build/docs/bear/catalog/fit.md#anglefitsubject) | | `corner` | [`CornerFit`](https://docs.bear.build/docs/bear/blueprints/connectors/types.md#cornerfit) | | `members` | \{ `legA`: `string`; `legB`: `string`; \} | | `members.legA` | `string` | | `members.legB` | `string` | #### Returns [#returns] readonly `string`[] *** ### fitProblems() [#fitproblems] ```ts function fitProblems( part, carrying, carried ): readonly string[]; ``` Defined in: [bear/catalog/fit.ts:66](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/fit.ts#L66) Every rule the hanger breaks against these members, in plain language. Empty means it fits. #### Parameters [#parameters-1] | Parameter | Type | | ------ | ------ | | `part` | [`FitSubject`](https://docs.bear.build/docs/bear/catalog/fit.md#fitsubject) | | `carrying` | [`FitMember`](https://docs.bear.build/docs/bear/catalog/fit.md#fitmember) | | `carried` | [`FitMember`](https://docs.bear.build/docs/bear/catalog/fit.md#fitmember) | #### Returns [#returns-1] readonly `string`[] *** ### statedMembers() [#statedmembers] ```ts function statedMembers(members): object; ``` Defined in: [bear/catalog/fit.ts:36](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/fit.ts#L36) The members a caller states, as the fit rules read them. A header whose width nobody stated is taken as wide as it is deep, which no hanger rule reads: only the joist's width meets the seat. #### Parameters [#parameters-2] | Parameter | Type | | ------ | ------ | | `members` | [`HangerMembers`](https://docs.bear.build/docs/bear/catalog/types.md#hangermembers) | #### Returns [#returns-2] `object` | Name | Type | | ------ | ------ | | `carried` | [`FitMember`](https://docs.bear.build/docs/bear/catalog/fit.md#fitmember) | | `carrying` | [`FitMember`](https://docs.bear.build/docs/bear/catalog/fit.md#fitmember) | *** ### validateFit() [#validatefit] ```ts function validateFit(part, members): FitResult; ``` Defined in: [bear/catalog/fit.ts:148](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/fit.ts#L148) The catalog's fit verdict: [fitProblems](https://docs.bear.build/docs/bear/catalog/fit.md#fitproblems), as one answer. #### Parameters [#parameters-3] | Parameter | Type | | ------ | ------ | | `part` | [`JoistHangerPart`](https://docs.bear.build/docs/bear/blueprints/connectors/types.md#joisthangerpart) | | `members` | [`HangerMembers`](https://docs.bear.build/docs/bear/catalog/types.md#hangermembers) | #### Returns [#returns-3] [`FitResult`](https://docs.bear.build/docs/bear/catalog/types.md#fitresult) # PrehungInteriorDoor (https://docs.bear.build/docs/bear/catalog/generic/PrehungInteriorDoor) Import from `bear/catalog/generic/PrehungInteriorDoor`. ## Interfaces [#interfaces] ### PrehungInteriorDoorProps [#prehunginteriordoorprops] Defined in: [bear/catalog/generic/PrehungInteriorDoor.tsx:27](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/generic/PrehungInteriorDoor.tsx#L27) #### Properties [#properties] | Property | Type | Description | | ------ | ------ | ------ | | `designation` | [`Designation`](https://docs.bear.build/docs/bear/catalog/generic/PrehungInteriorDoor.md#designation) | - | | `handing` | [`Handing`](https://docs.bear.build/docs/bear/catalog/doors/prehung.md#handing) | Seen from the wall's exterior side (the right of its path): LH and RH swing in, LHR and RHR out. | | `style?` | [`Style`](https://docs.bear.build/docs/bear/catalog/generic/PrehungInteriorDoor.md#style) | - | ## Type Aliases [#type-aliases] ### Designation [#designation] ```ts type Designation = "2068" | "2468" | "2668" | "2868" | "3068"; ``` Defined in: [bear/catalog/generic/PrehungInteriorDoor.tsx:23](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/generic/PrehungInteriorDoor.tsx#L23) Width and height in feet and inches: 2868 is 2'8" x 6'8". *** ### Style [#style] ```ts type Style = "flush" | "two-panel" | "six-panel"; ``` Defined in: [bear/catalog/generic/PrehungInteriorDoor.tsx:25](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/generic/PrehungInteriorDoor.tsx#L25) ## Functions [#functions] ### PrehungInteriorDoor() [#prehunginteriordoor] ```ts function PrehungInteriorDoor(props): BearElement; ``` Defined in: [bear/catalog/generic/PrehungInteriorDoor.tsx:62](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/generic/PrehungInteriorDoor.tsx#L62) #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `props` | [`PrehungInteriorDoorProps`](https://docs.bear.build/docs/bear/catalog/generic/PrehungInteriorDoor.md#prehunginteriordoorprops) | #### Returns [#returns] [`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement) # A150 (https://docs.bear.build/docs/bear/catalog/jensen/A150) Import from `bear/catalog/jensen/A150`. ## Variables [#variables] ### default [#default] ```ts default: PartDef<{ label?: string; }, string, string>; ``` Defined in: [bear/catalog/jensen/A150.ts:22](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/jensen/A150.ts#L22) Wheel in XY, spindle along Z, centered. Mounting hardware is a separate selection. *** ### specification [#specification] ```ts const specification: object; ``` Defined in: [bear/catalog/jensen/A150.ts:9](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/jensen/A150.ts#L9) #### Type Declaration [#type-declaration] | Name | Type | Default value | | ------ | ------ | ------ | | `checked` | `string` | `"2026-12-01"` | | `geometryAssumptions` | `string` | `"2 in depth and bowl/hub section are visualization assumptions; 12 in diameter is published"` | | `manufacturer` | `string` | `"Jensen Swing Products"` | | `material` | `string` | `"Aluminum"` | | `model` | `string` | `"A150"` | | `mounting` | `string` | `"5/8 in carriage bolt, two washers and 5/8 in nylon lock nut, all supplied separately; select grip from the mounting stack, at most two threads beyond nut"` | | `source` | `string` | `"https://jensenswing.com/product/a150/"` | # Wave8C (https://docs.bear.build/docs/bear/catalog/jensen/Wave8C) Import from `bear/catalog/jensen/Wave8C`. ## Variables [#variables] ### default [#default] ```ts default: PartDef<{ label?: string; }, string, string>; ``` Defined in: [bear/catalog/jensen/Wave8C.ts:29](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/jensen/Wave8C.ts#L29) Entry surface (0,0,0), descent along +Y. Installed profile remains provisional. *** ### specification [#specification] ```ts const specification: object; ``` Defined in: [bear/catalog/jensen/Wave8C.ts:8](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/jensen/Wave8C.ts#L8) Jensen's 4 ft platform slide. Only the outside width is a verified installed dimension. #### Type Declaration [#type-declaration] | Name | Type | Default value | | ------ | ------ | ------ | | `checked` | `string` | `"2026-12-01"` | | `geometryAssumptions` | `string` | `"96 in reach, 6 in exit elevation, 1/4 in wall, 6 in sides and straight bedway profile are layout allowances. Manufacturer slope wording is ambiguous"` | | `manufacturer` | `string` | `"Jensen Swing Products"` | | `model` | `string` | `"Wave8C"` | | `mounting` | `string` | `"Three top indentations for truss/pan-head wood screws; sizes require supplier confirmation. Bottom bears on a flat surface. Confirm supports, entry barrier and color"` | | `platformHeight` | `string` | `"48 in"` | | `productDimensions` | `string` | `"106 x 28 x 15 in as published; not an installed envelope"` | | `source` | `string` | `"https://jensenswing.com/product/wave8c/"` | # data (https://docs.bear.build/docs/bear/catalog/simpson/data) Import from `bear/catalog/simpson/data`. ## Variables [#variables] ### SIMPSON\_RECORDS [#simpson_records] ```ts const SIMPSON_RECORDS: readonly ConnectorRecord[]; ``` Defined in: [bear/catalog/simpson/data.ts:171](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/simpson/data.ts#L171) Every Simpson model the crawl carries, flat. # models (https://docs.bear.build/docs/bear/catalog/simpson/models) Import from `bear/catalog/simpson/models`. ## Type Aliases [#type-aliases] ### SimpsonAnchorBoltModel [#simpsonanchorboltmodel] ```ts type SimpsonAnchorBoltModel = | "SB1X30" | "SB1X30HDG" | "SB5/8X24" | "SB5/8X24HDG" | "SB7/8X24" | "SB7/8X24HDG" | "SSTB16" | "SSTB16HDG" | "SSTB16L" | "SSTB16LHDG" | "SSTB20" | "SSTB20HDG" | "SSTB20L" | "SSTB20LHDG" | "SSTB24" | "SSTB24HDG" | "SSTB24L" | "SSTB24LHDG" | "SSTB28" | "SSTB28HDG" | "SSTB28L" | "SSTB28LHDG" | "SSTB34" | "SSTB34HDG"; ``` Defined in: [bear/catalog/simpson/models.ts:2787](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/simpson/models.ts#L2787) Every anchorBolt the catalog carries. *** ### SimpsonAngleModel [#simpsonanglemodel] ```ts type SimpsonAngleModel = | "A34" | "A34SS" | "A34Z" | "A35" | "A35SS" | "A35Z" | "GA1" | "GA2" | "L30" | "L50" | "L50Z" | "L70" | "L70Z" | "L90" | "L90Z" | "LS30" | "LS30Z" | "LS50" | "LS50SS" | "LS50Z" | "LS70" | "LS70Z" | "LS90" | "LS90Z" | "ML210Z" | "ML23SS" | "ML23Z" | "ML24SS" | "ML24Z" | "ML26SS" | "ML26Z" | "ML28SS" | "ML28Z"; ``` Defined in: [bear/catalog/simpson/models.ts:2477](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/simpson/models.ts#L2477) Every angle the catalog carries. *** ### SimpsonColumnCapModel [#simpsoncolumncapmodel] ```ts type SimpsonColumnCapModel = | "BC4" | "BC46" | "BC46R" | "BC46Z" | "BC4R" | "BC4SS" | "BC4Z" | "BC6" | "BC6R" | "BC6SS" | "BC6Z" | "BC8" | "BCS2-2/4" | "BCS2-2/4SS" | "BCS2-2/4Z" | "BCS2-3/6" | "BCS2-3/6SS" | "BCS2-3/6Z" | "CC106" | "CC3 1/4-4" | "CC3 1/4-4HDG" | "CC3 1/4-6" | "CC3 1/4-6HDG" | "CC4.62-3.62" | "CC4.62-3.62HDG" | "CC4.62-4.62" | "CC4.62-5.50" | "CC4.62-5.50HDG" | "CC44" | "CC44HDG" | "CC44SS" | "CC46" | "CC46HDG" | "CC48" | "CC48HDG" | "CC5 1/4-4" | "CC5 1/4-4HDG" | "CC5 1/4-6" | "CC5 1/4-6HDG" | "CC5 1/4-8" | "CC6-7 1/8" | "CC64" | "CC64HDG" | "CC66" | "CC66HDG" | "CC66SS" | "CC68" | "CC68HDG" | "CC7 1/8-4" | "CC7 1/8-6" | "CC7 1/8-7 1/8" | "CC7 1/8-8" | "CC74" | "CC76" | "CC77" | "CC78" | "CC84" | "CC86" | "CC88" | "CC88HDG" | "CC94" | "CC96" | "CC98" | "CCOQ10-SDS2.5" | "CCOQ3-SDS2.5" | "CCOQ4-SDS2.5" | "CCOQ4-SDS2.5HDG" | "CCOQ4.62-SDS2.5" | "CCOQ4.62HDG" | "CCOQ5-SDS2.5" | "CCOQ5-SDS2.5HDG" | "CCOQ6-SDS2.5" | "CCOQ6-SDS2.5HDG" | "CCOQ7-SDS2.5" | "CCOQ7.12-SDS2.5" | "CCOQ8-SDS2.5" | "CCOQ8-SDS2.5HDG" | "CCOQ9-SDS2.5" | "CCQ106SDS2.5" | "CCQ3-4SDS2.5" | "CCQ3-6SDS2.5" | "CCQ3-6SDS2.5HDG" | "CCQ4.62-3.62SDS" | "CCQ4.62-4.62SDS" | "CCQ4.62-5.50SDS" | "CCQ44SDS2.5" | "CCQ46SDS2.5" | "CCQ48SDS2.5" | "CCQ5-4SDS2.5" | "CCQ5-6SDS2.5" | "CCQ5-6SDS2.5HDG" | "CCQ5-8SDS2.5" | "CCQ6-7.13SDS2.5" | "CCQ64SDS2.5" | "CCQ66SDS2.5" | "CCQ68SDS2.5" | "CCQ68SDS2.5HDG" | "CCQ7.1-4SDS2.5" | "CCQ7.1-6SDS2.5" | "CCQ7.1-7.1SDS2.5" | "CCQ7.1-8SDS2.5" | "CCQ74SDS2.5" | "CCQ76SDS2.5" | "CCQ77SDS2.5" | "CCQ78SDS2.5" | "CCQ84SDS2.5" | "CCQ86SDS2.5" | "CCQ88SDS2.5" | "CCQ88SDS2.5HDG" | "CCQ94SDS2.5" | "CCQ96SDS2.5" | "CCQ98SDS2.5"; ``` Defined in: [bear/catalog/simpson/models.ts:2558](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/simpson/models.ts#L2558) Every columnCap the catalog carries. *** ### SimpsonEndColumnCapModel [#simpsonendcolumncapmodel] ```ts type SimpsonEndColumnCapModel = | "ECC106" | "ECC3 1/4-4" | "ECC3 1/4-4HDG" | "ECC3 1/4-6" | "ECC3 1/4-6HDG" | "ECC4.62-3.62" | "ECC4.62-4.62" | "ECC4.62-4.62HDG" | "ECC4.62-5.50" | "ECC4.62-5.50HDG" | "ECC44" | "ECC44HDG" | "ECC46" | "ECC46HDG" | "ECC48" | "ECC5 1/4-4" | "ECC5 1/4-4HDG" | "ECC5 1/4-6" | "ECC5 1/4-6HDG" | "ECC5 1/4-8" | "ECC6-7 1/8" | "ECC64" | "ECC64HDG" | "ECC66" | "ECC66HDG" | "ECC68" | "ECC7 1/8-4" | "ECC7 1/8-6" | "ECC7 1/8-7 1/8" | "ECC7 1/8-8" | "ECC74" | "ECC76" | "ECC77" | "ECC78" | "ECC84" | "ECC86" | "ECC88" | "ECC94" | "ECC96" | "ECC98" | "ECCQ106SDS2.5" | "ECCQ3-4SDS2.5" | "ECCQ3-6SDS2.5" | "ECCQ3-6SDS2.5HDG" | "ECCQ4.62-3.62SDS" | "ECCQ4.62-4.62SDS" | "ECCQ4.62-5.50SDS" | "ECCQ44SDS2.5" | "ECCQ46SDS2.5" | "ECCQ48SDS2.5" | "ECCQ5-4SDS2.5" | "ECCQ5-6SDS2.5" | "ECCQ5-6SDS2.5HDG" | "ECCQ5-8SDS2.5" | "ECCQ6-7.13SDS2.5" | "ECCQ64SDS2.5" | "ECCQ66SDS2.5" | "ECCQ68SDS2.5" | "ECCQ7.1-4SDS2.5" | "ECCQ7.1-6SDS2.5" | "ECCQ7.1-7.1SDS25" | "ECCQ7.1-8SDS2.5" | "ECCQ74SDS2.5" | "ECCQ76SDS2.5" | "ECCQ77SDS2.5" | "ECCQ78SDS2.5" | "ECCQ84SDS2.5" | "ECCQ86SDS2.5" | "ECCQ88SDS2.5" | "ECCQ94SDS2.5" | "ECCQ96SDS2.5" | "ECCQ98SDS2.5" | "ECCU44"; ``` Defined in: [bear/catalog/simpson/models.ts:2673](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/simpson/models.ts#L2673) Every endColumnCap the catalog carries. *** ### SimpsonFaceMountHangerModel [#simpsonfacemounthangermodel] ```ts type SimpsonFaceMountHangerModel = | "HGU11.00-SDS" | "HGU3.63-SDS" | "HGU3.63/11-SDS" | "HGU5.25-SDS" | "HGU5.50-SDS" | "HGU5.62-SDS" | "HGU7.00-SDS" | "HGU7.25-SDS" | "HGU9.00-SDS" | "HGUS2.75/10" | "HGUS2.75/12" | "HGUS2.75/14" | "HGUS210" | "HGUS210-2" | "HGUS210-3" | "HGUS210-4" | "HGUS212-3" | "HGUS212-4" | "HGUS214-3" | "HGUS214-4" | "HGUS26" | "HGUS26-2" | "HGUS26-3" | "HGUS26-4" | "HGUS28" | "HGUS28-2" | "HGUS28-3" | "HGUS28-4" | "HGUS3.25/10" | "HGUS3.25/12" | "HGUS410" | "HGUS412" | "HGUS414" | "HGUS46" | "HGUS48" | "HGUS5.25/10" | "HGUS5.25/12" | "HGUS5.50/10" | "HGUS5.50/12" | "HGUS5.50/14" | "HGUS5.50/8" | "HGUS5.62/10" | "HGUS5.62/12" | "HGUS5.62/14" | "HGUS6.88/10" | "HGUS6.88/12" | "HGUS6.88/14" | "HGUS7.25/10" | "HGUS7.25/12" | "HGUS7.25/14" | "HGUS7.25/8" | "HGUS7.37/10" | "HGUS7.37/12" | "HGUS7.37/14" | "HHGU11.00-SDS" | "HHGU14.00-SDS" | "HHGU5.25-SDS" | "HHGU5.50-SDS" | "HHGU5.62-SDS" | "HHGU7.00-SDS" | "HHGU7.25-SDS" | "HHGU9.00-SDS" | "HHUS210-2" | "HHUS210-2HDG" | "HHUS210-2Z" | "HHUS210-3" | "HHUS210-3HDG" | "HHUS210-4" | "HHUS210-4HDG" | "HHUS26-2" | "HHUS26-2Z" | "HHUS28-2" | "HHUS28-2Z" | "HHUS410" | "HHUS410HDG" | "HHUS410Z" | "HHUS46" | "HHUS46HDG" | "HHUS46Z" | "HHUS48" | "HHUS48Z" | "HHUS5.50/10" | "HHUS5.50/10HDG" | "HHUS7.25/10" | "HHUS7.25/10HDG" | "HU1.81/5" | "HU11" | "HU14" | "HU2.1/11" | "HU2.1/9" | "HU2.75/10" | "HU2.75/12" | "HU2.75/14" | "HU210" | "HU210-2" | "HU210-3" | "HU210-3Z" | "HU210-4" | "HU210Z" | "HU212" | "HU212-2" | "HU212-3" | "HU214" | "HU214-2" | "HU214-3" | "HU216" | "HU216-2" | "HU216-3" | "HU24-2" | "HU26" | "HU26-2" | "HU26-3" | "HU28" | "HU28-2" | "HU28-4" | "HU3.25/10.5" | "HU3.25/12" | "HU3.25/16" | "HU310" | "HU310-2" | "HU312" | "HU312-2" | "HU314" | "HU314-2" | "HU316" | "HU34" | "HU3511" | "HU3514" | "HU3514-2" | "HU3516-2" | "HU3516/22" | "HU3520-2" | "HU3524/30" | "HU359" | "HU36" | "HU36-2" | "HU38" | "HU38-2" | "HU4.12/11" | "HU4.12/9" | "HU4.28/11" | "HU4.28/9" | "HU4.75/11" | "HU4.75/9" | "HU410" | "HU410-2" | "HU410SS" | "HU410Z" | "HU412" | "HU412-2" | "HU412Z" | "HU414" | "HU414-2" | "HU416" | "HU44" | "HU46" | "HU46SS" | "HU46Z" | "HU48" | "HU48SS" | "HU48Z" | "HU5.125/12" | "HU5.125/13.5" | "HU5.125/16" | "HU610" | "HU610Z" | "HU612" | "HU612Z" | "HU614" | "HU616" | "HU66" | "HU68" | "HU68Z" | "HU7" | "HU810" | "HU812" | "HU814" | "HU816" | "HU88" | "HU9" | "HUC2.75/10" | "HUC2.75/12" | "HUC2.75/14" | "HUC210-2" | "HUC210-2SS" | "HUC210-2Z" | "HUC210-3" | "HUC210-3Z" | "HUC210-4" | "HUC212-2" | "HUC212-3" | "HUC214-2" | "HUC214-3" | "HUC216-2" | "HUC216-3" | "HUC24-2" | "HUC26-2" | "HUC26-2Z" | "HUC26-3" | "HUC28-2" | "HUC28-2SS" | "HUC28-2Z" | "HUC28-4" | "HUC3.25/10.5" | "HUC3.25/12" | "HUC3.25/16" | "HUC310" | "HUC310-2" | "HUC312" | "HUC312-2" | "HUC314" | "HUC314-2" | "HUC316" | "HUC34" | "HUC3511" | "HUC3514" | "HUC3514-2" | "HUC3516-2" | "HUC3516/22" | "HUC359" | "HUC36" | "HUC38" | "HUC38-2" | "HUC4.12/11" | "HUC4.12/9" | "HUC4.28/11" | "HUC4.28/9" | "HUC4.75/11" | "HUC4.75/9" | "HUC410" | "HUC410-2" | "HUC410SS" | "HUC410Z" | "HUC412" | "HUC412-2" | "HUC412Z" | "HUC414" | "HUC414-2" | "HUC416" | "HUC44" | "HUC44Z" | "HUC46" | "HUC46SS" | "HUC46Z" | "HUC48" | "HUC48SS" | "HUC48Z" | "HUC5.125/12" | "HUC5.125/13.5" | "HUC5.125/16" | "HUC5.31/11" | "HUC5.31/14" | "HUC5.31/16" | "HUC5.31/9" | "HUC610" | "HUC610SS" | "HUC610Z" | "HUC612" | "HUC612SS" | "HUC612Z" | "HUC614" | "HUC616" | "HUC66" | "HUC66SS" | "HUC68" | "HUC68SS" | "HUC68Z" | "HUC810" | "HUC812" | "HUC814" | "HUC816" | "HUC88" | "HUS1.81/10" | "HUS210" | "HUS210-2" | "HUS210Z" | "HUS212-2" | "HUS26" | "HUS26-2" | "HUS26Z" | "HUS28" | "HUS28-2" | "HUS28Z" | "HUS410" | "HUS412" | "HUS46" | "HUS48" | "HUS48SS" | "LGU3.25-SDS" | "LGU3.63-SDS" | "LGU5.25-SDS" | "LUS210" | "LUS210-2" | "LUS210-2SS" | "LUS210-2Z" | "LUS210-3" | "LUS210-3Z" | "LUS210SS" | "LUS210Z" | "LUS214-2" | "LUS24" | "LUS24-2" | "LUS24Z" | "LUS26" | "LUS26-2" | "LUS26-2SS" | "LUS26-2Z" | "LUS26-3" | "LUS26SS" | "LUS26Z" | "LUS28" | "LUS28-2" | "LUS28-2SS" | "LUS28-2Z" | "LUS28-3" | "LUS28-3Z" | "LUS28SS" | "LUS28Z" | "LUS310" | "LUS36" | "LUS36SS" | "LUS36Z" | "LUS410" | "LUS410Z" | "LUS414" | "LUS414Z" | "LUS44" | "LUS44Z" | "LUS46" | "LUS46Z" | "LUS48" | "LUS48Z" | "MGU3.63-SDS" | "MGU5.25-SDS" | "MGU5.50-SDS" | "MGU5.62-SDS" | "MGU7.00-SDS" | "MIU1.56/11" | "MIU1.56/9" | "MIU1.81/11" | "MIU1.81/14" | "MIU1.81/16" | "MIU1.81/18" | "MIU1.81/9" | "MIU2.1/11" | "MIU2.37/11" | "MIU2.37/14" | "MIU2.37/16" | "MIU2.37/18" | "MIU2.37/20" | "MIU2.37/9" | "MIU2.56/11" | "MIU2.56/14" | "MIU2.56/16" | "MIU2.56/18" | "MIU2.56/20" | "MIU2.56/9" | "MIU3.12/11" | "MIU3.12/9" | "MIU3.56/11" | "MIU3.56/14" | "MIU3.56/16" | "MIU3.56/18" | "MIU3.56/20" | "MIU3.56/7" | "MIU3.56/9" | "MIU4.12/11" | "MIU4.12/14" | "MIU4.12/16" | "MIU4.12/9" | "MIU4.28/11" | "MIU4.28/14" | "MIU4.28/16" | "MIU4.28/9" | "MIU4.75/11" | "MIU4.75/14" | "MIU4.75/16" | "MIU4.75/18" | "MIU4.75/20" | "MIU4.75/9" | "MIU5.12/11" | "MIU5.12/14" | "MIU5.12/16" | "MIU5.12/18" | "MIU5.12/20" | "MIU5.12/7" | "MIU5.12/9" | "U14" | "U2.1/4" | "U210" | "U210-2" | "U210-3" | "U210R" | "U210Z" | "U214" | "U24" | "U24-2" | "U24R" | "U26" | "U26-2" | "U26-3" | "U26R" | "U310" | "U314" | "U34" | "U3510-2" | "U3510/14" | "U3512-2" | "U3516/20" | "U36" | "U410" | "U410R" | "U414" | "U44" | "U44R" | "U46" | "U46R" | "U610" | "U610R" | "U66" | "U66R"; ``` Defined in: [bear/catalog/simpson/models.ts:1869](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/simpson/models.ts#L1869) Every faceMountHanger the catalog carries. *** ### SimpsonHoldownModel [#simpsonholdownmodel] ```ts type SimpsonHoldownModel = | "DTT1SS-KT" | "DTT1Z" | "DTT1Z-KT" | "DTT2SS" | "DTT2SS-SDS2.5" | "DTT2Z" | "DTT2Z-R2" | "DTT2Z-SDS2.5" | "HDU11-SDS2.5" | "HDU14-SDS2.5" | "HDU4-SDS2.5" | "HDU4-SDS2.5HDG" | "HDU5-SDS2.5" | "HDU5-SDS2.5HDG" | "HDU8-SDS2.5"; ``` Defined in: [bear/catalog/simpson/models.ts:2749](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/simpson/models.ts#L2749) Every holdown the catalog carries. *** ### SimpsonMadeToOrderModel [#simpsonmadetoordermodel] ```ts type SimpsonMadeToOrderModel = | "HGU11.00-SDS" | "HGU3.63-SDS" | "HGU5.25-SDS" | "HGU5.50-SDS" | "HGU5.62-SDS" | "HGU7.00-SDS" | "HGU7.25-SDS" | "HGU9.00-SDS" | "HHGU11.00-SDS" | "HHGU14.00-SDS" | "HHGU5.25-SDS" | "HHGU5.50-SDS" | "HHGU5.62-SDS" | "HHGU7.00-SDS" | "HHGU7.25-SDS" | "HHGU9.00-SDS" | "LGU3.25-SDS" | "LGU3.63-SDS" | "LGU5.25-SDS" | "MGU3.63-SDS" | "MGU5.25-SDS" | "MGU5.50-SDS" | "MGU5.62-SDS" | "MGU7.00-SDS"; ``` Defined in: [bear/catalog/simpson/models.ts:2822](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/simpson/models.ts#L2822) Every model the buyer specifies a dimension of when ordering. *** ### SimpsonModel [#simpsonmodel] ```ts type SimpsonModel = | "A34" | "A34SS" | "A34Z" | "A35" | "A35SS" | "A35Z" | "ABA24-2Z" | "ABA44RZ" | "ABA44Z" | "ABA46RZ" | "ABA46Z" | "ABA66RZ" | "ABA66Z" | "ABU1010RZ" | "ABU1010Z" | "ABU1212RZ" | "ABU1212Z" | "ABU44RZ" | "ABU44SS" | "ABU44Z" | "ABU46RZ" | "ABU46SS" | "ABU46Z" | "ABU5-5Z" | "ABU5-6Z" | "ABU65Z" | "ABU66RZ" | "ABU66SS" | "ABU66Z" | "ABU88HDG" | "ABU88RHDG" | "ABU88RZ" | "ABU88SS" | "ABU88Z" | "BA1.56/11.88" | "BA1.56/14" | "BA1.56/9.5" | "BA1.81/11.25" | "BA1.81/11.88" | "BA1.81/14" | "BA1.81/16" | "BA1.81/7.25" | "BA1.81/9.25" | "BA1.81/9.5" | "BA2.1/11.88" | "BA2.1/14" | "BA2.1/16" | "BA2.1/9.5" | "BA2.37/11.88" | "BA2.37/14" | "BA2.37/16" | "BA2.37/18" | "BA2.37/20" | "BA2.37/9.5" | "BA2.56/11.88" | "BA2.56/14" | "BA2.56/16" | "BA2.56/18" | "BA2.56/20" | "BA2.56/22" | "BA2.56/24" | "BA2.56/26" | "BA2.56/28" | "BA2.56/30" | "BA2.56/9.5" | "BA210" | "BA210-2" | "BA212" | "BA212-2" | "BA214" | "BA216" | "BA28" | "BA28-2" | "BA3.56/11.25" | "BA3.56/11.88" | "BA3.56/14" | "BA3.56/16" | "BA3.56/18" | "BA3.56/20" | "BA3.56/22" | "BA3.56/24" | "BA3.56/26" | "BA3.56/28" | "BA3.56/30" | "BA3.56/7.25" | "BA3.56/9.25" | "BA3.56/9.5" | "BA310" | "BA312" | "BA314" | "BA316" | "BA38" | "BA4.12/11.88" | "BA4.12/14" | "BA4.12/16" | "BA4.12/9.5" | "BA4.28/11.88" | "BA4.28/14" | "BA4.28/16" | "BA4.28/9.5" | "BA4.75/11.88" | "BA4.75/14" | "BA4.75/16" | "BA4.75/18" | "BA4.75/20" | "BA4.75/9.5" | "BA410" | "BA412" | "BA414" | "BA416" | "BA48" | "BA5.12/11.88" | "BA5.12/14" | "BA5.12/16" | "BA5.12/18" | "BA5.12/20" | "BA5.12/22" | "BA5.12/24" | "BA5.12/26" | "BA5.12/28" | "BA5.12/9.5" | "BA610" | "BA612" | "BA614" | "BA616" | "BA68" | "BA7.12/11.88" | "BA7.12/14" | "BA7.12/16" | "BA7.12/18" | "BA7.12/20" | "BA7.12/22" | "BA7.12/24" | "BA7.12/26" | "BA7.12/28" | "BA7.12/9.5" | "BC4" | "BC46" | "BC46R" | "BC46Z" | "BC4R" | "BC4SS" | "BC4Z" | "BC6" | "BC6R" | "BC6SS" | "BC6Z" | "BC8" | "BCS2-2/4" | "BCS2-2/4SS" | "BCS2-2/4Z" | "BCS2-3/6" | "BCS2-3/6SS" | "BCS2-3/6Z" | "CC106" | "CC3 1/4-4" | "CC3 1/4-4HDG" | "CC3 1/4-6" | "CC3 1/4-6HDG" | "CC4.62-3.62" | "CC4.62-3.62HDG" | "CC4.62-4.62" | "CC4.62-5.50" | "CC4.62-5.50HDG" | "CC44" | "CC44HDG" | "CC44SS" | "CC46" | "CC46HDG" | "CC48" | "CC48HDG" | "CC5 1/4-4" | "CC5 1/4-4HDG" | "CC5 1/4-6" | "CC5 1/4-6HDG" | "CC5 1/4-8" | "CC6-7 1/8" | "CC64" | "CC64HDG" | "CC66" | "CC66HDG" | "CC66SS" | "CC68" | "CC68HDG" | "CC7 1/8-4" | "CC7 1/8-6" | "CC7 1/8-7 1/8" | "CC7 1/8-8" | "CC74" | "CC76" | "CC77" | "CC78" | "CC84" | "CC86" | "CC88" | "CC88HDG" | "CC94" | "CC96" | "CC98" | "CCOQ10-SDS2.5" | "CCOQ3-SDS2.5" | "CCOQ4-SDS2.5" | "CCOQ4-SDS2.5HDG" | "CCOQ4.62-SDS2.5" | "CCOQ4.62HDG" | "CCOQ5-SDS2.5" | "CCOQ5-SDS2.5HDG" | "CCOQ6-SDS2.5" | "CCOQ6-SDS2.5HDG" | "CCOQ7-SDS2.5" | "CCOQ7.12-SDS2.5" | "CCOQ8-SDS2.5" | "CCOQ8-SDS2.5HDG" | "CCOQ9-SDS2.5" | "CCQ106SDS2.5" | "CCQ3-4SDS2.5" | "CCQ3-6SDS2.5" | "CCQ3-6SDS2.5HDG" | "CCQ4.62-3.62SDS" | "CCQ4.62-4.62SDS" | "CCQ4.62-5.50SDS" | "CCQ44SDS2.5" | "CCQ46SDS2.5" | "CCQ48SDS2.5" | "CCQ5-4SDS2.5" | "CCQ5-6SDS2.5" | "CCQ5-6SDS2.5HDG" | "CCQ5-8SDS2.5" | "CCQ6-7.13SDS2.5" | "CCQ64SDS2.5" | "CCQ66SDS2.5" | "CCQ68SDS2.5" | "CCQ68SDS2.5HDG" | "CCQ7.1-4SDS2.5" | "CCQ7.1-6SDS2.5" | "CCQ7.1-7.1SDS2.5" | "CCQ7.1-8SDS2.5" | "CCQ74SDS2.5" | "CCQ76SDS2.5" | "CCQ77SDS2.5" | "CCQ78SDS2.5" | "CCQ84SDS2.5" | "CCQ86SDS2.5" | "CCQ88SDS2.5" | "CCQ88SDS2.5HDG" | "CCQ94SDS2.5" | "CCQ96SDS2.5" | "CCQ98SDS2.5" | "DTT1SS-KT" | "DTT1Z" | "DTT1Z-KT" | "DTT2SS" | "DTT2SS-SDS2.5" | "DTT2Z" | "DTT2Z-R2" | "DTT2Z-SDS2.5" | "ECC106" | "ECC3 1/4-4" | "ECC3 1/4-4HDG" | "ECC3 1/4-6" | "ECC3 1/4-6HDG" | "ECC4.62-3.62" | "ECC4.62-4.62" | "ECC4.62-4.62HDG" | "ECC4.62-5.50" | "ECC4.62-5.50HDG" | "ECC44" | "ECC44HDG" | "ECC46" | "ECC46HDG" | "ECC48" | "ECC5 1/4-4" | "ECC5 1/4-4HDG" | "ECC5 1/4-6" | "ECC5 1/4-6HDG" | "ECC5 1/4-8" | "ECC6-7 1/8" | "ECC64" | "ECC64HDG" | "ECC66" | "ECC66HDG" | "ECC68" | "ECC7 1/8-4" | "ECC7 1/8-6" | "ECC7 1/8-7 1/8" | "ECC7 1/8-8" | "ECC74" | "ECC76" | "ECC77" | "ECC78" | "ECC84" | "ECC86" | "ECC88" | "ECC94" | "ECC96" | "ECC98" | "ECCQ106SDS2.5" | "ECCQ3-4SDS2.5" | "ECCQ3-6SDS2.5" | "ECCQ3-6SDS2.5HDG" | "ECCQ4.62-3.62SDS" | "ECCQ4.62-4.62SDS" | "ECCQ4.62-5.50SDS" | "ECCQ44SDS2.5" | "ECCQ46SDS2.5" | "ECCQ48SDS2.5" | "ECCQ5-4SDS2.5" | "ECCQ5-6SDS2.5" | "ECCQ5-6SDS2.5HDG" | "ECCQ5-8SDS2.5" | "ECCQ6-7.13SDS2.5" | "ECCQ64SDS2.5" | "ECCQ66SDS2.5" | "ECCQ68SDS2.5" | "ECCQ7.1-4SDS2.5" | "ECCQ7.1-6SDS2.5" | "ECCQ7.1-7.1SDS25" | "ECCQ7.1-8SDS2.5" | "ECCQ74SDS2.5" | "ECCQ76SDS2.5" | "ECCQ77SDS2.5" | "ECCQ78SDS2.5" | "ECCQ84SDS2.5" | "ECCQ86SDS2.5" | "ECCQ88SDS2.5" | "ECCQ94SDS2.5" | "ECCQ96SDS2.5" | "ECCQ98SDS2.5" | "ECCU44" | "EPB44" | "EPB44-12" | "EPB44-12HDG" | "EPB44A" | "EPB44HDG" | "EPB44HDGMB" | "EPB44MB" | "EPB44PHDG" | "EPB46" | "EPB46-12" | "EPB46HDG" | "EPB66" | "EPB66-12" | "EPB66HDG" | "GA1" | "GA2" | "H10A" | "H10A-2" | "H10A-2Z" | "H10AR" | "H10ASS" | "H10AZ" | "H10S" | "H14" | "H16" | "H1A" | "H1AZ" | "H2.5A" | "H2.5ASS" | "H2.5AZ" | "H2A" | "H2ASS" | "H2AZ" | "HDU11-SDS2.5" | "HDU14-SDS2.5" | "HDU4-SDS2.5" | "HDU4-SDS2.5HDG" | "HDU5-SDS2.5" | "HDU5-SDS2.5HDG" | "HDU8-SDS2.5" | "HGU11.00-SDS" | "HGU3.63-SDS" | "HGU3.63/11-SDS" | "HGU5.25-SDS" | "HGU5.50-SDS" | "HGU5.62-SDS" | "HGU7.00-SDS" | "HGU7.25-SDS" | "HGU9.00-SDS" | "HGUS2.75/10" | "HGUS2.75/12" | "HGUS2.75/14" | "HGUS210" | "HGUS210-2" | "HGUS210-3" | "HGUS210-4" | "HGUS212-3" | "HGUS212-4" | "HGUS214-3" | "HGUS214-4" | "HGUS26" | "HGUS26-2" | "HGUS26-3" | "HGUS26-4" | "HGUS28" | "HGUS28-2" | "HGUS28-3" | "HGUS28-4" | "HGUS3.25/10" | "HGUS3.25/12" | "HGUS410" | "HGUS412" | "HGUS414" | "HGUS46" | "HGUS48" | "HGUS5.25/10" | "HGUS5.25/12" | "HGUS5.50/10" | "HGUS5.50/12" | "HGUS5.50/14" | "HGUS5.50/8" | "HGUS5.62/10" | "HGUS5.62/12" | "HGUS5.62/14" | "HGUS6.88/10" | "HGUS6.88/12" | "HGUS6.88/14" | "HGUS7.25/10" | "HGUS7.25/12" | "HGUS7.25/14" | "HGUS7.25/8" | "HGUS7.37/10" | "HGUS7.37/12" | "HGUS7.37/14" | "HHGU11.00-SDS" | "HHGU14.00-SDS" | "HHGU5.25-SDS" | "HHGU5.50-SDS" | "HHGU5.62-SDS" | "HHGU7.00-SDS" | "HHGU7.25-SDS" | "HHGU9.00-SDS" | "HHUS210-2" | "HHUS210-2HDG" | "HHUS210-2Z" | "HHUS210-3" | "HHUS210-3HDG" | "HHUS210-4" | "HHUS210-4HDG" | "HHUS26-2" | "HHUS26-2Z" | "HHUS28-2" | "HHUS28-2Z" | "HHUS410" | "HHUS410HDG" | "HHUS410Z" | "HHUS46" | "HHUS46HDG" | "HHUS46Z" | "HHUS48" | "HHUS48Z" | "HHUS5.50/10" | "HHUS5.50/10HDG" | "HHUS7.25/10" | "HHUS7.25/10HDG" | "HU1.81/5" | "HU11" | "HU14" | "HU2.1/11" | "HU2.1/9" | "HU2.75/10" | "HU2.75/12" | "HU2.75/14" | "HU210" | "HU210-2" | "HU210-3" | "HU210-3Z" | "HU210-4" | "HU210Z" | "HU212" | "HU212-2" | "HU212-3" | "HU214" | "HU214-2" | "HU214-3" | "HU216" | "HU216-2" | "HU216-3" | "HU24-2" | "HU26" | "HU26-2" | "HU26-3" | "HU28" | "HU28-2" | "HU28-4" | "HU3.25/10.5" | "HU3.25/12" | "HU3.25/16" | "HU310" | "HU310-2" | "HU312" | "HU312-2" | "HU314" | "HU314-2" | "HU316" | "HU34" | "HU3511" | "HU3514" | "HU3514-2" | "HU3516-2" | "HU3516/22" | "HU3520-2" | "HU3524/30" | "HU359" | "HU36" | "HU36-2" | "HU38" | "HU38-2" | "HU4.12/11" | "HU4.12/9" | "HU4.28/11" | "HU4.28/9" | "HU4.75/11" | "HU4.75/9" | "HU410" | "HU410-2" | "HU410SS" | "HU410Z" | "HU412" | "HU412-2" | "HU412Z" | "HU414" | "HU414-2" | "HU416" | "HU44" | "HU46" | "HU46SS" | "HU46Z" | "HU48" | "HU48SS" | "HU48Z" | "HU5.125/12" | "HU5.125/13.5" | "HU5.125/16" | "HU610" | "HU610Z" | "HU612" | "HU612Z" | "HU614" | "HU616" | "HU66" | "HU68" | "HU68Z" | "HU7" | "HU810" | "HU812" | "HU814" | "HU816" | "HU88" | "HU9" | "HUC2.75/10" | "HUC2.75/12" | "HUC2.75/14" | "HUC210-2" | "HUC210-2SS" | "HUC210-2Z" | "HUC210-3" | "HUC210-3Z" | "HUC210-4" | "HUC212-2" | "HUC212-3" | "HUC214-2" | "HUC214-3" | "HUC216-2" | "HUC216-3" | "HUC24-2" | "HUC26-2" | "HUC26-2Z" | "HUC26-3" | "HUC28-2" | "HUC28-2SS" | "HUC28-2Z" | "HUC28-4" | "HUC3.25/10.5" | "HUC3.25/12" | "HUC3.25/16" | "HUC310" | "HUC310-2" | "HUC312" | "HUC312-2" | "HUC314" | "HUC314-2" | "HUC316" | "HUC34" | "HUC3511" | "HUC3514" | "HUC3514-2" | "HUC3516-2" | "HUC3516/22" | "HUC359" | "HUC36" | "HUC38" | "HUC38-2" | "HUC4.12/11" | "HUC4.12/9" | "HUC4.28/11" | "HUC4.28/9" | "HUC4.75/11" | "HUC4.75/9" | "HUC410" | "HUC410-2" | "HUC410SS" | "HUC410Z" | "HUC412" | "HUC412-2" | "HUC412Z" | "HUC414" | "HUC414-2" | "HUC416" | "HUC44" | "HUC44Z" | "HUC46" | "HUC46SS" | "HUC46Z" | "HUC48" | "HUC48SS" | "HUC48Z" | "HUC5.125/12" | "HUC5.125/13.5" | "HUC5.125/16" | "HUC5.31/11" | "HUC5.31/14" | "HUC5.31/16" | "HUC5.31/9" | "HUC610" | "HUC610SS" | "HUC610Z" | "HUC612" | "HUC612SS" | "HUC612Z" | "HUC614" | "HUC616" | "HUC66" | "HUC66SS" | "HUC68" | "HUC68SS" | "HUC68Z" | "HUC810" | "HUC812" | "HUC814" | "HUC816" | "HUC88" | "HUS1.81/10" | "HUS210" | "HUS210-2" | "HUS210Z" | "HUS212-2" | "HUS26" | "HUS26-2" | "HUS26Z" | "HUS28" | "HUS28-2" | "HUS28Z" | "HUS410" | "HUS412" | "HUS46" | "HUS48" | "HUS48SS" | "ITS1.56/11.88" | "ITS1.81/11.88" | "ITS1.81/14" | "ITS1.81/16" | "ITS1.81/9.5" | "ITS2.06/11.88" | "ITS2.06/14" | "ITS2.06/16" | "ITS2.06/9.5" | "ITS2.37/11.88" | "ITS2.37/14" | "ITS2.37/16" | "ITS2.37/9.5" | "ITS2.56/11.88" | "ITS2.56/14" | "ITS2.56/16" | "ITS2.56/9.5" | "ITS3.56/11.88" | "ITS3.56/14" | "ITS3.56/16" | "ITS3.56/9.5" | "IUS1.81/11.88" | "IUS1.81/14" | "IUS1.81/16" | "IUS1.81/9.5" | "IUS2.06/11.88" | "IUS2.06/14" | "IUS2.06/16" | "IUS2.06/9.5" | "IUS2.37/11.88" | "IUS2.37/14" | "IUS2.37/16" | "IUS2.37/9.5" | "IUS2.56/11.88" | "IUS2.56/14" | "IUS2.56/16" | "IUS2.56/9.5" | "IUS3.56/11.88" | "IUS3.56/14" | "IUS3.56/16" | "IUS3.56/9.5" | "JB26" | "JB28" | "L30" | "L50" | "L50Z" | "L70" | "L70Z" | "L90" | "L90Z" | "LB216" | "LB26" | "LB28" | "LGU3.25-SDS" | "LGU3.63-SDS" | "LGU5.25-SDS" | "LS30" | "LS30Z" | "LS50" | "LS50SS" | "LS50Z" | "LS70" | "LS70Z" | "LS90" | "LS90Z" | "LUS210" | "LUS210-2" | "LUS210-2SS" | "LUS210-2Z" | "LUS210-3" | "LUS210-3Z" | "LUS210SS" | "LUS210Z" | "LUS214-2" | "LUS24" | "LUS24-2" | "LUS24Z" | "LUS26" | "LUS26-2" | "LUS26-2SS" | "LUS26-2Z" | "LUS26-3" | "LUS26SS" | "LUS26Z" | "LUS28" | "LUS28-2" | "LUS28-2SS" | "LUS28-2Z" | "LUS28-3" | "LUS28-3Z" | "LUS28SS" | "LUS28Z" | "LUS310" | "LUS36" | "LUS36SS" | "LUS36Z" | "LUS410" | "LUS410Z" | "LUS414" | "LUS414Z" | "LUS44" | "LUS44Z" | "LUS46" | "LUS46Z" | "LUS48" | "LUS48Z" | "MASA" | "MASA-B" | "MASAP" | "MASAPZ" | "MASAZ" | "MGU3.63-SDS" | "MGU5.25-SDS" | "MGU5.50-SDS" | "MGU5.62-SDS" | "MGU7.00-SDS" | "MIT1.81/14" | "MIT1.81/16" | "MIT11.88" | "MIT2.1/11.88" | "MIT311.88" | "MIT311.88-2" | "MIT314" | "MIT314-2" | "MIT316" | "MIT318" | "MIT320" | "MIT3511.88" | "MIT3511.88-2" | "MIT3514" | "MIT3514-2" | "MIT3516" | "MIT3518" | "MIT3520" | "MIT359.5-2" | "MIT39.5-2" | "MIT4.12/11.88" | "MIT4.12/9.5" | "MIT4.28/11.88" | "MIT4.28/14" | "MIT4.28/9.5" | "MIT4.75/16" | "MIT411.88" | "MIT414" | "MIT416" | "MIT418" | "MIT420" | "MIT5.12/16" | "MIT9.5" | "MIU1.56/11" | "MIU1.56/9" | "MIU1.81/11" | "MIU1.81/14" | "MIU1.81/16" | "MIU1.81/18" | "MIU1.81/9" | "MIU2.1/11" | "MIU2.37/11" | "MIU2.37/14" | "MIU2.37/16" | "MIU2.37/18" | "MIU2.37/20" | "MIU2.37/9" | "MIU2.56/11" | "MIU2.56/14" | "MIU2.56/16" | "MIU2.56/18" | "MIU2.56/20" | "MIU2.56/9" | "MIU3.12/11" | "MIU3.12/9" | "MIU3.56/11" | "MIU3.56/14" | "MIU3.56/16" | "MIU3.56/18" | "MIU3.56/20" | "MIU3.56/7" | "MIU3.56/9" | "MIU4.12/11" | "MIU4.12/14" | "MIU4.12/16" | "MIU4.12/9" | "MIU4.28/11" | "MIU4.28/14" | "MIU4.28/16" | "MIU4.28/9" | "MIU4.75/11" | "MIU4.75/14" | "MIU4.75/16" | "MIU4.75/18" | "MIU4.75/20" | "MIU4.75/9" | "MIU5.12/11" | "MIU5.12/14" | "MIU5.12/16" | "MIU5.12/18" | "MIU5.12/20" | "MIU5.12/7" | "MIU5.12/9" | "ML210Z" | "ML23SS" | "ML23Z" | "ML24SS" | "ML24Z" | "ML26SS" | "ML26Z" | "ML28SS" | "ML28Z" | "SB1X30" | "SB1X30HDG" | "SB5/8X24" | "SB5/8X24HDG" | "SB7/8X24" | "SB7/8X24HDG" | "SSTB16" | "SSTB16HDG" | "SSTB16L" | "SSTB16LHDG" | "SSTB20" | "SSTB20HDG" | "SSTB20L" | "SSTB20LHDG" | "SSTB24" | "SSTB24HDG" | "SSTB24L" | "SSTB24LHDG" | "SSTB28" | "SSTB28HDG" | "SSTB28L" | "SSTB28LHDG" | "SSTB34" | "SSTB34HDG" | "U14" | "U2.1/4" | "U210" | "U210-2" | "U210-3" | "U210R" | "U210Z" | "U214" | "U24" | "U24-2" | "U24R" | "U26" | "U26-2" | "U26-3" | "U26R" | "U310" | "U314" | "U34" | "U3510-2" | "U3510/14" | "U3512-2" | "U3516/20" | "U36" | "U410" | "U410R" | "U414" | "U44" | "U44R" | "U46" | "U46R" | "U610" | "U610R" | "U66" | "U66R"; ``` Defined in: [bear/catalog/simpson/models.ts:10](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/simpson/models.ts#L10) Every model number the catalog carries: a product (LUS28), or one finish of it (LUS28Z). Naming one in a type makes a typo a compile error instead of a runtime lookup that returns nothing. *** ### SimpsonMudsillAnchorModel [#simpsonmudsillanchormodel] ```ts type SimpsonMudsillAnchorModel = "MASA" | "MASA-B" | "MASAP" | "MASAPZ" | "MASAZ"; ``` Defined in: [bear/catalog/simpson/models.ts:2814](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/simpson/models.ts#L2814) Every mudsillAnchor the catalog carries. *** ### SimpsonPostBaseModel [#simpsonpostbasemodel] ```ts type SimpsonPostBaseModel = | "ABA24-2Z" | "ABA44RZ" | "ABA44Z" | "ABA46RZ" | "ABA46Z" | "ABA66RZ" | "ABA66Z" | "ABU1010RZ" | "ABU1010Z" | "ABU1212RZ" | "ABU1212Z" | "ABU44RZ" | "ABU44SS" | "ABU44Z" | "ABU46RZ" | "ABU46SS" | "ABU46Z" | "ABU5-5Z" | "ABU5-6Z" | "ABU65Z" | "ABU66RZ" | "ABU66SS" | "ABU66Z" | "ABU88HDG" | "ABU88RHDG" | "ABU88RZ" | "ABU88SS" | "ABU88Z" | "EPB44" | "EPB44-12" | "EPB44-12HDG" | "EPB44A" | "EPB44HDG" | "EPB44HDGMB" | "EPB44MB" | "EPB44PHDG" | "EPB46" | "EPB46-12" | "EPB46HDG" | "EPB66" | "EPB66-12" | "EPB66HDG"; ``` Defined in: [bear/catalog/simpson/models.ts:2513](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/simpson/models.ts#L2513) Every postBase the catalog carries. *** ### SimpsonTieModel [#simpsontiemodel] ```ts type SimpsonTieModel = | "H10A" | "H10A-2" | "H10A-2Z" | "H10AR" | "H10ASS" | "H10AZ" | "H10S" | "H14" | "H16" | "H1A" | "H1AZ" | "H2.5A" | "H2.5ASS" | "H2.5AZ" | "H2A" | "H2ASS" | "H2AZ"; ``` Defined in: [bear/catalog/simpson/models.ts:2767](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/simpson/models.ts#L2767) Every tie the catalog carries. *** ### SimpsonTopFlangeHangerModel [#simpsontopflangehangermodel] ```ts type SimpsonTopFlangeHangerModel = | "BA1.56/11.88" | "BA1.56/14" | "BA1.56/9.5" | "BA1.81/11.25" | "BA1.81/11.88" | "BA1.81/14" | "BA1.81/16" | "BA1.81/7.25" | "BA1.81/9.25" | "BA1.81/9.5" | "BA2.1/11.88" | "BA2.1/14" | "BA2.1/16" | "BA2.1/9.5" | "BA2.37/11.88" | "BA2.37/14" | "BA2.37/16" | "BA2.37/18" | "BA2.37/20" | "BA2.37/9.5" | "BA2.56/11.88" | "BA2.56/14" | "BA2.56/16" | "BA2.56/18" | "BA2.56/20" | "BA2.56/22" | "BA2.56/24" | "BA2.56/26" | "BA2.56/28" | "BA2.56/30" | "BA2.56/9.5" | "BA210" | "BA210-2" | "BA212" | "BA212-2" | "BA214" | "BA216" | "BA28" | "BA28-2" | "BA3.56/11.25" | "BA3.56/11.88" | "BA3.56/14" | "BA3.56/16" | "BA3.56/18" | "BA3.56/20" | "BA3.56/22" | "BA3.56/24" | "BA3.56/26" | "BA3.56/28" | "BA3.56/30" | "BA3.56/7.25" | "BA3.56/9.25" | "BA3.56/9.5" | "BA310" | "BA312" | "BA314" | "BA316" | "BA38" | "BA4.12/11.88" | "BA4.12/14" | "BA4.12/16" | "BA4.12/9.5" | "BA4.28/11.88" | "BA4.28/14" | "BA4.28/16" | "BA4.28/9.5" | "BA4.75/11.88" | "BA4.75/14" | "BA4.75/16" | "BA4.75/18" | "BA4.75/20" | "BA4.75/9.5" | "BA410" | "BA412" | "BA414" | "BA416" | "BA48" | "BA5.12/11.88" | "BA5.12/14" | "BA5.12/16" | "BA5.12/18" | "BA5.12/20" | "BA5.12/22" | "BA5.12/24" | "BA5.12/26" | "BA5.12/28" | "BA5.12/9.5" | "BA610" | "BA612" | "BA614" | "BA616" | "BA68" | "BA7.12/11.88" | "BA7.12/14" | "BA7.12/16" | "BA7.12/18" | "BA7.12/20" | "BA7.12/22" | "BA7.12/24" | "BA7.12/26" | "BA7.12/28" | "BA7.12/9.5" | "ITS1.56/11.88" | "ITS1.81/11.88" | "ITS1.81/14" | "ITS1.81/16" | "ITS1.81/9.5" | "ITS2.06/11.88" | "ITS2.06/14" | "ITS2.06/16" | "ITS2.06/9.5" | "ITS2.37/11.88" | "ITS2.37/14" | "ITS2.37/16" | "ITS2.37/9.5" | "ITS2.56/11.88" | "ITS2.56/14" | "ITS2.56/16" | "ITS2.56/9.5" | "ITS3.56/11.88" | "ITS3.56/14" | "ITS3.56/16" | "ITS3.56/9.5" | "IUS1.81/11.88" | "IUS1.81/14" | "IUS1.81/16" | "IUS1.81/9.5" | "IUS2.06/11.88" | "IUS2.06/14" | "IUS2.06/16" | "IUS2.06/9.5" | "IUS2.37/11.88" | "IUS2.37/14" | "IUS2.37/16" | "IUS2.37/9.5" | "IUS2.56/11.88" | "IUS2.56/14" | "IUS2.56/16" | "IUS2.56/9.5" | "IUS3.56/11.88" | "IUS3.56/14" | "IUS3.56/16" | "IUS3.56/9.5" | "JB26" | "JB28" | "LB216" | "LB26" | "LB28" | "MIT1.81/14" | "MIT1.81/16" | "MIT11.88" | "MIT2.1/11.88" | "MIT311.88" | "MIT311.88-2" | "MIT314" | "MIT314-2" | "MIT316" | "MIT318" | "MIT320" | "MIT3511.88" | "MIT3511.88-2" | "MIT3514" | "MIT3514-2" | "MIT3516" | "MIT3518" | "MIT3520" | "MIT359.5-2" | "MIT39.5-2" | "MIT4.12/11.88" | "MIT4.12/9.5" | "MIT4.28/11.88" | "MIT4.28/14" | "MIT4.28/9.5" | "MIT4.75/16" | "MIT411.88" | "MIT414" | "MIT416" | "MIT418" | "MIT420" | "MIT5.12/16" | "MIT9.5"; ``` Defined in: [bear/catalog/simpson/models.ts:2293](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/simpson/models.ts#L2293) Every topFlangeHanger the catalog carries. # mudsills (https://docs.bear.build/docs/bear/catalog/simpson/mudsills) Import from `bear/catalog/simpson/mudsills`. ## Variables [#variables] ### MUDSILL\_ANCHOR\_DIMS [#mudsill_anchor_dims] ```ts const MUDSILL_ANCHOR_DIMS: Readonly>; ``` Defined in: [bear/catalog/simpson/mudsills.ts:30](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/simpson/mudsills.ts#L30) # simpson (https://docs.bear.build/docs/bear/catalog/simpson) Import from `bear/catalog/simpson`. ## Interfaces [#interfaces] ### SimpsonCatalog() [#simpsoncatalog] Defined in: [bear/catalog/simpson.ts:830](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/simpson.ts#L830) Simpson's catalog: a [ConnectorCatalog](https://docs.bear.build/docs/bear/catalog/types.md#connectorcatalog) that knows its models. A crawled name comes back as its own family's part, so `simpson("LUS28")` is a hanger, `simpson("A35")` an angle, `simpson("ABU66Z")` a post base, `simpson("BC4")` a column cap, `simpson("DTT2Z")` a holdown, `simpson("SSTB16")` an anchor bolt and `simpson("MASA")` a mudsill anchor, with no cast, and `finish` offers only what that product is sold in; a computed name falls through to the union, which is all a string can promise. It restates the call, `get` and `info` rather than inheriting them: an inherited `(product: string, options?: ConnectorOptions)` would accept every finish for every product, and the narrowing would be decoration. It is still a `ConnectorCatalog` wherever one is wanted. #### Extends [#extends] - `Omit`\<[`ConnectorCatalog`](https://docs.bear.build/docs/bear/catalog/types.md#connectorcatalog), `"get"` \| `"info"`\> #### Call Signature [#call-signature] ```ts SimpsonCatalog(model, options?): JoistHangerPart; ``` Defined in: [bear/catalog/simpson.ts:831](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/simpson.ts#L831) Simpson's catalog: a [ConnectorCatalog](https://docs.bear.build/docs/bear/catalog/types.md#connectorcatalog) that knows its models. A crawled name comes back as its own family's part, so `simpson("LUS28")` is a hanger, `simpson("A35")` an angle, `simpson("ABU66Z")` a post base, `simpson("BC4")` a column cap, `simpson("DTT2Z")` a holdown, `simpson("SSTB16")` an anchor bolt and `simpson("MASA")` a mudsill anchor, with no cast, and `finish` offers only what that product is sold in; a computed name falls through to the union, which is all a string can promise. It restates the call, `get` and `info` rather than inheriting them: an inherited `(product: string, options?: ConnectorOptions)` would accept every finish for every product, and the narrowing would be decoration. It is still a `ConnectorCatalog` wherever one is wanted. ##### Type Parameters [#type-parameters] | Type Parameter | | ------ | | `M` *extends* [`SimpsonHangerModel`](https://docs.bear.build/docs/bear/catalog/simpson.md#simpsonhangermodel) | ##### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `model` | `M` | | `options?` | [`SimpsonOptions`](https://docs.bear.build/docs/bear/catalog/simpson.md#simpsonoptions)\<`M`\> | ##### Returns [#returns] [`JoistHangerPart`](https://docs.bear.build/docs/bear/blueprints/connectors/types.md#joisthangerpart) #### Call Signature [#call-signature-1] ```ts SimpsonCatalog(model, options?): FramingAnglePart; ``` Defined in: [bear/catalog/simpson.ts:835](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/simpson.ts#L835) Simpson's catalog: a [ConnectorCatalog](https://docs.bear.build/docs/bear/catalog/types.md#connectorcatalog) that knows its models. A crawled name comes back as its own family's part, so `simpson("LUS28")` is a hanger, `simpson("A35")` an angle, `simpson("ABU66Z")` a post base, `simpson("BC4")` a column cap, `simpson("DTT2Z")` a holdown, `simpson("SSTB16")` an anchor bolt and `simpson("MASA")` a mudsill anchor, with no cast, and `finish` offers only what that product is sold in; a computed name falls through to the union, which is all a string can promise. It restates the call, `get` and `info` rather than inheriting them: an inherited `(product: string, options?: ConnectorOptions)` would accept every finish for every product, and the narrowing would be decoration. It is still a `ConnectorCatalog` wherever one is wanted. ##### Type Parameters [#type-parameters-1] | Type Parameter | | ------ | | `M` *extends* [`SimpsonAngleModel`](https://docs.bear.build/docs/bear/catalog/simpson/models.md#simpsonanglemodel) | ##### Parameters [#parameters-1] | Parameter | Type | | ------ | ------ | | `model` | `M` | | `options?` | [`SimpsonOptions`](https://docs.bear.build/docs/bear/catalog/simpson.md#simpsonoptions)\<`M`\> | ##### Returns [#returns-1] [`FramingAnglePart`](https://docs.bear.build/docs/bear/blueprints/connectors/types.md#framinganglepart) #### Call Signature [#call-signature-2] ```ts SimpsonCatalog(model, options?): PostBasePart; ``` Defined in: [bear/catalog/simpson.ts:839](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/simpson.ts#L839) Simpson's catalog: a [ConnectorCatalog](https://docs.bear.build/docs/bear/catalog/types.md#connectorcatalog) that knows its models. A crawled name comes back as its own family's part, so `simpson("LUS28")` is a hanger, `simpson("A35")` an angle, `simpson("ABU66Z")` a post base, `simpson("BC4")` a column cap, `simpson("DTT2Z")` a holdown, `simpson("SSTB16")` an anchor bolt and `simpson("MASA")` a mudsill anchor, with no cast, and `finish` offers only what that product is sold in; a computed name falls through to the union, which is all a string can promise. It restates the call, `get` and `info` rather than inheriting them: an inherited `(product: string, options?: ConnectorOptions)` would accept every finish for every product, and the narrowing would be decoration. It is still a `ConnectorCatalog` wherever one is wanted. ##### Type Parameters [#type-parameters-2] | Type Parameter | | ------ | | `M` *extends* [`SimpsonPostBaseModel`](https://docs.bear.build/docs/bear/catalog/simpson/models.md#simpsonpostbasemodel) | ##### Parameters [#parameters-2] | Parameter | Type | | ------ | ------ | | `model` | `M` | | `options?` | [`SimpsonOptions`](https://docs.bear.build/docs/bear/catalog/simpson.md#simpsonoptions)\<`M`\> | ##### Returns [#returns-2] [`PostBasePart`](https://docs.bear.build/docs/bear/blueprints/connectors/types.md#postbasepart) #### Call Signature [#call-signature-3] ```ts SimpsonCatalog(model, options?): ColumnCapPart; ``` Defined in: [bear/catalog/simpson.ts:843](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/simpson.ts#L843) Simpson's catalog: a [ConnectorCatalog](https://docs.bear.build/docs/bear/catalog/types.md#connectorcatalog) that knows its models. A crawled name comes back as its own family's part, so `simpson("LUS28")` is a hanger, `simpson("A35")` an angle, `simpson("ABU66Z")` a post base, `simpson("BC4")` a column cap, `simpson("DTT2Z")` a holdown, `simpson("SSTB16")` an anchor bolt and `simpson("MASA")` a mudsill anchor, with no cast, and `finish` offers only what that product is sold in; a computed name falls through to the union, which is all a string can promise. It restates the call, `get` and `info` rather than inheriting them: an inherited `(product: string, options?: ConnectorOptions)` would accept every finish for every product, and the narrowing would be decoration. It is still a `ConnectorCatalog` wherever one is wanted. ##### Type Parameters [#type-parameters-3] | Type Parameter | | ------ | | `M` *extends* [`SimpsonPlacedColumnCapModel`](https://docs.bear.build/docs/bear/catalog/simpson.md#simpsonplacedcolumncapmodel) | ##### Parameters [#parameters-3] | Parameter | Type | | ------ | ------ | | `model` | `M` | | `options?` | [`SimpsonOptions`](https://docs.bear.build/docs/bear/catalog/simpson.md#simpsonoptions)\<`M`\> | ##### Returns [#returns-3] [`ColumnCapPart`](https://docs.bear.build/docs/bear/blueprints/connectors/types.md#columncappart) #### Call Signature [#call-signature-4] ```ts SimpsonCatalog(model, options?): AnchorBoltPart; ``` Defined in: [bear/catalog/simpson.ts:847](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/simpson.ts#L847) Simpson's catalog: a [ConnectorCatalog](https://docs.bear.build/docs/bear/catalog/types.md#connectorcatalog) that knows its models. A crawled name comes back as its own family's part, so `simpson("LUS28")` is a hanger, `simpson("A35")` an angle, `simpson("ABU66Z")` a post base, `simpson("BC4")` a column cap, `simpson("DTT2Z")` a holdown, `simpson("SSTB16")` an anchor bolt and `simpson("MASA")` a mudsill anchor, with no cast, and `finish` offers only what that product is sold in; a computed name falls through to the union, which is all a string can promise. It restates the call, `get` and `info` rather than inheriting them: an inherited `(product: string, options?: ConnectorOptions)` would accept every finish for every product, and the narrowing would be decoration. It is still a `ConnectorCatalog` wherever one is wanted. ##### Type Parameters [#type-parameters-4] | Type Parameter | | ------ | | `M` *extends* [`SimpsonAnchorBoltModel`](https://docs.bear.build/docs/bear/catalog/simpson/models.md#simpsonanchorboltmodel) | ##### Parameters [#parameters-4] | Parameter | Type | | ------ | ------ | | `model` | `M` | | `options?` | [`SimpsonOptions`](https://docs.bear.build/docs/bear/catalog/simpson.md#simpsonoptions)\<`M`\> | ##### Returns [#returns-4] [`AnchorBoltPart`](https://docs.bear.build/docs/bear/blueprints/connectors/types.md#anchorboltpart) #### Call Signature [#call-signature-5] ```ts SimpsonCatalog(model, options?): MudsillAnchorPart; ``` Defined in: [bear/catalog/simpson.ts:851](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/simpson.ts#L851) Simpson's catalog: a [ConnectorCatalog](https://docs.bear.build/docs/bear/catalog/types.md#connectorcatalog) that knows its models. A crawled name comes back as its own family's part, so `simpson("LUS28")` is a hanger, `simpson("A35")` an angle, `simpson("ABU66Z")` a post base, `simpson("BC4")` a column cap, `simpson("DTT2Z")` a holdown, `simpson("SSTB16")` an anchor bolt and `simpson("MASA")` a mudsill anchor, with no cast, and `finish` offers only what that product is sold in; a computed name falls through to the union, which is all a string can promise. It restates the call, `get` and `info` rather than inheriting them: an inherited `(product: string, options?: ConnectorOptions)` would accept every finish for every product, and the narrowing would be decoration. It is still a `ConnectorCatalog` wherever one is wanted. ##### Type Parameters [#type-parameters-5] | Type Parameter | | ------ | | `M` *extends* [`SimpsonMudsillAnchorModel`](https://docs.bear.build/docs/bear/catalog/simpson/models.md#simpsonmudsillanchormodel) | ##### Parameters [#parameters-5] | Parameter | Type | | ------ | ------ | | `model` | `M` | | `options?` | [`SimpsonOptions`](https://docs.bear.build/docs/bear/catalog/simpson.md#simpsonoptions)\<`M`\> | ##### Returns [#returns-5] [`MudsillAnchorPart`](https://docs.bear.build/docs/bear/blueprints/connectors/types.md#mudsillanchorpart) #### Call Signature [#call-signature-6] ```ts SimpsonCatalog(model, options?): HoldownPart; ``` Defined in: [bear/catalog/simpson.ts:855](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/simpson.ts#L855) Simpson's catalog: a [ConnectorCatalog](https://docs.bear.build/docs/bear/catalog/types.md#connectorcatalog) that knows its models. A crawled name comes back as its own family's part, so `simpson("LUS28")` is a hanger, `simpson("A35")` an angle, `simpson("ABU66Z")` a post base, `simpson("BC4")` a column cap, `simpson("DTT2Z")` a holdown, `simpson("SSTB16")` an anchor bolt and `simpson("MASA")` a mudsill anchor, with no cast, and `finish` offers only what that product is sold in; a computed name falls through to the union, which is all a string can promise. It restates the call, `get` and `info` rather than inheriting them: an inherited `(product: string, options?: ConnectorOptions)` would accept every finish for every product, and the narrowing would be decoration. It is still a `ConnectorCatalog` wherever one is wanted. ##### Type Parameters [#type-parameters-6] | Type Parameter | | ------ | | `M` *extends* [`SimpsonHoldownModel`](https://docs.bear.build/docs/bear/catalog/simpson/models.md#simpsonholdownmodel) | ##### Parameters [#parameters-6] | Parameter | Type | | ------ | ------ | | `model` | `M` | | `options?` | [`SimpsonOptions`](https://docs.bear.build/docs/bear/catalog/simpson.md#simpsonoptions)\<`M`\> | ##### Returns [#returns-6] [`HoldownPart`](https://docs.bear.build/docs/bear/blueprints/connectors/types.md#holdownpart) #### Call Signature [#call-signature-7] ```ts SimpsonCatalog(model, options?): ConnectorPart; ``` Defined in: [bear/catalog/simpson.ts:859](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/simpson.ts#L859) Simpson's catalog: a [ConnectorCatalog](https://docs.bear.build/docs/bear/catalog/types.md#connectorcatalog) that knows its models. A crawled name comes back as its own family's part, so `simpson("LUS28")` is a hanger, `simpson("A35")` an angle, `simpson("ABU66Z")` a post base, `simpson("BC4")` a column cap, `simpson("DTT2Z")` a holdown, `simpson("SSTB16")` an anchor bolt and `simpson("MASA")` a mudsill anchor, with no cast, and `finish` offers only what that product is sold in; a computed name falls through to the union, which is all a string can promise. It restates the call, `get` and `info` rather than inheriting them: an inherited `(product: string, options?: ConnectorOptions)` would accept every finish for every product, and the narrowing would be decoration. It is still a `ConnectorCatalog` wherever one is wanted. ##### Type Parameters [#type-parameters-7] | Type Parameter | | ------ | | `M` *extends* [`SimpsonModelName`](https://docs.bear.build/docs/bear/catalog/simpson.md#simpsonmodelname) | ##### Parameters [#parameters-7] | Parameter | Type | | ------ | ------ | | `model` | `M` | | `options?` | [`SimpsonOptions`](https://docs.bear.build/docs/bear/catalog/simpson.md#simpsonoptions)\<`M`\> | ##### Returns [#returns-7] [`ConnectorPart`](https://docs.bear.build/docs/bear/catalog/types.md#connectorpart) #### Properties [#properties] | Property | Modifier | Type | Description | Inherited from | | ------ | ------ | ------ | ------ | ------ | | `id` | `readonly` | `string` | Stable id, e.g. "simpson". | [`ConnectorCatalog`](https://docs.bear.build/docs/bear/catalog/types.md#connectorcatalog).[`id`](https://docs.bear.build/docs/bear/catalog/types.md#property-id) | | `name` | `readonly` | `string` | Display name, e.g. "Simpson Strong-Tie". | [`ConnectorCatalog`](https://docs.bear.build/docs/bear/catalog/types.md#connectorcatalog).[`name`](https://docs.bear.build/docs/bear/catalog/types.md#property-name) | #### Methods [#methods] ##### get() [#get] ###### Call Signature [#call-signature-8] ```ts get(model, options?): | JoistHangerPart | undefined; ``` Defined in: [bear/catalog/simpson.ts:863](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/simpson.ts#L863) ###### Type Parameters [#type-parameters-8] | Type Parameter | | ------ | | `M` *extends* [`SimpsonHangerModel`](https://docs.bear.build/docs/bear/catalog/simpson.md#simpsonhangermodel) | ###### Parameters [#parameters-8] | Parameter | Type | | ------ | ------ | | `model` | `M` | | `options?` | [`SimpsonOptions`](https://docs.bear.build/docs/bear/catalog/simpson.md#simpsonoptions)\<`M`\> | ###### Returns [#returns-8] \| [`JoistHangerPart`](https://docs.bear.build/docs/bear/blueprints/connectors/types.md#joisthangerpart) \| `undefined` ###### Call Signature [#call-signature-9] ```ts get(model, options?): | FramingAnglePart | undefined; ``` Defined in: [bear/catalog/simpson.ts:867](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/simpson.ts#L867) ###### Type Parameters [#type-parameters-9] | Type Parameter | | ------ | | `M` *extends* [`SimpsonAngleModel`](https://docs.bear.build/docs/bear/catalog/simpson/models.md#simpsonanglemodel) | ###### Parameters [#parameters-9] | Parameter | Type | | ------ | ------ | | `model` | `M` | | `options?` | [`SimpsonOptions`](https://docs.bear.build/docs/bear/catalog/simpson.md#simpsonoptions)\<`M`\> | ###### Returns [#returns-9] \| [`FramingAnglePart`](https://docs.bear.build/docs/bear/blueprints/connectors/types.md#framinganglepart) \| `undefined` ###### Call Signature [#call-signature-10] ```ts get(model, options?): | PostBasePart | undefined; ``` Defined in: [bear/catalog/simpson.ts:871](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/simpson.ts#L871) ###### Type Parameters [#type-parameters-10] | Type Parameter | | ------ | | `M` *extends* [`SimpsonPostBaseModel`](https://docs.bear.build/docs/bear/catalog/simpson/models.md#simpsonpostbasemodel) | ###### Parameters [#parameters-10] | Parameter | Type | | ------ | ------ | | `model` | `M` | | `options?` | [`SimpsonOptions`](https://docs.bear.build/docs/bear/catalog/simpson.md#simpsonoptions)\<`M`\> | ###### Returns [#returns-10] \| [`PostBasePart`](https://docs.bear.build/docs/bear/blueprints/connectors/types.md#postbasepart) \| `undefined` ###### Call Signature [#call-signature-11] ```ts get(model, options?): | ColumnCapPart | undefined; ``` Defined in: [bear/catalog/simpson.ts:875](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/simpson.ts#L875) ###### Type Parameters [#type-parameters-11] | Type Parameter | | ------ | | `M` *extends* [`SimpsonPlacedColumnCapModel`](https://docs.bear.build/docs/bear/catalog/simpson.md#simpsonplacedcolumncapmodel) | ###### Parameters [#parameters-11] | Parameter | Type | | ------ | ------ | | `model` | `M` | | `options?` | [`SimpsonOptions`](https://docs.bear.build/docs/bear/catalog/simpson.md#simpsonoptions)\<`M`\> | ###### Returns [#returns-11] \| [`ColumnCapPart`](https://docs.bear.build/docs/bear/blueprints/connectors/types.md#columncappart) \| `undefined` ###### Call Signature [#call-signature-12] ```ts get(model, options?): | AnchorBoltPart | undefined; ``` Defined in: [bear/catalog/simpson.ts:879](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/simpson.ts#L879) ###### Type Parameters [#type-parameters-12] | Type Parameter | | ------ | | `M` *extends* [`SimpsonAnchorBoltModel`](https://docs.bear.build/docs/bear/catalog/simpson/models.md#simpsonanchorboltmodel) | ###### Parameters [#parameters-12] | Parameter | Type | | ------ | ------ | | `model` | `M` | | `options?` | [`SimpsonOptions`](https://docs.bear.build/docs/bear/catalog/simpson.md#simpsonoptions)\<`M`\> | ###### Returns [#returns-12] \| [`AnchorBoltPart`](https://docs.bear.build/docs/bear/blueprints/connectors/types.md#anchorboltpart) \| `undefined` ###### Call Signature [#call-signature-13] ```ts get(model, options?): | MudsillAnchorPart | undefined; ``` Defined in: [bear/catalog/simpson.ts:883](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/simpson.ts#L883) ###### Type Parameters [#type-parameters-13] | Type Parameter | | ------ | | `M` *extends* [`SimpsonMudsillAnchorModel`](https://docs.bear.build/docs/bear/catalog/simpson/models.md#simpsonmudsillanchormodel) | ###### Parameters [#parameters-13] | Parameter | Type | | ------ | ------ | | `model` | `M` | | `options?` | [`SimpsonOptions`](https://docs.bear.build/docs/bear/catalog/simpson.md#simpsonoptions)\<`M`\> | ###### Returns [#returns-13] \| [`MudsillAnchorPart`](https://docs.bear.build/docs/bear/blueprints/connectors/types.md#mudsillanchorpart) \| `undefined` ###### Call Signature [#call-signature-14] ```ts get(model, options?): | HoldownPart | undefined; ``` Defined in: [bear/catalog/simpson.ts:887](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/simpson.ts#L887) ###### Type Parameters [#type-parameters-14] | Type Parameter | | ------ | | `M` *extends* [`SimpsonHoldownModel`](https://docs.bear.build/docs/bear/catalog/simpson/models.md#simpsonholdownmodel) | ###### Parameters [#parameters-14] | Parameter | Type | | ------ | ------ | | `model` | `M` | | `options?` | [`SimpsonOptions`](https://docs.bear.build/docs/bear/catalog/simpson.md#simpsonoptions)\<`M`\> | ###### Returns [#returns-14] \| [`HoldownPart`](https://docs.bear.build/docs/bear/blueprints/connectors/types.md#holdownpart) \| `undefined` ###### Call Signature [#call-signature-15] ```ts get(model, options?): ConnectorPart | undefined; ``` Defined in: [bear/catalog/simpson.ts:891](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/simpson.ts#L891) ###### Type Parameters [#type-parameters-15] | Type Parameter | | ------ | | `M` *extends* [`SimpsonModelName`](https://docs.bear.build/docs/bear/catalog/simpson.md#simpsonmodelname) | ###### Parameters [#parameters-15] | Parameter | Type | | ------ | ------ | | `model` | `M` | | `options?` | [`SimpsonOptions`](https://docs.bear.build/docs/bear/catalog/simpson.md#simpsonoptions)\<`M`\> | ###### Returns [#returns-15] [`ConnectorPart`](https://docs.bear.build/docs/bear/catalog/types.md#connectorpart) \| `undefined` ##### info() [#info] ```ts info(model, options?): ConnectorRecord | undefined; ``` Defined in: [bear/catalog/simpson.ts:895](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/simpson.ts#L895) ###### Type Parameters [#type-parameters-16] | Type Parameter | | ------ | | `M` *extends* [`SimpsonModelName`](https://docs.bear.build/docs/bear/catalog/simpson.md#simpsonmodelname) | ###### Parameters [#parameters-16] | Parameter | Type | | ------ | ------ | | `model` | `M` | | `options?` | [`SimpsonOptions`](https://docs.bear.build/docs/bear/catalog/simpson.md#simpsonoptions)\<`M`\> | ###### Returns [#returns-16] [`ConnectorRecord`](https://docs.bear.build/docs/bear/catalog/types.md#connectorrecord) \| `undefined` ##### order() [#order] ```ts order(model, order): JoistHangerPart; ``` Defined in: [bear/catalog/simpson.ts:908](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/simpson.ts#L908) A made-to-order hanger (HGU, HHGU, MGU, LGU) at the height ordered, which is usually the girder's depth; throws outside its range. `finish` offers what the product is sold in, as a lookup's does. ###### Type Parameters [#type-parameters-17] | Type Parameter | | ------ | | `M` *extends* [`SimpsonMadeToOrderModel`](https://docs.bear.build/docs/bear/catalog/simpson/models.md#simpsonmadetoordermodel) | ###### Parameters [#parameters-17] | Parameter | Type | | ------ | ------ | | `model` | `M` | | `order` | `object` & [`SimpsonOptions`](https://docs.bear.build/docs/bear/catalog/simpson.md#simpsonoptions)\<`M`\> | ###### Returns [#returns-17] [`JoistHangerPart`](https://docs.bear.build/docs/bear/blueprints/connectors/types.md#joisthangerpart) ##### search() [#search] ```ts search(filter): readonly ConnectorRecord[]; ``` Defined in: [bear/catalog/types.ts:285](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/types.ts#L285) Every record matching the given fields, for browsing the catalog: `search({ product: "LUS28" })` is every finish it is sold in. ###### Parameters [#parameters-18] | Parameter | Type | | ------ | ------ | | `filter` | `Partial`\<[`ConnectorRecord`](https://docs.bear.build/docs/bear/catalog/types.md#connectorrecord)\> | ###### Returns [#returns-18] readonly [`ConnectorRecord`](https://docs.bear.build/docs/bear/catalog/types.md#connectorrecord)[] ###### Inherited from [#inherited-from] [`ConnectorCatalog`](https://docs.bear.build/docs/bear/catalog/types.md#connectorcatalog).[`search`](https://docs.bear.build/docs/bear/catalog/types.md#search) ##### selectColumnCap() [#selectcolumncap] ```ts selectColumnCap(query): ColumnCapPart; ``` Defined in: [bear/catalog/simpson.ts:900](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/simpson.ts#L900) The tightest placeable column cap for the beam and post; throws when none fits. ###### Parameters [#parameters-19] | Parameter | Type | | ------ | ------ | | `query` | [`ColumnCapSelectionQuery`](https://docs.bear.build/docs/bear/catalog/types.md#columncapselectionquery) | ###### Returns [#returns-19] [`ColumnCapPart`](https://docs.bear.build/docs/bear/blueprints/connectors/types.md#columncappart) ##### selectHanger() [#selecthanger] ```ts selectHanger(query): JoistHangerPart; ``` Defined in: [bear/catalog/types.ts:271](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/types.ts#L271) The best-fitting hanger for the members and load; throws when none fits. ###### Parameters [#parameters-20] | Parameter | Type | | ------ | ------ | | `query` | [`HangerSelectionQuery`](https://docs.bear.build/docs/bear/catalog/types.md#hangerselectionquery) | ###### Returns [#returns-20] [`JoistHangerPart`](https://docs.bear.build/docs/bear/blueprints/connectors/types.md#joisthangerpart) ###### Inherited from [#inherited-from-1] [`ConnectorCatalog`](https://docs.bear.build/docs/bear/catalog/types.md#connectorcatalog).[`selectHanger`](https://docs.bear.build/docs/bear/catalog/types.md#selecthanger) ##### selectHoldown() [#selectholdown] ```ts selectHoldown(query): HoldownPart; ``` Defined in: [bear/catalog/simpson.ts:902](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/simpson.ts#L902) The least holdown that carries the uplift and fits the face; throws when none does. ###### Parameters [#parameters-21] | Parameter | Type | | ------ | ------ | | `query` | [`HoldownSelectionQuery`](https://docs.bear.build/docs/bear/catalog/types.md#holdownselectionquery) | ###### Returns [#returns-21] [`HoldownPart`](https://docs.bear.build/docs/bear/blueprints/connectors/types.md#holdownpart) ##### validateFit() [#validatefit] ```ts validateFit(part, members): FitResult; ``` Defined in: [bear/catalog/types.ts:279](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/types.ts#L279) Whether a hanger suits the two members it would connect, by their stated sections. A placed hanger checks itself against its members; this is the same rules, asked before there are any. Hanger-shaped because sizing is: an angle is chosen by the corner, which it checks. ###### Parameters [#parameters-22] | Parameter | Type | | ------ | ------ | | `part` | [`JoistHangerPart`](https://docs.bear.build/docs/bear/blueprints/connectors/types.md#joisthangerpart) | | `members` | [`HangerMembers`](https://docs.bear.build/docs/bear/catalog/types.md#hangermembers) | ###### Returns [#returns-22] [`FitResult`](https://docs.bear.build/docs/bear/catalog/types.md#fitresult) ###### Inherited from [#inherited-from-2] [`ConnectorCatalog`](https://docs.bear.build/docs/bear/catalog/types.md#connectorcatalog).[`validateFit`](https://docs.bear.build/docs/bear/catalog/types.md#validatefit) ## Type Aliases [#type-aliases] ### SimpsonFinish [#simpsonfinish] ```ts type SimpsonFinish = M extends keyof SimpsonFinishes ? SimpsonFinishes[M] : ConnectorFinish; ``` Defined in: [bear/catalog/simpson.ts:795](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/simpson.ts#L795) The finishes a model number can be asked for in: all of a product's, a coated model number's own, or any finish for a computed name. #### Type Parameters [#type-parameters-18] | Type Parameter | | ------ | | `M` *extends* [`SimpsonModelName`](https://docs.bear.build/docs/bear/catalog/simpson.md#simpsonmodelname) | *** ### SimpsonHangerModel [#simpsonhangermodel] ```ts type SimpsonHangerModel = Exclude< | SimpsonFaceMountHangerModel | SimpsonTopFlangeHangerModel, SimpsonMadeToOrderModel>; ``` Defined in: [bear/catalog/simpson.ts:810](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/simpson.ts#L810) Every model number either hanger archetype places as sold. *** ### SimpsonModelName [#simpsonmodelname] ```ts type SimpsonModelName = SimpsonModel | string & object; ``` Defined in: [bear/catalog/simpson.ts:789](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/simpson.ts#L789) A model number: a product, or one finish of it. Every one the catalog carries is offered by name, so a typo autocompletes away; a computed name (a record's own `model`) is still accepted and fails at the lookup with a message instead. *** ### SimpsonOptions [#simpsonoptions] ```ts type SimpsonOptions = ConnectorOptions>; ``` Defined in: [bear/catalog/simpson.ts:799](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/simpson.ts#L799) A lookup's options, with `finish` narrowed to what the model is sold in. #### Type Parameters [#type-parameters-19] | Type Parameter | | ------ | | `M` *extends* [`SimpsonModelName`](https://docs.bear.build/docs/bear/catalog/simpson.md#simpsonmodelname) | *** ### SimpsonPlacedColumnCapModel [#simpsonplacedcolumncapmodel] ```ts type SimpsonPlacedColumnCapModel = Exclude; ``` Defined in: [bear/catalog/simpson.ts:804](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/simpson.ts#L804) The column caps not in `UNPLACED_COLUMN_CAP_SERIES`; those type as the union. ## Variables [#variables] ### simpson [#simpson] ```ts const simpson: SimpsonCatalog; ``` Defined in: [bear/catalog/simpson.ts:915](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/simpson.ts#L915) Simpson Strong-Tie's connectors. See the module docs for usage. # ThermaTruBenchmark (https://docs.bear.build/docs/bear/catalog/therma-tru/ThermaTruBenchmark) Import from `bear/catalog/therma-tru/ThermaTruBenchmark`. ## Interfaces [#interfaces] ### ThermaTruBenchmarkProps [#thermatrubenchmarkprops] Defined in: [bear/catalog/therma-tru/ThermaTruBenchmark.tsx:24](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/therma-tru/ThermaTruBenchmark.tsx#L24) #### Properties [#properties] | Property | Type | Description | | ------ | ------ | ------ | | `designation` | [`Designation`](https://docs.bear.build/docs/bear/catalog/therma-tru/ThermaTruBenchmark.md#designation) | - | | `handing` | `"LH"` \| `"RH"` | Seen from the exterior; both swing in (the outswing unit's sizes aren't transcribed). | ## Type Aliases [#type-aliases] ### Designation [#designation] ```ts type Designation = "2868" | "3068"; ``` Defined in: [bear/catalog/therma-tru/ThermaTruBenchmark.tsx:22](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/therma-tru/ThermaTruBenchmark.tsx#L22) Width and height in feet and inches: 3068 is 3'0" x 6'8". ## Functions [#functions] ### ThermaTruBenchmark() [#thermatrubenchmark] ```ts function ThermaTruBenchmark(props): BearElement; ``` Defined in: [bear/catalog/therma-tru/ThermaTruBenchmark.tsx:52](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/therma-tru/ThermaTruBenchmark.tsx#L52) #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `props` | [`ThermaTruBenchmarkProps`](https://docs.bear.build/docs/bear/catalog/therma-tru/ThermaTruBenchmark.md#thermatrubenchmarkprops) | #### Returns [#returns] [`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement) # types (https://docs.bear.build/docs/bear/catalog/types) Import from `bear/catalog/types`. ## Interfaces [#interfaces] ### ColumnCapSelectionQuery [#columncapselectionquery] Defined in: [bear/catalog/types.ts:219](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/types.ts#L219) The widths a column cap's straps close on, in project units. #### Extends [#extends] - [`ConnectorOptions`](https://docs.bear.build/docs/bear/catalog/types.md#connectoroptions) #### Properties [#properties] | Property | Type | Description | Inherited from | | ------ | ------ | ------ | ------ | | `beam` | `object` | - | - | | `beam.width` | `number` | - | - | | `demand?` | [`ConnectorLoadDemand`](https://docs.bear.build/docs/bear/catalog/types.md#connectorloaddemand) | Allowable loads the choice must meet, in lb. | - | | `finish?` | `"G90"` \| `"grayPaint"` \| `"uncoated"` \| `"ZMAX"` \| `"HDG"` \| `"stainless"` | - | [`ConnectorOptions`](https://docs.bear.build/docs/bear/catalog/types.md#connectoroptions).[`finish`](https://docs.bear.build/docs/bear/catalog/types.md#property-finish-1) | | `post` | `object` | - | - | | `post.width` | `number` | - | - | *** ### ConnectorCatalog() [#connectorcatalog] Defined in: [bear/catalog/types.ts:255](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/types.ts#L255) A manufacturer's connectors, offline. Call it to get a part: `simpson("LUS28")` is whichever archetype that model is, and a catalog that knows its own model numbers says which (see `SimpsonCatalog`). The named members are for selection and for agents exploring the catalog from the REPL. ```ts ConnectorCatalog(product, options?): ConnectorPart; ``` Defined in: [bear/catalog/types.ts:265](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/types.ts#L265) The part for a product in a finish; throws when the catalog has no such product, or does not sell it in that finish. #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `product` | `string` | | `options?` | [`ConnectorOptions`](https://docs.bear.build/docs/bear/catalog/types.md#connectoroptions)\<`"G90"` \| `"grayPaint"` \| `"uncoated"` \| `"ZMAX"` \| `"HDG"` \| `"stainless"`\> | #### Returns [#returns] [`ConnectorPart`](https://docs.bear.build/docs/bear/catalog/types.md#connectorpart) #### Properties [#properties-1] | Property | Modifier | Type | Description | | ------ | ------ | ------ | ------ | | `id` | `readonly` | `string` | Stable id, e.g. "simpson". | | `name` | `readonly` | `string` | Display name, e.g. "Simpson Strong-Tie". | #### Methods [#methods] ##### get() [#get] ```ts get(product, options?): ConnectorPart | undefined; ``` Defined in: [bear/catalog/types.ts:268](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/types.ts#L268) The part for a product in a finish, or undefined when there is none. ###### Parameters [#parameters-1] | Parameter | Type | | ------ | ------ | | `product` | `string` | | `options?` | [`ConnectorOptions`](https://docs.bear.build/docs/bear/catalog/types.md#connectoroptions)\<`"G90"` \| `"grayPaint"` \| `"uncoated"` \| `"ZMAX"` \| `"HDG"` \| `"stainless"`\> | ###### Returns [#returns-1] [`ConnectorPart`](https://docs.bear.build/docs/bear/catalog/types.md#connectorpart) \| `undefined` ##### info() [#info] ```ts info(product, options?): ConnectorRecord | undefined; ``` Defined in: [bear/catalog/types.ts:288](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/types.ts#L288) The published record for a product in a finish. ###### Parameters [#parameters-2] | Parameter | Type | | ------ | ------ | | `product` | `string` | | `options?` | [`ConnectorOptions`](https://docs.bear.build/docs/bear/catalog/types.md#connectoroptions)\<`"G90"` \| `"grayPaint"` \| `"uncoated"` \| `"ZMAX"` \| `"HDG"` \| `"stainless"`\> | ###### Returns [#returns-2] [`ConnectorRecord`](https://docs.bear.build/docs/bear/catalog/types.md#connectorrecord) \| `undefined` ##### search() [#search] ```ts search(filter): readonly ConnectorRecord[]; ``` Defined in: [bear/catalog/types.ts:285](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/types.ts#L285) Every record matching the given fields, for browsing the catalog: `search({ product: "LUS28" })` is every finish it is sold in. ###### Parameters [#parameters-3] | Parameter | Type | | ------ | ------ | | `filter` | `Partial`\<[`ConnectorRecord`](https://docs.bear.build/docs/bear/catalog/types.md#connectorrecord)\> | ###### Returns [#returns-3] readonly [`ConnectorRecord`](https://docs.bear.build/docs/bear/catalog/types.md#connectorrecord)[] ##### selectHanger() [#selecthanger] ```ts selectHanger(query): JoistHangerPart; ``` Defined in: [bear/catalog/types.ts:271](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/types.ts#L271) The best-fitting hanger for the members and load; throws when none fits. ###### Parameters [#parameters-4] | Parameter | Type | | ------ | ------ | | `query` | [`HangerSelectionQuery`](https://docs.bear.build/docs/bear/catalog/types.md#hangerselectionquery) | ###### Returns [#returns-4] [`JoistHangerPart`](https://docs.bear.build/docs/bear/blueprints/connectors/types.md#joisthangerpart) ##### validateFit() [#validatefit] ```ts validateFit(part, members): FitResult; ``` Defined in: [bear/catalog/types.ts:279](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/types.ts#L279) Whether a hanger suits the two members it would connect, by their stated sections. A placed hanger checks itself against its members; this is the same rules, asked before there are any. Hanger-shaped because sizing is: an angle is chosen by the corner, which it checks. ###### Parameters [#parameters-5] | Parameter | Type | | ------ | ------ | | `part` | [`JoistHangerPart`](https://docs.bear.build/docs/bear/blueprints/connectors/types.md#joisthangerpart) | | `members` | [`HangerMembers`](https://docs.bear.build/docs/bear/catalog/types.md#hangermembers) | ###### Returns [#returns-5] [`FitResult`](https://docs.bear.build/docs/bear/catalog/types.md#fitresult) *** ### ConnectorLoadDemand [#connectorloaddemand] Defined in: [bear/catalog/types.ts:202](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/types.ts#L202) Allowable load demand, in lb. #### Properties [#properties-2] | Property | Type | | ------ | ------ | | `download?` | `number` | | `uplift?` | `number` | *** ### ConnectorOptions [#connectoroptions] Defined in: [bear/catalog/types.ts:119](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/types.ts#L119) What a lookup takes besides the product. The finish picks which of the product's model numbers is ordered; omitted, it is the product itself. #### Extended by [#extended-by] - [`HangerSelectionQuery`](https://docs.bear.build/docs/bear/catalog/types.md#hangerselectionquery) - [`ColumnCapSelectionQuery`](https://docs.bear.build/docs/bear/catalog/types.md#columncapselectionquery) - [`HoldownSelectionQuery`](https://docs.bear.build/docs/bear/catalog/types.md#holdownselectionquery) #### Type Parameters [#type-parameters] | Type Parameter | Default type | | ------ | ------ | | `Finish` *extends* [`ConnectorFinish`](https://docs.bear.build/docs/bear/blueprints/connectors/finishes.md#connectorfinish) | [`ConnectorFinish`](https://docs.bear.build/docs/bear/blueprints/connectors/finishes.md#connectorfinish) | #### Properties [#properties-3] | Property | Type | | ------ | ------ | | `finish?` | `Finish` | *** ### ConnectorRecord [#connectorrecord] Defined in: [bear/catalog/types.ts:134](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/types.ts#L134) One orderable model, as the manufacturer's table publishes it. Lengths are project units; `undefined` means the table has no such column for this family, never "zero". A product sold in several finishes is several records, one per model number, because that is where they differ: a stainless tie can carry its own load table. They share `product`, and their dimensions. #### Properties [#properties-4] | Property | Type | Description | | ------ | ------ | ------ | | `bearing?` | `number` | Catalog B: seat depth (how far the carried member bears in). | | `defaultSchedule?` | `string` | Which of `schedules` applies when an element names none. | | `diameter?` | `number` | A bolt's diameter. | | `embedment?` | `number` | Catalog le: how far a cast-in part reaches below the top of the concrete. | | `family` | [`ConnectorFamily`](https://docs.bear.build/docs/bear/catalog/types.md#connectorfamily) | - | | `finish` | `"G90"` \| `"grayPaint"` \| `"uncoated"` \| `"ZMAX"` \| `"HDG"` \| `"stainless"` | Coating or material. | | `gauge?` | `number` | Sheet steel gauge. | | `height?` | `number` | Catalog H: overall height. | | `length?` | `number` | Catalog L: length, for angles, bases and anchor bolts. | | `loadTables` | readonly `string`[] | Catalog pages holding this series' allowable-load tables. | | `madeToOrder?` | [`MadeToOrder`](https://docs.bear.build/docs/bear/catalog/types.md#madetoorder) | The dimensions the buyer specifies when ordering, each with the range it is made in. A dimension here has no published value: a girder hanger has no `height` until one is ordered with `simpson.order`. | | `memberSize?` | `string` | Nominal member the model is sized for, as published ("2x8", "4x4"). | | `model` | `string` | Model number as ordered, finish included, e.g. "LUS28Z". | | `packaging?` | `number` | Units per carton. | | `postWidth?` | `number` | Catalog W2: a cap's column-strap width, where the table prints one. | | `product` | `string` | The product a designer specs, e.g. "LUS28": the model number of its plainest finish, which is the one ordered when no finish is named. | | `schedules?` | `Readonly`\<`Record`\<`string`, [`ConnectorSchedule`](https://docs.bear.build/docs/bear/blueprints/connectors/schedules.md#connectorschedule)\>\> | Fastener options and their allowable loads, by schedule name. Transcribed from `loadTables`; absent until someone has done that for this model. | | `series` | `string` | The series the model belongs to, e.g. "LUS". | | `solid?` | [`ConnectorSolid`](https://docs.bear.build/docs/bear/catalog/types.md#connectorsolid) | The manufacturer's solid, when they publish one for this model. | | `url` | `string` | Canonical product page. | | `width?` | `number` | Catalog W: seat/base width. | *** ### ConnectorSolid [#connectorsolid] Defined in: [bear/catalog/types.ts:66](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/types.ts#L66) The manufacturer's own solid for a model, where they publish one. `asset` names the shape rather than the model, because one piece of steel is stamped as several model numbers (a finish is a coating, not a shape). `bounds` is that shape's box in the part's local frame, so a part knows its size without waiting on the mesh: `extents` is read during `collect()` and the mesh arrives later, when geometry is built. Both are in the frame the part's archetype fixes. For a hanger that is checked, model by model, when the catalog is generated. #### Properties [#properties-5] | Property | Type | Description | | ------ | ------ | ------ | | `asset` | `string` | Shape name, e.g. "LUS28". | | `bounds` | [`Box`](https://docs.bear.build/docs/bear/geometry/types.md#box) | The solid's box in the part's local frame, project units. | | `catalog` | `string` | The catalog that published it, by its [ConnectorCatalog.id](https://docs.bear.build/docs/bear/catalog/types.md#property-id). Two manufacturers can stamp the same model number, and nothing that loads a mesh should have to know one vendor's name to find another's. | | `hash` | `string` | The mesh's content hash, which is half of where it is published. The pair IS the version record, the way a mount's uri is: a mesh that changes is published beside the old one rather than over it, so a record can never point at bytes that were re-cut after its `bounds` were measured. There is nothing to invalidate and nothing to bump. | *** ### FitResult [#fitresult] Defined in: [bear/catalog/types.ts:241](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/types.ts#L241) Whether a connector physically suits the members, and why not. #### Properties [#properties-6] | Property | Type | Description | | ------ | ------ | ------ | | `ok` | `boolean` | - | | `reason?` | `string` | Every violated rule, joined; absent when `ok`. | *** ### HangerMembers [#hangermembers] Defined in: [bear/catalog/types.ts:194](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/types.ts#L194) The two members a hanger joins, by the sections their author states. A box does not say which of its sides is a member's depth, so nothing here is measured off one. #### Extended by [#extended-by-1] - [`HangerSelectionQuery`](https://docs.bear.build/docs/bear/catalog/types.md#hangerselectionquery) #### Properties [#properties-7] | Property | Type | Description | | ------ | ------ | ------ | | `carried` | `object` | The member the hanger seats. | | `carried.depth` | `number` | - | | `carried.width` | `number` | - | | `carrying` | `object` | The member the hanger fastens to (header, ledger, rim, beam). | | `carrying.depth` | `number` | - | | `carrying.width?` | `number` | - | *** ### HangerSelectionQuery [#hangerselectionquery] Defined in: [bear/catalog/types.ts:212](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/types.ts#L212) What a model needs a hanger for: the two members and, optionally, the load. `finish` picks among the products sold in it; omitted, each product is its plainest finish. #### Extends [#extends-1] - [`HangerMembers`](https://docs.bear.build/docs/bear/catalog/types.md#hangermembers) - [`ConnectorOptions`](https://docs.bear.build/docs/bear/catalog/types.md#connectoroptions) #### Properties [#properties-8] | Property | Type | Description | Inherited from | | ------ | ------ | ------ | ------ | | `carried` | `object` | The member the hanger seats. | [`HangerMembers`](https://docs.bear.build/docs/bear/catalog/types.md#hangermembers).[`carried`](https://docs.bear.build/docs/bear/catalog/types.md#property-carried) | | `carried.depth` | `number` | - | - | | `carried.width` | `number` | - | - | | `carrying` | `object` | The member the hanger fastens to (header, ledger, rim, beam). | [`HangerMembers`](https://docs.bear.build/docs/bear/catalog/types.md#hangermembers).[`carrying`](https://docs.bear.build/docs/bear/catalog/types.md#property-carrying) | | `carrying.depth` | `number` | - | - | | `carrying.width?` | `number` | - | - | | `demand?` | [`ConnectorLoadDemand`](https://docs.bear.build/docs/bear/catalog/types.md#connectorloaddemand) | Allowable loads the choice must meet, in lb. | - | | `finish?` | `"G90"` \| `"grayPaint"` \| `"uncoated"` \| `"ZMAX"` \| `"HDG"` \| `"stainless"` | - | [`ConnectorOptions`](https://docs.bear.build/docs/bear/catalog/types.md#connectoroptions).[`finish`](https://docs.bear.build/docs/bear/catalog/types.md#property-finish-1) | | `type` | `"faceMount"` \| `"topFlange"` | - | - | *** ### HoldownSelectionQuery [#holdownselectionquery] Defined in: [bear/catalog/types.ts:230](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/types.ts#L230) What a holdown is chosen by: the load first, since every holdown fits some post, and then the face it has to fit on. #### Extends [#extends-2] - [`ConnectorOptions`](https://docs.bear.build/docs/bear/catalog/types.md#connectoroptions) #### Properties [#properties-9] | Property | Type | Description | Inherited from | | ------ | ------ | ------ | ------ | | `finish?` | `"G90"` \| `"grayPaint"` \| `"uncoated"` \| `"ZMAX"` \| `"HDG"` \| `"stainless"` | - | [`ConnectorOptions`](https://docs.bear.build/docs/bear/catalog/types.md#connectoroptions).[`finish`](https://docs.bear.build/docs/bear/catalog/types.md#property-finish-1) | | `post` | `object` | The post face it lies on, in project units: `width` across it and `thickness` behind it, which the fasteners must not drive through. | - | | `post.thickness` | `number` | - | - | | `post.width` | `number` | - | - | | `uplift` | `number` | Allowable uplift in lb, which the model's default fastening must carry. | - | *** ### MadeToOrder [#madetoorder] Defined in: [bear/catalog/types.ts:93](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/types.ts#L93) What a made-to-order model leaves to the order, by dimension. Stock is the absence of it; each key is one more thing a purchase order states. #### Properties [#properties-10] | Property | Type | Description | | ------ | ------ | ------ | | `height` | `object` | A girder hanger's H, made to the girder's depth. | | `height.max` | `number` | - | | `height.min` | `number` | - | ## Type Aliases [#type-aliases] ### ConnectorFamily [#connectorfamily] ```ts type ConnectorFamily = | "faceMountHanger" | "topFlangeHanger" | "angle" | "postBase" | "columnCap" | "endColumnCap" | "holdown" | "tie" | "anchorBolt" | "mudsillAnchor"; ``` Defined in: [bear/catalog/types.ts:99](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/types.ts#L99) The product families a catalog partitions its records into. *** ### ConnectorPart [#connectorpart] ```ts type ConnectorPart = | JoistHangerPart | FramingAnglePart | PostBasePart | ColumnCapPart | AnchorBoltPart | MudsillAnchorPart | HoldownPart; ``` Defined in: [bear/catalog/types.ts:45](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/types.ts#L45) What a catalog lookup returns: one member per archetype in `blueprints/connectors`. A family with no archetype is data, not a part, and a lookup for one says so. # CrawlTunnel (https://docs.bear.build/docs/bear/catalog/ultraplay/CrawlTunnel) Import from `bear/catalog/ultraplay/CrawlTunnel`. ## Variables [#variables] ### default [#default] ```ts default: PartDef<{ label?: string; }, string, string>; ``` Defined in: [bear/catalog/ultraplay/CrawlTunnel.ts:26](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/ultraplay/CrawlTunnel.ts#L26) Whole purchased kit, with the tube visualized along Y and centered at the origin. *** ### specification [#specification] ```ts const specification: object; ``` Defined in: [bear/catalog/ultraplay/CrawlTunnel.ts:6](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/catalog/ultraplay/CrawlTunnel.ts#L6) #### Type Declaration [#type-declaration] | Name | Type | Default value | | ------ | ------ | ------ | | `checked` | `string` | `"2026-12-01"` | | `geometryAssumptions` | `string` | `"48 in tube length is a layout allowance. Included supports, footers and hardware await supplier geometry"` | | `includes` | `string` | `"Tube 02-07-0050; 2 support posts 02-07-0087; 4 footers G-01-08-0275; 14 bolts 33-06-0082 (5/16 x 1.5 in) and barrel nuts 33-01-0029; 4 bolts 33-06-0086 (3/8 x 1.5 in) and nuts 33-01-0018 (confirm locking detail)"` | | `manufacturer` | `string` | `"UltraPlay"` | | `material` | `string` | `"LLDPE, 29.5 in clear bore, 0.25 in nominal wall"` | | `model` | `string` | `"02-07-0057"` | | `mounting` | `string` | `"Select surface-spike or concrete option and surfacing height. Footing centers 46-13/16 x 32 in; 56-11/16 in is the diagonal, not tube length. Confirm color"` | | `source` | `string` | `"https://www.ultraplay.com/hubfs/Website%20Folder/Resource%20Files/Crawl-Tunnel-02-07-0057-Installation-Instructions.pdf?hsLang=en"` | # types (https://docs.bear.build/docs/bear/drawings/types) Import from `bear/drawings/types`. ## Interfaces [#interfaces] ### ComputedDrawingSheet [#computeddrawingsheet] Defined in: [bear/drawings/types.ts:512](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/drawings/types.ts#L512) #### Properties [#properties] | Property | Type | Description | | ------ | ------ | ------ | | `blocks` | [`ComputedSheetBlock`](https://docs.bear.build/docs/bear/drawings/types.md#computedsheetblock)[] | - | | `keynotes` | `object`[] | The keynotes this sheet's views use, in key order. | | `number` | `string` | - | | `title` | `string` | - | | `views` | [`ComputedDrawingView`](https://docs.bear.build/docs/bear/drawings/types.md#computeddrawingview)[] | - | *** ### ComputedDrawingView [#computeddrawingview] Defined in: [bear/drawings/types.ts:482](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/drawings/types.ts#L482) #### Properties [#properties-1] | Property | Type | Description | | ------ | ------ | ------ | | `annotations` | [`ResolvedAnnotation`](https://docs.bear.build/docs/bear/drawings/types.md#resolvedannotation)[] | - | | `ground` | `number` \| `null` | Where grade (the model's z = 0) runs across the view; null where up is not the model's up. | | `id?` | `string` | - | | `kind` | [`ViewKind`](https://docs.bear.build/docs/bear/drawings/types.md#viewkind) | - | | `label` | `string` | - | | `referencedFrom` | [`ViewRef`](https://docs.bear.build/docs/bear/drawings/types.md#viewref)[] | The views whose callouts point at this one. | | `result` | [`SectionViewResult`](https://docs.bear.build/docs/bear/drawings/types.md#sectionviewresult) | - | | `scale?` | `string` | - | | `subtitle?` | `string` | - | | `view` | `Omit`\<[`ViewDefinition`](https://docs.bear.build/docs/bear/drawings/types.md#viewdefinition), `"query"`\> | - | *** ### CutPlane [#cutplane] Defined in: [bear/drawings/types.ts:65](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/drawings/types.ts#L65) A cut plane defined by an origin point and a normal direction. #### Properties [#properties-2] | Property | Type | Description | | ------ | ------ | ------ | | `normal` | \[`number`, `number`, `number`\] | Normal direction of the plane — points toward the camera (away from the geometry being viewed). The "front" side of the plane is the side the normal points to; geometry on the "back" side is what gets projected. | | `origin` | \[`number`, `number`, `number`\] | A point on the plane, in project units. | *** ### DrawingFirm [#drawingfirm] Defined in: [bear/drawings/types.ts:372](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/drawings/types.ts#L372) The office that issues the set. #### Properties [#properties-3] | Property | Type | Description | | ------ | ------ | ------ | | `lines?` | `string`[] | Address and contact lines. | | `name` | `string` | - | *** ### DrawingHints [#drawinghints] Defined in: [bear/drawings/types.ts:32](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/drawings/types.ts#L32) Drawing metadata provided by a part definition. Controls how the part appears when rendered in 2D drawings. #### Properties [#properties-4] | Property | Type | Description | | ------ | ------ | ------ | | `hatch?` | [`HatchPattern`](https://docs.bear.build/docs/bear/drawings/types.md#hatchpattern) | Hatching pattern when this part is cut through in section. | | `hidden?` | `boolean` | If true, this part is hidden in drawings (e.g., internal fasteners). | | `keynote?` | `object` | The keynote that names this part on a drawing, e.g. `{ key: "06 11 00.B", text: "2X6 WOOD STUDS" }`. A set can override the text. | | `keynote.key` | `string` | - | | `keynote.text` | `string` | - | | `openInPlan?` | `boolean` | A door leaf: plans draw it standing open from its door's handing, so its closed solid is left out of plans (and kept in sections and elevations). | | `seamless?` | `boolean` | A sheet good whose joints are not drawn: what is seen of it and its siblings of the same kind is drawn as one surface (sheathing, gypsum). | | `symbol?` | (`node`) => \[`number`, `number`\][][] | Custom 2D symbol to use instead of slicing the manifold. Useful for parts like windows or doors that have standard plan symbols. Returns polygons in the cut plane's local coordinate space. | *** ### DrawingRevision [#drawingrevision] Defined in: [bear/drawings/types.ts:362](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/drawings/types.ts#L362) One row of a title block's revision table. #### Properties [#properties-5] | Property | Type | Description | | ------ | ------ | ------ | | `approved?` | `string` | Initials of whoever approved the revision. | | `date` | `string` | - | | `description` | `string` | - | | `rev` | `string` | Revision mark (e.g., "1", "A"). | *** ### DrawingSetDef [#drawingsetdef] Defined in: [bear/drawings/types.ts:382](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/drawings/types.ts#L382) Complete drawing set definition. This is the expected default export of a project's `drawings.tsx` file. #### Properties [#properties-6] | Property | Type | Description | | ------ | ------ | ------ | | `address?` | `string` | Project address / location. | | `checkedBy?` | `string` | - | | `client?` | `string` | Client / owner. | | `date?` | `string` | Issue date. Defaults to today. | | `drawnBy?` | `string` | Defaults to "BEAR". | | `firm?` | [`DrawingFirm`](https://docs.bear.build/docs/bear/drawings/types.md#drawingfirm) | The architect of record. Defaults to Bear. | | `keynotes?` | `Record`\<`string`, `string`\> | Keynote text by key. Adds keys, and overrides the text of keynotes the model's parts declare. | | `project?` | `string` | Project name shown on title blocks. | | `revisions?` | [`DrawingRevision`](https://docs.bear.build/docs/bear/drawings/types.md#drawingrevision)[] | - | | `scale?` | `string` | Default drawing scale for views, e.g. "1/4in". Omit to fit each view at the largest standard scale. | | `sheets` | [`DrawingSheetDef`](https://docs.bear.build/docs/bear/drawings/types.md#drawingsheetdef)[] | The sheets in the drawing set. | | `size?` | \| `"ANSI B"` \| `"ARCH A"` \| `"ARCH B"` \| `"ARCH C"` \| `"ARCH D"` \| `"ARCH E"` \| `"ARCH E1"` | Sheet size name. Defaults to "ARCH D". | | `status?` | `string` | Status disclaimer. Defaults to "PRELIMINARY: NOT FOR CONSTRUCTION". | *** ### DrawingSheetDef [#drawingsheetdef] Defined in: [bear/drawings/types.ts:350](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/drawings/types.ts#L350) A drawing sheet — one page in the drawing set. Contains one or more views arranged on a sheet. #### Properties [#properties-7] | Property | Type | Description | | ------ | ------ | ------ | | `blocks?` | [`SheetBlock`](https://docs.bear.build/docs/bear/drawings/types.md#sheetblock)[] | Text blocks for the notes column. Keynotes used on the sheet are listed automatically. | | `number` | `string` | Sheet number (e.g., "A1.01"). | | `title` | `string` | Sheet title (e.g., "FLOOR PLANS"). | | `views` | [`DrawingViewDef`](https://docs.bear.build/docs/bear/drawings/types.md#drawingviewdef)[] | Views on this sheet. | *** ### DrawingViewDef [#drawingviewdef] Defined in: [bear/drawings/types.ts:310](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/drawings/types.ts#L310) A single view within a drawing sheet. Defines what to show and how to label it. #### Properties [#properties-8] | Property | Type | Description | | ------ | ------ | ------ | | `annotations?` | [`Annotation`](https://docs.bear.build/docs/bear/drawings/types.md#annotation)[] | - | | `id?` | `string` | Names the view so callouts elsewhere in the set can point at it. | | `label` | `string` | Label for this view (e.g., "First Floor Plan"). | | `scale?` | `string` | Drawing scale for this view, e.g. "1-1/2in" for a detail. Overrides the set's. | | `subtitle?` | `string` | A second line under the title, e.g. "Below meeting rails". | | `view` | `Omit`\<[`ViewDefinition`](https://docs.bear.build/docs/bear/drawings/types.md#viewdefinition), `"query"`\> | The view definition (cut plane + depth range). | *** ### Finding [#finding] Defined in: [bear/drawings/types.ts:522](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/drawings/types.ts#L522) Something a plan checker would ask about the set, found by `checkDrawingSet`. #### Properties [#properties-9] | Property | Type | Description | | ------ | ------ | ------ | | `message` | `string` | - | | `severity` | `"error"` \| `"warning"` | An error is missing or wrong; a warning is what a reviewer would likely ask for. | | `sheet?` | `string` | The sheet it concerns, when it concerns one. | *** ### SectionViewResult [#sectionviewresult] Defined in: [bear/drawings/types.ts:136](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/drawings/types.ts#L136) Result of computing a section view. #### Properties [#properties-10] | Property | Type | Description | | ------ | ------ | ------ | | `bounds` | `object` | Bounding rectangle of all polygons in the view's local 2D space. | | `bounds.maxX` | `number` | - | | `bounds.maxY` | `number` | - | | `bounds.minX` | `number` | - | | `bounds.minY` | `number` | - | | `overhead` | \[`number`, `number`\][][] | In a plan, what is above the cut and reaches past what the plan draws (an eave, a cantilever): drawn dashed, as overhead. | | `polygons` | [`ViewPolygonSet`](https://docs.bear.build/docs/bear/drawings/types.md#viewpolygonset)[] | Polygon sets, one per contributing tree node. | | `silhouette` | \[`number`, `number`\][][] | The outline of everything drawn: an elevation is profiled with it. | | `solid` | \[`number`, `number`\][][] | Everything cut but glass, merged with wall cavities filled: the poché a small-scale view draws, so a wall reads as a solid, not a row of studs. | *** ### SheetSize [#sheetsize] Defined in: [bear/drawings/types.ts:540](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/drawings/types.ts#L540) #### Properties [#properties-11] | Property | Type | Description | | ------ | ------ | ------ | | `height` | `number` | Height in project units (32nds of an inch) | | `name` | `string` | Sheet name (e.g., "ARCH D") | | `width` | `number` | Width in project units (32nds of an inch) | *** ### ViewDefinition [#viewdefinition] Defined in: [bear/drawings/types.ts:85](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/drawings/types.ts#L85) Defines a 2D view of the 3D model. A view is defined by a cutting plane and an optional depth range. Geometry at the cut plane produces "cut" polygons (heavy lines, hatching). Geometry beyond the cut plane (up to depthRange) produces "visible" polygons (medium lines, no hatching). #### Properties [#properties-12] | Property | Type | Description | | ------ | ------ | ------ | | `crop?` | `object` | Crop the view to a window centered on the cut plane's origin, in project units along the view's right and up axes: how a detail is drawn. | | `crop.height` | `number` | - | | `crop.width` | `number` | - | | `cut?` | `boolean` | False for a pure projection (an elevation): nothing is sliced and geometry on both sides of the plane is projected. Defaults to true. | | `cutPlane` | [`CutPlane`](https://docs.bear.build/docs/bear/drawings/types.md#cutplane) | The cutting plane. | | `depthRange?` | `number` | How far beyond the cut plane to include visible geometry, in project units. If omitted, all geometry beyond the cut is included. | | `query?` | [`BearQuery`](https://docs.bear.build/docs/bear/engine/query.md#bearquery)\<[`TreeNode`](https://docs.bear.build/docs/bear/engine/types.md#treenode)\> | Optional query to limit which tree nodes are included. | *** ### ViewPolygonSet [#viewpolygonset] Defined in: [bear/drawings/types.ts:112](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/drawings/types.ts#L112) 2D polygon data extracted from a single tree node. #### Properties [#properties-13] | Property | Type | Description | | ------ | ------ | ------ | | `cut` | \[`number`, `number`\][][] | Polygons at the cut plane — heavy lines, hatching applied. | | `depth` | `number` | Distance beyond the cut plane to this node's nearest point, in project units. | | `division` | `string` | CSI MasterFormat division code from the part definition. | | `drawingHints` | [`DrawingHints`](https://docs.bear.build/docs/bear/drawings/types.md#drawinghints) | Drawing hints from the part's drawing() callback or defaults. | | `edges` | \[`number`, `number`\][][] | Creases inside the outline that face the viewer (a sash in its frame, a molding's profile), clipped to what is seen: two-point segments. | | `nodeId` | `string` | Fully qualified name of the source TreeNode. | | `visible` | \[`number`, `number`\][][] | - | *** ### ViewRef [#viewref] Defined in: [bear/drawings/types.ts:420](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/drawings/types.ts#L420) Where a view sits in the set: its sheet and its number on that sheet. #### Properties [#properties-14] | Property | Type | | ------ | ------ | | `number` | `number` | | `sheet` | `string` | ## Type Aliases [#type-aliases] ### Anchor [#anchor] ```ts type Anchor = ModelPoint | string; ``` Defined in: [bear/drawings/types.ts:252](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/drawings/types.ts#L252) Where an annotation points: a model point, or a node by its fqn (or the tail of it after a dot, e.g. "W-1.Sheathing.OSB-1"; it must name one member). A node anchors at the middle of its largest outline in the view. *** ### Annotation [#annotation] ```ts type Annotation = | { at: Anchor; key?: string; kind: "keynote"; } | { at: Anchor; kind: "note"; text: string; } | { at: ModelPoint; kind: "label"; subtext?: string; text: string; } | { kind: "dimension"; offset: number; points: ModelPoint[]; } | { kind: "level"; label: string; z: number; } | { kind: "callout"; view: string; } | { kind: "tags"; of: "openings" | "walls"; } | { corners: ModelPoint[]; kind: "property"; setbacks?: number[]; } | { kind: "members"; } | { kind: "dimensions"; of: "openings"; offset: number; } | { across: [ModelPoint, ModelPoint]; kind: "dimensions"; }; ``` Defined in: [bear/drawings/types.ts:258](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/drawings/types.ts#L258) Annotations are authored in model coordinates and projected into each view, so they follow the model as it changes. Text is laid out by the sheet. #### Union Members [#union-members] ##### Type Literal [#type-literal] ```ts { at: Anchor; key?: string; kind: "keynote"; } ``` A keynote tag with a leader. `key` defaults to the anchored node's own keynote. *** ##### Type Literal [#type-literal-1] ```ts { at: Anchor; kind: "note"; text: string; } ``` A note lettered beside the view with a leader to `at`. *** ##### Type Literal [#type-literal-2] ```ts { at: ModelPoint; kind: "label"; subtext?: string; text: string; } ``` A label lettered on the drawing itself, such as a room name. *** ##### Type Literal [#type-literal-3] ```ts { kind: "dimension"; offset: number; points: ModelPoint[]; } ``` A dimension string through `points`, measured along the line from the first to the last and drawn `offset` (real length) to its left. *** ##### Type Literal [#type-literal-4] ```ts { kind: "level"; label: string; z: number; } ``` A level datum at height `z`, for elevations and sections. *** ##### Type Literal [#type-literal-5] ```ts { kind: "callout"; view: string; } ``` The mark of another view (section, detail or elevation) by its `id`. *** ##### Type Literal [#type-literal-6] ```ts { kind: "tags"; of: "openings" | "walls"; } ``` Tag what the plan cuts: `"openings"` letters each door and window's mark (`D101`, `W101`), `"walls"` each wall's type number (see the walls schedule). *** ##### Type Literal [#type-literal-7] ```ts { corners: ModelPoint[]; kind: "property"; setbacks?: number[]; } ``` The lot, from the survey: its corners in order around it, in model coordinates (north +y), and a setback per line (corner i to i + 1). A site plan letters each line's bearing and distance, draws the setback line, and dimensions the building to each property line. *** ##### Type Literal [#type-literal-8] ```ts { kind: "members"; } ``` Call out each field of like members the plan sees (joists, rafters): the member and its spacing over a line from support to support. *** ##### Type Literal [#type-literal-9] ```ts { kind: "dimensions"; of: "openings"; offset: number; } ``` Dimension every wall the plan cuts openings in: a string from end to end of its framing through each opening's centerline, `offset` outside it. *** ##### Type Literal [#type-literal-10] ```ts { across: [ModelPoint, ModelPoint]; kind: "dimensions"; } ``` A string along the line from one point to the other, through every face of the cut it crosses: interior dimensions, wall to wall, on a plan or section. *** ### ComputedDrawingSet [#computeddrawingset] ```ts type ComputedDrawingSet = Omit & object; ``` Defined in: [bear/drawings/types.ts:530](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/drawings/types.ts#L530) #### Type Declaration [#type-declaration] | Name | Type | Description | | ------ | ------ | ------ | | `findings` | [`Finding`](https://docs.bear.build/docs/bear/drawings/types.md#finding)[] | What the set still lacks for permit and field (see `drawings/check.ts`). | | `sheets` | [`ComputedDrawingSheet`](https://docs.bear.build/docs/bear/drawings/types.md#computeddrawingsheet)[] | - | *** ### ComputedSheetBlock [#computedsheetblock] ```ts type ComputedSheetBlock = | Exclude | { kind: "index"; sheets: object[]; } | { columns: string[]; kind: "table"; of: Extract["of"]; rows: string[][]; title: string; }; ``` Defined in: [bear/drawings/types.ts:501](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/drawings/types.ts#L501) A sheet block as the sheet sets it, holding everything it letters: schedules become tables and the index lists the set's sheets. *** ### HatchPattern [#hatchpattern] ```ts type HatchPattern = | "wood" | "concrete" | "steel" | "insulation" | "gypsum" | "earth" | "glass" | "none"; ``` Defined in: [bear/drawings/types.ts:18](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/drawings/types.ts#L18) Standard architectural hatching patterns for section cuts. *** ### ModelPoint [#modelpoint] ```ts type ModelPoint = [number, number, number]; ``` Defined in: [bear/drawings/types.ts:245](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/drawings/types.ts#L245) A point in the model, in project units. *** ### ResolvedAnnotation [#resolvedannotation] ```ts type ResolvedAnnotation = | { anchor: ViewPoint; key: string; kind: "keynote"; } | { anchor: ViewPoint; kind: "note"; text: string; } | { at: ViewPoint; kind: "label"; subtext?: string; text: string; } | { kind: "dimension"; labels: string[]; line: ViewPoint[]; points: ViewPoint[]; } | { elevation: string; kind: "level"; label: string; y: number; } | { from: ViewPoint; kind: "section"; look: ViewPoint; target: ViewRef; to: ViewPoint; } | { center: ViewPoint; kind: "detail"; radius: [number, number]; target: ViewRef; } | { at: ViewPoint; kind: "elevation"; look: ViewPoint; target: ViewRef; } | { from: ViewPoint; kind: "glazing"; to: ViewPoint; } | { hinge: ViewPoint; kind: "swing"; open: ViewPoint; strike: ViewPoint; } | { corners: ViewPoint[]; kind: "property"; legs: string[]; setback: ViewPoint[] | null; } | { from: ViewPoint; kind: "span"; text: string; to: ViewPoint; } | { at: ViewPoint; kind: "tag"; out: ViewPoint; shape: "window" | "door" | "wall"; text: string; }; ``` Defined in: [bear/drawings/types.ts:426](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/drawings/types.ts#L426) An annotation projected into its view, ready to typeset. #### Union Members [#union-members-1] ##### Type Literal [#type-literal-11] ```ts { anchor: ViewPoint; key: string; kind: "keynote"; } ``` *** ##### Type Literal [#type-literal-12] ```ts { anchor: ViewPoint; kind: "note"; text: string; } ``` *** ##### Type Literal [#type-literal-13] ```ts { at: ViewPoint; kind: "label"; subtext?: string; text: string; } ``` *** ##### Type Literal [#type-literal-14] ```ts { kind: "dimension"; labels: string[]; line: ViewPoint[]; points: ViewPoint[]; } ``` | Name | Type | Description | | ------ | ------ | ------ | | `kind` | `"dimension"` | - | | `labels` | `string`[] | One per span, e.g. `12'-6"`. | | `line` | [`ViewPoint`](https://docs.bear.build/docs/bear/drawings/types.md#viewpoint)[] | Where each point lands on the dimension line. | | `points` | [`ViewPoint`](https://docs.bear.build/docs/bear/drawings/types.md#viewpoint)[] | Where each point's extension line starts. | *** ##### Type Literal [#type-literal-15] ```ts { elevation: string; kind: "level"; label: string; y: number; } ``` *** ##### Type Literal [#type-literal-16] ```ts { from: ViewPoint; kind: "section"; look: ViewPoint; target: ViewRef; to: ViewPoint; } ``` A cut line through this view with bubbles at both ends, looking along `look`. *** ##### Type Literal [#type-literal-17] ```ts { center: ViewPoint; kind: "detail"; radius: [number, number]; target: ViewRef; } ``` A boundary around the part of this view that a detail enlarges. *** ##### Type Literal [#type-literal-18] ```ts { at: ViewPoint; kind: "elevation"; look: ViewPoint; target: ViewRef; } ``` A marker outside this view pointing at the face an elevation shows. *** ##### Type Literal [#type-literal-19] ```ts { from: ViewPoint; kind: "glazing"; to: ViewPoint; } ``` A window's glazing across its rough opening, on the wall's line. *** ##### Type Literal [#type-literal-20] ```ts { hinge: ViewPoint; kind: "swing"; open: ViewPoint; strike: ViewPoint; } ``` A door in plan: its leaf from the hinge, standing open, and the arc it swings back to the strike jamb. *** ##### Type Literal [#type-literal-21] ```ts { corners: ViewPoint[]; kind: "property"; legs: string[]; setback: ViewPoint[] | null; } ``` Property lines lettered with bearing and distance, and the setback line inside them. *** ##### Type Literal [#type-literal-22] ```ts { from: ViewPoint; kind: "span"; text: string; to: ViewPoint; } ``` A field of members: its span, end to end, under the member and its spacing. *** ##### Type Literal [#type-literal-23] ```ts { at: ViewPoint; kind: "tag"; out: ViewPoint; shape: "window" | "door" | "wall"; text: string; } ``` A mark: a hexagon for a window, an ellipse for a door, a diamond for a wall type. | Name | Type | Description | | ------ | ------ | ------ | | `at` | [`ViewPoint`](https://docs.bear.build/docs/bear/drawings/types.md#viewpoint) | - | | `kind` | `"tag"` | - | | `out` | [`ViewPoint`](https://docs.bear.build/docs/bear/drawings/types.md#viewpoint) | Away from the wall, a unit vector: the sheet sets the tag out that way (an opening's to the exterior, a wall type's to its interior). | | `shape` | `"window"` \| `"door"` \| `"wall"` | - | | `text` | `string` | - | *** ### SheetBlock [#sheetblock] ```ts type SheetBlock = | { items: string[]; kind: "notes"; title: string; } | { items: [string, string][]; kind: "abbreviations"; } | { kind: "index"; } | { kind: "symbols"; } | { items: [string, string][]; kind: "data"; title: string; } | { kind: "schedule"; of: "openings" | "areas" | "walls"; }; ``` Defined in: [bear/drawings/types.ts:325](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/drawings/types.ts#L325) A block of text set in the sheet's notes column. #### Union Members [#union-members-2] ##### Type Literal [#type-literal-24] ```ts { items: string[]; kind: "notes"; title: string; } ``` Numbered notes under a heading, e.g. "General notes". *** ##### Type Literal [#type-literal-25] ```ts { items: [string, string][]; kind: "abbreviations"; } ``` Abbreviations as [abbreviation, meaning] pairs. *** ##### Type Literal [#type-literal-26] ```ts { kind: "index"; } ``` The set's sheet index, generated from the sheets. *** ##### Type Literal [#type-literal-27] ```ts { kind: "symbols"; } ``` The graphic symbols used in the set. *** ##### Type Literal [#type-literal-28] ```ts { items: [string, string][]; kind: "data"; title: string; } ``` Project and code data as [item, value] pairs: occupancy, construction type, zoning, codes, what a plan checker reads first. *** ##### Type Literal [#type-literal-29] ```ts { kind: "schedule"; of: "openings" | "areas" | "walls"; } ``` A schedule drawn from the model: `"openings"` lists every door and window by mark, `"areas"` each level's gross floor area, `"walls"` each wall type's construction. *** ### SheetSizeName [#sheetsizename] ```ts type SheetSizeName = keyof typeof SHEET_SIZES; ``` Defined in: [bear/drawings/types.ts:588](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/drawings/types.ts#L588) *** ### ViewKind [#viewkind] ```ts type ViewKind = "plan" | "section" | "elevation" | "detail"; ``` Defined in: [bear/drawings/types.ts:480](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/drawings/types.ts#L480) *** ### ViewPoint [#viewpoint] ```ts type ViewPoint = [number, number]; ``` Defined in: [bear/drawings/types.ts:417](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/drawings/types.ts#L417) A point in a view's 2D space: project units, x right, y up. ## Variables [#variables] ### SHEET\_SIZES [#sheet_sizes] ```ts const SHEET_SIZES: object; ``` Defined in: [bear/drawings/types.ts:550](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/drawings/types.ts#L550) Sheets are landscape, as architectural sets are bound and read. #### Type Declaration [#type-declaration-1] | Name | Type | Default value | | ------ | ------ | ------ | | `ANSI B` | `object` | - | | `ANSI B.height` | `number` | - | | `ANSI B.name` | `"ANSI B"` | `"ANSI B"` | | `ANSI B.width` | `number` | - | | `ARCH A` | `object` | - | | `ARCH A.height` | `number` | - | | `ARCH A.name` | `"ARCH A"` | `"ARCH A"` | | `ARCH A.width` | `number` | - | | `ARCH B` | `object` | - | | `ARCH B.height` | `number` | - | | `ARCH B.name` | `"ARCH B"` | `"ARCH B"` | | `ARCH B.width` | `number` | - | | `ARCH C` | `object` | - | | `ARCH C.height` | `number` | - | | `ARCH C.name` | `"ARCH C"` | `"ARCH C"` | | `ARCH C.width` | `number` | - | | `ARCH D` | `object` | - | | `ARCH D.height` | `number` | - | | `ARCH D.name` | `"ARCH D"` | `"ARCH D"` | | `ARCH D.width` | `number` | - | | `ARCH E` | `object` | - | | `ARCH E.height` | `number` | - | | `ARCH E.name` | `"ARCH E"` | `"ARCH E"` | | `ARCH E.width` | `number` | - | | `ARCH E1` | `object` | - | | `ARCH E1.height` | `number` | - | | `ARCH E1.name` | `"ARCH E1"` | `"ARCH E1"` | | `ARCH E1.width` | `number` | - | ## Functions [#functions] ### detailView() [#detailview] ```ts function detailView( origin, normal, size, depthRange? ): ViewDefinition; ``` Defined in: [bear/drawings/types.ts:227](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/drawings/types.ts#L227) Create a detail view: a section cut cropped to a window around `origin`, drawn at a large scale. #### Parameters [#parameters] | Parameter | Type | Description | | ------ | ------ | ------ | | `origin` | \[`number`, `number`, `number`\] | Center of the detail, on the cut plane | | `normal` | \[`number`, `number`, `number`\] | Normal of the cut plane (points toward camera) | | `size` | \[`number`, `number`\] | Window width and height along the view's right and up axes | | `depthRange?` | `number` | How far beyond the cut to show. Defaults to a shallow 1ft. | #### Returns [#returns] [`ViewDefinition`](https://docs.bear.build/docs/bear/drawings/types.md#viewdefinition) *** ### elevationView() [#elevationview] ```ts function elevationView(direction): ViewDefinition; ``` Defined in: [bear/drawings/types.ts:185](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/drawings/types.ts#L185) Create an elevation view definition — vertical projection from a compass direction. #### Parameters [#parameters-1] | Parameter | Type | Description | | ------ | ------ | ------ | | `direction` | `"north"` \| `"south"` \| `"east"` \| `"west"` | Which face of the building to view | #### Returns [#returns-1] [`ViewDefinition`](https://docs.bear.build/docs/bear/drawings/types.md#viewdefinition) *** ### parseDrawingScale() [#parsedrawingscale] ```ts function parseDrawingScale(scale): number; ``` Defined in: [bear/drawings/types.ts:601](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/drawings/types.ts#L601) Parse a drawing scale string like "1/4in" (meaning 1/4" = 1'-0") into a numeric scale factor (paper units / real units). #### Parameters [#parameters-2] | Parameter | Type | Description | | ------ | ------ | ------ | | `scale` | `string` | Scale string, e.g. "1/4in", "1/8in", "1in", "3/8in" | #### Returns [#returns-2] `number` Scale factor (e.g., 1/48 for "1/4in") *** ### planView() [#planview] ```ts function planView(elevation, depthRange?): ViewDefinition; ``` Defined in: [bear/drawings/types.ts:170](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/drawings/types.ts#L170) Create a plan view definition — horizontal cut looking down. #### Parameters [#parameters-3] | Parameter | Type | Description | | ------ | ------ | ------ | | `elevation` | `number` | Z height of the cut in project units | | `depthRange?` | `number` | How far below the cut to include (project units). Omit for all. | #### Returns [#returns-3] [`ViewDefinition`](https://docs.bear.build/docs/bear/drawings/types.md#viewdefinition) *** ### sectionView() [#sectionview] ```ts function sectionView( origin, normal, depthRange? ): ViewDefinition; ``` Defined in: [bear/drawings/types.ts:207](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/drawings/types.ts#L207) Create a section view definition — arbitrary cut plane with camera direction. #### Parameters [#parameters-4] | Parameter | Type | Description | | ------ | ------ | ------ | | `origin` | \[`number`, `number`, `number`\] | Point on the cut plane | | `normal` | \[`number`, `number`, `number`\] | Normal of the cut plane (points toward camera) | | `depthRange?` | `number` | How far beyond the cut to show | #### Returns [#returns-4] [`ViewDefinition`](https://docs.bear.build/docs/bear/drawings/types.md#viewdefinition) # Assembly (https://docs.bear.build/docs/bear/engine/Assembly) Import from `bear/engine/Assembly`. ## Interfaces [#interfaces] ### AssemblyProps [#assemblyprops] Defined in: [bear/engine/Assembly.ts:7](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/Assembly.ts#L7) #### Extended by [#extended-by] - [`BuildingProps`](https://docs.bear.build/docs/bear/blueprints/Building.md#buildingprops) #### Indexable [#indexable] ```ts [key: string]: unknown ``` #### Properties [#properties] | Property | Type | Description | | ------ | ------ | ------ | | `context?` | [`ContextMap`](https://docs.bear.build/docs/bear/engine/types.md#contextmap) | - | | `hosts?` | [`HostedChildren`](https://docs.bear.build/docs/bear/engine/hosting.md#hostedchildren) | Typed declarations from descendants, used to build additional children. | | `label?` | `string` | - | | `name?` | `string` | - | | `refs?` | `Readonly`\<`Record`\<`string`, [`Surface`](https://docs.bear.build/docs/bear/geometry/shapes.md#surface)\>\> | Named reference planes this assembly publishes, in its local frame. | | `transform?` | [`TransformMatrix`](https://docs.bear.build/docs/bear/geometry/transform.md#transformmatrix) | This assembly's pose in its parent frame. | ## Variables [#variables] ### Assembly [#assembly] ```ts const Assembly: PartDef; ``` Defined in: [bear/engine/Assembly.ts:34](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/Assembly.ts#L34) Assembly — the generic host element for the Bear engine tree. Like `

` in React: it creates a node in the tree and stores whatever props you give it. Assembly functions (plain functions) are transparent — they don't create nodes. If you want a node, return an ``. Everything an assembly states about itself is a prop, decided in the function body from data: its pose (`transform`), the reference planes it publishes (`refs`), the context it provides. It spans its children. \ # System (https://docs.bear.build/docs/bear/engine/System) Import from `bear/engine/System`. ## Interfaces [#interfaces] ### SystemProps [#systemprops] Defined in: [bear/engine/System.tsx:7](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/System.tsx#L7) #### Properties [#properties] | Property | Type | Description | | ------ | ------ | ------ | | `children?` | \| [`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement)\<`object`\> \| [`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement)\<`object`\>[] | - | | `name` | `string` | The tag descendant edges inherit as `edge.system`. | ## Functions [#functions] ### System() [#system] ```ts function System(__namedParameters): BearElement; ``` Defined in: [bear/engine/System.tsx:20](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/System.tsx#L20) A system is the assembly + layer duo: an ordinary grouping assembly whose descendants' relationship edges inherit its name as `edge.system`. "DomesticCold" is then queryable both as a subtree (grouping, BOM) and as a subgraph (`q(...).system("DomesticCold")`, its `feeds` edges). No third grouping concept. #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `__namedParameters` | [`SystemProps`](https://docs.bear.build/docs/bear/engine/System.md#systemprops) | #### Returns [#returns] [`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement) # collection (https://docs.bear.build/docs/bear/engine/collection) Import from `bear/engine/collection`. ## Interfaces [#interfaces] ### Collected [#collected] Defined in: [bear/engine/collection.ts:64](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/collection.ts#L64) What collection produces: the finished tree and what was learned building it. #### Properties [#properties] | Property | Type | Description | | ------ | ------ | ------ | | `diagnostics` | readonly [`Diagnostic`](https://docs.bear.build/docs/bear/engine/types.md#diagnostic)[] | Placement findings. | | `elementMap` | `ReadonlyMap`\<[`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement)\<`object`\>, [`TreeNode`](https://docs.bear.build/docs/bear/engine/types.md#treenode)\> | Maps each BearElement (from JSX) to the node it produced. | | `instances` | readonly [`SolvableInstance`](https://docs.bear.build/docs/bear/engine/solvable.md#solvableinstance)[] | The solvable elements this pass registered, in collect order. | | `root` | [`TreeNode`](https://docs.bear.build/docs/bear/engine/types.md#treenode) | - | | `seal` | (`result`) => `void` | Seal the tree into its result: `node.model` on every node, then a shallow freeze. `materialize()` calls this once, for the converged pass. | ## Functions [#functions] ### boxOf() [#boxof] ```ts function boxOf(target): Box | undefined; ``` Defined in: [bear/engine/collection.ts:313](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/collection.ts#L313) An already-collected element's box in the collecting assembly's frame, for a body that lays out between elements it did not make (joists between a ledger and a beam). Parts and assemblies alike. Undefined while the element is an unbound solvable: the loop places it and comes back, and only the converged pass is observable. #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `target` | [`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement)\<`object`\> \| [`Ref`](https://docs.bear.build/docs/bear/engine/types.md#ref) | #### Returns [#returns] [`Box`](https://docs.bear.build/docs/bear/geometry/types.md#box) \| `undefined` *** ### collect() [#collect] ```ts function collect(element, bindings?): Collected; ``` Defined in: [bear/engine/collection.ts:344](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/collection.ts#L344) Evaluates a BearElement tree (JSX output) into the node tree. Assembly functions are called, fragments are spliced, and fully qualified names (FQNs) are assigned from the `name` prop on each element. The tree is sealed by `Collected.seal` once it has a result. #### Parameters [#parameters-1] | Parameter | Type | | ------ | ------ | | `element` | [`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement) | | `bindings?` | [`SolvedBindings`](https://docs.bear.build/docs/bear/engine/solvable.md#solvedbindings) | #### Returns [#returns-1] [`Collected`](https://docs.bear.build/docs/bear/engine/collection.md#collected) *** ### collectionParent() [#collectionparent] ```ts function collectionParent(): TreeNode | null; ``` Defined in: [bear/engine/collection.ts:894](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/collection.ts#L894) The node the element being collected will hang under, with the siblings collected so far beneath it. For the rare assembly that reads other elements' final poses and refs (Envelope grouping wall faces): those are props on already-collected nodes, so a body can look them up. #### Returns [#returns-2] [`TreeNode`](https://docs.bear.build/docs/bear/engine/types.md#treenode) \| `null` *** ### contributeToHost() [#contributetohost] ```ts function contributeToHost( key, name, describe ): void; ``` Defined in: [bear/engine/collection.ts:230](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/collection.ts#L230) Called by a typed HostSlot while its member's component is collected. #### Parameters [#parameters-2] | Parameter | Type | | ------ | ------ | | `key` | `symbol` | | `name` | `string` | | `describe` | (`member`) => `unknown` | #### Returns [#returns-3] `void` *** ### extentsOf() [#extentsof] ```ts function extentsOf(element): ReferenceExtents; ``` Defined in: [bear/engine/collection.ts:196](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/collection.ts#L196) What a part element will measure, from its props alone. For assembly bodies that size or pose children before materializing them: a wall reads its sheathing's thickness, a floor its joists' depth. Parts only; an assembly's facts derive from the data that builds it. #### Parameters [#parameters-3] | Parameter | Type | | ------ | ------ | | `element` | [`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement) | #### Returns [#returns-4] [`ReferenceExtents`](https://docs.bear.build/docs/bear/engine/geometryReferences.md#referenceextents) *** ### getCollectionContext() [#getcollectioncontext] ```ts function getCollectionContext(context): T | undefined; ``` Defined in: [bear/engine/collection.ts:177](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/collection.ts#L177) Read a typed context value from the current collection-time ancestor chain. Only valid inside an assembly function body during collection. Returns `undefined` if no ancestor provides the context. #### Type Parameters [#type-parameters] | Type Parameter | | ------ | | `T` | #### Parameters [#parameters-4] | Parameter | Type | | ------ | ------ | | `context` | [`BearContext`](https://docs.bear.build/docs/bear/engine/context.md#bearcontext)\<`T`\> | #### Returns [#returns-5] `T` \| `undefined` *** ### host() [#host] ```ts function host

(component): BearElement

; ``` Defined in: [bear/engine/collection.ts:223](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/collection.ts#L223) The nearest enclosing element of a component: a hosted body's handle on its host, the same element `` made. Its refs resolve like any other (`resolveRef(getRef(host(Wall), "finishInt"))`). #### Type Parameters [#type-parameters-1] | Type Parameter | | ------ | | `P` *extends* `object` | #### Parameters [#parameters-5] | Parameter | Type | | ------ | ------ | | `component` | \| [`AssemblyFn`](https://docs.bear.build/docs/bear/engine/types.md#assemblyfn)\<`P`\> \| [`PartDef`](https://docs.bear.build/docs/bear/engine/types.md#partdef)\<`P`, `string`, `string`\> | #### Returns [#returns-6] [`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement)\<`P`\> *** ### isCollectedAssembly() [#iscollectedassembly] ```ts function isCollectedAssembly(fn): boolean; ``` Defined in: [bear/engine/collection.ts:421](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/collection.ts#L421) Has this function ever been expanded as an assembly component? #### Parameters [#parameters-6] | Parameter | Type | | ------ | ------ | | `fn` | `object` | #### Returns [#returns-7] `boolean` *** ### resolveRef() [#resolveref] ```ts function resolveRef(ref): Surface; ``` Defined in: [bear/engine/collection.ts:213](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/collection.ts#L213) The surface a Ref names, expressed in the collecting parent's frame. The source must already be collected: an earlier sibling, or an earlier child of the same parent. #### Parameters [#parameters-7] | Parameter | Type | | ------ | ------ | | `ref` | [`Ref`](https://docs.bear.build/docs/bear/engine/types.md#ref) | #### Returns [#returns-8] [`Surface`](https://docs.bear.build/docs/bear/geometry/shapes.md#surface) *** ### solvablePass() [#solvablepass] ```ts function solvablePass(): object; ``` Defined in: [bear/engine/collection.ts:154](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/collection.ts#L154) Pass state `solvable()` reads and writes. #### Returns [#returns-9] `object` | Name | Type | | ------ | ------ | | `bindings` | [`SolvedBindings`](https://docs.bear.build/docs/bear/engine/solvable.md#solvedbindings) \| `undefined` | | `instances` | [`SolvableInstance`](https://docs.bear.build/docs/bear/engine/solvable.md#solvableinstance)[] | # construction (https://docs.bear.build/docs/bear/engine/construction) Import from `bear/engine/construction`. ## Functions [#functions] ### construction() [#construction] ```ts function construction

(name): PartDef

; ``` Defined in: [bear/engine/construction.ts:13](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/construction.ts#L13) Creates a construction part definition. Construction nodes carry constraint intent (dims, chains) through the ordinary JSX and collect pipeline, but have no size or geometry: their Ref props stay symbolic so solve can resolve them against the finished tree (which is what makes forward references work). Mirrors `part()` with no `extents` or `geometry`. #### Type Parameters [#type-parameters] | Type Parameter | Default type | | ------ | ------ | | `P` *extends* `object` | `Record`\<`string`, `unknown`\> | #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns [#returns] [`PartDef`](https://docs.bear.build/docs/bear/engine/types.md#partdef)\<`P`\> # context (https://docs.bear.build/docs/bear/engine/context) Import from `bear/engine/context`. ## Interfaces [#interfaces] ### BearContext [#bearcontext] Defined in: [bear/engine/context.ts:10](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/context.ts#L10) A typed context key created via `createContext()`. The object is the lookup key; the generic carries the value type. #### Type Parameters [#type-parameters] | Type Parameter | | ------ | | `T` | #### Properties [#properties] | Property | Modifier | Type | Description | | ------ | ------ | ------ | ------ | | `_type?` | `readonly` | `T` | Phantom field so T is not unused. | | `key` | `readonly` | `symbol` | Unique symbol used as the map key on TreeNode.context. | | `label` | `readonly` | `string` | Debug label for error messages. | ## Functions [#functions] ### createContext() [#createcontext] ```ts function createContext(label): BearContext; ``` Defined in: [bear/engine/context.ts:20](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/context.ts#L20) Create a typed context key. Each call produces a unique key. #### Type Parameters [#type-parameters-1] | Type Parameter | | ------ | | `T` | #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `label` | `string` | #### Returns [#returns] [`BearContext`](https://docs.bear.build/docs/bear/engine/context.md#bearcontext)\<`T`\> *** ### ctx() [#ctx] #### Call Signature [#call-signature] ```ts function ctx(context, value): ContextMap; ``` Defined in: [bear/engine/context.ts:29](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/context.ts#L29) Build a ContextMap from a single typed context-value pair. ##### Type Parameters [#type-parameters-2] | Type Parameter | | ------ | | `T` | ##### Parameters [#parameters-1] | Parameter | Type | | ------ | ------ | | `context` | [`BearContext`](https://docs.bear.build/docs/bear/engine/context.md#bearcontext)\<`T`\> | | `value` | `T` | ##### Returns [#returns-1] [`ContextMap`](https://docs.bear.build/docs/bear/engine/types.md#contextmap) #### Call Signature [#call-signature-1] ```ts function ctx(...maps): ContextMap; ``` Defined in: [bear/engine/context.ts:31](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/context.ts#L31) Merge multiple ContextMaps into one. ##### Parameters [#parameters-2] | Parameter | Type | | ------ | ------ | | ...`maps` | [`ContextMap`](https://docs.bear.build/docs/bear/engine/types.md#contextmap)[] | ##### Returns [#returns-2] [`ContextMap`](https://docs.bear.build/docs/bear/engine/types.md#contextmap) *** ### getContext() [#getcontext] ```ts function getContext(node, context): T | undefined; ``` Defined in: [bear/engine/context.ts:63](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/context.ts#L63) Walk the ancestor chain from `node` upward, returning the first value found for the given context in any ancestor's context map. The node itself is checked first, then its parent, grandparent, etc. Returns `undefined` if no ancestor provides the context. #### Type Parameters [#type-parameters-3] | Type Parameter | | ------ | | `T` | #### Parameters [#parameters-3] | Parameter | Type | | ------ | ------ | | `node` | [`AncestorNode`](https://docs.bear.build/docs/bear/engine/types.md#ancestornode) | | `context` | [`BearContext`](https://docs.bear.build/docs/bear/engine/context.md#bearcontext)\<`T`\> | #### Returns [#returns-3] `T` \| `undefined` *** ### getContextWithProvider() [#getcontextwithprovider] ```ts function getContextWithProvider(node, context): | { provider: AncestorNode; value: T; } | undefined; ``` Defined in: [bear/engine/context.ts:75](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/context.ts#L75) Like `getContext`, but also returns the node that provided the value, for consumers that need the provider's coordinate frame (e.g. gridline planes live in the grid provider's frame). #### Type Parameters [#type-parameters-4] | Type Parameter | | ------ | | `T` | #### Parameters [#parameters-4] | Parameter | Type | | ------ | ------ | | `node` | [`AncestorNode`](https://docs.bear.build/docs/bear/engine/types.md#ancestornode) | | `context` | [`BearContext`](https://docs.bear.build/docs/bear/engine/context.md#bearcontext)\<`T`\> | #### Returns [#returns-4] \| \{ `provider`: [`AncestorNode`](https://docs.bear.build/docs/bear/engine/types.md#ancestornode); `value`: `T`; \} \| `undefined` # coplanar (https://docs.bear.build/docs/bear/engine/coplanar) Import from `bear/engine/coplanar`. ## Type Aliases [#type-aliases] ### CoplanarGroup [#coplanargroup] ```ts type CoplanarGroup = object; ``` Defined in: [bear/engine/coplanar.ts:17](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/coplanar.ts#L17) A group of coplanar surfaces with a unified surface in building coords. #### Properties [#properties] | Property | Type | Description | | ------ | ------ | ------ | | `normal` | `Vector3` | World-space exterior normal (unit vector). | | `sources` | [`PositionedSurface`](https://docs.bear.build/docs/bear/engine/coplanar.md#positionedsurface)[] | The source surfaces that contributed to this group. | | `surface` | [`Surface`](https://docs.bear.build/docs/bear/geometry/shapes.md#surface) | Unified surface in building coordinates. | *** ### PositionedSurface [#positionedsurface] ```ts type PositionedSurface = object; ``` Defined in: [bear/engine/coplanar.ts:11](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/coplanar.ts#L11) A wall surface with its world transform (composed from ancestor chain). #### Properties [#properties-1] | Property | Type | | ------ | ------ | | `surface` | [`Surface`](https://docs.bear.build/docs/bear/geometry/shapes.md#surface) | | `worldTransform` | `Matrix4` | ## Functions [#functions] ### groupCoplanarSurfaces() [#groupcoplanarsurfaces] ```ts function groupCoplanarSurfaces(surfaces): CoplanarGroup[]; ``` Defined in: [bear/engine/coplanar.ts:72](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/coplanar.ts#L72) Group positioned surfaces by coplanarity and create unified surfaces. Two surfaces are coplanar if: 1. Their world-space normals are parallel (same direction) 2. They lie on the same geometric plane (same distance from origin) For each coplanar group, a unified Surface is created in building coordinates that spans all contributing walls (including inter-level gaps). Cutouts from individual walls are transformed and merged. #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `surfaces` | [`PositionedSurface`](https://docs.bear.build/docs/bear/engine/coplanar.md#positionedsurface)[] | #### Returns [#returns] [`CoplanarGroup`](https://docs.bear.build/docs/bear/engine/coplanar.md#coplanargroup)[] # createElement (https://docs.bear.build/docs/bear/engine/createElement) Import from `bear/engine/createElement`. ## Variables [#variables] ### Fragment [#fragment] ```ts const Fragment: typeof Fragment; ``` Defined in: [bear/engine/createElement.ts:11](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/createElement.ts#L11) Sentinel for JSX fragments. ## Functions [#functions] ### attachRefs() [#attachrefs] ```ts function attachRefs(element): void; ``` Defined in: [bear/engine/createElement.ts:28](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/createElement.ts#L28) Attach reference-stable Ref pointers to an element: the six bounding-box faces plus any names the component type declares via a `refs` static. #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `element` | [`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement) | #### Returns [#returns] `void` *** ### createElement() [#createelement] ```ts function createElement

( type, props, ...children ): BearElement

; ``` Defined in: [bear/engine/createElement.ts:53](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/createElement.ts#L53) JSX factory — replaces React.createElement for the Bear engine. #### Type Parameters [#type-parameters] | Type Parameter | Default type | | ------ | ------ | | `P` *extends* `object` | `object` | #### Parameters [#parameters-1] | Parameter | Type | | ------ | ------ | | `type` | \| `string` \| `symbol` \| [`PartDef`](https://docs.bear.build/docs/bear/engine/types.md#partdef)\<`any`, `string`, `string`\> \| [`AssemblyFn`](https://docs.bear.build/docs/bear/engine/types.md#assemblyfn)\<`any`\> | | `props` | `P` & [`ElementProps`](https://docs.bear.build/docs/bear/engine/types.md#elementprops) \| `null` | | ...`children` | `unknown`[] | #### Returns [#returns-1] [`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement)\<`P`\> # datums (https://docs.bear.build/docs/bear/engine/datums) Import from `bear/engine/datums`. ## Interfaces [#interfaces] ### Datums [#datums] Defined in: [bear/engine/datums.ts:70](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/datums.ts#L70) #### Properties [#properties] | Property | Type | | ------ | ------ | | `dims` | readonly [`DimDatum`](https://docs.bear.build/docs/bear/engine/datums.md#dimdatum)[] | | `gridlines` | readonly [`GridlineDatum`](https://docs.bear.build/docs/bear/engine/datums.md#gridlinedatum)[] | *** ### DimDatum [#dimdatum] Defined in: [bear/engine/datums.ts:53](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/datums.ts#L53) A dim, as the two planes it measures between. Where the dimension line itself is drawn is a view's decision, not the model's: the same dim is a string along the footprint in one view and a leader in another. #### Properties [#properties-1] | Property | Type | Description | | ------ | ------ | ------ | | `derived` | `boolean` | True when solve filled the value in rather than the author stating it. | | `direction` | [`Axis`](https://docs.bear.build/docs/bear/engine/dims.md#axis) | - | | `from` | `Vector3` | The world point of the plane each endpoint resolved to. | | `label` | `string` | "@A → W.start along x". | | `node` | `string` | The fqn of the `` node that authored it. | | `satisfied` | `boolean` | False when the measured span disagrees with what the dim states. | | `text` | `string` | The measured span, formatted: `24'`, `5' 1/2"`. | | `to` | `Vector3` | - | *** ### GridlineDatum [#gridlinedatum] Defined in: [bear/engine/datums.ts:35](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/datums.ts#L35) A named gridline, drawn along the provider's base plane. #### Properties [#properties-2] | Property | Type | Description | | ------ | ------ | ------ | | `axis` | `"y"` \| `"x"` | The axis the gridline measures along, not the one it runs along. | | `end` | `Vector3` | - | | `label` | `string` | How a dim endpoint spells it: "@A". | | `name` | `string` | The authored name: "A", "Left". | | `provider` | `string` | The fqn of the node that published the grid. | | `start` | `Vector3` | - | ## Functions [#functions] ### datumsOf() [#datumsof] ```ts function datumsOf(result): Datums; ``` Defined in: [bear/engine/datums.ts:76](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/datums.ts#L76) Every construction datum of a model, ready to draw. #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `result` | [`ModelView`](https://docs.bear.build/docs/bear/engine/model.md#modelview) | #### Returns [#returns] [`Datums`](https://docs.bear.build/docs/bear/engine/datums.md#datums) # diagnostics (https://docs.bear.build/docs/bear/engine/diagnostics) Import from `bear/engine/diagnostics`. ## Classes [#classes] ### Findings [#findings] Defined in: [bear/engine/diagnostics.ts:27](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/diagnostics.ts#L27) The one way a phase reports a non-fatal problem. Phases accumulate into a builder and hand the list back; the engine never writes onto nodes. #### Constructors [#constructors] ##### Constructor [#constructor] ```ts new Findings(): Findings; ``` ###### Returns [#returns] [`Findings`](https://docs.bear.build/docs/bear/engine/diagnostics.md#findings) #### Accessors [#accessors] ##### list [#list] ###### Get Signature [#get-signature] ```ts get list(): readonly Diagnostic[]; ``` Defined in: [bear/engine/diagnostics.ts:56](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/diagnostics.ts#L56) ###### Returns [#returns-1] readonly [`Diagnostic`](https://docs.bear.build/docs/bear/engine/types.md#diagnostic)[] #### Methods [#methods] ##### add() [#add] ```ts add( node, severity, message, related?, blockedBy? ): void; ``` Defined in: [bear/engine/diagnostics.ts:38](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/diagnostics.ts#L38) ###### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `node` | `Located` | | `severity` | `"error"` \| `"warning"` | | `message` | `string` | | `related?` | readonly (readonly [`SourceLocation`](https://docs.bear.build/docs/bear/engine/types.md#sourcelocation)[])[] | | `blockedBy?` | readonly `string`[] | ###### Returns [#returns-2] `void` ##### error() [#error] ```ts error( node, message, related? ): void; ``` Defined in: [bear/engine/diagnostics.ts:30](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/diagnostics.ts#L30) ###### Parameters [#parameters-1] | Parameter | Type | | ------ | ------ | | `node` | `Located` | | `message` | `string` | | `related?` | readonly (readonly [`SourceLocation`](https://docs.bear.build/docs/bear/engine/types.md#sourcelocation)[])[] | ###### Returns [#returns-3] `void` ##### warning() [#warning] ```ts warning( node, message, related? ): void; ``` Defined in: [bear/engine/diagnostics.ts:34](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/diagnostics.ts#L34) ###### Parameters [#parameters-2] | Parameter | Type | | ------ | ------ | | `node` | `Located` | | `message` | `string` | | `related?` | readonly (readonly [`SourceLocation`](https://docs.bear.build/docs/bear/engine/types.md#sourcelocation)[])[] | ###### Returns [#returns-4] `void` ## Interfaces [#interfaces] ### DiagnosticsLogger [#diagnosticslogger] Defined in: [bear/engine/diagnostics.ts:6](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/diagnostics.ts#L6) Injectable sink for render diagnostics; console by default so replacing it with real UI is a one-line change. #### Methods [#methods-1] ##### error() [#error-1] ```ts error(message): void; ``` Defined in: [bear/engine/diagnostics.ts:8](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/diagnostics.ts#L8) ###### Parameters [#parameters-3] | Parameter | Type | | ------ | ------ | | `message` | `string` | ###### Returns [#returns-5] `void` ##### warn() [#warn] ```ts warn(message): void; ``` Defined in: [bear/engine/diagnostics.ts:7](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/diagnostics.ts#L7) ###### Parameters [#parameters-4] | Parameter | Type | | ------ | ------ | | `message` | `string` | ###### Returns [#returns-6] `void` ## Variables [#variables] ### silentLogger [#silentlogger] ```ts const silentLogger: DiagnosticsLogger; ``` Defined in: [bear/engine/diagnostics.ts:12](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/diagnostics.ts#L12) A logger that discards everything (quiet renders). ## Functions [#functions] ### diagnosticsOf() [#diagnosticsof] ```ts function diagnosticsOf(result): readonly Diagnostic[]; ``` Defined in: [bear/engine/diagnostics.ts:88](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/diagnostics.ts#L88) Every diagnostic of a render, in phase order. #### Parameters [#parameters-5] | Parameter | Type | | ------ | ------ | | `result` | [`ModelView`](https://docs.bear.build/docs/bear/engine/model.md#modelview) | #### Returns [#returns-7] readonly [`Diagnostic`](https://docs.bear.build/docs/bear/engine/types.md#diagnostic)[] *** ### formatDiagnostic() [#formatdiagnostic] ```ts function formatDiagnostic(diagnostic): string; ``` Defined in: [bear/engine/diagnostics.ts:105](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/diagnostics.ts#L105) #### Parameters [#parameters-6] | Parameter | Type | | ------ | ------ | | `diagnostic` | [`Diagnostic`](https://docs.bear.build/docs/bear/engine/types.md#diagnostic) | #### Returns [#returns-8] `string` *** ### logDiagnostics() [#logdiagnostics] ```ts function logDiagnostics(result, logger?): readonly Diagnostic[]; ``` Defined in: [bear/engine/diagnostics.ts:93](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/diagnostics.ts#L93) Log every diagnostic of a render and return them in order. #### Parameters [#parameters-7] | Parameter | Type | Default value | | ------ | ------ | ------ | | `result` | [`ModelView`](https://docs.bear.build/docs/bear/engine/model.md#modelview) | `undefined` | | `logger?` | [`DiagnosticsLogger`](https://docs.bear.build/docs/bear/engine/diagnostics.md#diagnosticslogger) | `console` | #### Returns [#returns-9] readonly [`Diagnostic`](https://docs.bear.build/docs/bear/engine/types.md#diagnostic)[] *** ### rootDiagnostics() [#rootdiagnostics] ```ts function rootDiagnostics(diagnostics, failed): readonly Diagnostic[]; ``` Defined in: [bear/engine/diagnostics.ts:62](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/diagnostics.ts#L62) Keep independent findings; suppress only explicitly blocked consequences of failed builds. #### Parameters [#parameters-8] | Parameter | Type | | ------ | ------ | | `diagnostics` | readonly [`Diagnostic`](https://docs.bear.build/docs/bear/engine/types.md#diagnostic)[] | | `failed` | `ReadonlySet`\<`string`\> | #### Returns [#returns-10] readonly [`Diagnostic`](https://docs.bear.build/docs/bear/engine/types.md#diagnostic)[] # diff (https://docs.bear.build/docs/bear/engine/diff) Import from `bear/engine/diff`. ## Interfaces [#interfaces] ### FactChanges [#factchanges] Defined in: [bear/engine/diff.ts:33](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/diff.ts#L33) Facts without persistent IDs compare as multisets, preserving duplicate counts. #### Properties [#properties] | Property | Modifier | Type | | ------ | ------ | ------ | | `added` | `readonly` | readonly [`SnapshotValue`](https://docs.bear.build/docs/bear/engine/snapshot-value.md#snapshotvalue)[] | | `removed` | `readonly` | readonly [`SnapshotValue`](https://docs.bear.build/docs/bear/engine/snapshot-value.md#snapshotvalue)[] | *** ### ModelDiff [#modeldiff] Defined in: [bear/engine/diff.ts:38](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/diff.ts#L38) #### Type Parameters [#type-parameters] | Type Parameter | Default type | | ------ | ------ | | `Before` | `unknown` | | `After` | `Before` | #### Properties [#properties-1] | Property | Modifier | Type | | ------ | ------ | ------ | | `after` | `readonly` | [`SnapshotData`](https://docs.bear.build/docs/bear/engine/snapshot-data.md#snapshotdata)\<`After`\> | | `before` | `readonly` | [`SnapshotData`](https://docs.bear.build/docs/bear/engine/snapshot-data.md#snapshotdata)\<`Before`\> | | `constraints` | `readonly` | [`FactChanges`](https://docs.bear.build/docs/bear/engine/diff.md#factchanges) | | `diagnostics` | `readonly` | [`FactChanges`](https://docs.bear.build/docs/bear/engine/diff.md#factchanges) | | `nodes` | `readonly` | readonly [`NodeChange`](https://docs.bear.build/docs/bear/engine/diff.md#nodechange)[] | | `relations` | `readonly` | [`FactChanges`](https://docs.bear.build/docs/bear/engine/diff.md#factchanges) | ## Type Aliases [#type-aliases] ### NodeChange [#nodechange] ```ts type NodeChange = | { after: SnapshotNode; fqn: string; kind: "added"; } | { before: SnapshotNode; fqn: string; kind: "removed"; } | { after: SnapshotNode; before: SnapshotNode; facets: readonly ModelFacet[]; fqn: string; kind: "modified"; }; ``` Defined in: [bear/engine/diff.ts:13](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/diff.ts#L13) ## Functions [#functions] ### diffModels() [#diffmodels] ```ts function diffModels(before, after): ModelDiff; ``` Defined in: [bear/engine/diff.ts:47](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/diff.ts#L47) #### Type Parameters [#type-parameters-1] | Type Parameter | | ------ | | `Before` | | `After` | #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `before` | [`ModelSnapshot`](https://docs.bear.build/docs/bear/engine/snapshot.md#modelsnapshot)\<`Before`\> | | `after` | [`ModelSnapshot`](https://docs.bear.build/docs/bear/engine/snapshot.md#modelsnapshot)\<`After`\> | #### Returns [#returns] [`ModelDiff`](https://docs.bear.build/docs/bear/engine/diff.md#modeldiff)\<`Before`, `After`\> # dims (https://docs.bear.build/docs/bear/engine/dims) Import from `bear/engine/dims`. ## Interfaces [#interfaces] ### DimChainProps [#dimchainprops] Defined in: [bear/engine/dims.ts:83](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/dims.ts#L83) #### Properties [#properties] | Property | Type | Description | | ------ | ------ | ------ | | `children?` | \| [`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement)\<`object`\> \| [`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement)\<`object`\>[] | `` links, each `to`-only; link N starts at link N-1's `to`. | | `direction?` | [`Axis`](https://docs.bear.build/docs/bear/engine/dims.md#axis) | Axis shared by every link in the chain. Inferred when `from` is a gridline. | | `from` | [`DimEnd`](https://docs.bear.build/docs/bear/engine/dims.md#dimend) | The plane the first link starts from. | | `name?` | `string` | - | | `priority?` | [`DimPriority`](https://docs.bear.build/docs/bear/engine/dims.md#dimpriority) | Default priority for links that don't set their own. | *** ### DimProps [#dimprops] Defined in: [bear/engine/dims.ts:44](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/dims.ts#L44) #### Properties [#properties-1] | Property | Type | Description | | ------ | ------ | ------ | | `direction?` | [`Axis`](https://docs.bear.build/docs/bear/engine/dims.md#axis) | Axis of measurement. Inferred when an endpoint is a gridline (the name knows its axis) or when a chain supplies one; required only for a dim between two element refs. | | `eq?` | [`EqGroup`](https://docs.bear.build/docs/bear/engine/types.md#eqgroup) | Dims sharing an eq group are constrained equal. | | `from?` | [`DimEnd`](https://docs.bear.build/docs/bear/engine/dims.md#dimend) | Start plane. Required on a standalone dim. Inside a `` it is omitted: each link starts where the previous link ended. | | `max?` | [`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement) | Maximum allowed distance. Same strength rule as `min`. | | `min?` | [`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement) | Minimum allowed distance. Bounds sit below positioning strength unless the dim is `required`, so they check the solved layout and report violations rather than deforming it. | | `name?` | `string` | - | | `priority?` | [`DimPriority`](https://docs.bear.build/docs/bear/engine/dims.md#dimpriority) | Constraint strength. Defaults to "strong". | | `to` | [`DimEnd`](https://docs.bear.build/docs/bear/engine/dims.md#dimend) | End plane. | | `value?` | [`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement) | The authored distance. A valueless dim is legal only as a chain link; solve fills the value in and reports it. | ## Type Aliases [#type-aliases] ### Axis [#axis] ```ts type Axis = "x" | "y" | "z"; ``` Defined in: [bear/engine/dims.ts:13](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/dims.ts#L13) Axis of measurement for a dim. *** ### DimEnd [#dimend] ```ts type DimEnd = | Ref | GridlineName | RefName; ``` Defined in: [bear/engine/dims.ts:34](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/dims.ts#L34) What a dim endpoint can point at: a plane by name, a Ref, or a gridline. *** ### DimPriority [#dimpriority] ```ts type DimPriority = "required" | "strong"; ``` Defined in: [bear/engine/dims.ts:19](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/dims.ts#L19) Dims default to "strong" so a contradictory model still renders and reports instead of throwing; "required" says this must hold. *** ### GridlineName [#gridlinename] ```ts type GridlineName = `@${string}`; ``` Defined in: [bear/engine/dims.ts:22](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/dims.ts#L22) A gridline reference, resolved against the dim's axis: "@A", "@2". *** ### RefName [#refname] ```ts type RefName = `${string}.${string}`; ``` Defined in: [bear/engine/dims.ts:31](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/dims.ts#L31) A named element ref: "corridor.coreExt". Resolved lexically from the dim's position outward (nearest enclosing scope wins); qualify with more fqn segments to reach further ("L1.corridor.coreExt"). Strings are names; to pass a reference across a component boundary, pass the `Ref` object (`getRef`) instead, which is scope-free by identity. ## Variables [#variables] ### Dim [#dim] ```ts const Dim: PartDef; ``` Defined in: [bear/engine/dims.ts:81](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/dims.ts#L81) A dimension: the distance from one plane to another along an axis. *** ### DimChain [#dimchain] ```ts const DimChain: PartDef; ``` Defined in: [bear/engine/dims.ts:102](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/dims.ts#L102) An ordered run of dims sharing an axis, where each link starts where the previous one ended. ## Functions [#functions] ### eqGroup() [#eqgroup] ```ts function eqGroup(label?): EqGroup; ``` Defined in: [bear/engine/dims.ts:40](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/dims.ts#L40) Create an eq-group token. Group identity is the token, not a string, so a typo cannot silently create two singleton groups. #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `label?` | `string` | #### Returns [#returns] [`EqGroup`](https://docs.bear.build/docs/bear/engine/types.md#eqgroup) # factory (https://docs.bear.build/docs/bear/engine/factory) Import from `bear/engine/factory`. ## Type Aliases [#type-aliases] ### Factory [#factory] ```ts type Factory = (situational) => BearElement

; ``` Defined in: [bear/engine/factory.ts:8](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/factory.ts#L8) A factory produces a BearElement from situational props. S = what the consuming assembly supplies at render time; P = the part's props. A factory for a part the assembly doesn't know states neither. #### Type Parameters [#type-parameters] | Type Parameter | Default type | | ------ | ------ | | `S` *extends* `object` | `Readonly`\<`Record`\<`string`, `unknown`\>\> | | `P` *extends* `object` | `object` | #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `situational` | `S` & [`ElementProps`](https://docs.bear.build/docs/bear/engine/types.md#elementprops) | #### Returns [#returns] [`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement)\<`P`\> ## Functions [#functions] ### factory() [#factory-1] ```ts function factory

(def, defaults): Factory, P>; ``` Defined in: [bear/engine/factory.ts:25](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/factory.ts#L25) Create a factory from a PartDef with default props. Returns a function that merges situational props (from the assembly) over the defaults, then calls the PartDef to produce a BearElement. ```ts const osb716 = factory(OSB, { category: "7/16in" }); // Later, an assembly calls: osb716({ face: someSurface, panelRegion: region }) ``` #### Type Parameters [#type-parameters-1] | Type Parameter | | ------ | | `P` *extends* `object` | #### Parameters [#parameters-1] | Parameter | Type | | ------ | ------ | | `def` | [`PartDef`](https://docs.bear.build/docs/bear/engine/types.md#partdef)\<`P`\> | | `defaults` | `Partial`\<`P`\> | #### Returns [#returns-1] [`Factory`](https://docs.bear.build/docs/bear/engine/factory.md#factory)\<`Partial`\<`P`\>, `P`\> # geometry (https://docs.bear.build/docs/bear/engine/geometry) Import from `bear/engine/geometry`. ## Type Aliases [#type-aliases] ### Loaded [#loaded] ```ts type Loaded = ReadonlyMap; ``` Defined in: [bear/engine/geometry.ts:27](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/geometry.ts#L27) What each part's `load` fetched, by node. ## Functions [#functions] ### boxManifold() [#boxmanifold] ```ts function boxManifold(box): Manifold; ``` Defined in: [bear/engine/geometry.ts:144](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/geometry.ts#L144) The solid filling a box, for parts whose shape is their extents. #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `box` | [`Box`](https://docs.bear.build/docs/bear/geometry/types.md#box) | #### Returns [#returns] `Manifold` *** ### buildGeometry() [#buildgeometry] ```ts function buildGeometry( root, edges?, loaded? ): ReadonlyMap; ``` Defined in: [bear/engine/geometry.ts:66](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/geometry.ts#L66) Build every geometry part's solid from what was loaded, then apply the `cuts` edges. Synchronous, so its caller owns every handle it makes. #### Parameters [#parameters-1] | Parameter | Type | Default value | | ------ | ------ | ------ | | `root` | [`TreeNode`](https://docs.bear.build/docs/bear/engine/types.md#treenode) | `undefined` | | `edges?` | readonly [`Edge`](https://docs.bear.build/docs/bear/engine/relations.md#edge)[] | `[]` | | `loaded?` | [`Loaded`](https://docs.bear.build/docs/bear/engine/geometry.md#loaded) | `...` | #### Returns [#returns-1] `ReadonlyMap`\<[`TreeNode`](https://docs.bear.build/docs/bear/engine/types.md#treenode), [`Geometry`](https://docs.bear.build/docs/bear/engine/types.md#geometry)\> *** ### geometryOf() [#geometryof] ```ts function geometryOf(result, node): Geometry; ``` Defined in: [bear/engine/geometry.ts:154](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/geometry.ts#L154) A node's solid and material; empty for assemblies, construction, and parts without one. #### Parameters [#parameters-2] | Parameter | Type | | ------ | ------ | | `result` | [`ModelView`](https://docs.bear.build/docs/bear/engine/model.md#modelview) | | `node` | [`TreeNode`](https://docs.bear.build/docs/bear/engine/types.md#treenode) | #### Returns [#returns-2] [`Geometry`](https://docs.bear.build/docs/bear/engine/types.md#geometry) *** ### loadSolids() [#loadsolids] ```ts function loadSolids( root, owned, shapes ): Promise; ``` Defined in: [bear/engine/geometry.ts:34](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/geometry.ts#L34) Run every part's `load` concurrently, a keyed one through `shapes`. Every load settles and every solid joins `owned` before a failure is thrown, so a failed load leaks none of the others. #### Parameters [#parameters-3] | Parameter | Type | | ------ | ------ | | `root` | [`TreeNode`](https://docs.bear.build/docs/bear/engine/types.md#treenode) | | `owned` | `Set`\<[`Handle`](https://docs.bear.build/docs/bear/manifold/init.md#handle)\> | | `shapes` | [`ShapeCache`](https://docs.bear.build/docs/bear/engine/shapes.md#shapecache) | #### Returns [#returns-3] `Promise`\<[`Loaded`](https://docs.bear.build/docs/bear/engine/geometry.md#loaded)\> *** ### mat4() [#mat4] ```ts function mat4(elements): Mat4; ``` Defined in: [bear/engine/geometry.ts:138](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/geometry.ts#L138) Three's column-major elements are manifold's column-major Mat4. #### Parameters [#parameters-4] | Parameter | Type | | ------ | ------ | | `elements` | readonly `number`[] | #### Returns [#returns-4] `Mat4` # geometryReferences (https://docs.bear.build/docs/bear/engine/geometryReferences) Import from `bear/engine/geometryReferences`. ## Type Aliases [#type-aliases] ### ReferenceEdge [#referenceedge] ```ts type ReferenceEdge = object; ``` Defined in: [bear/engine/geometryReferences.ts:41](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/geometryReferences.ts#L41) #### Properties [#properties] | Property | Type | Description | | ------ | ------ | ------ | | `dir` | \[`dx`: `number`, `dy`: `number`, `dz`: `number`\] | Direction vector | | `kind` | \| `"frontLeft"` \| `"frontRight"` \| `"backLeft"` \| `"backRight"` \| `"topFront"` \| `"topBack"` \| `"topLeft"` \| `"topRight"` \| `"bottomFront"` \| `"bottomBack"` \| `"bottomLeft"` \| `"bottomRight"` | - | | `length` | `number` | The length of the edge | | `point` | `Point` | The anchor of the edge | *** ### ReferenceExtents [#referenceextents] ```ts type ReferenceExtents = object; ``` Defined in: [bear/engine/geometryReferences.ts:10](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/geometryReferences.ts#L10) #### Properties [#properties-1] | Property | Type | Description | | ------ | ------ | ------ | | `box` | [`Box`](https://docs.bear.build/docs/bear/geometry/types.md#box) | Bounding box in the node's local frame. | | `depth` | `number` | - | | `height` | `number` | - | | `kind` | `"extents"` | - | | `width` | `number` | - | *** ### ReferenceFace [#referenceface] ```ts type ReferenceFace = object; ``` Defined in: [bear/engine/geometryReferences.ts:33](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/geometryReferences.ts#L33) #### Properties [#properties-2] | Property | Type | Description | | ------ | ------ | ------ | | `d` | `number` | Scalar offset from the origin along the normal | | `kind` | `"top"` \| `"bottom"` \| `"front"` \| `"back"` \| `"left"` \| `"right"` | - | | `n` | \[`x`: `number`, `y`: `number`, `z`: `number`\] | Normal vector to the face | *** ### ReferenceKey [#referencekey] ```ts type ReferenceKey = | ReferenceExtents["kind"] | ReferencePoint["kind"] | ReferenceFace["kind"] | ReferenceEdge["kind"]; ``` Defined in: [bear/engine/geometryReferences.ts:63](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/geometryReferences.ts#L63) *** ### ReferencePoint [#referencepoint] ```ts type ReferencePoint = object; ``` Defined in: [bear/engine/geometryReferences.ts:19](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/geometryReferences.ts#L19) #### Properties [#properties-3] | Property | Type | | ------ | ------ | | `kind` | \| `"origin"` \| `"bottomFrontLeft"` \| `"bottomFrontRight"` \| `"bottomBackLeft"` \| `"bottomBackRight"` \| `"topFrontLeft"` \| `"topFrontRight"` \| `"topBackLeft"` \| `"topBackRight"` | | `point` | `Point` | # grid (https://docs.bear.build/docs/bear/engine/grid) Import from `bear/engine/grid`. ## Variables [#variables] ### GridRefs [#gridrefs] ```ts const GridRefs: BearContext; ``` Defined in: [bear/engine/grid.ts:10](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/grid.ts#L10) Named gridline positions, published by Building (or any ancestor) and consumed by wall paths and dim endpoints alike. Lives in the engine so the solve phase can resolve "@Name" endpoints without importing blueprints. # hosting (https://docs.bear.build/docs/bear/engine/hosting) Import from `bear/engine/hosting`. ## Interfaces [#interfaces] ### HostedChildren [#hostedchildren] Defined in: [bear/engine/hosting.ts:13](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/hosting.ts#L13) Erased only at the collector boundary; hostChildren preserves the slot's type. #### Properties [#properties] | Property | Modifier | Type | | ------ | ------ | ------ | | `key` | `readonly` | `symbol` | | `name` | `readonly` | `string` | #### Methods [#methods] ##### build() [#build] ```ts build(values): readonly BearElement[]; ``` Defined in: [bear/engine/hosting.ts:16](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/hosting.ts#L16) ###### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `values` | readonly `unknown`[] | ###### Returns [#returns] readonly [`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement)\<`object`\>[] *** ### HostSlot [#hostslot] Defined in: [bear/engine/hosting.ts:5](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/hosting.ts#L5) #### Type Parameters [#type-parameters] | Type Parameter | | ------ | | `T` | #### Properties [#properties-1] | Property | Modifier | Type | | ------ | ------ | ------ | | `key` | `readonly` | `symbol` | | `name` | `readonly` | `string` | #### Methods [#methods-1] ##### contribute() [#contribute] ```ts contribute(describe): void; ``` Defined in: [bear/engine/hosting.ts:9](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/hosting.ts#L9) Declare data to the nearest enclosing host of this slot. ###### Parameters [#parameters-1] | Parameter | Type | | ------ | ------ | | `describe` | (`member`) => `T` | ###### Returns [#returns-1] `void` ## Functions [#functions] ### createHostSlot() [#createhostslot] ```ts function createHostSlot(name): HostSlot; ``` Defined in: [bear/engine/hosting.ts:19](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/hosting.ts#L19) #### Type Parameters [#type-parameters-1] | Type Parameter | | ------ | | `T` | #### Parameters [#parameters-2] | Parameter | Type | | ------ | ------ | | `name` | `string` | #### Returns [#returns-2] [`HostSlot`](https://docs.bear.build/docs/bear/engine/hosting.md#hostslot)\<`T`\> *** ### hostChildren() [#hostchildren] ```ts function hostChildren(slot, build): HostedChildren; ``` Defined in: [bear/engine/hosting.ts:29](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/hosting.ts#L29) Collect authored children first, then append host-owned elements from their declarations. #### Type Parameters [#type-parameters-2] | Type Parameter | | ------ | | `T` | #### Parameters [#parameters-3] | Parameter | Type | | ------ | ------ | | `slot` | [`HostSlot`](https://docs.bear.build/docs/bear/engine/hosting.md#hostslot)\<`T`\> | | `build` | (`values`) => readonly [`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement)\<`object`\>[] | #### Returns [#returns-3] [`HostedChildren`](https://docs.bear.build/docs/bear/engine/hosting.md#hostedchildren) # jsx-dev-runtime (https://docs.bear.build/docs/bear/engine/jsx-dev-runtime) Import from `bear/engine/jsx-dev-runtime`. # jsx-runtime (https://docs.bear.build/docs/bear/engine/jsx-runtime/bear) Import from `bear/engine/jsx-runtime`. ## Namespaces [#namespaces] - [JSX](https://docs.bear.build/docs/bear/engine/jsx-runtime/namespaces/JSX.md) ## Variables [#variables] ### Fragment [#fragment] ```ts const Fragment: typeof Fragment; ``` Defined in: [bear/engine/jsx-runtime.ts:28](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/jsx-runtime.ts#L28) ## Functions [#functions] ### jsx() [#jsx] ```ts function jsx( type, props, _key?, _isStaticChildren?, source? ): BearElement; ``` Defined in: [bear/engine/jsx-runtime.ts:36](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/jsx-runtime.ts#L36) One implementation for jsx, jsxs, and jsxDEV: the trailing arguments of the dev-form call are simply optional, and the call site is recorded whenever the compiler provides one. Bear compiles with `jsx: "react-jsxdev"` so its own code always does; there is no dev/prod split in this runtime. #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `type` | \| `string` \| `symbol` \| [`PartDef`](https://docs.bear.build/docs/bear/engine/types.md#partdef)\<`any`, `string`, `string`\> \| [`AssemblyFn`](https://docs.bear.build/docs/bear/engine/types.md#assemblyfn)\<`any`\> | | `props` | `Record`\<`string`, `unknown`\> | | `_key?` | `string` | | `_isStaticChildren?` | `boolean` | | `source?` | [`SourceLocation`](https://docs.bear.build/docs/bear/engine/types.md#sourcelocation) | #### Returns [#returns] [`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement) # JSX (https://docs.bear.build/docs/bear/engine/jsx-runtime/namespaces/JSX) ## Interfaces [#interfaces] ### IntrinsicElements [#intrinsicelements] Defined in: [bear/engine/jsx-runtime.ts:23](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/jsx-runtime.ts#L23) #### Indexable [#indexable] ```ts [tag: string]: Record ``` ## Type Aliases [#type-aliases] ### Element [#element] ```ts type Element = BearElement; ``` Defined in: [bear/engine/jsx-runtime.ts:16](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/jsx-runtime.ts#L16) The type of every JSX expression: an element of any part. *** ### IntrinsicAttributes [#intrinsicattributes] ```ts type IntrinsicAttributes = RelationProps; ``` Defined in: [bear/engine/jsx-runtime.ts:22](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/jsx-runtime.ts#L22) Registered relation props are recognized on ANY element (they lower to edges at collect and never reach the component), so they are intrinsic attributes, like React's `key`. See engine/relations.ts. # loadGlb (https://docs.bear.build/docs/bear/engine/loadGlb) Import from `bear/engine/loadGlb`. ## Functions [#functions] ### bufferGeometryToManifold() [#buffergeometrytomanifold] ```ts function bufferGeometryToManifold(geometry, scale?): Promise; ``` Defined in: [bear/engine/loadGlb.ts:97](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/loadGlb.ts#L97) Convert a Three.js BufferGeometry to a Manifold. The geometry must represent a closed, watertight mesh (valid 2-manifold). If the geometry is non-indexed (triangle soup), coincident vertices are merged using a spatial hash so Manifold can reconstruct shared edges. #### Parameters [#parameters] | Parameter | Type | Default value | | ------ | ------ | ------ | | `geometry` | `BufferGeometry` | `undefined` | | `scale?` | `number` | `1` | #### Returns [#returns] `Promise`\<`Manifold`\> *** ### clearGlbCache() [#clearglbcache] ```ts function clearGlbCache(): void; ``` Defined in: [bear/engine/loadGlb.ts:42](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/loadGlb.ts#L42) Clear the GLB cache (useful for tests). #### Returns [#returns-1] `void` *** ### loadGlb() [#loadglb] ```ts function loadGlb(url, options?): Promise; ``` Defined in: [bear/engine/loadGlb.ts:26](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/loadGlb.ts#L26) Load a GLB file and convert its geometry to a Manifold. Uses Manifold's native GLTF I/O pipeline (`@gltf-transform/core` + `readMesh`) for robust mesh import with automatic merge vector handling. The mesh is automatically scaled from meters (GLB standard) to project units (32nds of an inch) unless `units` is "project-units". Results are cached by URL. The cache owns the loaded solid and each call gets its own share of it, which the caller owns. #### Parameters [#parameters-1] | Parameter | Type | | ------ | ------ | | `url` | `string` | | `options?` | \{ `units?`: `"meters"` \| `"project-units"`; \} | | `options.units?` | `"meters"` \| `"project-units"` | #### Returns [#returns-2] `Promise`\<`Manifold`\> # lru (https://docs.bear.build/docs/bear/engine/lru) Import from `bear/engine/lru`. ## Classes [#classes] ### LRU [#lru] Defined in: [bear/engine/lru.ts:6](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/lru.ts#L6) Bounded LRU keyed by string. Insertion-order iteration on `Map` makes the oldest-inserted key the first to evict. `get()` touches recency by re-inserting on hit. `drop` frees what an evicted value holds. #### Type Parameters [#type-parameters] | Type Parameter | | ------ | | `V` | #### Constructors [#constructors] ##### Constructor [#constructor] ```ts new LRU(maxSize, drop?): LRU; ``` Defined in: [bear/engine/lru.ts:8](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/lru.ts#L8) ###### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `maxSize` | `number` | | `drop?` | (`value`) => `void` | ###### Returns [#returns] [`LRU`](https://docs.bear.build/docs/bear/engine/lru.md#lru)\<`V`\> #### Methods [#methods] ##### clear() [#clear] ```ts clear(): void; ``` Defined in: [bear/engine/lru.ts:34](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/lru.ts#L34) ###### Returns [#returns-1] `void` ##### delete() [#delete] ```ts delete(key): void; ``` Defined in: [bear/engine/lru.ts:29](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/lru.ts#L29) ###### Parameters [#parameters-1] | Parameter | Type | | ------ | ------ | | `key` | `string` | ###### Returns [#returns-2] `void` ##### get() [#get] ```ts get(key): V | undefined; ``` Defined in: [bear/engine/lru.ts:12](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/lru.ts#L12) ###### Parameters [#parameters-2] | Parameter | Type | | ------ | ------ | | `key` | `string` | ###### Returns [#returns-3] `V` \| `undefined` ##### keys() [#keys] ```ts keys(): IterableIterator; ``` Defined in: [bear/engine/lru.ts:38](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/lru.ts#L38) ###### Returns [#returns-4] `IterableIterator`\<`string`\> ##### set() [#set] ```ts set(key, value): V; ``` Defined in: [bear/engine/lru.ts:19](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/lru.ts#L19) ###### Parameters [#parameters-3] | Parameter | Type | | ------ | ------ | | `key` | `string` | | `value` | `V` | ###### Returns [#returns-5] `V` # mate (https://docs.bear.build/docs/bear/engine/mate) Import from `bear/engine/mate`. ## Interfaces [#interfaces] ### Hosted [#hosted] Defined in: [bear/engine/mate.ts:32](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/mate.ts#L32) A hosted part: its host's faces it reads, each the named ref of the nearest enclosing element of a component, and its own planes laid on them. The faces land in the part's `resolved`; the planes pose it when nothing authored a transform. #### Type Parameters [#type-parameters] | Type Parameter | Default type | | ------ | ------ | | `P` | `Record`\<`string`, `unknown`\> | #### Properties [#properties] | Property | Type | | ------ | ------ | | `faces` | `Readonly`\<`Record`\<`string`, readonly \[`host`: (`props`) => `unknown`, `ref`: `string`\]\>\> | | `mates` | (`props`, `resolved`) => readonly (`Omit`\<[`Mate`](https://docs.bear.build/docs/bear/engine/mate.md#mate), `"on"`\> & `object`)[] | *** ### Mate [#mate] Defined in: [bear/engine/mate.ts:18](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/mate.ts#L18) One of a part's planes, in its own frame, and the surface it lies on. #### Properties [#properties-1] | Property | Type | Description | | ------ | ------ | ------ | | `center?` | `boolean` | A center plane: it places the part along its normal but doesn't turn it. | | `normal` | `Vector3` | - | | `on` | [`Surface`](https://docs.bear.build/docs/bear/geometry/shapes.md#surface) | - | | `point` | `Vector3` | - | ## Functions [#functions] ### mate() [#mate-1] ```ts function mate(mates): TransformMatrix; ``` Defined in: [bear/engine/mate.ts:46](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/mate.ts#L46) The pose (in the targets' frame) that lays every plane on its target. #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `mates` | readonly [`Mate`](https://docs.bear.build/docs/bear/engine/mate.md#mate)[] | #### Returns [#returns] [`TransformMatrix`](https://docs.bear.build/docs/bear/geometry/transform.md#transformmatrix) # materialize (https://docs.bear.build/docs/bear/engine/materialize) Import from `bear/engine/materialize`. ## Interfaces [#interfaces] ### MaterializeOptions [#materializeoptions] Defined in: [bear/engine/materialize.ts:23](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/materialize.ts#L23) #### Properties [#properties] | Property | Type | Description | | ------ | ------ | ------ | | `logger?` | [`DiagnosticsLogger`](https://docs.bear.build/docs/bear/engine/diagnostics.md#diagnosticslogger) | Sink for materialize diagnostics. Defaults to the console. | | `shapes?` | [`ShapeCache`](https://docs.bear.build/docs/bear/engine/shapes.md#shapecache) | Where keyed loads are kept across builds. Without one, a shape is still loaded once for this model, and kept no longer than the call. | ## Functions [#functions] ### materialize() [#materialize] ```ts function materialize(element, options?): Promise; ``` Defined in: [bear/engine/materialize.ts:55](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/materialize.ts#L55) Runs collect → relations → solve to a fixed point: the solver's anchor bindings are the only cross-pass input, so stable bindings imply a stable tree. Each pass is a value; geometry is built once, for the converged tree, and only that result is ever observable. The pipeline is synchronous except for fetching loaded solids, which happens between convergence and geometry. Every Manifold and CrossSection made along the way belongs to this call: intermediates are freed before it returns, and the model's solids when the caller disposes the model. #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `element` | [`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement) | | `options?` | [`MaterializeOptions`](https://docs.bear.build/docs/bear/engine/materialize.md#materializeoptions) | #### Returns [#returns] `Promise`\<[`Model`](https://docs.bear.build/docs/bear/engine/model.md#model)\> # model-export (https://docs.bear.build/docs/bear/engine/model-export) Import from `bear/engine/model-export`. ## Type Aliases [#type-aliases] ### ModelExport [#modelexport] ```ts type ModelExport = object; ``` Defined in: [bear/engine/model-export.ts:10](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/model-export.ts#L10) #### Properties [#properties] | Property | Type | | ------ | ------ | | `entryPoint?` | `string` | | `exportName?` | `string` | | `props?` | `Record`\<`string`, `unknown`\> | *** ### ModelSelection [#modelselection] ```ts type ModelSelection = z.infer; ``` Defined in: [bear/engine/model-export.ts:22](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/model-export.ts#L22) ## Variables [#variables] ### modelSelectionSchema [#modelselectionschema] ```ts const modelSelectionSchema: ZodObject<{ entryPoint: ZodString; exportName: ZodString; props: ZodRecord; }, $strip>; ``` Defined in: [bear/engine/model-export.ts:17](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/model-export.ts#L17) A complete source request. Execution never fills it from another model. ## Functions [#functions] ### resolveModelExport() [#resolvemodelexport] ```ts function resolveModelExport(module, selection?): BearElement; ``` Defined in: [bear/engine/model-export.ts:25](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/model-export.ts#L25) The element `selection` names in a built model module. #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `module` | `Record`\<`string`, `unknown`\> | | `selection?` | [`ModelExport`](https://docs.bear.build/docs/bear/engine/model-export.md#modelexport) | #### Returns [#returns] [`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement) # model (https://docs.bear.build/docs/bear/engine/model) Import from `bear/engine/model`. ## Interfaces [#interfaces] ### ConstraintReport [#constraintreport] Defined in: [bear/engine/model.ts:50](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/model.ts#L50) What every solver constraint reports, whatever stated it: one shape, so `printConstraints` prints a new constraint source without a case for it. Solve describes each constraint the way its author would write it. #### Extended by [#extended-by] - [`ResolvedAttachment`](https://docs.bear.build/docs/bear/engine/model.md#resolvedattachment) #### Properties [#properties] | Property | Modifier | Type | Description | | ------ | ------ | ------ | ------ | | `derived?` | `readonly` | `boolean` | True when `value` was filled in by solve rather than authored. | | `eq?` | `readonly` | [`EqGroup`](https://docs.bear.build/docs/bear/engine/types.md#eqgroup) | - | | `label` | `readonly` | `string` | "@A → W.start along x", "J1.start on H1.seat along y". | | `max?` | `readonly` | `number` | - | | `measured?` | `readonly` | `number` | - | | `min?` | `readonly` | `number` | - | | `node` | `readonly` | [`TreeNode`](https://docs.bear.build/docs/bear/engine/types.md#treenode) | - | | `priority` | `readonly` | [`DimPriority`](https://docs.bear.build/docs/bear/engine/dims.md#dimpriority) | - | | `value?` | `readonly` | `number` | The stated value: a dim's, or 0 for the gap between an anchor and its plane. | *** ### Model [#model] Defined in: [bear/engine/model.ts:37](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/model.ts#L37) The materializer's owning handle. Consumers only need ModelView. #### Extends [#extends] - [`ModelView`](https://docs.bear.build/docs/bear/engine/model.md#modelview) #### Properties [#properties-1] | Property | Modifier | Type | Description | Inherited from | | ------ | ------ | ------ | ------ | ------ | | `constraints` | `readonly` | readonly [`ResolvedConstraint`](https://docs.bear.build/docs/bear/engine/model.md#resolvedconstraint)[] | Every constraint the solver saw, dims first, with its measured value. | [`ModelView`](https://docs.bear.build/docs/bear/engine/model.md#modelview).[`constraints`](https://docs.bear.build/docs/bear/engine/model.md#property-constraints-1) | | `diagnostics` | `readonly` | readonly [`Diagnostic`](https://docs.bear.build/docs/bear/engine/types.md#diagnostic)[] | Findings from collection, relations and solve, at the fixed point only. | [`ModelView`](https://docs.bear.build/docs/bear/engine/model.md#modelview).[`diagnostics`](https://docs.bear.build/docs/bear/engine/model.md#property-diagnostics-1) | | `edges` | `readonly` | readonly [`Edge`](https://docs.bear.build/docs/bear/engine/relations.md#edge)[] | The relationship edges, resolved against the finished tree. | [`ModelView`](https://docs.bear.build/docs/bear/engine/model.md#modelview).[`edges`](https://docs.bear.build/docs/bear/engine/model.md#property-edges-1) | | `elementNodes` | `readonly` | `ReadonlyMap`\<[`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement)\<`object`\>, [`TreeNode`](https://docs.bear.build/docs/bear/engine/types.md#treenode)\> | The collected identity of JSX handles, including transparent assemblies. | [`ModelView`](https://docs.bear.build/docs/bear/engine/model.md#modelview).[`elementNodes`](https://docs.bear.build/docs/bear/engine/model.md#property-elementnodes-1) | | `geometry` | `readonly` | `ReadonlyMap`\<[`TreeNode`](https://docs.bear.build/docs/bear/engine/types.md#treenode), [`Geometry`](https://docs.bear.build/docs/bear/engine/types.md#geometry)\> | Every geometry part's solid, built once after convergence. See `geometryOf`. | [`ModelView`](https://docs.bear.build/docs/bear/engine/model.md#modelview).[`geometry`](https://docs.bear.build/docs/bear/engine/model.md#property-geometry-1) | | `passes` | `readonly` | `number` | How many collect → solve passes the fixed point took. | [`ModelView`](https://docs.bear.build/docs/bear/engine/model.md#modelview).[`passes`](https://docs.bear.build/docs/bear/engine/model.md#property-passes-1) | | `tree` | `readonly` | [`TreeNode`](https://docs.bear.build/docs/bear/engine/types.md#treenode) | - | [`ModelView`](https://docs.bear.build/docs/bear/engine/model.md#modelview).[`tree`](https://docs.bear.build/docs/bear/engine/model.md#property-tree-1) | #### Methods [#methods] ##### dispose() [#dispose] ```ts dispose(): void; ``` Defined in: [bear/engine/model.ts:42](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/model.ts#L42) Free the solids in `geometry`. Whoever called `materialize()` owns the model and disposes it when done; the geometry is unusable afterward. ###### Returns [#returns] `void` *** ### ModelView [#modelview] Defined in: [bear/engine/model.ts:20](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/model.ts#L20) What `materialize()` returns: the tree plus every fact about it that is not a property of one node. Consumers reach into it through functions that take the result (`q(result)`, `treeToScene(result)`, `printTree(result)`, `printConstraints(result)`, `logDiagnostics(result)`), so the shape here is a contract with those functions, not with model code. #### Extended by [#extended-by-1] - [`Model`](https://docs.bear.build/docs/bear/engine/model.md#model) #### Properties [#properties-2] | Property | Modifier | Type | Description | | ------ | ------ | ------ | ------ | | `constraints` | `readonly` | readonly [`ResolvedConstraint`](https://docs.bear.build/docs/bear/engine/model.md#resolvedconstraint)[] | Every constraint the solver saw, dims first, with its measured value. | | `diagnostics` | `readonly` | readonly [`Diagnostic`](https://docs.bear.build/docs/bear/engine/types.md#diagnostic)[] | Findings from collection, relations and solve, at the fixed point only. | | `edges` | `readonly` | readonly [`Edge`](https://docs.bear.build/docs/bear/engine/relations.md#edge)[] | The relationship edges, resolved against the finished tree. | | `elementNodes` | `readonly` | `ReadonlyMap`\<[`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement)\<`object`\>, [`TreeNode`](https://docs.bear.build/docs/bear/engine/types.md#treenode)\> | The collected identity of JSX handles, including transparent assemblies. | | `geometry` | `readonly` | `ReadonlyMap`\<[`TreeNode`](https://docs.bear.build/docs/bear/engine/types.md#treenode), [`Geometry`](https://docs.bear.build/docs/bear/engine/types.md#geometry)\> | Every geometry part's solid, built once after convergence. See `geometryOf`. | | `passes` | `readonly` | `number` | How many collect → solve passes the fixed point took. | | `tree` | `readonly` | [`TreeNode`](https://docs.bear.build/docs/bear/engine/types.md#treenode) | - | *** ### ResolvedAttachment [#resolvedattachment] Defined in: [bear/engine/model.ts:75](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/model.ts#L75) One plane of an attachment (`Lowerer.attach`): the anchor's gap to it. #### Extends [#extends-1] - [`ConstraintReport`](https://docs.bear.build/docs/bear/engine/model.md#constraintreport) #### Properties [#properties-3] | Property | Modifier | Type | Description | Inherited from | | ------ | ------ | ------ | ------ | ------ | | `anchor` | `readonly` | `string` | - | - | | `derived?` | `readonly` | `boolean` | True when `value` was filled in by solve rather than authored. | [`ConstraintReport`](https://docs.bear.build/docs/bear/engine/model.md#constraintreport).[`derived`](https://docs.bear.build/docs/bear/engine/model.md#property-derived) | | `eq?` | `readonly` | [`EqGroup`](https://docs.bear.build/docs/bear/engine/types.md#eqgroup) | - | [`ConstraintReport`](https://docs.bear.build/docs/bear/engine/model.md#constraintreport).[`eq`](https://docs.bear.build/docs/bear/engine/model.md#property-eq) | | `kind` | `readonly` | `"attachment"` | - | - | | `label` | `readonly` | `string` | "@A → W.start along x", "J1.start on H1.seat along y". | [`ConstraintReport`](https://docs.bear.build/docs/bear/engine/model.md#constraintreport).[`label`](https://docs.bear.build/docs/bear/engine/model.md#property-label) | | `max?` | `readonly` | `number` | - | [`ConstraintReport`](https://docs.bear.build/docs/bear/engine/model.md#constraintreport).[`max`](https://docs.bear.build/docs/bear/engine/model.md#property-max) | | `measured?` | `readonly` | `number` | - | [`ConstraintReport`](https://docs.bear.build/docs/bear/engine/model.md#constraintreport).[`measured`](https://docs.bear.build/docs/bear/engine/model.md#property-measured) | | `min?` | `readonly` | `number` | - | [`ConstraintReport`](https://docs.bear.build/docs/bear/engine/model.md#constraintreport).[`min`](https://docs.bear.build/docs/bear/engine/model.md#property-min) | | `node` | `readonly` | [`TreeNode`](https://docs.bear.build/docs/bear/engine/types.md#treenode) | - | [`ConstraintReport`](https://docs.bear.build/docs/bear/engine/model.md#constraintreport).[`node`](https://docs.bear.build/docs/bear/engine/model.md#property-node) | | `priority` | `readonly` | [`DimPriority`](https://docs.bear.build/docs/bear/engine/dims.md#dimpriority) | - | [`ConstraintReport`](https://docs.bear.build/docs/bear/engine/model.md#constraintreport).[`priority`](https://docs.bear.build/docs/bear/engine/model.md#property-priority) | | `target` | `readonly` | `string` | The target as the author named it ("H1.seat", "P1"). | - | | `value?` | `readonly` | `number` | The stated value: a dim's, or 0 for the gap between an anchor and its plane. | [`ConstraintReport`](https://docs.bear.build/docs/bear/engine/model.md#constraintreport).[`value`](https://docs.bear.build/docs/bear/engine/model.md#property-value) | ## Type Aliases [#type-aliases] ### ResolvedConstraint [#resolvedconstraint] ```ts type ResolvedConstraint = | ResolvedDim | ResolvedAttachment; ``` Defined in: [bear/engine/model.ts:82](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/model.ts#L82) *** ### ResolvedDim [#resolveddim] ```ts type ResolvedDim = EffectiveDim & ConstraintReport & object; ``` Defined in: [bear/engine/model.ts:66](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/model.ts#L66) A dim's effective intent together with the construction node that authored it. #### Type Declaration [#type-declaration] | Name | Type | Description | | ------ | ------ | ------ | | `fromPlane?` | [`WorldPlane`](https://docs.bear.build/docs/bear/engine/planeOf.md#worldplane) | The world plane each endpoint resolved to. Absent when it did not resolve. | | `kind` | `"dim"` | - | | `toPlane?` | [`WorldPlane`](https://docs.bear.build/docs/bear/engine/planeOf.md#worldplane) | - | ## Functions [#functions] ### isModel() [#ismodel] ```ts function isModel(value): value is ModelView; ``` Defined in: [bear/engine/model.ts:84](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/model.ts#L84) #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `value` | `unknown` | #### Returns [#returns-1] `value is ModelView` # models (https://docs.bear.build/docs/bear/engine/models) Import from `bear/engine/models`. ## Interfaces [#interfaces] ### ModelStore [#modelstore] Defined in: [bear/engine/models.ts:14](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/models.ts#L14) #### Methods [#methods] ##### dispose() [#dispose] ```ts dispose(): Promise; ``` Defined in: [bear/engine/models.ts:17](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/models.ts#L17) ###### Returns [#returns] `Promise`\<`void`\> ##### materialize() [#materialize] ```ts materialize(element): Promise; ``` Defined in: [bear/engine/models.ts:16](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/models.ts#L16) ###### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `element` | [`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement) | ###### Returns [#returns-1] `Promise`\<[`ModelView`](https://docs.bear.build/docs/bear/engine/model.md#modelview)\> ##### model() [#model] ```ts model(source): Promise; ``` Defined in: [bear/engine/models.ts:15](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/models.ts#L15) ###### Parameters [#parameters-1] | Parameter | Type | | ------ | ------ | | `source` | [`ModelSource`](https://docs.bear.build/docs/bear/engine/workbench.md#modelsource) | ###### Returns [#returns-2] `Promise`\<[`ModelView`](https://docs.bear.build/docs/bear/engine/model.md#modelview)\> ## Functions [#functions] ### createModelStore() [#createmodelstore] ```ts function createModelStore(options?): ModelStore; ``` Defined in: [bear/engine/models.ts:20](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/models.ts#L20) #### Parameters [#parameters-2] | Parameter | Type | | ------ | ------ | | `options?` | `Omit`\<[`MaterializeOptions`](https://docs.bear.build/docs/bear/engine/materialize.md#materializeoptions), `"shapes"`\> | #### Returns [#returns-3] [`ModelStore`](https://docs.bear.build/docs/bear/engine/models.md#modelstore) # panelize (https://docs.bear.build/docs/bear/engine/panelize) Import from `bear/engine/panelize`. ## Interfaces [#interfaces] ### PanelizeOptions [#panelizeoptions] Defined in: [bear/engine/panelize.ts:54](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/panelize.ts#L54) Configures the panel dimensions, gap, and orientation. #### Properties [#properties] | Property | Type | Description | | ------ | ------ | ------ | | `gap?` | [`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement) | Gap between panels. Defaults to 1/8in. | | `orientation?` | `"auto"` \| `"vertical"` \| `"horizontal"` | Panel orientation relative to the surface. - "auto" (default): long edge runs along the surface's longer dimension. - "vertical": long edge runs along the surface's V (height) axis. - "horizontal": long edge runs along the surface's U (width) axis. | | `overlap?` | [`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement) | Overlap between adjacent courses in the cross direction. Only used by the "overlapping" strategy. Each course overlaps the one below it by this amount (e.g. shingle headlap). | | `overlapStagger?` | `number` | Stagger fraction for the "overlapping" strategy (0–1). Controls how much odd rows are offset along the primary axis. Defaults to 1/6 (~6in on a 36in shingle). | | `panelLength?` | `number` | Panel long edge in project units. Defaults to 8ft. | | `panelWidth?` | `number` | Panel short edge in project units. Defaults to 4ft. | *** ### PanelPlacement [#panelplacement] Defined in: [bear/engine/panelize.ts:21](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/panelize.ts#L21) A panel placement in surface-local corner-based coordinates. #### Properties [#properties-1] | Property | Type | Description | | ------ | ------ | ------ | | `height` | `number` | Panel height (along surface V / Y axis). | | `layer?` | `number` | Stacking layer index for overlapping strategies. Course 0 is the bottom layer; each successive course increments by 1. | | `width` | `number` | Panel width (along surface U / X axis). | | `x` | `number` | Left edge X relative to surface origin. | | `y` | `number` | Bottom edge Y relative to surface origin. | *** ### SurfaceOptions [#surfaceoptions] Defined in: [bear/engine/panelize.ts:44](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/panelize.ts#L44) Describes the rectangular surface to be panelized. #### Properties [#properties-2] | Property | Type | Description | | ------ | ------ | ------ | | `height` | `number` | Surface height in project units (V axis). | | `strategy?` | [`PanelStrategy`](https://docs.bear.build/docs/bear/engine/panelize.md#panelstrategy) | Layout strategy. Defaults to "staggered". | | `width` | `number` | Surface width in project units (U axis). | ## Type Aliases [#type-aliases] ### PanelStrategy [#panelstrategy] ```ts type PanelStrategy = "scaled" | "staggered" | "edgeAligned" | "overlapping"; ``` Defined in: [bear/engine/panelize.ts:37](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/panelize.ts#L37) ## Functions [#functions] ### panelize() [#panelize] ```ts function panelize(surface, options?): PanelPlacement[]; ``` Defined in: [bear/engine/panelize.ts:89](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/panelize.ts#L89) Compute panel placements to tile a rectangular surface. #### Parameters [#parameters] | Parameter | Type | Description | | ------ | ------ | ------ | | `surface` | [`SurfaceOptions`](https://docs.bear.build/docs/bear/engine/panelize.md#surfaceoptions) | Surface dimensions and layout strategy. | | `options?` | [`PanelizeOptions`](https://docs.bear.build/docs/bear/engine/panelize.md#panelizeoptions) | Panel dimensions, gap, and orientation. | #### Returns [#returns] [`PanelPlacement`](https://docs.bear.build/docs/bear/engine/panelize.md#panelplacement)[] Array of panel placements in corner-based coordinates. # part (https://docs.bear.build/docs/bear/engine/part) Import from `bear/engine/part`. ## Interfaces [#interfaces] ### BomDef [#bomdef] Defined in: [bear/engine/part.ts:19](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/part.ts#L19) BOM metadata — how this material aggregates in a bill of materials. #### Properties [#properties] | Property | Type | Description | | ------ | ------ | ------ | | `excludeKeys?` | `string`[] | Column keys to EXCLUDE from BOM consolidation key. Dimension-specific columns (length, shape, dimensions) that should not split BOM lines. All other columns form the BOM identity. | | `unit` | [`BomUnit`](https://docs.bear.build/docs/bear/engine/part.md#bomunit) | Unit for BOM quantity reporting. Default: "ea". | *** ### PartColumn [#partcolumn] Defined in: [bear/engine/part.ts:50](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/part.ts#L50) A column definition for the parts list display. Materials define these to specify what identifies them and how to display it. The values are used for consolidation (grouping identical parts) and display. #### Properties [#properties-1] | Property | Type | Description | | ------ | ------ | ------ | | `key` | `string` | Property key (used for consolidation key) | | `label?` | `string` | Human-readable column header | | `value` | [`PartColumnValue`](https://docs.bear.build/docs/bear/engine/part.md#partcolumnvalue) | The value — UI detects type and renders appropriately | *** ### PartDefInput [#partdefinput] Defined in: [bear/engine/part.ts:64](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/part.ts#L64) The definition object passed to `part()`: a PartSpec plus the kind. #### Extends [#extends] - [`PartSpec`](https://docs.bear.build/docs/bear/engine/types.md#partspec)\<`P`, `Roles`, `Refs`\> #### Type Parameters [#type-parameters] | Type Parameter | Default type | | ------ | ------ | | `P` *extends* `object` | `Record`\<`string`, `unknown`\> | | `Roles` *extends* `string` | `string` | | `Refs` *extends* `string` | `string` | #### Properties [#properties-2] | Property | Type | Description | Inherited from | | ------ | ------ | ------ | ------ | | `bom?` | [`BomDef`](https://docs.bear.build/docs/bear/engine/part.md#bomdef) | BOM aggregation metadata. If omitted, defaults to \{ unit: "ea" \}. | [`PartSpec`](https://docs.bear.build/docs/bear/engine/types.md#partspec).[`bom`](https://docs.bear.build/docs/bear/engine/types.md#property-bom-1) | | `check?` | (`roles`, `node`) => readonly `string`[] | Physical fit against the resolved roles, read in the same frame `place` gets. Each returned string becomes a warning on the node, so a connector that does not suit its members says so instead of rendering a plausible lie. Runs whether or not `place` did. | [`PartSpec`](https://docs.bear.build/docs/bear/engine/types.md#partspec).[`check`](https://docs.bear.build/docs/bear/engine/types.md#property-check-1) | | `columns?` | (`node`, `geometry`) => [`PartColumn`](https://docs.bear.build/docs/bear/engine/part.md#partcolumn)[] | Generate specification columns for the parts list. | [`PartSpec`](https://docs.bear.build/docs/bear/engine/types.md#partspec).[`columns`](https://docs.bear.build/docs/bear/engine/types.md#property-columns-1) | | `connects?` | `Record`\<`Roles`, [`ConnectRole`](https://docs.bear.build/docs/bear/engine/relations.md#connectrole)\> | Connection roles: each key is a prop accepting a relation target, lowered through the role's registered relation spelling. Role props stay on the node (unlike global relation props), so Ref targets resolve when the node is collected. See ConnectRole in relations.ts. | [`PartSpec`](https://docs.bear.build/docs/bear/engine/types.md#partspec).[`connects`](https://docs.bear.build/docs/bear/engine/types.md#property-connects-1) | | `division` | `string` | CSI MasterFormat division code (e.g. "06 16 00"). | [`PartSpec`](https://docs.bear.build/docs/bear/engine/types.md#partspec).[`division`](https://docs.bear.build/docs/bear/engine/types.md#property-division-1) | | `drawing?` | (`node`) => [`DrawingHints`](https://docs.bear.build/docs/bear/drawings/types.md#drawinghints) | Provide drawing hints for 2D representation in architectural drawings. | [`PartSpec`](https://docs.bear.build/docs/bear/engine/types.md#partspec).[`drawing`](https://docs.bear.build/docs/bear/engine/types.md#property-drawing-1) | | `extents?` | (`props`, `resolved`) => [`Box`](https://docs.bear.build/docs/bear/geometry/types.md#box) | The part's bounding box in its local frame, from its props alone (`resolved` holds the Surfaces its Ref props name). | [`PartSpec`](https://docs.bear.build/docs/bear/engine/types.md#partspec).[`extents`](https://docs.bear.build/docs/bear/engine/types.md#property-extents-5) | | `geometry?` | (`props`, `resolved`, `loaded?`) => [`Geometry`](https://docs.bear.build/docs/bear/engine/types.md#geometry) | The part's solid and material, from its props and what `load` fetched. Defaults to the extents box, unshaded. Synchronous: the materialize that calls it owns every handle it makes. | [`PartSpec`](https://docs.bear.build/docs/bear/engine/types.md#partspec).[`geometry`](https://docs.bear.build/docs/bear/engine/types.md#property-geometry-1) | | `hosted?` | [`Hosted`](https://docs.bear.build/docs/bear/engine/mate.md#hosted)\<`P`\> | A part that sits in a host: the faces it reads and the planes that pose it (mate.ts). | [`PartSpec`](https://docs.bear.build/docs/bear/engine/types.md#partspec).[`hosted`](https://docs.bear.build/docs/bear/engine/types.md#property-hosted-1) | | `kind?` | [`NodeKind`](https://docs.bear.build/docs/bear/engine/types.md#nodekind) | "geometry" (default) for leaf parts that produce manifold; "assembly" for branch parts. | - | | `load?` | (`props`) => `Promise`\<`Manifold` \| `undefined`\> | Fetch the solid this part is made from (a cached mesh). Awaited for the converged tree before any geometry is built, so `geometry` can stay synchronous; resolves to a handle the caller owns. | [`PartSpec`](https://docs.bear.build/docs/bear/engine/types.md#partspec).[`load`](https://docs.bear.build/docs/bear/engine/types.md#property-load-1) | | `loadKey?` | (`props`) => `string` | What `load` reads from the props. Props with the same key are one shape: loaded once, shared between instances and kept across builds (`shapes.ts`). Without it every instance loads its own solid. | [`PartSpec`](https://docs.bear.build/docs/bear/engine/types.md#partspec).[`loadKey`](https://docs.bear.build/docs/bear/engine/types.md#property-loadkey-1) | | `panelSize?` | (`props`) => readonly \[`number`, `number`\] | Stock face dimensions in project units (U, V), before clipping to a placement. | [`PartSpec`](https://docs.bear.build/docs/bear/engine/types.md#partspec).[`panelSize`](https://docs.bear.build/docs/bear/engine/types.md#property-panelsize-1) | | `place?` | (`roles`, `node`) => [`TransformMatrix`](https://docs.bear.build/docs/bear/geometry/transform.md#transformmatrix) | Derive the part's pose in its parent frame from its resolved connection roles (given in that same frame). Runs when the part is collected and nothing authored a transform; a throw becomes a diagnostic. | [`PartSpec`](https://docs.bear.build/docs/bear/engine/types.md#partspec).[`place`](https://docs.bear.build/docs/bear/engine/types.md#property-place-1) | | `planes?` | (`props`, `resolved`) => `Readonly`\<`Record`\<`Refs`, [`Surface`](https://docs.bear.build/docs/bear/geometry/shapes.md#surface)\>\> | The named reference planes a geometry part publishes, in its local frame, keyed by the names in `refs` (a hanger's seat, a tee's ports). The six box faces need no entry. | [`PartSpec`](https://docs.bear.build/docs/bear/engine/types.md#partspec).[`planes`](https://docs.bear.build/docs/bear/engine/types.md#property-planes-1) | | `refs?` | readonly `Refs`[] | Named refs this part publishes (e.g. ["top"], ["ext", "int"]). | [`PartSpec`](https://docs.bear.build/docs/bear/engine/types.md#partspec).[`refs`](https://docs.bear.build/docs/bear/engine/types.md#property-refs-6) | ## Type Aliases [#type-aliases] ### BomUnit [#bomunit] ```ts type BomUnit = "ea" | "lf" | "sf" | "cf" | "cy"; ``` Defined in: [bear/engine/part.ts:16](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/part.ts#L16) Unit of measure for BOM aggregation. *** ### CrossSectionData [#crosssectiondata] ```ts type CrossSectionData = number[][]; ``` Defined in: [bear/engine/part.ts:38](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/part.ts#L38) Serialized polygon data for crossSection shapes in parts list. Array of [x, y] coordinate pairs defining the polygon vertices. *** ### PartColumnValue [#partcolumnvalue] ```ts type PartColumnValue = string | number | boolean | CrossSectionData; ``` Defined in: [bear/engine/part.ts:43](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/part.ts#L43) Value type for part columns — can be primitive or shape data. ## Functions [#functions] ### part() [#part] ```ts function part(name, def): PartDef; ``` Defined in: [bear/engine/part.ts:84](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/part.ts#L84) Creates a tagged part definition. #### Type Parameters [#type-parameters-1] | Type Parameter | Default type | | ------ | ------ | | `P` *extends* `object` | `Record`\<`string`, `unknown`\> | | `Roles` *extends* `string` | `string` | | `Refs` *extends* `string` | `string` | #### Parameters [#parameters] | Parameter | Type | Description | | ------ | ------ | ------ | | `name` | `string` | — Human-readable type name (e.g. "Lumber", "OSB"). Sets the function's `.name` property, used as the default FQN segment and as the material kind in the parts list. | | `def` | [`PartDefInput`](https://docs.bear.build/docs/bear/engine/part.md#partdefinput)\<`P`, `Roles`, `Refs`\> | Part definition: division, bom, extents, geometry, columns. `Roles` and `Refs` state the part's interface contract; naming them makes `connects`, `place`, `check` and `planes` typecheck against it. | #### Returns [#returns] [`PartDef`](https://docs.bear.build/docs/bear/engine/types.md#partdef)\<`P`, `Roles`, `Refs`\> # place (https://docs.bear.build/docs/bear/engine/place) Import from `bear/engine/place`. ## Interfaces [#interfaces] ### PlacedRole [#placedrole] Defined in: [bear/engine/place.ts:45](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/place.ts#L45) One resolved connection role, in the connector's parent frame. The member is published as its own extents and its pose, never as the box it casts in this frame: a 4x6 post turned 45 degrees casts a box 6 3/8in square, which is neither of its faces. Nothing is derived here that a connector could not derive, and nothing is dropped that only this frame knows. `blueprints/connectors/members.ts` reads it. #### Properties [#properties] | Property | Type | Description | | ------ | ------ | ------ | | `extents` | [`Box`](https://docs.bear.build/docs/bear/geometry/types.md#box) | The member's own box, in its own frame: the section it was cut to. | | `node` | [`TreeNode`](https://docs.bear.build/docs/bear/engine/types.md#treenode) | - | | `plane?` | [`WorldPlane`](https://docs.bear.build/docs/bear/engine/planeOf.md#worldplane) | Present exactly when the author named a port (a Ref target). | | `pose` | [`TransformMatrix`](https://docs.bear.build/docs/bear/geometry/transform.md#transformmatrix) | The member's pose in the connector's parent frame. | ## Type Aliases [#type-aliases] ### PlacedRoles [#placedroles] ```ts type PlacedRoles = Record; ``` Defined in: [bear/engine/place.ts:60](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/place.ts#L60) A connector's resolved roles, keyed by the role names its part declares. `Roles` is a literal union for a part with a stated contract, so `roles.header` is the header and a typo is a compile error. #### Type Parameters [#type-parameters] | Type Parameter | Default type | | ------ | ------ | | `Roles` *extends* `string` | `string` | ## Functions [#functions] ### placeFromRoles() [#placefromroles] ```ts function placeFromRoles( node, frame, elementMap, findings ): | TransformMatrix | undefined; ``` Defined in: [bear/engine/place.ts:76](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/place.ts#L76) The pose a connector derives from its resolved roles, if it has a `place` callback and wired roles; undefined otherwise, or on failure (reported as a finding on the connector). Resolving the roles is also the moment the part can say whether it physically suits them, so the part's `check` runs here off the same resolution: one walk of the roles, one findings sink, no second pass that would have to resolve them again. Both run only once every role the part declares has a target, so neither has to ask whether it does. #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `node` | [`TreeNode`](https://docs.bear.build/docs/bear/engine/types.md#treenode) | | `frame` | [`TreeNode`](https://docs.bear.build/docs/bear/engine/types.md#treenode) \| `null` | | `elementMap` | `ReadonlyMap`\<[`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement)\<`object`\>, [`TreeNode`](https://docs.bear.build/docs/bear/engine/types.md#treenode)\> | | `findings` | [`Findings`](https://docs.bear.build/docs/bear/engine/diagnostics.md#findings) | #### Returns [#returns] \| [`TransformMatrix`](https://docs.bear.build/docs/bear/geometry/transform.md#transformmatrix) \| `undefined` # planeOf (https://docs.bear.build/docs/bear/engine/planeOf) Import from `bear/engine/planeOf`. ## Interfaces [#interfaces] ### Scoped [#scoped] Defined in: [bear/engine/planeOf.ts:104](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/planeOf.ts#L104) A node shape the lexical search can walk: identity and a named tree, generic so the result is the caller's own node type. #### Type Parameters [#type-parameters] | Type Parameter | | ------ | | `N` | #### Properties [#properties] | Property | Modifier | Type | | ------ | ------ | ------ | | `authoredSegment` | `readonly` | `string` | | `children` | `readonly` | readonly `N`[] | | `fqn` | `readonly` | `string` | | `parent` | `readonly` | `N` \| `null` | *** ### WorldPlane [#worldplane] Defined in: [bear/engine/planeOf.ts:20](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/planeOf.ts#L20) A plane in world coordinates. #### Properties [#properties-1] | Property | Type | | ------ | ------ | | `normal` | `Vector3` | | `point` | `Vector3` | ## Type Aliases [#type-aliases] ### PlaneResult [#planeresult] ```ts type PlaneResult = | { plane: WorldPlane; } | { error: string; }; ``` Defined in: [bear/engine/planeOf.ts:25](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/planeOf.ts#L25) ## Functions [#functions] ### axisVector() [#axisvector] ```ts function axisVector(direction): Vector3; ``` Defined in: [bear/engine/planeOf.ts:27](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/planeOf.ts#L27) #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `direction` | [`Axis`](https://docs.bear.build/docs/bear/engine/dims.md#axis) | #### Returns [#returns] `Vector3` *** ### planeOf() [#planeof] ```ts function planeOf( end, direction, dimNode, elementMap ): PlaneResult; ``` Defined in: [bear/engine/planeOf.ts:45](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/planeOf.ts#L45) Resolve a dim endpoint to a world plane. The one function that turns an endpoint into geometry. Three endpoint forms, one implementation: a gridline ("@A") resolves through the GridRefs context of the dim's ancestors; a name ("corridor.coreExt") resolves lexically to an element and then to its published refs; a Ref object resolves through the element map. World pose always comes from the tree's composed transforms, never from props. #### Parameters [#parameters-1] | Parameter | Type | | ------ | ------ | | `end` | `string` \| [`Ref`](https://docs.bear.build/docs/bear/engine/types.md#ref) | | `direction` | [`Axis`](https://docs.bear.build/docs/bear/engine/dims.md#axis) \| `undefined` | | `dimNode` | [`NamedNode`](https://docs.bear.build/docs/bear/engine/types.md#namednode) | | `elementMap` | `ReadonlyMap`\<[`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement)\<`object`\>, [`NamedNode`](https://docs.bear.build/docs/bear/engine/types.md#namednode)\> | #### Returns [#returns-1] [`PlaneResult`](https://docs.bear.build/docs/bear/engine/planeOf.md#planeresult) *** ### refPlane() [#refplane] ```ts function refPlane( source, key, direction ): PlaneResult; ``` Defined in: [bear/engine/planeOf.ts:182](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/planeOf.ts#L182) The world plane of a named ref (or bbox face) on a resolved node. #### Parameters [#parameters-2] | Parameter | Type | | ------ | ------ | | `source` | [`NamedNode`](https://docs.bear.build/docs/bear/engine/types.md#namednode) | | `key` | `string` | | `direction` | [`Axis`](https://docs.bear.build/docs/bear/engine/dims.md#axis) \| `undefined` | #### Returns [#returns-2] [`PlaneResult`](https://docs.bear.build/docs/bear/engine/planeOf.md#planeresult) *** ### resolveElementName() [#resolveelementname] ```ts function resolveElementName(name, from): | { node: N; } | { error: string; }; ``` Defined in: [bear/engine/planeOf.ts:121](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/planeOf.ts#L121) Resolve a dotted element name, lexically: search `scope`'s subtree (the asking node's parent), then the grandparent's, outward; the nearest enclosing scope with a match wins, and within it the match must be unique. Names are fqn-segment suffixes, so adding parent segments reaches past the local scope. Deduplicated siblings (P1-1, P1-2) also answer to their authored name, so "P1" reports them as candidates. Shared by dim endpoints and relation targets. #### Type Parameters [#type-parameters-1] | Type Parameter | | ------ | | `N` *extends* [`Scoped`](https://docs.bear.build/docs/bear/engine/planeOf.md#scoped)\<`N`\> | #### Parameters [#parameters-3] | Parameter | Type | | ------ | ------ | | `name` | `string` | | `from` | `N` \| `null` | #### Returns [#returns-3] \| \{ `node`: `N`; \} \| \{ `error`: `string`; \} *** ### resolveRefName() [#resolverefname] ```ts function resolveRefName(name, from): | { key: string; node: NamedNode; } | { error: string; }; ``` Defined in: [bear/engine/planeOf.ts:84](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/planeOf.ts#L84) Resolve a "name.refKey" endpoint to its element, lexically: the last segment is the ref key, the rest name the element. #### Parameters [#parameters-4] | Parameter | Type | | ------ | ------ | | `name` | `string` | | `from` | [`NamedNode`](https://docs.bear.build/docs/bear/engine/types.md#namednode) | #### Returns [#returns-4] \| \{ `key`: `string`; `node`: [`NamedNode`](https://docs.bear.build/docs/bear/engine/types.md#namednode); \} \| \{ `error`: `string`; \} # print (https://docs.bear.build/docs/bear/engine/print) Import from `bear/engine/print`. ## Functions [#functions] ### printTree() [#printtree] ```ts function printTree(result): string; ``` Defined in: [bear/engine/print.ts:8](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/print.ts#L8) Formats a model's tree as a readable string with indentation and measurements. #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `result` | [`ModelView`](https://docs.bear.build/docs/bear/engine/model.md#modelview) | #### Returns [#returns] `string` # printConstraints (https://docs.bear.build/docs/bear/engine/printConstraints) Import from `bear/engine/printConstraints`. ## Functions [#functions] ### printConstraints() [#printconstraints] ```ts function printConstraints(result): string; ``` Defined in: [bear/engine/printConstraints.ts:12](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/printConstraints.ts#L12) Text dump of the constraint system: every constraint the solver saw (dims, attachments, whatever else solve reports) with its stated and measured values, and the diagnostics about it. This is the agent-facing view into solve, the way printTree is the view into the tree. Every constraint kind reports the same shape, so nothing here knows the kinds. #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `result` | [`ModelView`](https://docs.bear.build/docs/bear/engine/model.md#modelview) | #### Returns [#returns] `string` # query-plan (https://docs.bear.build/docs/bear/engine/query-plan) Import from `bear/engine/query-plan`. ## Type Aliases [#type-aliases] ### PlanSelector [#planselector] ```ts type PlanSelector = | string | RegExp | { type: string; } | { op: PropOp; prop: string; value: unknown; }; ``` Defined in: [bear/engine/query-plan.ts:17](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/query-plan.ts#L17) #### Union Members [#union-members] `string` *** `RegExp` *** ##### Type Literal [#type-literal] ```ts { type: string; } ``` A part (`node.type`) or assembly component, by name. *** ##### Type Literal [#type-literal-1] ```ts { op: PropOp; prop: string; value: unknown; } ``` `node.props[prop] value`; `in` takes an array of values. *** ### PropOp [#propop] ```ts type PropOp = "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "in"; ``` Defined in: [bear/engine/query-plan.ts:15](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/query-plan.ts#L15) *** ### QueryStep [#querystep] ```ts type QueryStep = | ["find", ...PlanSelector[]] | ["named", ...(string | RegExp)[]] | ["ofType", string] | ["where", ...PlanSelector[]] | ["has", ...PlanSelector[]] | ["closest", ...PlanSelector[]] | ["geometry"] | ["assemblies"] | ["children"] | ["parent"] | ["ancestors"] | ["descendants"] | ["siblings"] | ["follow", string, EdgeDir?] | ["trace", string, EdgeDir?] | ["system", string] | ["nth", number] | ["nodes", ...string[]]; ``` Defined in: [bear/engine/query-plan.ts:27](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/query-plan.ts#L27) ## Variables [#variables] ### LEAF\_NODES [#leaf_nodes] ```ts const LEAF_NODES: QueryStep[]; ``` Defined in: [bear/engine/query-plan.ts:49](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/query-plan.ts#L49) Every geometry node below the root: what the parts list and BOM read. ## Functions [#functions] ### runPlan() [#runplan] ```ts function runPlan(model, steps): BearQuery; ``` Defined in: [bear/engine/query-plan.ts:152](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/query-plan.ts#L152) Replay `steps` from the model's root; an empty plan is the root itself. #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `model` | [`ModelView`](https://docs.bear.build/docs/bear/engine/model.md#modelview) | | `steps` | readonly [`QueryStep`](https://docs.bear.build/docs/bear/engine/query-plan.md#querystep)[] | #### Returns [#returns] [`BearQuery`](https://docs.bear.build/docs/bear/engine/query.md#bearquery)\<[`TreeNode`](https://docs.bear.build/docs/bear/engine/types.md#treenode)\> # query (https://docs.bear.build/docs/bear/engine/query) Import from `bear/engine/query`. ## Classes [#classes] ### BearQuery [#bearquery] Defined in: [bear/engine/query.ts:246](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/query.ts#L246) Composable query over Bear nodes. **The one rule: `find` goes down; everything else stays put.** A query holds an immutable *current set* of nodes. [find](https://docs.bear.build/docs/bear/engine/query.md#find) searches all descendants of the current set. Every other method filters the current set ([named](https://docs.bear.build/docs/bear/engine/query.md#named), [ofType](https://docs.bear.build/docs/bear/engine/query.md#oftype), [geometry](https://docs.bear.build/docs/bear/engine/query.md#geometry), [assemblies](https://docs.bear.build/docs/bear/engine/query.md#assemblies), [where](https://docs.bear.build/docs/bear/engine/query.md#where), [has](https://docs.bear.build/docs/bear/engine/query.md#has)), hops it structurally ([children](https://docs.bear.build/docs/bear/engine/query.md#children), [parent](https://docs.bear.build/docs/bear/engine/query.md#parent), [ancestors](https://docs.bear.build/docs/bear/engine/query.md#ancestors), [descendants](https://docs.bear.build/docs/bear/engine/query.md#descendants), [siblings](https://docs.bear.build/docs/bear/engine/query.md#siblings), [closest](https://docs.bear.build/docs/bear/engine/query.md#closest)), follows relationship edges ([follow](https://docs.bear.build/docs/bear/engine/query.md#follow), [trace](https://docs.bear.build/docs/bear/engine/query.md#trace), with [edges](https://docs.bear.build/docs/bear/engine/query.md#edges) for the records themselves), positions within it ([nth](https://docs.bear.build/docs/bear/engine/query.md#nth)), or terminates it ([one](https://docs.bear.build/docs/bear/engine/query.md#one), [first](https://docs.bear.build/docs/bear/engine/query.md#first), [at](https://docs.bear.build/docs/bear/engine/query.md#at), [all](https://docs.bear.build/docs/bear/engine/query.md#all), iteration). Layered selection falls out of chaining, because the current set *is* the scope of the next `find`: ```ts q("Level-1").find(/^Wall/).nth(2).find("Post").one() ``` AND is a filter chained after a search; OR is variadic selectors: ```ts q().find(NominalLumber).named(/^HDR/) // lumber that is ALSO named HDR-* q().find("BP", /^BP-/) // either selector ``` Terminals are strict: [one](https://docs.bear.build/docs/bear/engine/query.md#one) and [first](https://docs.bear.build/docs/bear/engine/query.md#first) throw with the chain's provenance when the set is empty, so ad-hoc scripts fail loudly instead of silently operating on nothing. [at](https://docs.bear.build/docs/bear/engine/query.md#at) is the intentionally quiet, nullable accessor. A query is re-iterable rather than a one-shot iterator, so it goes straight into anything that takes nodes (`for (const n of query)`, `new Set(query)`, `[...query]`) and stays safe to hold in a variable and pass around. #### Type Parameters [#type-parameters] | Type Parameter | Default type | | ------ | ------ | | `N` *extends* [`TreeNode`](https://docs.bear.build/docs/bear/engine/types.md#treenode) | [`TreeNode`](https://docs.bear.build/docs/bear/engine/types.md#treenode) | #### Implements [#implements] - `Iterable`\<`N`\> #### Constructors [#constructors] ##### Constructor [#constructor] ```ts new BearQuery( nodes, path?, hint? ): BearQuery; ``` Defined in: [bear/engine/query.ts:253](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/query.ts#L253) ###### Parameters [#parameters] | Parameter | Type | Default value | | ------ | ------ | ------ | | `nodes` | `N` \| readonly `N`[] | `undefined` | | `path?` | `string` | `"q(…)"` | | `hint?` | `string` | `undefined` | ###### Returns [#returns] [`BearQuery`](https://docs.bear.build/docs/bear/engine/query.md#bearquery)\<`N`\> #### Accessors [#accessors] ##### length [#length] ###### Get Signature [#get-signature] ```ts get length(): number; ``` Defined in: [bear/engine/query.ts:695](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/query.ts#L695) Number of matched nodes. ###### Returns [#returns-1] `number` #### Methods [#methods] ##### \[iterator\]() [#iterator] ```ts [iterator](): IterableIterator; ``` Defined in: [bear/engine/query.ts:709](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/query.ts#L709) Iterate the matched nodes, so a query goes straight into anything that takes nodes: `for (const n of query)`, `new Set(query)`, `[...query]`. Re-iterable, not a one-shot iterator. ###### Returns [#returns-2] `IterableIterator`\<`N`\> ###### Implementation of [#implementation-of] `Iterable.[iterator]` ##### all() [#all] ```ts all(): readonly N[]; ``` Defined in: [bear/engine/query.ts:690](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/query.ts#L690) All matched nodes as an array. ###### Returns [#returns-3] readonly `N`[] ##### ancestors() [#ancestors] ```ts ancestors(): BearQuery>; ``` Defined in: [bear/engine/query.ts:454](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/query.ts#L454) Walk up from each node (excluding the node itself). Nearest first. ###### Returns [#returns-4] [`BearQuery`](https://docs.bear.build/docs/bear/engine/query.md#bearquery)\<`Phase`\<`N`\>\> ##### assemblies() [#assemblies] ```ts assemblies(): BearQuery>; ``` Defined in: [bear/engine/query.ts:398](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/query.ts#L398) Keep assembly nodes: the grouping branches. ###### Returns [#returns-5] [`BearQuery`](https://docs.bear.build/docs/bear/engine/query.md#bearquery)\<`Extract`\<`N`, \{ `kind`: `"assembly"`; \}\>\> ##### at() [#at] ```ts at(index): N | undefined; ``` Defined in: [bear/engine/query.ts:685](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/query.ts#L685) The i-th node or `undefined`: the only quiet, nullable accessor. Negative indices count from the end, like `Array.prototype.at`. ###### Parameters [#parameters-1] | Parameter | Type | | ------ | ------ | | `index` | `number` | ###### Returns [#returns-6] `N` \| `undefined` ##### children() [#children] ```ts children(): BearQuery>; ``` Defined in: [bear/engine/query.ts:437](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/query.ts#L437) Direct children of each node. ###### Returns [#returns-7] [`BearQuery`](https://docs.bear.build/docs/bear/engine/query.md#bearquery)\<`Phase`\<`N`\>\> ##### closest() [#closest] ###### Call Signature [#call-signature] ```ts closest(predicate): BearQuery>; ``` Defined in: [bear/engine/query.ts:490](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/query.ts#L490) Nearest ancestor of each node matching any selector (deduplicated). The node itself is not eligible: like `find`, but pointed up. ###### Parameters [#parameters-2] | Parameter | Type | | ------ | ------ | | `predicate` | (`node`) => `boolean` | ###### Returns [#returns-8] [`BearQuery`](https://docs.bear.build/docs/bear/engine/query.md#bearquery)\<`Phase`\<`N`\>\> ###### Call Signature [#call-signature-1] ```ts closest(...selectors): BearQuery>; ``` Defined in: [bear/engine/query.ts:491](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/query.ts#L491) Nearest ancestor of each node matching any selector (deduplicated). The node itself is not eligible: like `find`, but pointed up. ###### Parameters [#parameters-3] | Parameter | Type | | ------ | ------ | | ...`selectors` | [`Selector`](https://docs.bear.build/docs/bear/engine/query.md#selector)[] | ###### Returns [#returns-9] [`BearQuery`](https://docs.bear.build/docs/bear/engine/query.md#bearquery)\<`Phase`\<`N`\>\> ##### descendants() [#descendants] ```ts descendants(): BearQuery>; ``` Defined in: [bear/engine/query.ts:470](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/query.ts#L470) Full subtree under each node, excluding the node itself. Equivalent to `.find()` with no selector; kept as the explicit hop. ###### Returns [#returns-10] [`BearQuery`](https://docs.bear.build/docs/bear/engine/query.md#bearquery)\<`Phase`\<`N`\>\> ##### edges() [#edges] ```ts edges(kind?): readonly Edge[]; ``` Defined in: [bear/engine/query.ts:594](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/query.ts#L594) The relationship edge records incident to the current set or its descendants, optionally filtered by kind. Returns records, not nodes: the accessor for edge props (fastener schedules, flow demands). ```ts q("Deck").edges("bears") // every bearing edge inside the deck q(hanger).edges("fastens")[0]!.props.count ``` ###### Parameters [#parameters-4] | Parameter | Type | | ------ | ------ | | `kind?` | `string` | ###### Returns [#returns-11] readonly [`Edge`](https://docs.bear.build/docs/bear/engine/relations.md#edge)[] ##### find() [#find] ###### Call Signature [#call-signature-2] ```ts find

(selector): BearQuery & object>; ``` Defined in: [bear/engine/query.ts:310](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/query.ts#L310) Search all descendants of the current set for nodes matching any of the given [Selector](https://docs.bear.build/docs/bear/engine/query.md#selector)s. The current set itself is not eligible: `find` goes down. With no selectors, returns all descendants. ```ts q().find(Drywall) // every drywall node in the tree q("Level-1").find(/^Wall/) // walls under Level-1 ``` ###### Type Parameters [#type-parameters-1] | Type Parameter | | ------ | | `P` *extends* `object` | ###### Parameters [#parameters-5] | Parameter | Type | | ------ | ------ | | `selector` | [`PartDef`](https://docs.bear.build/docs/bear/engine/types.md#partdef)\<`P`\> | ###### Returns [#returns-12] [`BearQuery`](https://docs.bear.build/docs/bear/engine/query.md#bearquery)\<`Phase`\<`N`\> & `object`\> ###### Call Signature [#call-signature-3] ```ts find(predicate): BearQuery>; ``` Defined in: [bear/engine/query.ts:313](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/query.ts#L313) Search all descendants of the current set for nodes matching any of the given [Selector](https://docs.bear.build/docs/bear/engine/query.md#selector)s. The current set itself is not eligible: `find` goes down. With no selectors, returns all descendants. ```ts q().find(Drywall) // every drywall node in the tree q("Level-1").find(/^Wall/) // walls under Level-1 ``` ###### Parameters [#parameters-6] | Parameter | Type | | ------ | ------ | | `predicate` | (`node`) => `boolean` | ###### Returns [#returns-13] [`BearQuery`](https://docs.bear.build/docs/bear/engine/query.md#bearquery)\<`Phase`\<`N`\>\> ###### Call Signature [#call-signature-4] ```ts find(...selectors): BearQuery>; ``` Defined in: [bear/engine/query.ts:314](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/query.ts#L314) Search all descendants of the current set for nodes matching any of the given [Selector](https://docs.bear.build/docs/bear/engine/query.md#selector)s. The current set itself is not eligible: `find` goes down. With no selectors, returns all descendants. ```ts q().find(Drywall) // every drywall node in the tree q("Level-1").find(/^Wall/) // walls under Level-1 ``` ###### Parameters [#parameters-7] | Parameter | Type | | ------ | ------ | | ...`selectors` | [`Selector`](https://docs.bear.build/docs/bear/engine/query.md#selector)[] | ###### Returns [#returns-14] [`BearQuery`](https://docs.bear.build/docs/bear/engine/query.md#bearquery)\<`Phase`\<`N`\>\> ##### first() [#first] ```ts first(): N; ``` Defined in: [bear/engine/query.ts:673](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/query.ts#L673) First node. Throws when the set is empty; use [at](https://docs.bear.build/docs/bear/engine/query.md#at) when an absent match is an expected, handled case rather than a bug. ###### Returns [#returns-15] `N` ##### follow() [#follow] ```ts follow(kind, opts?): BearQuery; ``` Defined in: [bear/engine/query.ts:523](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/query.ts#L523) Follow relationship edges of `kind` one hop from each node in the current set: with the edge's direction by default, against it with `{ dir: "in" }`. Results are deduplicated. Edges exist only on a model's tree; [trace](https://docs.bear.build/docs/bear/engine/query.md#trace) is the transitive closure. ```ts q("Stud-3").follow("bears") // what the stud bears on q(lav).follow("feeds", { dir: "in" }) // the branch feeding this fixture ``` ###### Parameters [#parameters-8] | Parameter | Type | | ------ | ------ | | `kind` | `string` | | `opts?` | \{ `dir?`: `"in"` \| `"out"`; \} | | `opts.dir?` | `"in"` \| `"out"` | ###### Returns [#returns-16] [`BearQuery`](https://docs.bear.build/docs/bear/engine/query.md#bearquery)\<[`TreeNode`](https://docs.bear.build/docs/bear/engine/types.md#treenode)\> ##### geometry() [#geometry] ```ts geometry(): BearQuery>; ``` Defined in: [bear/engine/query.ts:390](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/query.ts#L390) Keep geometry nodes: the physical parts with `manifold` and `extents`. ###### Returns [#returns-17] [`BearQuery`](https://docs.bear.build/docs/bear/engine/query.md#bearquery)\<`Extract`\<`N`, \{ `kind`: `"geometry"`; \}\>\> ##### has() [#has] ###### Call Signature [#call-signature-5] ```ts has(predicate): BearQuery; ``` Defined in: [bear/engine/query.ts:423](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/query.ts#L423) Keep nodes whose subtree contains a match. "Walls that have a Post": ```ts q().find(/^Wall/).has("Post") ``` ###### Parameters [#parameters-9] | Parameter | Type | | ------ | ------ | | `predicate` | (`node`) => `boolean` | ###### Returns [#returns-18] [`BearQuery`](https://docs.bear.build/docs/bear/engine/query.md#bearquery)\<`N`\> ###### Call Signature [#call-signature-6] ```ts has(...selectors): BearQuery; ``` Defined in: [bear/engine/query.ts:424](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/query.ts#L424) Keep nodes whose subtree contains a match. "Walls that have a Post": ```ts q().find(/^Wall/).has("Post") ``` ###### Parameters [#parameters-10] | Parameter | Type | | ------ | ------ | | ...`selectors` | [`Selector`](https://docs.bear.build/docs/bear/engine/query.md#selector)[] | ###### Returns [#returns-19] [`BearQuery`](https://docs.bear.build/docs/bear/engine/query.md#bearquery)\<`N`\> ##### isEmpty() [#isempty] ```ts isEmpty(): boolean; ``` Defined in: [bear/engine/query.ts:700](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/query.ts#L700) True when nothing matched. ###### Returns [#returns-20] `boolean` ##### named() [#named] ```ts named(...selectors): BearQuery; ``` Defined in: [bear/engine/query.ts:344](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/query.ts#L344) Keep the members of the current set whose **label** matches an exact string or a RegExp (see [Selector](https://docs.bear.build/docs/bear/engine/query.md#selector) for what "label" means). Never descends: `q(wall).children().named("Sheathing")` is the direct child, where `.find("Sheathing")` after the hop would search grandchildren and below. ###### Parameters [#parameters-11] | Parameter | Type | | ------ | ------ | | ...`selectors` | readonly (`string` \| `RegExp`)[] | ###### Returns [#returns-21] [`BearQuery`](https://docs.bear.build/docs/bear/engine/query.md#bearquery)\<`N`\> ##### nth() [#nth] ```ts nth(index): BearQuery; ``` Defined in: [bear/engine/query.ts:643](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/query.ts#L643) The i-th match as a query, so the chain can continue: `q().find(/^Wall/).nth(2).find("Post")` selects posts of the third wall. Negative indices count from the end. Out of range yields an empty query, which the strict terminals then report loudly. ###### Parameters [#parameters-12] | Parameter | Type | | ------ | ------ | | `index` | `number` | ###### Returns [#returns-22] [`BearQuery`](https://docs.bear.build/docs/bear/engine/query.md#bearquery)\<`N`\> ##### ofType() [#oftype] ###### Call Signature [#call-signature-7] ```ts ofType

(partDef): BearQuery; ``` Defined in: [bear/engine/query.ts:372](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/query.ts#L372) Keep nodes whose type IS the given component (identity comparison, not name comparison). A PartDef matches the node's part type and narrows the result's props type; an assembly component matches the nodes its expansion produced. If nothing matches but a same-named component with a different identity exists in the set, the strict terminals say so; the usual cause is importing a second copy of the component's module. ###### Type Parameters [#type-parameters-2] | Type Parameter | | ------ | | `P` *extends* `object` | ###### Parameters [#parameters-13] | Parameter | Type | | ------ | ------ | | `partDef` | [`PartDef`](https://docs.bear.build/docs/bear/engine/types.md#partdef)\<`P`\> | ###### Returns [#returns-23] [`BearQuery`](https://docs.bear.build/docs/bear/engine/query.md#bearquery)\<`N` & `object`\> ###### Call Signature [#call-signature-8] ```ts ofType(assembly): BearQuery; ``` Defined in: [bear/engine/query.ts:376](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/query.ts#L376) Keep nodes whose type IS the given component (identity comparison, not name comparison). A PartDef matches the node's part type and narrows the result's props type; an assembly component matches the nodes its expansion produced. If nothing matches but a same-named component with a different identity exists in the set, the strict terminals say so; the usual cause is importing a second copy of the component's module. ###### Parameters [#parameters-14] | Parameter | Type | | ------ | ------ | | `assembly` | [`AssemblyFn`](https://docs.bear.build/docs/bear/engine/types.md#assemblyfn)\<`any`\> | ###### Returns [#returns-24] [`BearQuery`](https://docs.bear.build/docs/bear/engine/query.md#bearquery)\<`N`\> ##### one() [#one] ```ts one(): N; ``` Defined in: [bear/engine/query.ts:655](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/query.ts#L655) Exactly one node. Throws when the set is empty or ambiguous, naming the chain and the extra matches. The workhorse terminal for tests and agent scripts: a typo fails loudly, and so does an accidental multi-match. ###### Returns [#returns-25] `N` ##### parent() [#parent] ```ts parent(): BearQuery>; ``` Defined in: [bear/engine/query.ts:445](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/query.ts#L445) Immediate parent of each node (deduplicated). ###### Returns [#returns-26] [`BearQuery`](https://docs.bear.build/docs/bear/engine/query.md#bearquery)\<`Phase`\<`N`\>\> ##### siblings() [#siblings] ```ts siblings(): BearQuery>; ``` Defined in: [bear/engine/query.ts:475](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/query.ts#L475) Siblings (same parent, excluding self). ###### Returns [#returns-27] [`BearQuery`](https://docs.bear.build/docs/bear/engine/query.md#bearquery)\<`Phase`\<`N`\>\> ##### system() [#system] ```ts system(name): BearQuery; ``` Defined in: [bear/engine/query.ts:615](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/query.ts#L615) Keep nodes inside the named system (an ancestor `System` assembly published the tag). A filter, like the others: it never descends. ```ts q().find(SupplyTrace).system("DomesticCold") ``` ###### Parameters [#parameters-15] | Parameter | Type | | ------ | ------ | | `name` | `string` | ###### Returns [#returns-28] [`BearQuery`](https://docs.bear.build/docs/bear/engine/query.md#bearquery)\<`N`\> ##### trace() [#trace] ```ts trace(kind, opts?): BearQuery; ``` Defined in: [bear/engine/query.ts:556](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/query.ts#L556) The transitive closure of the kind's transfer semantics: every node reachable from the current set, nearest first, excluding the set itself. For a containment kind (`bears`), an element that declares no edge transfers to its enclosing assembly, so a load path runs member → assembly → assembly's declared supports and ends at the tree root when nothing grounds it. [follow](https://docs.bear.build/docs/bear/engine/query.md#follow) stays declared edges only. ```ts q(joist).trace("bears") // the load path to the ground q(pier).trace("bears", { dir: "in" }) // everything this pier carries ``` ###### Parameters [#parameters-16] | Parameter | Type | | ------ | ------ | | `kind` | `string` | | `opts?` | \{ `dir?`: `"in"` \| `"out"`; \} | | `opts.dir?` | `"in"` \| `"out"` | ###### Returns [#returns-29] [`BearQuery`](https://docs.bear.build/docs/bear/engine/query.md#bearquery)\<[`TreeNode`](https://docs.bear.build/docs/bear/engine/types.md#treenode)\> ##### where() [#where] ###### Call Signature [#call-signature-9] ```ts where(predicate): BearQuery; ``` Defined in: [bear/engine/query.ts:410](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/query.ts#L410) Keep nodes matching an arbitrary predicate: the escape hatch when no built-in filter fits. Type-guard predicates narrow the result, so `.where(isGeometryNode)` types like `.geometry()`. ###### Type Parameters [#type-parameters-3] | Type Parameter | | ------ | | `M` *extends* [`TreeNode`](https://docs.bear.build/docs/bear/engine/types.md#treenode) | ###### Parameters [#parameters-17] | Parameter | Type | | ------ | ------ | | `predicate` | (`node`) => `node is M` | ###### Returns [#returns-30] [`BearQuery`](https://docs.bear.build/docs/bear/engine/query.md#bearquery)\<`M`\> ###### Call Signature [#call-signature-10] ```ts where(predicate): BearQuery; ``` Defined in: [bear/engine/query.ts:411](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/query.ts#L411) Keep nodes matching an arbitrary predicate: the escape hatch when no built-in filter fits. Type-guard predicates narrow the result, so `.where(isGeometryNode)` types like `.geometry()`. ###### Parameters [#parameters-18] | Parameter | Type | | ------ | ------ | | `predicate` | (`node`) => `boolean` | ###### Returns [#returns-31] [`BearQuery`](https://docs.bear.build/docs/bear/engine/query.md#bearquery)\<`N`\> ## Interfaces [#interfaces] ### QueryFn() [#queryfn] Defined in: [bear/engine/query.ts:60](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/query.ts#L60) A query entry bound to one model, from [queryOf](https://docs.bear.build/docs/bear/engine/query.md#queryof): what a REPL or a test harness hands out as `q`. Everything `q` accepts, plus the forms that need a whole tree to start from: `q()` and the selector sugar. #### Call Signature [#call-signature-11] ```ts QueryFn(): BearQuery; ``` Defined in: [bear/engine/query.ts:61](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/query.ts#L61) A query entry bound to one model, from [queryOf](https://docs.bear.build/docs/bear/engine/query.md#queryof): what a REPL or a test harness hands out as `q`. Everything `q` accepts, plus the forms that need a whole tree to start from: `q()` and the selector sugar. ##### Returns [#returns-32] [`BearQuery`](https://docs.bear.build/docs/bear/engine/query.md#bearquery)\<[`TreeNode`](https://docs.bear.build/docs/bear/engine/types.md#treenode)\> #### Call Signature [#call-signature-12] ```ts QueryFn

(selector): BearQuery; ``` Defined in: [bear/engine/query.ts:62](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/query.ts#L62) A query entry bound to one model, from [queryOf](https://docs.bear.build/docs/bear/engine/query.md#queryof): what a REPL or a test harness hands out as `q`. Everything `q` accepts, plus the forms that need a whole tree to start from: `q()` and the selector sugar. ##### Type Parameters [#type-parameters-4] | Type Parameter | | ------ | | `P` *extends* `object` | ##### Parameters [#parameters-19] | Parameter | Type | | ------ | ------ | | `selector` | [`PartDef`](https://docs.bear.build/docs/bear/engine/types.md#partdef)\<`P`\> | ##### Returns [#returns-33] [`BearQuery`](https://docs.bear.build/docs/bear/engine/query.md#bearquery)\<[`TreeNode`](https://docs.bear.build/docs/bear/engine/types.md#treenode) & `object`\> #### Call Signature [#call-signature-13] ```ts QueryFn(selector): BearQuery; ``` Defined in: [bear/engine/query.ts:66](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/query.ts#L66) A query entry bound to one model, from [queryOf](https://docs.bear.build/docs/bear/engine/query.md#queryof): what a REPL or a test harness hands out as `q`. Everything `q` accepts, plus the forms that need a whole tree to start from: `q()` and the selector sugar. ##### Parameters [#parameters-20] | Parameter | Type | | ------ | ------ | | `selector` | [`AssemblyFn`](https://docs.bear.build/docs/bear/engine/types.md#assemblyfn)\<`any`\> | ##### Returns [#returns-34] [`BearQuery`](https://docs.bear.build/docs/bear/engine/query.md#bearquery)\<[`TreeNode`](https://docs.bear.build/docs/bear/engine/types.md#treenode)\> #### Call Signature [#call-signature-14] ```ts QueryFn(selector): BearQuery; ``` Defined in: [bear/engine/query.ts:67](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/query.ts#L67) A query entry bound to one model, from [queryOf](https://docs.bear.build/docs/bear/engine/query.md#queryof): what a REPL or a test harness hands out as `q`. Everything `q` accepts, plus the forms that need a whole tree to start from: `q()` and the selector sugar. ##### Parameters [#parameters-21] | Parameter | Type | | ------ | ------ | | `selector` | `string` \| `RegExp` \| ((`node`) => `boolean`) | ##### Returns [#returns-35] [`BearQuery`](https://docs.bear.build/docs/bear/engine/query.md#bearquery)\<[`TreeNode`](https://docs.bear.build/docs/bear/engine/types.md#treenode)\> #### Call Signature [#call-signature-15] ```ts QueryFn(node): BearQuery; ``` Defined in: [bear/engine/query.ts:70](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/query.ts#L70) A query entry bound to one model, from [queryOf](https://docs.bear.build/docs/bear/engine/query.md#queryof): what a REPL or a test harness hands out as `q`. Everything `q` accepts, plus the forms that need a whole tree to start from: `q()` and the selector sugar. ##### Type Parameters [#type-parameters-5] | Type Parameter | | ------ | | `N` *extends* [`TreeNode`](https://docs.bear.build/docs/bear/engine/types.md#treenode) | ##### Parameters [#parameters-22] | Parameter | Type | | ------ | ------ | | `node` | `N` \| `Iterable`\<`N`, `any`, `any`\> \| readonly `N`[] | ##### Returns [#returns-36] [`BearQuery`](https://docs.bear.build/docs/bear/engine/query.md#bearquery)\<`N`\> ## Type Aliases [#type-aliases] ### Selector [#selector] ```ts type Selector = | string | RegExp | PartDef | AssemblyFn | ((node) => boolean); ``` Defined in: [bear/engine/query.ts:46](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/query.ts#L46) What `find`, `has`, `closest`, and the `q()` entry accept. One vocabulary everywhere: - `string`: exact match on the node's **label** (see below) - `RegExp`: pattern match on the label - `PartDef`: part-type identity, same semantics as [BearQuery.ofType](https://docs.bear.build/docs/bear/engine/query.md#oftype) - assembly component: identity match against the components whose expansion produced the node (`q(Wall)` finds every node a `` returned, wrapper components included) - predicate: arbitrary `(node) => boolean` A node's **label** is its `name` prop when present, and otherwise its FQN leaf segment (which covers `label` props, the part-type name, and dedup suffixes like `Wall-3`). Strings and RegExps match either form, so both `named("W")` (three walls all named `"W"`) and `find("W-3")` (the third of them, by deduped segment) work. What `printTree` shows is what you can query for. Components and predicates are both plain functions; they are told apart by identity, not name: every assembly the collector expands is registered, so a registered function is a component selector and is never called. (Runtime names are rewritten by minification, so a capitalized name is only a dev-time fallback for components that never materialized.) Keep predicates anonymous or camelCase, and if a predicate returns a JSX element the query throws rather than treating the truthy element as a match. ## Functions [#functions] ### matchesAny() [#matchesany] ```ts function matchesAny(node, selectors): boolean; ``` Defined in: [bear/engine/query.ts:137](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/query.ts#L137) #### Parameters [#parameters-23] | Parameter | Type | | ------ | ------ | | `node` | [`TreeNode`](https://docs.bear.build/docs/bear/engine/types.md#treenode) | | `selectors` | readonly [`Selector`](https://docs.bear.build/docs/bear/engine/query.md#selector)[] | #### Returns [#returns-37] `boolean` *** ### q() [#q] #### Call Signature [#call-signature-16] ```ts function q(result): BearQuery; ``` Defined in: [bear/engine/query.ts:737](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/query.ts#L737) Start a query. ```ts q(result) // a model: its whole tree q(node) // scope to a subtree q(nodes) // explicit set: an array, another query, any iterable ``` The engine has no notion of a current model. A host that has one (the REPL, the test harness) binds it with [queryOf](https://docs.bear.build/docs/bear/engine/query.md#queryof) and hands out that function, which adds `q()` for the whole tree and the selector sugar (`q(Drywall)`, `q("Level-1")`). ##### Parameters [#parameters-24] | Parameter | Type | | ------ | ------ | | `result` | [`ModelView`](https://docs.bear.build/docs/bear/engine/model.md#modelview) | ##### Returns [#returns-38] [`BearQuery`](https://docs.bear.build/docs/bear/engine/query.md#bearquery)\<[`TreeNode`](https://docs.bear.build/docs/bear/engine/types.md#treenode)\> #### Call Signature [#call-signature-17] ```ts function q(node): BearQuery; ``` Defined in: [bear/engine/query.ts:738](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/query.ts#L738) Start a query. ```ts q(result) // a model: its whole tree q(node) // scope to a subtree q(nodes) // explicit set: an array, another query, any iterable ``` The engine has no notion of a current model. A host that has one (the REPL, the test harness) binds it with [queryOf](https://docs.bear.build/docs/bear/engine/query.md#queryof) and hands out that function, which adds `q()` for the whole tree and the selector sugar (`q(Drywall)`, `q("Level-1")`). ##### Type Parameters [#type-parameters-6] | Type Parameter | | ------ | | `N` *extends* [`TreeNode`](https://docs.bear.build/docs/bear/engine/types.md#treenode) | ##### Parameters [#parameters-25] | Parameter | Type | | ------ | ------ | | `node` | `N` \| readonly `N`[] \| `Iterable`\<`N`, `any`, `any`\> | ##### Returns [#returns-39] [`BearQuery`](https://docs.bear.build/docs/bear/engine/query.md#bearquery)\<`N`\> *** ### queryOf() [#queryof] ```ts function queryOf(result): QueryFn; ``` Defined in: [bear/engine/query.ts:768](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/query.ts#L768) Bind `q` to one model. The result is what a host hands out as `q`: with no argument it is the whole tree; with a selector it searches every node of the tree, root included (unlike `.find()`, which is strictly below the current set, so `q(Building)` selects a root-level assembly); with a node or nodes it is plain `q`. #### Parameters [#parameters-26] | Parameter | Type | | ------ | ------ | | `result` | [`ModelView`](https://docs.bear.build/docs/bear/engine/model.md#modelview) | #### Returns [#returns-40] [`QueryFn`](https://docs.bear.build/docs/bear/engine/query.md#queryfn) # relations (https://docs.bear.build/docs/bear/engine/relations) Import from `bear/engine/relations`. ## Interfaces [#interfaces] ### ConnectRole [#connectrole] Defined in: [bear/engine/relations.ts:392](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/relations.ts#L392) One connection role on a `PartDef.connects`: the prop lowers through the registered relation prop named by `rel`, and `props`, when given, computes the role's edge props from the element's own props (how a catalog connector's chosen schedule reaches its edges; see blueprints/connectors). Role-computed keys own themselves: a target descriptor cannot override them. A returned `error` is a diagnostic on the element. #### Properties [#properties] | Property | Type | | ------ | ------ | | `props?` | (`elementProps`) => \| `Record`\<`string`, `unknown`\> \| \{ `error`: `string`; \} | | `rel` | `string` | *** ### Edge [#edge] Defined in: [bear/engine/relations.ts:66](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/relations.ts#L66) A typed, directed edge between two rendered elements. #### Properties [#properties-1] | Property | Type | Description | | ------ | ------ | ------ | | `from` | [`TreeNode`](https://docs.bear.build/docs/bear/engine/types.md#treenode) | - | | `fromRef?` | `string` | Ref key the edge attaches through on the `from` element, if given. | | `kind` | [`RelationKind`](https://docs.bear.build/docs/bear/engine/relations.md#relationkind) | - | | `props` | `Readonly`\<`Record`\<`string`, `unknown`\>\> | Edge data: fastener schedules, tributary shares, flow demands. | | `source` | readonly [`SourceLocation`](https://docs.bear.build/docs/bear/engine/types.md#sourcelocation)[] | Call sites of the element that declared the edge. | | `system?` | `string` | System tag inherited from an enclosing System assembly, if any. | | `to` | [`TreeNode`](https://docs.bear.build/docs/bear/engine/types.md#treenode) | - | | `toRef?` | `string` | Ref key the edge attaches through on the `to` element, if given. | *** ### ExtractedRelations [#extractedrelations] Defined in: [bear/engine/relations.ts:426](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/relations.ts#L426) What collection extracts from an element's props. #### Properties [#properties-2] | Property | Type | Description | | ------ | ------ | ------ | | `decls?` | [`RelationDecl`](https://docs.bear.build/docs/bear/engine/relations.md#relationdecl)[] | Declarations to land on the element's node, if any. | | `props` | [`ErasedProps`](https://docs.bear.build/docs/bear/engine/types.md#erasedprops) | The props the node (and any assembly body) should see. | *** ### GraphStep [#graphstep] Defined in: [bear/engine/relations.ts:768](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/relations.ts#L768) One traversal step: the neighbor, plus the declared edge when one made the step (absent for the implicit containment step to/from a parent). #### Properties [#properties-3] | Property | Type | | ------ | ------ | | `edge?` | [`Edge`](https://docs.bear.build/docs/bear/engine/relations.md#edge) | | `node` | [`TreeNode`](https://docs.bear.build/docs/bear/engine/types.md#treenode) | *** ### MateTarget [#matetarget] Defined in: [bear/engine/relations.ts:226](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/relations.ts#L226) A resolved attachment target: the node, and the port if one was named. #### Properties [#properties-4] | Property | Type | | ------ | ------ | | `key?` | `string` | | `node` | [`TreeNode`](https://docs.bear.build/docs/bear/engine/types.md#treenode) | *** ### RelationDecl [#relationdecl] Defined in: [bear/engine/relations.ts:416](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/relations.ts#L416) One declared edge, waiting for target resolution: both ends stated outright, with SELF standing for the declaring element, so resolution is one symmetric rule with no direction flag. Lives on the node the declaring element produced (`node.relationDecls`), so its lifecycle is the node's: no cross-pass state, and late-collected children carry their declarations into the tree with them. #### Properties [#properties-5] | Property | Type | Description | | ------ | ------ | ------ | | `from` | `DeclEnd` | - | | `kind` | [`RelationKind`](https://docs.bear.build/docs/bear/engine/relations.md#relationkind) | - | | `props` | `Readonly`\<`Record`\<`string`, `unknown`\>\> | - | | `role?` | `string` | The connector role this was declared through, if any. | | `to` | `DeclEnd` | - | *** ### RelationKinds [#relationkinds] Defined in: [bear/engine/relations.ts:56](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/relations.ts#L56) The registered relation kinds, as a mergeable interface so `kind` positions autocomplete and typo-check. A model registering its own kind extends it: ```ts declare module "bear/engine/relations" { interface RelationKinds { controls: true } } ``` #### Properties [#properties-6] | Property | Type | | ------ | ------ | | `bears` | `true` | | `cuts` | `true` | | `fastens` | `true` | | `feeds` | `true` | | `joins` | `true` | *** ### RelationOptions [#relationoptions] Defined in: [bear/engine/relations.ts:142](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/relations.ts#L142) #### Properties [#properties-7] | Property | Type | Description | | ------ | ------ | ------ | | `check?` | [`EdgeCheck`](https://docs.bear.build/docs/bear/engine/relations.md#edgecheck) | Whether a resolved edge of this kind makes sense against the tree it was resolved in: each returned problem is a warning on the declaring element. The relation's counterpart to a connector part's `check`. | | `containment?` | `boolean` | Containment is a transfer statement for this kind: an element that declares no edge of the kind implicitly transfers to its enclosing assembly ("carried by"). True for `bears`; wrong for flow kinds, where an undeclared terminal is just a terminal. | | `inverse?` | `string` | Inverse spelling, target → owner: `carries={x}` means x bears on the owner. | | `mate?` | [`MateRule`](https://docs.bear.build/docs/bear/engine/relations.md#materule) | How a solvable anchor attached through this kind mates with its target's geometry (`Lowerer.attach`). A kind without one is edge-only. | | `prop` | `string` | The prop name that declares this kind, owner → target. | *** ### RelationProps [#relationprops] Defined in: [bear/engine/relations.ts:132](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/relations.ts#L132) The registered relation props, recognized on ANY element. Merged into the same module declaration that extends `RelationKinds`. #### Extended by [#extended-by] - [`ElementProps`](https://docs.bear.build/docs/bear/engine/types.md#elementprops) #### Properties [#properties-8] | Property | Type | | ------ | ------ | | `bearsOn?` | [`RelationPropValue`](https://docs.bear.build/docs/bear/engine/relations.md#relationpropvalue) | | `carries?` | [`RelationPropValue`](https://docs.bear.build/docs/bear/engine/relations.md#relationpropvalue) | | `cutBy?` | [`RelationPropValue`](https://docs.bear.build/docs/bear/engine/relations.md#relationpropvalue) | | `cuts?` | [`RelationPropValue`](https://docs.bear.build/docs/bear/engine/relations.md#relationpropvalue) | | `fastenedTo?` | [`RelationPropValue`](https://docs.bear.build/docs/bear/engine/relations.md#relationpropvalue) | | `fedBy?` | [`RelationPropValue`](https://docs.bear.build/docs/bear/engine/relations.md#relationpropvalue) | | `feeds?` | [`RelationPropValue`](https://docs.bear.build/docs/bear/engine/relations.md#relationpropvalue) | *** ### Relations [#relations] Defined in: [bear/engine/relations.ts:579](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/relations.ts#L579) What relation resolution produces for one pass. #### Properties [#properties-9] | Property | Type | | ------ | ------ | | `diagnostics` | readonly [`Diagnostic`](https://docs.bear.build/docs/bear/engine/types.md#diagnostic)[] | | `edges` | readonly [`Edge`](https://docs.bear.build/docs/bear/engine/relations.md#edge)[] | *** ### RelationTargetDescriptor [#relationtargetdescriptor] Defined in: [bear/engine/relations.ts:97](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/relations.ts#L97) A target wrapped with edge props: `bearsOn={bears(beam, { tributary: 0.5 })}`. The kind parameter makes a descriptor on the wrong prop a compile error at typed sites; the runtime check in `declOf` guards the untyped JSX boundary. #### Type Parameters [#type-parameters] | Type Parameter | Default type | | ------ | ------ | | `K` *extends* [`RelationKind`](https://docs.bear.build/docs/bear/engine/relations.md#relationkind) | [`RelationKind`](https://docs.bear.build/docs/bear/engine/relations.md#relationkind) | #### Properties [#properties-10] | Property | Modifier | Type | | ------ | ------ | ------ | | `[BEAR_REL_TARGET]` | `readonly` | `true` | | `kind` | `readonly` | `K` | | `props` | `readonly` | `Readonly`\<`Record`\<`string`, `unknown`\>\> | | `target` | `readonly` | [`RelationTarget`](https://docs.bear.build/docs/bear/engine/relations.md#relationtarget) | ## Type Aliases [#type-aliases] ### EdgeCheck [#edgecheck] ```ts type EdgeCheck = (edge) => readonly string[]; ``` Defined in: [bear/engine/relations.ts:168](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/relations.ts#L168) Problems with one resolved edge, in words; empty when it is sound. #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `edge` | [`Edge`](https://docs.bear.build/docs/bear/engine/relations.md#edge) | #### Returns [#returns] readonly `string`[] *** ### MateRule [#materule] ```ts type MateRule = (target) => | WorldPlane[] | { error: string; }; ``` Defined in: [bear/engine/relations.ts:237](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/relations.ts#L237) The world planes an attached anchor must lie on, from the target's geometry. Rotation is never solved: a mate constrains the anchor's position only, and the solver turns each plane into one linear equation over the anchor's coordinates. #### Parameters [#parameters-1] | Parameter | Type | | ------ | ------ | | `target` | [`MateTarget`](https://docs.bear.build/docs/bear/engine/relations.md#matetarget) | #### Returns [#returns-1] \| [`WorldPlane`](https://docs.bear.build/docs/bear/engine/planeOf.md#worldplane)[] \| \{ `error`: `string`; \} *** ### RelationKind [#relationkind] ```ts type RelationKind = keyof RelationKinds & string; ``` Defined in: [bear/engine/relations.ts:63](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/relations.ts#L63) *** ### RelationPropValue [#relationpropvalue] ```ts type RelationPropValue = | RelationTarget | RelationTargetDescriptor | readonly ( | RelationTarget | RelationTargetDescriptor)[]; ``` Defined in: [bear/engine/relations.ts:123](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/relations.ts#L123) What a registered relation prop accepts in JSX: targets, single or many. *** ### RelationTarget [#relationtarget] ```ts type RelationTarget = BearElement | Ref | string; ``` Defined in: [bear/engine/relations.ts:87](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/relations.ts#L87) What a relation prop can point at: an element handle, a Ref (when the attachment port matters), or a lexical element name resolved with dim endpoint scoping rules. *** ### RelationTargetFactory [#relationtargetfactory] ```ts type RelationTargetFactory = (target, props?) => RelationTargetDescriptor; ``` Defined in: [bear/engine/relations.ts:117](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/relations.ts#L117) #### Type Parameters [#type-parameters-1] | Type Parameter | Default type | | ------ | ------ | | `K` *extends* [`RelationKind`](https://docs.bear.build/docs/bear/engine/relations.md#relationkind) | [`RelationKind`](https://docs.bear.build/docs/bear/engine/relations.md#relationkind) | #### Parameters [#parameters-2] | Parameter | Type | | ------ | ------ | | `target` | [`RelationTarget`](https://docs.bear.build/docs/bear/engine/relations.md#relationtarget) | | `props?` | `Record`\<`string`, `unknown`\> | #### Returns [#returns-2] [`RelationTargetDescriptor`](https://docs.bear.build/docs/bear/engine/relations.md#relationtargetdescriptor)\<`K`\> ## Variables [#variables] ### atPort [#atport] ```ts const atPort: MateRule; ``` Defined in: [bear/engine/relations.ts:256](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/relations.ts#L256) `feeds`: the anchor sits at the target's named port. *** ### bears [#bears] ```ts const bears: RelationTargetFactory<"bears">; ``` Defined in: [bear/engine/relations.ts:353](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/relations.ts#L353) "Transfers load to." Bearing vs. fastened is edge data, not a kind. *** ### cuts [#cuts] ```ts const cuts: RelationTargetFactory<"cuts">; ``` Defined in: [bear/engine/relations.ts:377](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/relations.ts#L377) "My solid is subtracted from yours." A rough opening's Void cuts the wall's layers and plate; an electrical box cuts the drywall. Applied to geometry once the tree has converged (see engine/geometry.ts), so the layout never depends on it: a layer panelizes its whole face and the hole arrives afterward, which is also how it is built. *** ### fastens [#fastens] ```ts const fastens: RelationTargetFactory<"fastens">; ``` Defined in: [bear/engine/relations.ts:360](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/relations.ts#L360) A fastened connection whose edge carries the fastener schedule. *** ### feeds [#feeds] ```ts const feeds: RelationTargetFactory<"feeds">; ``` Defined in: [bear/engine/relations.ts:365](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/relations.ts#L365) Flow topology: supply, DWV, duct runs. Directed with the flow. *** ### onBearingPlane [#onbearingplane] ```ts const onBearingPlane: MateRule; ``` Defined in: [bear/engine/relations.ts:244](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/relations.ts#L244) `bears`: the member's end lands on the support. A named port (a face, a hanger's seat, a pier's center) is the plane; a bare element is a point support, and the anchor lands on its plan center. *** ### onFace [#onface] ```ts const onFace: MateRule; ``` Defined in: [bear/engine/relations.ts:248](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/relations.ts#L248) `fastens`: the anchor sits on the target's named face. *** ### SELF [#self] ```ts const SELF: typeof SELF; ``` Defined in: [bear/engine/relations.ts:404](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/relations.ts#L404) The declaring element's own side of an edge. *** ### SystemContext [#systemcontext] ```ts const SystemContext: BearContext; ``` Defined in: [bear/engine/relations.ts:350](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/relations.ts#L350) The system tag a subtree's edges inherit (`edge.system`). Published by the `System` assembly; a "system" is that assembly + layer duo, nothing more. ## Functions [#functions] ### extractRelationProps() [#extractrelationprops] ```ts function extractRelationProps(element): ExtractedRelations; ``` Defined in: [bear/engine/relations.ts:448](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/relations.ts#L448) Extract edge declarations off an element's props. Globally registered relation props are stripped (the node and any assembly body never see them); a part's `connects` role props stay on the node, descriptors unwrapped, so collection can resolve Ref targets for placement. #### Parameters [#parameters-3] | Parameter | Type | | ------ | ------ | | `element` | [`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement) | #### Returns [#returns-3] [`ExtractedRelations`](https://docs.bear.build/docs/bear/engine/relations.md#extractedrelations) *** ### isDescriptor() [#isdescriptor] ```ts function isDescriptor(value): value is RelationTargetDescriptor; ``` Defined in: [bear/engine/relations.ts:106](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/relations.ts#L106) #### Parameters [#parameters-4] | Parameter | Type | | ------ | ------ | | `value` | `unknown` | #### Returns [#returns-4] `value is RelationTargetDescriptor` *** ### mateRuleOf() [#materuleof] ```ts function mateRuleOf(kind): MateRule | undefined; ``` Defined in: [bear/engine/relations.ts:217](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/relations.ts#L217) The mate rule a kind registered, if it has one. #### Parameters [#parameters-5] | Parameter | Type | | ------ | ------ | | `kind` | [`RelationKind`](https://docs.bear.build/docs/bear/engine/relations.md#relationkind) | #### Returns [#returns-5] [`MateRule`](https://docs.bear.build/docs/bear/engine/relations.md#materule) \| `undefined` *** ### relation() [#relation] ```ts function relation(kind, options): RelationTargetFactory; ``` Defined in: [bear/engine/relations.ts:321](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/relations.ts#L321) Register a relation kind. Its props become recognized on any element and lower to edge declarations at collect. Returns the target-descriptor factory for attaching edge props to a target. #### Type Parameters [#type-parameters-2] | Type Parameter | | ------ | | `K` *extends* [`RelationKind`](https://docs.bear.build/docs/bear/engine/relations.md#relationkind) | #### Parameters [#parameters-6] | Parameter | Type | | ------ | ------ | | `kind` | `K` | | `options` | [`RelationOptions`](https://docs.bear.build/docs/bear/engine/relations.md#relationoptions) | #### Returns [#returns-6] [`RelationTargetFactory`](https://docs.bear.build/docs/bear/engine/relations.md#relationtargetfactory)\<`K`\> *** ### resolveRelations() [#resolverelations] ```ts function resolveRelations(root, map): Relations; ``` Defined in: [bear/engine/relations.ts:592](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/relations.ts#L592) Walk the finished tree and resolve every node's declarations into the edge set. Both ends resolve by one rule (SELF is the declaring node); endpoint failures are diagnostics on the declaring node, like dims. An edge is one fact about a pair, however many times it is declared: a hanger's `joist` role and the joist resting on the hanger's seat coalesce into one edge carrying both declarations' props. #### Parameters [#parameters-7] | Parameter | Type | | ------ | ------ | | `root` | [`TreeNode`](https://docs.bear.build/docs/bear/engine/types.md#treenode) | | `map` | `ReadonlyMap`\<[`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement)\<`object`\>, [`TreeNode`](https://docs.bear.build/docs/bear/engine/types.md#treenode)\> | #### Returns [#returns-7] [`Relations`](https://docs.bear.build/docs/bear/engine/relations.md#relations) *** ### resolveRelationTarget() [#resolverelationtarget] ```ts function resolveRelationTarget( target, scope, map ): | { key?: string; node: N; } | { error: string; }; ``` Defined in: [bear/engine/relations.ts:729](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/relations.ts#L729) Resolve a relation target from a node's scope, in whatever phase the caller is in (placement runs on drafts). Shared with placement. #### Type Parameters [#type-parameters-3] | Type Parameter | | ------ | | `N` *extends* [`Scoped`](https://docs.bear.build/docs/bear/engine/planeOf.md#scoped)\<`N`\> | #### Parameters [#parameters-8] | Parameter | Type | | ------ | ------ | | `target` | [`RelationTarget`](https://docs.bear.build/docs/bear/engine/relations.md#relationtarget) | | `scope` | `N` \| `null` | | `map` | `ReadonlyMap`\<[`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement)\<`object`\>, `N`\> | #### Returns [#returns-8] \| \{ `key?`: `string`; `node`: `N`; \} \| \{ `error`: `string`; \} *** ### stepsIn() [#stepsin] ```ts function stepsIn( node, kind, edges ): GraphStep[]; ``` Defined in: [bear/engine/relations.ts:800](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/relations.ts#L800) Incoming steps of `kind` into a node: its declared edges, plus, for a containment kind, the implicit step from each child that declares no edge of the kind (the node carries its undeclared contents). #### Parameters [#parameters-9] | Parameter | Type | | ------ | ------ | | `node` | [`TreeNode`](https://docs.bear.build/docs/bear/engine/types.md#treenode) | | `kind` | `string` | | `edges` | readonly [`Edge`](https://docs.bear.build/docs/bear/engine/relations.md#edge)[] | #### Returns [#returns-9] [`GraphStep`](https://docs.bear.build/docs/bear/engine/relations.md#graphstep)[] *** ### stepsOut() [#stepsout] ```ts function stepsOut( node, kind, edges ): GraphStep[]; ``` Defined in: [bear/engine/relations.ts:782](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/relations.ts#L782) Outgoing steps of `kind` from a node: its declared edges. For a containment kind (`bears`), an element that declares none implicitly transfers to its enclosing assembly instead: a part with no stated support is carried by whatever contains it, and a declared edge opts out of that default. Construction nodes transfer nothing. Shared by `trace` and load folds so the rule has exactly one home. #### Parameters [#parameters-10] | Parameter | Type | | ------ | ------ | | `node` | [`TreeNode`](https://docs.bear.build/docs/bear/engine/types.md#treenode) | | `kind` | `string` | | `edges` | readonly [`Edge`](https://docs.bear.build/docs/bear/engine/relations.md#edge)[] | #### Returns [#returns-10] [`GraphStep`](https://docs.bear.build/docs/bear/engine/relations.md#graphstep)[] *** ### withAttachments() [#withattachments] ```ts function withAttachments(element, descriptors): BearElement; ``` Defined in: [bear/engine/relations.ts:557](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/relations.ts#L557) The element with attachments declared on it: each descriptor joins the kind's owner → target prop, exactly as an author would write it, so `attach()` and `bearsOn={...}` are one declaration path. Refs stay pointed at the original element, which the element map also records. #### Parameters [#parameters-11] | Parameter | Type | | ------ | ------ | | `element` | [`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement) | | `descriptors` | readonly [`RelationTargetDescriptor`](https://docs.bear.build/docs/bear/engine/relations.md#relationtargetdescriptor)\<[`RelationKind`](https://docs.bear.build/docs/bear/engine/relations.md#relationkind)\>[] | #### Returns [#returns-11] [`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement) # shapes (https://docs.bear.build/docs/bear/engine/shapes) Import from `bear/engine/shapes`. ## Classes [#classes] ### ShapeCache [#shapecache] Defined in: [bear/engine/shapes.ts:85](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/shapes.ts#L85) #### Constructors [#constructors] ##### Constructor [#constructor] ```ts new ShapeCache(): ShapeCache; ``` ###### Returns [#returns] [`ShapeCache`](https://docs.bear.build/docs/bear/engine/shapes.md#shapecache) #### Methods [#methods] ##### dispose() [#dispose] ```ts dispose(): Promise; ``` Defined in: [bear/engine/shapes.ts:136](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/shapes.ts#L136) Drop every shape, each once its load has settled. ###### Returns [#returns-1] `Promise`\<`void`\> ##### keeping() [#keeping] ```ts keeping(build): Promise; ``` Defined in: [bear/engine/shapes.ts:115](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/shapes.ts#L115) Run a build that replaces the current model, then drop every shape it did not use. ###### Type Parameters [#type-parameters] | Type Parameter | | ------ | | `T` | ###### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `build` | () => `Promise`\<`T`\> | ###### Returns [#returns-2] `Promise`\<`T`\> ##### load() [#load] ```ts load( part, key, load ): Promise; ``` Defined in: [bear/engine/shapes.ts:92](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/shapes.ts#L92) A share of the solid `load` resolves to, loaded once per (`part`, `key`). `load` hands its solid to the cache; the caller owns the share. ###### Parameters [#parameters-1] | Parameter | Type | | ------ | ------ | | `part` | `object` | | `key` | `string` | | `load` | () => `Promise`\<`Manifold` \| `undefined`\> | ###### Returns [#returns-3] `Promise`\<`Manifold` \| `undefined`\> ##### visiting() [#visiting] ```ts visiting(build): Promise; ``` Defined in: [bear/engine/shapes.ts:126](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/shapes.ts#L126) Run a build beside the current model (a picture of something else), then drop every shape it added. A scene still drawing one owns its geometry. ###### Type Parameters [#type-parameters-1] | Type Parameter | | ------ | | `T` | ###### Parameters [#parameters-2] | Parameter | Type | | ------ | ------ | | `build` | () => `Promise`\<`T`\> | ###### Returns [#returns-4] `Promise`\<`T`\> ## Interfaces [#interfaces] ### SolidMesh [#solidmesh] Defined in: [bear/engine/shapes.ts:22](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/shapes.ts#L22) A solid as Three.js draws it. #### Properties [#properties] | Property | Type | Description | | ------ | ------ | ------ | | `geometry` | `BufferGeometry` | - | | `runs?` | `Uint32Array`\<`ArrayBufferLike`\> | Each run's original ID, when the geometry has a group per run. | ## Functions [#functions] ### isShared() [#isshared] ```ts function isShared(geometry): boolean; ``` Defined in: [bear/engine/shapes.ts:79](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/shapes.ts#L79) Whether a shape cache owns `geometry`: a scene drawing it must not free it. #### Parameters [#parameters-3] | Parameter | Type | | ------ | ------ | | `geometry` | `BufferGeometry` | #### Returns [#returns-5] `boolean` *** ### meshOf() [#meshof] ```ts function meshOf( solid, grouped, make ): SolidMesh; ``` Defined in: [bear/engine/shapes.ts:70](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/shapes.ts#L70) The mesh of `solid`, with a group per run or without. A share of a live shape gets the shape's, made once and owned by its cache; any other solid gets its own, the caller's to free. #### Parameters [#parameters-4] | Parameter | Type | | ------ | ------ | | `solid` | `Manifold` | | `grouped` | `boolean` | | `make` | `Make` | #### Returns [#returns-6] [`SolidMesh`](https://docs.bear.build/docs/bear/engine/shapes.md#solidmesh) # snapshot-data (https://docs.bear.build/docs/bear/engine/snapshot-data) Import from `bear/engine/snapshot-data`. ## Type Aliases [#type-aliases] ### SnapshotData [#snapshotdata] ```ts type SnapshotData = T extends object ? { readonly [Key in keyof T]: SnapshotData } : T; ``` Defined in: [bear/engine/snapshot-data.ts:6](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/snapshot-data.ts#L6) #### Type Parameters [#type-parameters] | Type Parameter | | ------ | | `T` | ## Functions [#functions] ### snapshotData() [#snapshotdata-1] ```ts function snapshotData(input, label): SnapshotData & SnapshotValue; ``` Defined in: [bear/engine/snapshot-data.ts:10](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/snapshot-data.ts#L10) #### Type Parameters [#type-parameters-1] | Type Parameter | | ------ | | `T` | #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `input` | `T` | | `label` | `string` | #### Returns [#returns] [`SnapshotData`](https://docs.bear.build/docs/bear/engine/snapshot-data.md#snapshotdata)\<`T`\> & [`SnapshotValue`](https://docs.bear.build/docs/bear/engine/snapshot-value.md#snapshotvalue) # snapshot-value (https://docs.bear.build/docs/bear/engine/snapshot-value) Import from `bear/engine/snapshot-value`. ## Type Aliases [#type-aliases] ### SnapshotValue [#snapshotvalue] ```ts type SnapshotValue = | null | undefined | string | number | boolean | readonly SnapshotValue[] | { [key: string]: SnapshotValue; }; ``` Defined in: [bear/engine/snapshot-value.ts:8](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/snapshot-value.ts#L8) ## Functions [#functions] ### contentId() [#contentid] ```ts function contentId(value): Promise; ``` Defined in: [bear/engine/snapshot-value.ts:116](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/snapshot-value.ts#L116) #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `value` | [`SnapshotValue`](https://docs.bear.build/docs/bear/engine/snapshot-value.md#snapshotvalue) | #### Returns [#returns] `Promise`\<`string`\> *** ### snapshotValues() [#snapshotvalues] ```ts function snapshotValues(model): (input, path, ancestors) => SnapshotValue; ``` Defined in: [bear/engine/snapshot-value.ts:17](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/snapshot-value.ts#L17) #### Parameters [#parameters-1] | Parameter | Type | | ------ | ------ | | `model` | [`ModelView`](https://docs.bear.build/docs/bear/engine/model.md#modelview) | #### Returns [#returns-1] (`input`, `path`, `ancestors`) => [`SnapshotValue`](https://docs.bear.build/docs/bear/engine/snapshot-value.md#snapshotvalue) *** ### valueKey() [#valuekey] ```ts function valueKey(value): string; ``` Defined in: [bear/engine/snapshot-value.ts:100](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/snapshot-value.ts#L100) Tagged containers keep undefined distinct from null, even inside arrays. #### Parameters [#parameters-2] | Parameter | Type | | ------ | ------ | | `value` | [`SnapshotValue`](https://docs.bear.build/docs/bear/engine/snapshot-value.md#snapshotvalue) | #### Returns [#returns-2] `string` # snapshot (https://docs.bear.build/docs/bear/engine/snapshot) Import from `bear/engine/snapshot`. ## Interfaces [#interfaces] ### ModelSnapshot [#modelsnapshot] Defined in: [bear/engine/snapshot.ts:47](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/snapshot.ts#L47) #### Type Parameters [#type-parameters] | Type Parameter | Default type | | ------ | ------ | | `Revision` | `unknown` | #### Properties [#properties] | Property | Modifier | Type | Description | | ------ | ------ | ------ | ------ | | `constraints` | `readonly` | readonly [`SnapshotValue`](https://docs.bear.build/docs/bear/engine/snapshot-value.md#snapshotvalue)[] | - | | `diagnostics` | `readonly` | readonly [`SnapshotValue`](https://docs.bear.build/docs/bear/engine/snapshot-value.md#snapshotvalue)[] | - | | `meshes` | `readonly` | `Readonly`\<`Record`\<`string`, [`SnapshotMesh`](https://docs.bear.build/docs/bear/engine/snapshot.md#snapshotmesh)\>\> | - | | `nodes` | `readonly` | `Readonly`\<`Record`\<`string`, [`SnapshotNode`](https://docs.bear.build/docs/bear/engine/snapshot.md#snapshotnode)\>\> | - | | `relations` | `readonly` | readonly [`SnapshotValue`](https://docs.bear.build/docs/bear/engine/snapshot-value.md#snapshotvalue)[] | - | | `revision` | `readonly` | [`SnapshotData`](https://docs.bear.build/docs/bear/engine/snapshot-data.md#snapshotdata)\<`Revision`\> | Caller-defined pinned inputs and runtime, copied and frozen at capture. | | `version` | `readonly` | `1` | - | *** ### SnapshotMesh [#snapshotmesh] Defined in: [bear/engine/snapshot.ts:41](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/snapshot.ts#L41) A local mesh, independent of placement and Manifold's runtime original IDs. #### Properties [#properties-1] | Property | Modifier | Type | | ------ | ------ | ------ | | `numProp` | `readonly` | `number` | | `triangles` | `readonly` | readonly `number`[] | | `vertices` | `readonly` | readonly `number`[] | *** ### SnapshotNode [#snapshotnode] Defined in: [bear/engine/snapshot.ts:32](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/snapshot.ts#L32) #### Properties [#properties-2] | Property | Modifier | Type | Description | | ------ | ------ | ------ | ------ | | `facts` | `readonly` | [`NodeFacts`](https://docs.bear.build/docs/bear/engine/snapshot.md#nodefacts) | - | | `fingerprints` | `readonly` | `Readonly`\<`Record`\<[`ModelFacet`](https://docs.bear.build/docs/bear/engine/snapshot.md#modelfacet), `string`\>\> | - | | `fqn` | `readonly` | `string` | - | | `source` | `readonly` | [`SnapshotValue`](https://docs.bear.build/docs/bear/engine/snapshot-value.md#snapshotvalue) | Navigation provenance, excluded from semantic comparison. | ## Type Aliases [#type-aliases] ### ModelFacet [#modelfacet] ```ts type ModelFacet = typeof facets[number]; ``` Defined in: [bear/engine/snapshot.ts:27](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/snapshot.ts#L27) *** ### NodeFacts [#nodefacts] ```ts type NodeFacts = Readonly> & object; ``` Defined in: [bear/engine/snapshot.ts:28](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/snapshot.ts#L28) #### Type Declaration [#type-declaration] | Name | Type | | ------ | ------ | | `shape` | `string` \| `null` | ## Variables [#variables] ### facets [#facets] ```ts const facets: readonly ["structure", "placement", "shape", "appearance", "data", "references"]; ``` Defined in: [bear/engine/snapshot.ts:19](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/snapshot.ts#L19) ## Functions [#functions] ### snapshotModel() [#snapshotmodel] ```ts function snapshotModel(model, revision): Promise>; ``` Defined in: [bear/engine/snapshot.ts:61](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/snapshot.ts#L61) Collect synchronously before hashing, so no live model is read after an await. #### Type Parameters [#type-parameters-1] | Type Parameter | | ------ | | `Revision` | #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `model` | [`ModelView`](https://docs.bear.build/docs/bear/engine/model.md#modelview) | | `revision` | `Revision` | #### Returns [#returns] `Promise`\<[`ModelSnapshot`](https://docs.bear.build/docs/bear/engine/snapshot.md#modelsnapshot)\<`Revision`\>\> # solvable (https://docs.bear.build/docs/bear/engine/solvable) Import from `bear/engine/solvable`. ## Interfaces [#interfaces] ### Attachment [#attachment] Defined in: [bear/engine/solvable.ts:62](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/solvable.ts#L62) One anchor attached to a relation target: the edge and the constraint are two projections of this one declaration. Consumed by solve. #### Properties [#properties] | Property | Type | Description | | ------ | ------ | ------ | | `anchor` | `string` | - | | `descriptor` | [`RelationTargetDescriptor`](https://docs.bear.build/docs/bear/engine/relations.md#relationtargetdescriptor) | - | | `port?` | `string` | The target's face, when named apart from the target (a name has no ref). | *** ### Lowerer [#lowerer] Defined in: [bear/engine/solvable.ts:73](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/solvable.ts#L73) What `lower()` may state about a component's anchors. #### Methods [#methods] ##### align() [#align] ```ts align( a, b, axis ): void; ``` Defined in: [bear/engine/solvable.ts:79](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/solvable.ts#L79) Constrain two anchors to share a coordinate. ###### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `a` | `string` | | `b` | `string` | | `axis` | [`PlanarAxis`](https://docs.bear.build/docs/bear/engine/solvable.md#planaraxis) | ###### Returns [#returns] `void` ##### attach() [#attach] ```ts attach( anchor, target, face? ): void; ``` Defined in: [bear/engine/solvable.ts:86](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/solvable.ts#L86) Attach an anchor to a relation target: declares the edge on the element (as `bearsOn={...}` would) and constrains the anchor to the target's interface by the kind's mate rule. Rotation is never solved: the mate pins the anchor's position only. ###### Parameters [#parameters-1] | Parameter | Type | | ------ | ------ | | `anchor` | `string` | | `target` | [`RelationTargetDescriptor`](https://docs.bear.build/docs/bear/engine/relations.md#relationtargetdescriptor) | | `face?` | `string` | ###### Returns [#returns-1] `void` ##### fix() [#fix] ```ts fix(anchor, at): void; ``` Defined in: [bear/engine/solvable.ts:75](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/solvable.ts#L75) Pin both coordinates of an anchor (fully authored placement). ###### Parameters [#parameters-2] | Parameter | Type | | ------ | ------ | | `anchor` | `string` | | `at` | [`Vec2`](https://docs.bear.build/docs/bear/engine/solvable.md#vec2) | ###### Returns [#returns-2] `void` ##### onPlane() [#onplane] ```ts onPlane( anchor, target, face ): void; ``` Defined in: [bear/engine/solvable.ts:95](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/solvable.ts#L95) `attach`'s constraint without its edge: the anchor lies on the target's `face` by the kind's mate rule. For an element whose owner states the connection once (a wall's `joins` edge) while each of its layers lands on the other wall's faces. ###### Parameters [#parameters-3] | Parameter | Type | | ------ | ------ | | `anchor` | `string` | | `target` | [`RelationTargetDescriptor`](https://docs.bear.build/docs/bear/engine/relations.md#relationtargetdescriptor) | | `face` | `string` | ###### Returns [#returns-3] `void` ##### pin() [#pin] ```ts pin( anchor, axis, value ): void; ``` Defined in: [bear/engine/solvable.ts:77](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/solvable.ts#L77) Pin one coordinate of an anchor. ###### Parameters [#parameters-4] | Parameter | Type | | ------ | ------ | | `anchor` | `string` | | `axis` | [`PlanarAxis`](https://docs.bear.build/docs/bear/engine/solvable.md#planaraxis) | | `value` | `number` | ###### Returns [#returns-4] `void` ##### rest() [#rest] ```ts rest(anchor, target): void; ``` Defined in: [bear/engine/solvable.ts:88](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/solvable.ts#L88) `attach(anchor, bears(target))`: the anchor rests on its support. ###### Parameters [#parameters-5] | Parameter | Type | | ------ | ------ | | `anchor` | `string` | | `target` | [`BearingTarget`](https://docs.bear.build/docs/bear/engine/solvable.md#bearingtarget) | ###### Returns [#returns-5] `void` *** ### SolvableDecl [#solvabledecl] Defined in: [bear/engine/solvable.ts:98](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/solvable.ts#L98) #### Type Parameters [#type-parameters] | Type Parameter | | ------ | | `P` *extends* `object` | #### Properties [#properties-1] | Property | Type | Description | | ------ | ------ | ------ | | `anchors` | readonly `string`[] | Named anchor points. Their coordinates are the only solver variables. The first is the one the body lays out from: every ref the element or anything inside it publishes rides it, unless the publishing node's `rides` prop names another (a span's `end` plane rides `end`). | | `body` | (`props`) => [`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement) | The component body: a pure props → JSX function. | | `complete` | (`anchors`) => `Partial`\<`P`\> | Rebuild the completed placement props from solved anchor positions. | | `lower` | (`props`, `c`, `grid`) => `void` | Lower authored placement props to constraints on the anchors. Runs at collect time, every pass, from authored props alone. Everything not stated here comes from Dims. | | `name` | `string` | The component's name, for messages and the tree: `Wall`, `Opening`. | | `refs?` | readonly `string`[] | Named refs the component publishes (attached to its JSX elements). | *** ### SolvableInstance [#solvableinstance] Defined in: [bear/engine/solvable.ts:128](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/solvable.ts#L128) Engine-internal: a solvable element occurrence in the current collect pass, consumed by solve. The key names the logical solvable (see `instanceKey`) and is stable across passes because the authored JSX is deterministic. #### Properties [#properties-2] | Property | Type | Description | | ------ | ------ | ------ | | `aligns` | `Align`[] | - | | `anchors` | readonly `string`[] | - | | `attachments` | [`Attachment`](https://docs.bear.build/docs/bear/engine/solvable.md#attachment)[] | - | | `bound` | `boolean` | True when the body ran (placement known); false for a stub. | | `buildError?` | `string` | The body rejected its solved placement (e.g. a degenerate span). | | `element` | [`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement) | The element the wrapper returned; resolves to the tree node. | | `key` | `string` | - | | `pins` | `Pin`[] | - | | `stub` | [`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement) | The placeholder it stands in as while unbound, or once it fails to build. | *** ### Vec2 [#vec2] Defined in: [bear/engine/solvable.ts:39](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/solvable.ts#L39) #### Properties [#properties-3] | Property | Type | | ------ | ------ | | `x` | `number` | | `y` | `number` | ## Type Aliases [#type-aliases] ### BearingTarget [#bearingtarget] ```ts type BearingTarget = | RelationTarget | RelationTargetDescriptor<"bears">; ``` Defined in: [bear/engine/solvable.ts:70](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/solvable.ts#L70) What a `bears` attachment may point at: a bare target, or one with edge props. *** ### PlanarAxis [#planaraxis] ```ts type PlanarAxis = "x" | "y"; ``` Defined in: [bear/engine/solvable.ts:37](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/solvable.ts#L37) *** ### SolvedBindings [#solvedbindings] ```ts type SolvedBindings = ReadonlyMap>; ``` Defined in: [bear/engine/solvable.ts:148](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/solvable.ts#L148) Engine-internal: solved anchor positions per instance key, fed forward between render passes. ## Functions [#functions] ### isSolvableStub() [#issolvablestub] ```ts function isSolvableStub(node): boolean; ``` Defined in: [bear/engine/solvable.ts:341](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/solvable.ts#L341) Is this node an unbound solvable's placeholder? #### Parameters [#parameters-6] | Parameter | Type | | ------ | ------ | | `node` | \{ `type`: `unknown`; \} | | `node.type` | `unknown` | #### Returns [#returns-6] `boolean` *** ### rejectBuild() [#rejectbuild] ```ts function rejectBuild(instance, error): BearElement; ``` Defined in: [bear/engine/solvable.ts:330](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/solvable.ts#L330) A bound instance that could not be built at its solved position (a degenerate span, a run whose openings overlap) falls back to its stub, and the reason becomes its diagnostic, never a render abort. A pass's placement is provisional until the loop converges: an early pass can hand a body seed values nothing has placed yet, and the next pass may build. Only the converged pass's failure reaches the user. #### Parameters [#parameters-7] | Parameter | Type | | ------ | ------ | | `instance` | [`SolvableInstance`](https://docs.bear.build/docs/bear/engine/solvable.md#solvableinstance) | | `error` | `unknown` | #### Returns [#returns-7] [`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement) *** ### solvable() [#solvable] ```ts function solvable

(decl): AssemblyFn

& object; ``` Defined in: [bear/engine/solvable.ts:155](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/solvable.ts#L155) Wrap a component so the solver may complete its placement. The wrapper is an ordinary assembly function; fully authored placement never touches the solver. #### Type Parameters [#type-parameters-1] | Type Parameter | | ------ | | `P` *extends* `object` | #### Parameters [#parameters-8] | Parameter | Type | | ------ | ------ | | `decl` | [`SolvableDecl`](https://docs.bear.build/docs/bear/engine/solvable.md#solvabledecl)\<`P`\> | #### Returns [#returns-8] [`AssemblyFn`](https://docs.bear.build/docs/bear/engine/types.md#assemblyfn)\<`P`\> & `object` # solve (https://docs.bear.build/docs/bear/engine/solve) Import from `bear/engine/solve`. ## Interfaces [#interfaces] ### Solved [#solved] Defined in: [bear/engine/solve.ts:150](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/solve.ts#L150) What solve produces for one pass. #### Properties [#properties] | Property | Type | Description | | ------ | ------ | ------ | | `bindings` | `Map`\<`string`, `Record`\<`string`, [`Vec2`](https://docs.bear.build/docs/bear/engine/solvable.md#vec2)\>\> | The input to the next render pass. | | `constraints` | readonly [`ResolvedConstraint`](https://docs.bear.build/docs/bear/engine/model.md#resolvedconstraint)[] | - | | `diagnostics` | readonly [`Diagnostic`](https://docs.bear.build/docs/bear/engine/types.md#diagnostic)[] | - | ## Variables [#variables] ### SOLVE\_EPSILON [#solve_epsilon] ```ts const SOLVE_EPSILON: 1 = 1; ``` Defined in: [bear/engine/solve.ts:92](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/solve.ts#L92) Residuals under one project unit (1/32") are noise, not findings. ## Functions [#functions] ### describeDim() [#describedim] ```ts function describeDim(eff): string; ``` Defined in: [bear/engine/solve.ts:1300](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/solve.ts#L1300) One line naming a dim: endpoints and axis. #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `eff` | [`EffectiveDim`](https://docs.bear.build/docs/bear/engine/types.md#effectivedim) | #### Returns [#returns] `string` *** ### solve() [#solve] ```ts function solve( root, map, instances?, previous? ): Solved; ``` Defined in: [bear/engine/solve.ts:158](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/solve.ts#L158) Run the solve phase: a pure function of the finished tree. #### Parameters [#parameters-1] | Parameter | Type | Default value | | ------ | ------ | ------ | | `root` | [`TreeNode`](https://docs.bear.build/docs/bear/engine/types.md#treenode) | `undefined` | | `map` | `ElementMap` | `undefined` | | `instances?` | readonly [`SolvableInstance`](https://docs.bear.build/docs/bear/engine/solvable.md#solvableinstance)[] | `[]` | | `previous?` | [`SolvedBindings`](https://docs.bear.build/docs/bear/engine/solvable.md#solvedbindings) | `undefined` | #### Returns [#returns-1] [`Solved`](https://docs.bear.build/docs/bear/engine/solve.md#solved) # spacing (https://docs.bear.build/docs/bear/engine/spacing) Import from `bear/engine/spacing`. ## Functions [#functions] ### centerPositions() [#centerpositions] ```ts function centerPositions( spanLength, memberWidth, onCenter ): number[]; ``` Defined in: [bear/engine/spacing.ts:39](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/spacing.ts#L39) Compute center positions at strict OC spacing along a span. Members are placed from `start + onCenter` stepping toward `end`, stopping before the far edge. Edge members (rim joists, end rafters) are the caller's responsibility. Used for joists, rafters, and trusses. #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `spanLength` | `number` | | `memberWidth` | `number` | | `onCenter` | `number` | #### Returns [#returns] `number`[] *** ### facePositions() [#facepositions] ```ts function facePositions( spanLength, memberWidth, onCenter ): number[]; ``` Defined in: [bear/engine/spacing.ts:17](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/spacing.ts#L17) Compute left-face positions at strict OC spacing from span start. Includes an end member flush with span end (may sister the last OC member). Used for studs and any member placed by face offset. #### Parameters [#parameters-1] | Parameter | Type | | ------ | ------ | | `spanLength` | `number` | | `memberWidth` | `number` | | `onCenter` | `number` | #### Returns [#returns-1] `number`[] # surfaces (https://docs.bear.build/docs/bear/engine/surfaces) Import from `bear/engine/surfaces`. ## Functions [#functions] ### computeHorizontalSurfaces() [#computehorizontalsurfaces] ```ts function computeHorizontalSurfaces( length, width, thickness ): object; ``` Defined in: [bear/engine/surfaces.ts:244](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/surfaces.ts#L244) Compute the top and bottom surfaces for a horizontal assembly (floor or roof deck). The assembly is centered at the origin in XY with the given length (X) and width (Y). Thickness is along Z. The bottom face is at z=0, top at z=thickness. For a floor: "top" is the walking surface, "bottom" faces the space below. For a roof: "top" is the weather surface, "bottom" faces the attic/interior. #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `length` | `number` | | `width` | `number` | | `thickness` | `number` | #### Returns [#returns] `object` | Name | Type | | ------ | ------ | | `bottom` | [`Surface`](https://docs.bear.build/docs/bear/geometry/shapes.md#surface) | | `top` | [`Surface`](https://docs.bear.build/docs/bear/geometry/shapes.md#surface) | *** ### computePolygonHorizontalSurfaces() [#computepolygonhorizontalsurfaces] ```ts function computePolygonHorizontalSurfaces(footprint, thickness): object; ``` Defined in: [bear/engine/surfaces.ts:295](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/surfaces.ts#L295) Compute the top and bottom surfaces for a polygon-shaped horizontal assembly. The footprint defines the boundary in local XY. The surface frame origin is placed at the bounding-box minimum so boundary coordinates are non-negative (matching the convention used by panelization). #### Parameters [#parameters-1] | Parameter | Type | | ------ | ------ | | `footprint` | [`Vec2`](https://docs.bear.build/docs/bear/geometry/types.md#vec2)[] | | `thickness` | `number` | #### Returns [#returns-1] `object` | Name | Type | | ------ | ------ | | `bottom` | [`Surface`](https://docs.bear.build/docs/bear/geometry/shapes.md#surface) | | `top` | [`Surface`](https://docs.bear.build/docs/bear/geometry/shapes.md#surface) | *** ### computeWallSurfaces() [#computewallsurfaces] ```ts function computeWallSurfaces( length, height, thickness, pitchRise? ): object; ``` Defined in: [bear/engine/surfaces.ts:19](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/surfaces.ts#L19) Compute the exterior and interior surfaces for a wall from its dimensions. When `pitchRise` is non-zero, the boundary is trapezoidal: the top edge slopes from `height` at x=0 to `height + pitchRise` at x=length. Origins are placed at the bottom-left corner of each face so that panelization coordinates start at (0,0) and work along u/v. #### Parameters [#parameters-2] | Parameter | Type | Default value | | ------ | ------ | ------ | | `length` | `number` | `undefined` | | `height` | `number` | `undefined` | | `thickness` | `number` | `undefined` | | `pitchRise?` | `number` | `0` | #### Returns [#returns-2] `object` | Name | Type | | ------ | ------ | | `ext` | [`Surface`](https://docs.bear.build/docs/bear/geometry/shapes.md#surface) | | `int` | [`Surface`](https://docs.bear.build/docs/bear/geometry/shapes.md#surface) | *** ### deriveFaceFromExtents() [#derivefacefromextents] ```ts function deriveFaceFromExtents(extents, face): Surface; ``` Defined in: [bear/engine/surfaces.ts:144](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/surfaces.ts#L144) Derive a face Surface from the 6 standard bounding-box faces. Reads the extents' box, so the result is correct in the node's local frame whether its geometry is corner-origin (0..width) or centered (±width/2). Face origins sit on a corner of the face so boundary coordinates start at (0,0) and run along u/v. #### Parameters [#parameters-3] | Parameter | Type | | ------ | ------ | | `extents` | [`ReferenceExtents`](https://docs.bear.build/docs/bear/engine/geometryReferences.md#referenceextents) | | `face` | `string` | #### Returns [#returns-3] [`Surface`](https://docs.bear.build/docs/bear/geometry/shapes.md#surface) *** ### flatPlane() [#flatplane] ```ts function flatPlane( origin, v, n, boundary ): Surface; ``` Defined in: [bear/engine/surfaces.ts:102](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/surfaces.ts#L102) A flat (u = +X) reference plane in a node's local frame: the shape of every horizontal ref a blueprint publishes (a post base's seat, the plane it stands on). `v` runs the other way across the plane, so a downward-facing plane is `v = -Y, n = -Z`, the way a box's bottom face is derived below. #### Parameters [#parameters-4] | Parameter | Type | | ------ | ------ | | `origin` | `Vector3` | | `v` | `Vector3` | | `n` | `Vector3` | | `boundary` | [`Boundary`](https://docs.bear.build/docs/bear/geometry/shapes.md#boundary) | #### Returns [#returns-4] [`Surface`](https://docs.bear.build/docs/bear/geometry/shapes.md#surface) *** ### offsetSurface() [#offsetsurface] ```ts function offsetSurface(surface, distance): Surface; ``` Defined in: [bear/engine/surfaces.ts:118](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/surfaces.ts#L118) Offset a surface along its normal by a given distance. Returns a new Surface with the origin shifted. #### Parameters [#parameters-5] | Parameter | Type | | ------ | ------ | | `surface` | [`Surface`](https://docs.bear.build/docs/bear/geometry/shapes.md#surface) | | `distance` | `number` | #### Returns [#returns-5] [`Surface`](https://docs.bear.build/docs/bear/geometry/shapes.md#surface) *** ### uprightPlane() [#uprightplane] ```ts function uprightPlane( origin, u, n, boundary ): Surface; ``` Defined in: [bear/engine/surfaces.ts:79](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/surfaces.ts#L79) An upright (v = +Z) reference plane in a node's local frame: the shape of every vertical ref a blueprint publishes (wall faces, span ends, centerlines). #### Parameters [#parameters-6] | Parameter | Type | | ------ | ------ | | `origin` | `Vector3` | | `u` | `Vector3` | | `n` | `Vector3` | | `boundary` | [`Boundary`](https://docs.bear.build/docs/bear/geometry/shapes.md#boundary) | #### Returns [#returns-6] [`Surface`](https://docs.bear.build/docs/bear/geometry/shapes.md#surface) # threeConsumer (https://docs.bear.build/docs/bear/engine/threeConsumer) Import from `bear/engine/threeConsumer`. ## Interfaces [#interfaces] ### IThreeConsumer [#ithreeconsumer] Defined in: [bear/engine/threeConsumer.ts:14](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/threeConsumer.ts#L14) Interface for a Bear Three.js consumer that manages scene rendering, selection, and highlighting. #### Properties [#properties] | Property | Modifier | Type | | ------ | ------ | ------ | | `scene` | `readonly` | `Scene` | #### Methods [#methods] ##### attach() [#attach] ```ts attach(store): () => void; ``` Defined in: [bear/engine/threeConsumer.ts:16](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/threeConsumer.ts#L16) ###### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `store` | `unknown` | ###### Returns [#returns] () => `void` ##### captureView() [#captureview] ```ts captureView(): Promise; ``` Defined in: [bear/engine/threeConsumer.ts:22](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/threeConsumer.ts#L22) What the user sees in the viewer right now, as a PNG data URL. ###### Returns [#returns-1] `Promise`\<`string`\> ##### deselectNodes() [#deselectnodes] ```ts deselectNodes(nodeIds?): void; ``` Defined in: [bear/engine/threeConsumer.ts:29](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/threeConsumer.ts#L29) ###### Parameters [#parameters-1] | Parameter | Type | | ------ | ------ | | `nodeIds?` | `string`[] | ###### Returns [#returns-2] `void` ##### detach() [#detach] ```ts detach(): void; ``` Defined in: [bear/engine/threeConsumer.ts:17](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/threeConsumer.ts#L17) ###### Returns [#returns-3] `void` ##### getSelectedNodeIds() [#getselectednodeids] ```ts getSelectedNodeIds(): string[]; ``` Defined in: [bear/engine/threeConsumer.ts:38](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/threeConsumer.ts#L38) ###### Returns [#returns-4] `string`[] ##### hideNodes() [#hidenodes] ```ts hideNodes(nodeIds): void; ``` Defined in: [bear/engine/threeConsumer.ts:31](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/threeConsumer.ts#L31) Hide the given nodes and everything under them. ###### Parameters [#parameters-2] | Parameter | Type | | ------ | ------ | | `nodeIds` | `string`[] | ###### Returns [#returns-5] `void` ##### highlightNodes() [#highlightnodes] ```ts highlightNodes(nodeIds): void; ``` Defined in: [bear/engine/threeConsumer.ts:23](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/threeConsumer.ts#L23) ###### Parameters [#parameters-3] | Parameter | Type | | ------ | ------ | | `nodeIds` | `string`[] | ###### Returns [#returns-6] `void` ##### isolateNodes() [#isolatenodes] ```ts isolateNodes(nodeIds): void; ``` Defined in: [bear/engine/threeConsumer.ts:33](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/threeConsumer.ts#L33) Leave only the given nodes visible; hide the rest of the model. ###### Parameters [#parameters-4] | Parameter | Type | | ------ | ------ | | `nodeIds` | `string`[] | ###### Returns [#returns-7] `void` ##### requestView() [#requestview] ```ts requestView(request): void; ``` Defined in: [bear/engine/threeConsumer.ts:45](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/threeConsumer.ts#L45) Ask the view to move its camera. The camera is the view's, not the consumer's, and the view may not be showing yet: the request is kept until a subscriber reports it applied, and replayed to a new subscriber. ###### Parameters [#parameters-5] | Parameter | Type | | ------ | ------ | | `request` | [`ViewRequest`](https://docs.bear.build/docs/bear/engine/threeConsumer.md#viewrequest) | ###### Returns [#returns-8] `void` ##### selectNodes() [#selectnodes] ```ts selectNodes(nodeIds, options?): void; ``` Defined in: [bear/engine/threeConsumer.ts:25](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/threeConsumer.ts#L25) ###### Parameters [#parameters-6] | Parameter | Type | | ------ | ------ | | `nodeIds` | `string`[] | | `options?` | \{ `additive?`: `boolean`; `toggle?`: `boolean`; \} | | `options.additive?` | `boolean` | | `options.toggle?` | `boolean` | ###### Returns [#returns-9] `void` ##### setRenderInvalidator() [#setrenderinvalidator] ```ts setRenderInvalidator(invalidate): void; ``` Defined in: [bear/engine/threeConsumer.ts:18](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/threeConsumer.ts#L18) ###### Parameters [#parameters-7] | Parameter | Type | | ------ | ------ | | `invalidate` | () => `void` | ###### Returns [#returns-10] `void` ##### setViewCapture() [#setviewcapture] ```ts setViewCapture(capture): void; ``` Defined in: [bear/engine/threeConsumer.ts:20](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/threeConsumer.ts#L20) The view registers how to render its current frame as a PNG data URL. ###### Parameters [#parameters-8] | Parameter | Type | | ------ | ------ | | `capture` | () => `Promise`\<`string`\> | ###### Returns [#returns-11] `void` ##### shadeNodes() [#shadenodes] ```ts shadeNodes(nodeIds, shade): void; ``` Defined in: [bear/engine/threeConsumer.ts:35](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/threeConsumer.ts#L35) Draw the given nodes in a flat color; a later shade wins where they overlap. ###### Parameters [#parameters-9] | Parameter | Type | | ------ | ------ | | `nodeIds` | `string`[] | | `shade` | [`Shade`](https://docs.bear.build/docs/bear/engine/threeConsumer.md#shade) | ###### Returns [#returns-12] `void` ##### subscribeToSelectionChange() [#subscribetoselectionchange] ```ts subscribeToSelectionChange(callback): () => void; ``` Defined in: [bear/engine/threeConsumer.ts:39](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/threeConsumer.ts#L39) ###### Parameters [#parameters-10] | Parameter | Type | | ------ | ------ | | `callback` | (`nodeIds`) => `void` | ###### Returns [#returns-13] () => `void` ##### subscribeToViewRequest() [#subscribetoviewrequest] ```ts subscribeToViewRequest(callback): () => void; ``` Defined in: [bear/engine/threeConsumer.ts:46](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/threeConsumer.ts#L46) ###### Parameters [#parameters-11] | Parameter | Type | | ------ | ------ | | `callback` | (`request`) => `boolean` | ###### Returns [#returns-14] () => `void` ##### unhighlightNodes() [#unhighlightnodes] ```ts unhighlightNodes(nodeIds?): void; ``` Defined in: [bear/engine/threeConsumer.ts:24](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/threeConsumer.ts#L24) ###### Parameters [#parameters-12] | Parameter | Type | | ------ | ------ | | `nodeIds?` | `string`[] | ###### Returns [#returns-15] `void` ##### unshadeNodes() [#unshadenodes] ```ts unshadeNodes(nodeIds): void; ``` Defined in: [bear/engine/threeConsumer.ts:37](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/threeConsumer.ts#L37) Draw the given nodes with their own materials again. ###### Parameters [#parameters-13] | Parameter | Type | | ------ | ------ | | `nodeIds` | `string`[] | ###### Returns [#returns-16] `void` ## Type Aliases [#type-aliases] ### CameraView [#cameraview] ```ts type CameraView = object; ``` Defined in: [bear/engine/threeConsumer.ts:57](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/threeConsumer.ts#L57) A camera view as data: one shape for a free orbit, a restored markup plane and a view in the URL. Project units, Z-up. #### Properties [#properties-1] | Property | Type | Description | | ------ | ------ | ------ | | `direction` | `Vec3Tuple` | Unit vector from the target toward the eye. | | `projection` | `"perspective"` \| `"parallel"` | - | | `size` | \[`number`, `number`\] | World width and height at the target that must fit the viewport. | | `target` | `Vec3Tuple` | - | | `up` | `Vec3Tuple` | Screen up. Only consulted looking straight up or down, where Z-up gives none. | *** ### Shade [#shade] ```ts type Shade = object; ``` Defined in: [bear/engine/threeConsumer.ts:4](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/threeConsumer.ts#L4) A flat color drawn in place of a node's materials. #### Properties [#properties-2] | Property | Type | Description | | ------ | ------ | ------ | | `color` | `ColorRepresentation` | - | | `opacity?` | `number` | 1 is solid; lower lets what is behind show through. Default 1. | *** ### ViewRequest [#viewrequest] ```ts type ViewRequest = | { kind: "nodes"; nodeIds: string[]; } | { kind: "camera"; view: CameraView; }; ``` Defined in: [bear/engine/threeConsumer.ts:68](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/threeConsumer.ts#L68) # timing (https://docs.bear.build/docs/bear/engine/timing) Import from `bear/engine/timing`. ## Functions [#functions] ### span() [#span] ```ts function span(name, run): T; ``` Defined in: [bear/engine/timing.ts:13](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/timing.ts#L13) #### Type Parameters [#type-parameters] | Type Parameter | | ------ | | `T` | #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `name` | `string` | | `run` | () => `T` | #### Returns [#returns] `T` *** ### spanAsync() [#spanasync] ```ts function spanAsync(name, run): Promise; ``` Defined in: [bear/engine/timing.ts:27](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/timing.ts#L27) #### Type Parameters [#type-parameters-1] | Type Parameter | | ------ | | `T` | #### Parameters [#parameters-1] | Parameter | Type | | ------ | ------ | | `name` | `string` | | `run` | () => `Promise`\<`T`\> | #### Returns [#returns-1] `Promise`\<`T`\> # treeToScene (https://docs.bear.build/docs/bear/engine/treeToScene) Import from `bear/engine/treeToScene`. ## Functions [#functions] ### disposeScene() [#disposescene] ```ts function disposeScene(scene): void; ``` Defined in: [bear/engine/treeToScene.ts:38](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/treeToScene.ts#L38) Free what `treeToScene` made for a scene that is no longer drawn. A renderer keeps every geometry it drew, and its vertex arrays, until it is disposed. Materials from the descriptor cache are shared across scenes, so they stay, and so does a geometry a shape cache still owns: the next scene draws it. #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `scene` | `Scene` | #### Returns [#returns] `void` *** ### treeToScene() [#treetoscene] ```ts function treeToScene(result): Scene; ``` Defined in: [bear/engine/treeToScene.ts:25](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/treeToScene.ts#L25) Convert a render into a Three.js Scene. #### Parameters [#parameters-1] | Parameter | Type | | ------ | ------ | | `result` | [`ModelView`](https://docs.bear.build/docs/bear/engine/model.md#modelview) | #### Returns [#returns-1] `Scene` # types (https://docs.bear.build/docs/bear/engine/types) Import from `bear/engine/types`. ## Interfaces [#interfaces] ### AncestorNode [#ancestornode] Defined in: [bear/engine/types.ts:281](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/types.ts#L281) Minimal ancestor-chain shape every node satisfies structurally. Helpers that only walk upward (context lookup, world transforms) accept this. #### Extended by [#extended-by] - [`NamedNode`](https://docs.bear.build/docs/bear/engine/types.md#namednode) #### Properties [#properties] | Property | Modifier | Type | | ------ | ------ | ------ | | `context?` | `readonly` | [`ContextMap`](https://docs.bear.build/docs/bear/engine/types.md#contextmap) | | `parent` | `readonly` | [`AncestorNode`](https://docs.bear.build/docs/bear/engine/types.md#ancestornode) \| `null` | | `transform?` | `readonly` | [`TransformMatrix`](https://docs.bear.build/docs/bear/geometry/transform.md#transformmatrix) | *** ### AssemblyNode [#assemblynode] Defined in: [bear/engine/types.ts:336](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/types.ts#L336) An assembly. Publishes the reference planes its `refs` prop states and spans its children; an empty assembly has no extents. #### Extends [#extends] - `TreeNodeBase`\<`P`\> #### Type Parameters [#type-parameters] | Type Parameter | Default type | | ------ | ------ | | `P` | `Record`\<`string`, `unknown`\> | #### Properties [#properties-1] | Property | Modifier | Type | Description | Overrides | Inherited from | | ------ | ------ | ------ | ------ | ------ | ------ | | `assemblies` | `readonly` | readonly [`AssemblyFn`](https://docs.bear.build/docs/bear/engine/types.md#assemblyfn)\<`Record`\<`string`, `unknown`\>\>[] | Assembly components whose expansion produced this node, innermost first. Assemblies are transparent (they create no nodes of their own), so this is how a node remembers which components it came from; `q(Wall)` matches against it. | - | `TreeNodeBase.assemblies` | | `authoredSegment` | `readonly` | `string` | The authored name before sibling FQN deduplication renamed it. | - | `TreeNodeBase.authoredSegment` | | `children` | `readonly` | readonly [`TreeNode`](https://docs.bear.build/docs/bear/engine/types.md#treenode)\<`Record`\<`string`, `unknown`\>\>[] | - | - | `TreeNodeBase.children` | | `context?` | `readonly` | [`ContextMap`](https://docs.bear.build/docs/bear/engine/types.md#contextmap) | Context values provided by this node for descendant lookup. Set from the `context` prop during collection. Descendants call `getContext(node, ctx)` to walk the ancestor chain. | - | `TreeNodeBase.context` | | `extents?` | `readonly` | [`ReferenceExtents`](https://docs.bear.build/docs/bear/engine/geometryReferences.md#referenceextents) | - | - | - | | `fqn` | `readonly` | `string` | - | - | `TreeNodeBase.fqn` | | `kind` | `readonly` | `"assembly"` | - | `TreeNodeBase.kind` | - | | `model?` | `readonly` | [`ModelView`](https://docs.bear.build/docs/bear/engine/model.md#modelview) | The model this node landed in, set when `materialize()` seals the converged tree. Graph hops from a bare node read its edges here. Absent on a tree that was only collected (a pass that did not converge, or `collect()` called directly). | - | `TreeNodeBase.model` | | `parent` | `readonly` | [`TreeNode`](https://docs.bear.build/docs/bear/engine/types.md#treenode)\<`Record`\<`string`, `unknown`\>\> \| `null` | - | - | `TreeNodeBase.parent` | | `props` | `readonly` | `Readonly`\<`P`\> | - | - | `TreeNodeBase.props` | | `refs` | `readonly` | `Readonly`\<`Record`\<`string`, [`Surface`](https://docs.bear.build/docs/bear/geometry/shapes.md#surface)\>\> | - | - | - | | `relationDecls` | `readonly` | readonly [`RelationDecl`](https://docs.bear.build/docs/bear/engine/relations.md#relationdecl)[] | Relation declarations this element authored, landed at collect and resolved into the model's edges at the end of the pass. | - | `TreeNodeBase.relationDecls` | | `resolved` | `readonly` | [`ResolvedRefs`](https://docs.bear.build/docs/bear/engine/types.md#resolvedrefs) | - | - | `TreeNodeBase.resolved` | | `rides?` | `readonly` | `Readonly`\<`Record`\<`string`, `string`\>\> | The solvable anchor each of this node's refs rides, by ref key, when it is not the enclosing solvable's first anchor: a span's `end` plane rides `end`. From the `rides` prop. A dim to a ref moves the anchor the ref rides. | - | `TreeNodeBase.rides` | | `source` | `readonly` | readonly [`SourceLocation`](https://docs.bear.build/docs/bear/engine/types.md#sourcelocation)[] | Call sites that produced this node, innermost first: the node's own JSX expression, then each enclosing element on the collection path (assembly call sites included, even though assemblies create no nodes). Empty when the code was compiled without call-site emission. | - | `TreeNodeBase.source` | | `transform` | `readonly` | [`TransformMatrix`](https://docs.bear.build/docs/bear/geometry/transform.md#transformmatrix) | Local to the parent: authored, placed from connections, or identity. | - | `TreeNodeBase.transform` | | `type` | `readonly` | [`PartDef`](https://docs.bear.build/docs/bear/engine/types.md#partdef)\<`any`\> | - | - | `TreeNodeBase.type` | *** ### BearElement [#bearelement] Defined in: [bear/engine/types.ts:555](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/types.ts#L555) What createElement returns — a lightweight description of what to build. P is the part's props; a bare `BearElement` is an element of any part. #### Type Parameters [#type-parameters-1] | Type Parameter | Default type | | ------ | ------ | | `P` *extends* `object` | `object` | #### Properties [#properties-2] | Property | Type | Description | | ------ | ------ | ------ | | `children` | [`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement)\<`object`\>[] | - | | `props` | `P` & [`ElementProps`](https://docs.bear.build/docs/bear/engine/types.md#elementprops) | - | | `source?` | [`SourceLocation`](https://docs.bear.build/docs/bear/engine/types.md#sourcelocation) | JSX call site, present when compiled with dev JSX (jsxDEV). | | `type` | \| `string` \| `symbol` \| [`PartDef`](https://docs.bear.build/docs/bear/engine/types.md#partdef)\<`any`, `string`, `string`\> \| [`AssemblyFn`](https://docs.bear.build/docs/bear/engine/types.md#assemblyfn)\<`any`\> | - | *** ### ConstructionNode [#constructionnode] Defined in: [bear/engine/types.ts:348](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/types.ts#L348) A construction node carries constraint intent (dims, chains), no geometry. Its Ref props stay symbolic for solve. #### Extends [#extends-1] - `TreeNodeBase`\<`P`\> #### Type Parameters [#type-parameters-2] | Type Parameter | Default type | | ------ | ------ | | `P` | `Record`\<`string`, `unknown`\> | #### Properties [#properties-3] | Property | Modifier | Type | Description | Overrides | Inherited from | | ------ | ------ | ------ | ------ | ------ | ------ | | `assemblies` | `readonly` | readonly [`AssemblyFn`](https://docs.bear.build/docs/bear/engine/types.md#assemblyfn)\<`Record`\<`string`, `unknown`\>\>[] | Assembly components whose expansion produced this node, innermost first. Assemblies are transparent (they create no nodes of their own), so this is how a node remembers which components it came from; `q(Wall)` matches against it. | - | `TreeNodeBase.assemblies` | | `authoredSegment` | `readonly` | `string` | The authored name before sibling FQN deduplication renamed it. | - | `TreeNodeBase.authoredSegment` | | `children` | `readonly` | readonly [`TreeNode`](https://docs.bear.build/docs/bear/engine/types.md#treenode)\<`Record`\<`string`, `unknown`\>\>[] | - | - | `TreeNodeBase.children` | | `context?` | `readonly` | [`ContextMap`](https://docs.bear.build/docs/bear/engine/types.md#contextmap) | Context values provided by this node for descendant lookup. Set from the `context` prop during collection. Descendants call `getContext(node, ctx)` to walk the ancestor chain. | - | `TreeNodeBase.context` | | `extents?` | `readonly` | `undefined` | - | - | - | | `fqn` | `readonly` | `string` | - | - | `TreeNodeBase.fqn` | | `kind` | `readonly` | `"construction"` | - | `TreeNodeBase.kind` | - | | `model?` | `readonly` | [`ModelView`](https://docs.bear.build/docs/bear/engine/model.md#modelview) | The model this node landed in, set when `materialize()` seals the converged tree. Graph hops from a bare node read its edges here. Absent on a tree that was only collected (a pass that did not converge, or `collect()` called directly). | - | `TreeNodeBase.model` | | `parent` | `readonly` | [`TreeNode`](https://docs.bear.build/docs/bear/engine/types.md#treenode)\<`Record`\<`string`, `unknown`\>\> \| `null` | - | - | `TreeNodeBase.parent` | | `props` | `readonly` | `Readonly`\<`P`\> | - | - | `TreeNodeBase.props` | | `refs?` | `readonly` | `undefined` | - | - | - | | `relationDecls` | `readonly` | readonly [`RelationDecl`](https://docs.bear.build/docs/bear/engine/relations.md#relationdecl)[] | Relation declarations this element authored, landed at collect and resolved into the model's edges at the end of the pass. | - | `TreeNodeBase.relationDecls` | | `resolved` | `readonly` | [`ResolvedRefs`](https://docs.bear.build/docs/bear/engine/types.md#resolvedrefs) | - | - | `TreeNodeBase.resolved` | | `rides?` | `readonly` | `Readonly`\<`Record`\<`string`, `string`\>\> | The solvable anchor each of this node's refs rides, by ref key, when it is not the enclosing solvable's first anchor: a span's `end` plane rides `end`. From the `rides` prop. A dim to a ref moves the anchor the ref rides. | - | `TreeNodeBase.rides` | | `source` | `readonly` | readonly [`SourceLocation`](https://docs.bear.build/docs/bear/engine/types.md#sourcelocation)[] | Call sites that produced this node, innermost first: the node's own JSX expression, then each enclosing element on the collection path (assembly call sites included, even though assemblies create no nodes). Empty when the code was compiled without call-site emission. | - | `TreeNodeBase.source` | | `transform` | `readonly` | [`TransformMatrix`](https://docs.bear.build/docs/bear/geometry/transform.md#transformmatrix) | Local to the parent: authored, placed from connections, or identity. | - | `TreeNodeBase.transform` | | `type` | `readonly` | [`PartDef`](https://docs.bear.build/docs/bear/engine/types.md#partdef)\<`any`\> | - | - | `TreeNodeBase.type` | *** ### Diagnostic [#diagnostic] Defined in: [bear/engine/types.ts:149](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/types.ts#L149) A non-fatal problem found by a phase, about the node it names. Plain data (no node reference) so it serializes across the sandbox boundary. #### Properties [#properties-4] | Property | Type | Description | | ------ | ------ | ------ | | `blockedBy?` | readonly `string`[] | Unavailable inputs responsible for this finding, when all are blocked by a failed build. | | `fqn` | `string` | The node the finding is about. | | `message` | `string` | - | | `related?` | readonly (readonly [`SourceLocation`](https://docs.bear.build/docs/bear/engine/types.md#sourcelocation)[])[] | Call sites of related elements (e.g. the conflicting dims). | | `severity` | `"error"` \| `"warning"` | - | | `source` | readonly [`SourceLocation`](https://docs.bear.build/docs/bear/engine/types.md#sourcelocation)[] | Call sites of the element that produced this diagnostic. | *** ### EffectiveDim [#effectivedim] Defined in: [bear/engine/types.ts:167](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/types.ts#L167) A dim's fully resolved intent, produced by solve (see `ResolvedDim` on the model). Nothing re-derives chain inheritance. Lengths are project units. #### Properties [#properties-5] | Property | Type | Description | | ------ | ------ | ------ | | `derived?` | `boolean` | True when `value` was filled in by solve rather than authored. | | `direction` | `"y"` \| `"x"` \| `"z"` | - | | `eq?` | [`EqGroup`](https://docs.bear.build/docs/bear/engine/types.md#eqgroup) | Eq-group token identity, if any. | | `from` | `string` \| [`Ref`](https://docs.bear.build/docs/bear/engine/types.md#ref) | - | | `fromLabel` | `string` | Human-readable endpoint names ("@A", "W.coreExt"), resolved by solve. | | `max?` | `number` | - | | `measured?` | `number` | The measured span between the resolved planes, when both resolved. | | `min?` | `number` | - | | `priority` | `"required"` \| `"strong"` | - | | `to` | `string` \| [`Ref`](https://docs.bear.build/docs/bear/engine/types.md#ref) | - | | `toLabel` | `string` | - | | `value?` | `number` | Authored value; for a valueless chain link, solve fills in the measured span. | *** ### ElementProps [#elementprops] Defined in: [bear/engine/types.ts:535](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/types.ts#L535) The props the engine reads on any element, whatever its part. #### Extends [#extends-2] - [`RelationProps`](https://docs.bear.build/docs/bear/engine/relations.md#relationprops) #### Extended by [#extended-by-1] - [`StairsProps`](https://docs.bear.build/docs/bear/blueprints/playground/Stairs.md#stairsprops) - [`CanopyProps`](https://docs.bear.build/docs/bear/blueprints/playground/Canopy.md#canopyprops) - [`BarrierProps`](https://docs.bear.build/docs/bear/blueprints/playground/Barrier.md#barrierprops) - [`DeckProps`](https://docs.bear.build/docs/bear/blueprints/playground/Deck.md#deckprops) - [`BridgeProps`](https://docs.bear.build/docs/bear/blueprints/playground/Bridge.md#bridgeprops) - [`TowerProps`](https://docs.bear.build/docs/bear/blueprints/playground/Tower.md#towerprops) #### Properties [#properties-6] | Property | Type | Description | Inherited from | | ------ | ------ | ------ | ------ | | `bearsOn?` | [`RelationPropValue`](https://docs.bear.build/docs/bear/engine/relations.md#relationpropvalue) | - | [`RelationProps`](https://docs.bear.build/docs/bear/engine/relations.md#relationprops).[`bearsOn`](https://docs.bear.build/docs/bear/engine/relations.md#property-bearson) | | `carries?` | [`RelationPropValue`](https://docs.bear.build/docs/bear/engine/relations.md#relationpropvalue) | - | [`RelationProps`](https://docs.bear.build/docs/bear/engine/relations.md#relationprops).[`carries`](https://docs.bear.build/docs/bear/engine/relations.md#property-carries) | | `context?` | [`ContextMap`](https://docs.bear.build/docs/bear/engine/types.md#contextmap) | Context values this element provides to its descendants. | - | | `cutBy?` | [`RelationPropValue`](https://docs.bear.build/docs/bear/engine/relations.md#relationpropvalue) | - | [`RelationProps`](https://docs.bear.build/docs/bear/engine/relations.md#relationprops).[`cutBy`](https://docs.bear.build/docs/bear/engine/relations.md#property-cutby) | | `cuts?` | [`RelationPropValue`](https://docs.bear.build/docs/bear/engine/relations.md#relationpropvalue) | - | [`RelationProps`](https://docs.bear.build/docs/bear/engine/relations.md#relationprops).[`cuts`](https://docs.bear.build/docs/bear/engine/relations.md#property-cuts-1) | | `fastenedTo?` | [`RelationPropValue`](https://docs.bear.build/docs/bear/engine/relations.md#relationpropvalue) | - | [`RelationProps`](https://docs.bear.build/docs/bear/engine/relations.md#relationprops).[`fastenedTo`](https://docs.bear.build/docs/bear/engine/relations.md#property-fastenedto) | | `fedBy?` | [`RelationPropValue`](https://docs.bear.build/docs/bear/engine/relations.md#relationpropvalue) | - | [`RelationProps`](https://docs.bear.build/docs/bear/engine/relations.md#relationprops).[`fedBy`](https://docs.bear.build/docs/bear/engine/relations.md#property-fedby) | | `feeds?` | [`RelationPropValue`](https://docs.bear.build/docs/bear/engine/relations.md#relationpropvalue) | - | [`RelationProps`](https://docs.bear.build/docs/bear/engine/relations.md#relationprops).[`feeds`](https://docs.bear.build/docs/bear/engine/relations.md#property-feeds-1) | | `hosts?` | [`HostedChildren`](https://docs.bear.build/docs/bear/engine/hosting.md#hostedchildren) | Collect typed member declarations before building host-owned children. | - | | `label?` | `string` | - | - | | `name?` | `string` | FQN segment for this element. Falls back to `label`, then the part name. | - | | `refs?` | `Readonly`\<`Record`\<`string`, [`Surface`](https://docs.bear.build/docs/bear/geometry/shapes.md#surface)\>\> | Named reference planes this element publishes, in its local frame. | - | | `rides?` | `Readonly`\<`Record`\<`string`, `string`\>\> | The solvable anchor a published ref rides, by ref key. See `NodeBase.rides`. | - | | `transform?` | [`TransformMatrix`](https://docs.bear.build/docs/bear/geometry/transform.md#transformmatrix) | This element's pose in its parent frame. | - | *** ### EqGroup [#eqgroup] Defined in: [bear/engine/types.ts:102](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/types.ts#L102) Identity token for an equality group. Dims sharing a token are constrained pairwise equal with no authored value. #### Properties [#properties-7] | Property | Modifier | Type | | ------ | ------ | ------ | | `[EQ_GROUP]` | `readonly` | `true` | | `label?` | `readonly` | `string` | *** ### Geometry [#geometry] Defined in: [bear/engine/types.ts:408](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/types.ts#L408) A part's solid and how to shade it, built once per model for consumers. A solid made of several materials tags each source solid with its own Manifold original ID (`reserveIDs`, `asOriginal`) and maps that ID in `materials`. Unions and cuts keep each triangle's ID, so the table holds through them. `material` shades every triangle whose ID has no entry. #### Properties [#properties-8] | Property | Type | | ------ | ------ | | `manifold?` | `Manifold` | | `material?` | [`MaterialDescriptor`](https://docs.bear.build/docs/bear/engine/types.md#materialdescriptor) | | `materials?` | `Readonly`\<`Record`\<`number`, [`MaterialDescriptor`](https://docs.bear.build/docs/bear/engine/types.md#materialdescriptor)\>\> | *** ### GeometryNode [#geometrynode] Defined in: [bear/engine/types.ts:324](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/types.ts#L324) A part. Its size is `type.extents(props)`; a part that declares no `extents` has none. Its solid lives on the model (`geometryOf`). Publishes the planes its `type.planes(props)` states, beyond the six box faces every part has. #### Extends [#extends-3] - `TreeNodeBase`\<`P`\> #### Type Parameters [#type-parameters-3] | Type Parameter | Default type | | ------ | ------ | | `P` | `Record`\<`string`, `unknown`\> | #### Properties [#properties-9] | Property | Modifier | Type | Description | Overrides | Inherited from | | ------ | ------ | ------ | ------ | ------ | ------ | | `assemblies` | `readonly` | readonly [`AssemblyFn`](https://docs.bear.build/docs/bear/engine/types.md#assemblyfn)\<`Record`\<`string`, `unknown`\>\>[] | Assembly components whose expansion produced this node, innermost first. Assemblies are transparent (they create no nodes of their own), so this is how a node remembers which components it came from; `q(Wall)` matches against it. | - | `TreeNodeBase.assemblies` | | `authoredSegment` | `readonly` | `string` | The authored name before sibling FQN deduplication renamed it. | - | `TreeNodeBase.authoredSegment` | | `children` | `readonly` | readonly [`TreeNode`](https://docs.bear.build/docs/bear/engine/types.md#treenode)\<`Record`\<`string`, `unknown`\>\>[] | - | - | `TreeNodeBase.children` | | `context?` | `readonly` | [`ContextMap`](https://docs.bear.build/docs/bear/engine/types.md#contextmap) | Context values provided by this node for descendant lookup. Set from the `context` prop during collection. Descendants call `getContext(node, ctx)` to walk the ancestor chain. | - | `TreeNodeBase.context` | | `extents?` | `readonly` | [`ReferenceExtents`](https://docs.bear.build/docs/bear/engine/geometryReferences.md#referenceextents) | - | - | - | | `fqn` | `readonly` | `string` | - | - | `TreeNodeBase.fqn` | | `kind` | `readonly` | `"geometry"` | - | `TreeNodeBase.kind` | - | | `model?` | `readonly` | [`ModelView`](https://docs.bear.build/docs/bear/engine/model.md#modelview) | The model this node landed in, set when `materialize()` seals the converged tree. Graph hops from a bare node read its edges here. Absent on a tree that was only collected (a pass that did not converge, or `collect()` called directly). | - | `TreeNodeBase.model` | | `parent` | `readonly` | [`TreeNode`](https://docs.bear.build/docs/bear/engine/types.md#treenode)\<`Record`\<`string`, `unknown`\>\> \| `null` | - | - | `TreeNodeBase.parent` | | `props` | `readonly` | `Readonly`\<`P`\> | - | - | `TreeNodeBase.props` | | `refs?` | `readonly` | `Readonly`\<`Record`\<`string`, [`Surface`](https://docs.bear.build/docs/bear/geometry/shapes.md#surface)\>\> | - | - | - | | `relationDecls` | `readonly` | readonly [`RelationDecl`](https://docs.bear.build/docs/bear/engine/relations.md#relationdecl)[] | Relation declarations this element authored, landed at collect and resolved into the model's edges at the end of the pass. | - | `TreeNodeBase.relationDecls` | | `resolved` | `readonly` | [`ResolvedRefs`](https://docs.bear.build/docs/bear/engine/types.md#resolvedrefs) | - | - | `TreeNodeBase.resolved` | | `rides?` | `readonly` | `Readonly`\<`Record`\<`string`, `string`\>\> | The solvable anchor each of this node's refs rides, by ref key, when it is not the enclosing solvable's first anchor: a span's `end` plane rides `end`. From the `rides` prop. A dim to a ref moves the anchor the ref rides. | - | `TreeNodeBase.rides` | | `source` | `readonly` | readonly [`SourceLocation`](https://docs.bear.build/docs/bear/engine/types.md#sourcelocation)[] | Call sites that produced this node, innermost first: the node's own JSX expression, then each enclosing element on the collection path (assembly call sites included, even though assemblies create no nodes). Empty when the code was compiled without call-site emission. | - | `TreeNodeBase.source` | | `transform` | `readonly` | [`TransformMatrix`](https://docs.bear.build/docs/bear/geometry/transform.md#transformmatrix) | Local to the parent: authored, placed from connections, or identity. | - | `TreeNodeBase.transform` | | `type` | `readonly` | [`PartDef`](https://docs.bear.build/docs/bear/engine/types.md#partdef)\<`any`\> | - | - | `TreeNodeBase.type` | *** ### MaterialDescriptor [#materialdescriptor] Defined in: [bear/engine/types.ts:34](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/types.ts#L34) Lightweight POJO describing a material. Maps directly to MeshStandardMaterial properties. Actual Three.js material instantiation is handled by the 3D consumer. #### Properties [#properties-10] | Property | Type | Description | | ------ | ------ | ------ | | `color?` | `number` | - | | `map?` | [`TextureRef`](https://docs.bear.build/docs/bear/engine/types.md#textureref) | - | | `metalness?` | `number` | - | | `normalMap?` | [`TextureRef`](https://docs.bear.build/docs/bear/engine/types.md#textureref) | - | | `opacity?` | `number` | 1 (the default) is opaque; glass is less. | | `roughness?` | `number` | - | *** ### NamedNode [#namednode] Defined in: [bear/engine/types.ts:291](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/types.ts#L291) Structural node shape for scoped name resolution: ancestry, identity, and a named subtree. #### Extends [#extends-4] - [`AncestorNode`](https://docs.bear.build/docs/bear/engine/types.md#ancestornode) #### Properties [#properties-11] | Property | Modifier | Type | Overrides | Inherited from | | ------ | ------ | ------ | ------ | ------ | | `authoredSegment` | `readonly` | `string` | - | - | | `children` | `readonly` | readonly [`NamedNode`](https://docs.bear.build/docs/bear/engine/types.md#namednode)[] | - | - | | `context?` | `readonly` | [`ContextMap`](https://docs.bear.build/docs/bear/engine/types.md#contextmap) | - | [`AncestorNode`](https://docs.bear.build/docs/bear/engine/types.md#ancestornode).[`context`](https://docs.bear.build/docs/bear/engine/types.md#property-context) | | `extents?` | `readonly` | [`ReferenceExtents`](https://docs.bear.build/docs/bear/engine/geometryReferences.md#referenceextents) | - | - | | `fqn` | `readonly` | `string` | - | - | | `kind` | `readonly` | [`NodeKind`](https://docs.bear.build/docs/bear/engine/types.md#nodekind) | - | - | | `parent` | `readonly` | [`NamedNode`](https://docs.bear.build/docs/bear/engine/types.md#namednode) \| `null` | [`AncestorNode`](https://docs.bear.build/docs/bear/engine/types.md#ancestornode).[`parent`](https://docs.bear.build/docs/bear/engine/types.md#property-parent) | - | | `refs?` | `readonly` | `Readonly`\<`Record`\<`string`, [`Surface`](https://docs.bear.build/docs/bear/geometry/shapes.md#surface)\>\> | - | - | | `rides?` | `readonly` | `Readonly`\<`Record`\<`string`, `string`\>\> | - | - | | `transform?` | `readonly` | [`TransformMatrix`](https://docs.bear.build/docs/bear/geometry/transform.md#transformmatrix) | - | [`AncestorNode`](https://docs.bear.build/docs/bear/engine/types.md#ancestornode).[`transform`](https://docs.bear.build/docs/bear/engine/types.md#property-transform) | *** ### NodeBase [#nodebase] Defined in: [bear/engine/types.ts:215](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/types.ts#L215) What collection decides about a node's identity. #### Type Parameters [#type-parameters-4] | Type Parameter | Default type | | ------ | ------ | | `P` | `Record`\<`string`, `unknown`\> | #### Properties [#properties-12] | Property | Modifier | Type | Description | | ------ | ------ | ------ | ------ | | `assemblies` | `readonly` | readonly [`AssemblyFn`](https://docs.bear.build/docs/bear/engine/types.md#assemblyfn)\<`Record`\<`string`, `unknown`\>\>[] | Assembly components whose expansion produced this node, innermost first. Assemblies are transparent (they create no nodes of their own), so this is how a node remembers which components it came from; `q(Wall)` matches against it. | | `authoredSegment` | `readonly` | `string` | The authored name before sibling FQN deduplication renamed it. | | `context?` | `readonly` | [`ContextMap`](https://docs.bear.build/docs/bear/engine/types.md#contextmap) | Context values provided by this node for descendant lookup. Set from the `context` prop during collection. Descendants call `getContext(node, ctx)` to walk the ancestor chain. | | `fqn` | `readonly` | `string` | - | | `kind` | `readonly` | [`NodeKind`](https://docs.bear.build/docs/bear/engine/types.md#nodekind) | - | | `model?` | `readonly` | [`ModelView`](https://docs.bear.build/docs/bear/engine/model.md#modelview) | The model this node landed in, set when `materialize()` seals the converged tree. Graph hops from a bare node read its edges here. Absent on a tree that was only collected (a pass that did not converge, or `collect()` called directly). | | `props` | `readonly` | `Readonly`\<`P`\> | - | | `relationDecls` | `readonly` | readonly [`RelationDecl`](https://docs.bear.build/docs/bear/engine/relations.md#relationdecl)[] | Relation declarations this element authored, landed at collect and resolved into the model's edges at the end of the pass. | | `rides?` | `readonly` | `Readonly`\<`Record`\<`string`, `string`\>\> | The solvable anchor each of this node's refs rides, by ref key, when it is not the enclosing solvable's first anchor: a span's `end` plane rides `end`. From the `rides` prop. A dim to a ref moves the anchor the ref rides. | | `source` | `readonly` | readonly [`SourceLocation`](https://docs.bear.build/docs/bear/engine/types.md#sourcelocation)[] | Call sites that produced this node, innermost first: the node's own JSX expression, then each enclosing element on the collection path (assembly call sites included, even though assemblies create no nodes). Empty when the code was compiled without call-site emission. | | `type` | `readonly` | [`PartDef`](https://docs.bear.build/docs/bear/engine/types.md#partdef)\<`any`\> | - | *** ### PartDef() [#partdef] Defined in: [bear/engine/types.ts:518](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/types.ts#L518) A part definition created by `part()`. The call signature exists for JSX compatibility — TypeScript requires JSX element types to be callable. At runtime, the JSX transform calls `jsx(type, props)` rather than `type(props)`. #### Extends [#extends-5] - [`PartSpec`](https://docs.bear.build/docs/bear/engine/types.md#partspec)\<`P`, `Roles`, `Refs`\> #### Type Parameters [#type-parameters-5] | Type Parameter | Default type | | ------ | ------ | | `P` *extends* `object` | `Record`\<`string`, `unknown`\> | | `Roles` *extends* `string` | `string` | | `Refs` *extends* `string` | `string` | ```ts PartDef(props): BearElement

; ``` Defined in: [bear/engine/types.ts:523](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/types.ts#L523) A part definition created by `part()`. The call signature exists for JSX compatibility — TypeScript requires JSX element types to be callable. At runtime, the JSX transform calls `jsx(type, props)` rather than `type(props)`. #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `props` | `P` & [`ElementProps`](https://docs.bear.build/docs/bear/engine/types.md#elementprops) | #### Returns [#returns] [`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement)\<`P`\> #### Properties [#properties-13] | Property | Type | Description | Inherited from | | ------ | ------ | ------ | ------ | | `[BEAR_PART]` | `true` | - | - | | `bom?` | [`BomDef`](https://docs.bear.build/docs/bear/engine/part.md#bomdef) | BOM aggregation metadata. If omitted, defaults to \{ unit: "ea" \}. | [`PartSpec`](https://docs.bear.build/docs/bear/engine/types.md#partspec).[`bom`](https://docs.bear.build/docs/bear/engine/types.md#property-bom-1) | | `check?` | (`roles`, `node`) => readonly `string`[] | Physical fit against the resolved roles, read in the same frame `place` gets. Each returned string becomes a warning on the node, so a connector that does not suit its members says so instead of rendering a plausible lie. Runs whether or not `place` did. | [`PartSpec`](https://docs.bear.build/docs/bear/engine/types.md#partspec).[`check`](https://docs.bear.build/docs/bear/engine/types.md#property-check-1) | | `columns?` | (`node`, `geometry`) => [`PartColumn`](https://docs.bear.build/docs/bear/engine/part.md#partcolumn)[] | Generate specification columns for the parts list. | [`PartSpec`](https://docs.bear.build/docs/bear/engine/types.md#partspec).[`columns`](https://docs.bear.build/docs/bear/engine/types.md#property-columns-1) | | `connects?` | `Record`\<`Roles`, [`ConnectRole`](https://docs.bear.build/docs/bear/engine/relations.md#connectrole)\> | Connection roles: each key is a prop accepting a relation target, lowered through the role's registered relation spelling. Role props stay on the node (unlike global relation props), so Ref targets resolve when the node is collected. See ConnectRole in relations.ts. | [`PartSpec`](https://docs.bear.build/docs/bear/engine/types.md#partspec).[`connects`](https://docs.bear.build/docs/bear/engine/types.md#property-connects-1) | | `division` | `string` | CSI MasterFormat division code (e.g. "06 16 00"). | [`PartSpec`](https://docs.bear.build/docs/bear/engine/types.md#partspec).[`division`](https://docs.bear.build/docs/bear/engine/types.md#property-division-1) | | `drawing?` | (`node`) => [`DrawingHints`](https://docs.bear.build/docs/bear/drawings/types.md#drawinghints) | Provide drawing hints for 2D representation in architectural drawings. | [`PartSpec`](https://docs.bear.build/docs/bear/engine/types.md#partspec).[`drawing`](https://docs.bear.build/docs/bear/engine/types.md#property-drawing-1) | | `extents?` | (`props`, `resolved`) => [`Box`](https://docs.bear.build/docs/bear/geometry/types.md#box) | The part's bounding box in its local frame, from its props alone (`resolved` holds the Surfaces its Ref props name). | [`PartSpec`](https://docs.bear.build/docs/bear/engine/types.md#partspec).[`extents`](https://docs.bear.build/docs/bear/engine/types.md#property-extents-5) | | `geometry?` | (`props`, `resolved`, `loaded?`) => [`Geometry`](https://docs.bear.build/docs/bear/engine/types.md#geometry) | The part's solid and material, from its props and what `load` fetched. Defaults to the extents box, unshaded. Synchronous: the materialize that calls it owns every handle it makes. | [`PartSpec`](https://docs.bear.build/docs/bear/engine/types.md#partspec).[`geometry`](https://docs.bear.build/docs/bear/engine/types.md#property-geometry-1) | | `hosted?` | [`Hosted`](https://docs.bear.build/docs/bear/engine/mate.md#hosted)\<`P`\> | A part that sits in a host: the faces it reads and the planes that pose it (mate.ts). | [`PartSpec`](https://docs.bear.build/docs/bear/engine/types.md#partspec).[`hosted`](https://docs.bear.build/docs/bear/engine/types.md#property-hosted-1) | | `kind` | [`NodeKind`](https://docs.bear.build/docs/bear/engine/types.md#nodekind) | - | - | | `load?` | (`props`) => `Promise`\<`Manifold` \| `undefined`\> | Fetch the solid this part is made from (a cached mesh). Awaited for the converged tree before any geometry is built, so `geometry` can stay synchronous; resolves to a handle the caller owns. | [`PartSpec`](https://docs.bear.build/docs/bear/engine/types.md#partspec).[`load`](https://docs.bear.build/docs/bear/engine/types.md#property-load-1) | | `loadKey?` | (`props`) => `string` | What `load` reads from the props. Props with the same key are one shape: loaded once, shared between instances and kept across builds (`shapes.ts`). Without it every instance loads its own solid. | [`PartSpec`](https://docs.bear.build/docs/bear/engine/types.md#partspec).[`loadKey`](https://docs.bear.build/docs/bear/engine/types.md#property-loadkey-1) | | `panelSize?` | (`props`) => readonly \[`number`, `number`\] | Stock face dimensions in project units (U, V), before clipping to a placement. | [`PartSpec`](https://docs.bear.build/docs/bear/engine/types.md#partspec).[`panelSize`](https://docs.bear.build/docs/bear/engine/types.md#property-panelsize-1) | | `place?` | (`roles`, `node`) => [`TransformMatrix`](https://docs.bear.build/docs/bear/geometry/transform.md#transformmatrix) | Derive the part's pose in its parent frame from its resolved connection roles (given in that same frame). Runs when the part is collected and nothing authored a transform; a throw becomes a diagnostic. | [`PartSpec`](https://docs.bear.build/docs/bear/engine/types.md#partspec).[`place`](https://docs.bear.build/docs/bear/engine/types.md#property-place-1) | | `planes?` | (`props`, `resolved`) => `Readonly`\<`Record`\<`Refs`, [`Surface`](https://docs.bear.build/docs/bear/geometry/shapes.md#surface)\>\> | The named reference planes a geometry part publishes, in its local frame, keyed by the names in `refs` (a hanger's seat, a tee's ports). The six box faces need no entry. | [`PartSpec`](https://docs.bear.build/docs/bear/engine/types.md#partspec).[`planes`](https://docs.bear.build/docs/bear/engine/types.md#property-planes-1) | | `refs?` | readonly `Refs`[] | Named refs this part publishes (e.g. ["top"], ["ext", "int"]). | [`PartSpec`](https://docs.bear.build/docs/bear/engine/types.md#partspec).[`refs`](https://docs.bear.build/docs/bear/engine/types.md#property-refs-6) | *** ### PartSpec [#partspec] Defined in: [bear/engine/types.ts:430](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/types.ts#L430) What a part definition declares, defined once: `PartDef` is a built one and part()'s `PartDefInput` is the authoring shape, both extending this. Everything a part knows about itself is a function of its props. `extents` is the one the engine consumes (default reference faces, assembly spans, connector roles); `geometry` is for consumers that need a solid. `Roles` and `Refs` are the part's interface contract, stated in its type: a `PartDef` is a part whose `connects` has exactly those roles, whose `place`/`check` read exactly those roles, and whose `planes` publishes exactly those names. An assembly can then demand the contract rather than the vendor (see `JoistHangerPart` in `blueprints/connectors/types.ts`), and a part missing a role is a compile error at the site that builds it. #### Extended by [#extended-by-2] - [`PartDefInput`](https://docs.bear.build/docs/bear/engine/part.md#partdefinput) - [`PartDef`](https://docs.bear.build/docs/bear/engine/types.md#partdef) #### Type Parameters [#type-parameters-6] | Type Parameter | Default type | | ------ | ------ | | `P` | `Record`\<`string`, `unknown`\> | | `Roles` *extends* `string` | `string` | | `Refs` *extends* `string` | `string` | #### Properties [#properties-14] | Property | Type | Description | | ------ | ------ | ------ | | `bom?` | [`BomDef`](https://docs.bear.build/docs/bear/engine/part.md#bomdef) | BOM aggregation metadata. If omitted, defaults to \{ unit: "ea" \}. | | `check?` | (`roles`, `node`) => readonly `string`[] | Physical fit against the resolved roles, read in the same frame `place` gets. Each returned string becomes a warning on the node, so a connector that does not suit its members says so instead of rendering a plausible lie. Runs whether or not `place` did. | | `columns?` | (`node`, `geometry`) => [`PartColumn`](https://docs.bear.build/docs/bear/engine/part.md#partcolumn)[] | Generate specification columns for the parts list. | | `connects?` | `Record`\<`Roles`, [`ConnectRole`](https://docs.bear.build/docs/bear/engine/relations.md#connectrole)\> | Connection roles: each key is a prop accepting a relation target, lowered through the role's registered relation spelling. Role props stay on the node (unlike global relation props), so Ref targets resolve when the node is collected. See ConnectRole in relations.ts. | | `division` | `string` | CSI MasterFormat division code (e.g. "06 16 00"). | | `drawing?` | (`node`) => [`DrawingHints`](https://docs.bear.build/docs/bear/drawings/types.md#drawinghints) | Provide drawing hints for 2D representation in architectural drawings. | | `extents?` | (`props`, `resolved`) => [`Box`](https://docs.bear.build/docs/bear/geometry/types.md#box) | The part's bounding box in its local frame, from its props alone (`resolved` holds the Surfaces its Ref props name). | | `geometry?` | (`props`, `resolved`, `loaded?`) => [`Geometry`](https://docs.bear.build/docs/bear/engine/types.md#geometry) | The part's solid and material, from its props and what `load` fetched. Defaults to the extents box, unshaded. Synchronous: the materialize that calls it owns every handle it makes. | | `hosted?` | [`Hosted`](https://docs.bear.build/docs/bear/engine/mate.md#hosted)\<`P`\> | A part that sits in a host: the faces it reads and the planes that pose it (mate.ts). | | `load?` | (`props`) => `Promise`\<`Manifold` \| `undefined`\> | Fetch the solid this part is made from (a cached mesh). Awaited for the converged tree before any geometry is built, so `geometry` can stay synchronous; resolves to a handle the caller owns. | | `loadKey?` | (`props`) => `string` | What `load` reads from the props. Props with the same key are one shape: loaded once, shared between instances and kept across builds (`shapes.ts`). Without it every instance loads its own solid. | | `panelSize?` | (`props`) => readonly \[`number`, `number`\] | Stock face dimensions in project units (U, V), before clipping to a placement. | | `place?` | (`roles`, `node`) => [`TransformMatrix`](https://docs.bear.build/docs/bear/geometry/transform.md#transformmatrix) | Derive the part's pose in its parent frame from its resolved connection roles (given in that same frame). Runs when the part is collected and nothing authored a transform; a throw becomes a diagnostic. | | `planes?` | (`props`, `resolved`) => `Readonly`\<`Record`\<`Refs`, [`Surface`](https://docs.bear.build/docs/bear/geometry/shapes.md#surface)\>\> | The named reference planes a geometry part publishes, in its local frame, keyed by the names in `refs` (a hanger's seat, a tee's ports). The six box faces need no entry. | | `refs?` | readonly `Refs`[] | Named refs this part publishes (e.g. ["top"], ["ext", "int"]). | *** ### SourceLocation [#sourcelocation] Defined in: [bear/engine/types.ts:208](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/types.ts#L208) A JSX call site, injected by the compiler's dev JSX transform. Line and column are 1-based, in the original (pre-compile) source. #### Properties [#properties-15] | Property | Type | | ------ | ------ | | `columnNumber` | `number` | | `fileName` | `string` | | `lineNumber` | `number` | ## Type Aliases [#type-aliases] ### AssemblyFn [#assemblyfn] ```ts type AssemblyFn

= (props) => BearElement; ``` Defined in: [bear/engine/types.ts:532](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/types.ts#L532) An assembly function — like React's FC\. Generic over props; defaults to Record\. #### Type Parameters [#type-parameters-7] | Type Parameter | Default type | | ------ | ------ | | `P` | `Record`\<`string`, `unknown`\> | #### Parameters [#parameters-1] | Parameter | Type | | ------ | ------ | | `props` | `P` | #### Returns [#returns-1] [`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement) *** ### ContextMap [#contextmap] ```ts type ContextMap = Map; ``` Defined in: [bear/engine/types.ts:19](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/types.ts#L19) A map of context values keyed by unique symbols from BearContext objects. *** ### ErasedProps [#erasedprops] ```ts type ErasedProps = Readonly> & ElementProps; ``` Defined in: [bear/engine/types.ts:565](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/types.ts#L565) Props with the part's own erased: the bag the engine's phases iterate. *** ### NodeKind [#nodekind] ```ts type NodeKind = "geometry" | "assembly" | "construction"; ``` Defined in: [bear/engine/types.ts:192](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/types.ts#L192) Discriminant for node types. *** ### Ref [#ref] ```ts type Ref = object; ``` Defined in: [bear/engine/types.ts:65](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/types.ts#L65) A lightweight pointer to a named reference plane on another element. Faces are the common kind of ref; centerlines and other construction planes use the same mechanism. Resolved during collection. #### Properties [#properties-16] | Property | Modifier | Type | | ------ | ------ | ------ | | `[BEAR_REF]` | `readonly` | `true` | | `key` | `readonly` | `string` | | `source` | `readonly` | [`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement) | *** ### ResolvedRefs [#resolvedrefs] ```ts type ResolvedRefs = Readonly>; ``` Defined in: [bear/engine/types.ts:307](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/types.ts#L307) Prop keys whose JSX value was a Ref, resolved to Surfaces in the node's parent frame when collected. Props themselves are frozen and never mutated; consumers read resolved values from here. *** ### TextureRef [#textureref] ```ts type TextureRef = | { filename: string; source: "bucket"; } | { options?: ImageTransformOptions; source: "project"; uri: string; }; ``` Defined in: [bear/engine/types.ts:25](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/types.ts#L25) Texture reference — a lightweight pointer to a texture asset. Actual loading is deferred to the 3D consumer. *** ### TreeNode [#treenode] ```ts type TreeNode

= | GeometryNode

| AssemblyNode

| ConstructionNode

; ``` Defined in: [bear/engine/types.ts:357](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/types.ts#L357) A node of the model: geometry, assembly, or construction. #### Type Parameters [#type-parameters-8] | Type Parameter | Default type | | ------ | ------ | | `P` | `Record`\<`string`, `unknown`\> | ## Variables [#variables] ### BEAR\_PART [#bear_part] ```ts const BEAR_PART: typeof BEAR_PART; ``` Defined in: [bear/engine/types.ts:45](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/types.ts#L45) Marker symbol for part defs. *** ### BEAR\_REF [#bear_ref] ```ts const BEAR_REF: typeof BEAR_REF; ``` Defined in: [bear/engine/types.ts:58](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/types.ts#L58) Marker symbol for references. *** ### EQ\_GROUP [#eq_group] ```ts const EQ_GROUP: typeof EQ_GROUP; ``` Defined in: [bear/engine/types.ts:96](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/types.ts#L96) Marker symbol for eq-group tokens. ## Functions [#functions] ### elementProps() [#elementprops-1] ```ts function elementProps(element): ErasedProps; ``` Defined in: [bear/engine/types.ts:568](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/types.ts#L568) An element's props, erased. #### Parameters [#parameters-2] | Parameter | Type | | ------ | ------ | | `element` | [`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement) | #### Returns [#returns-2] [`ErasedProps`](https://docs.bear.build/docs/bear/engine/types.md#erasedprops) *** ### getRef() [#getref] ```ts function getRef(element, key): Ref; ``` Defined in: [bear/engine/types.ts:81](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/types.ts#L81) Extract a named Ref from an element. #### Parameters [#parameters-3] | Parameter | Type | | ------ | ------ | | `element` | [`BearElement`](https://docs.bear.build/docs/bear/engine/types.md#bearelement) | | `key` | `string` | #### Returns [#returns-3] [`Ref`](https://docs.bear.build/docs/bear/engine/types.md#ref) *** ### isAssemblyNode() [#isassemblynode] ```ts function isAssemblyNode(node): node is N & { kind: "assembly" }; ``` Defined in: [bear/engine/types.ts:374](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/types.ts#L374) Narrow a node to its assembly variant. #### Type Parameters [#type-parameters-9] | Type Parameter | | ------ | | `N` *extends* `object` | #### Parameters [#parameters-4] | Parameter | Type | | ------ | ------ | | `node` | `N` | #### Returns [#returns-4] `node is N & { kind: "assembly" }` *** ### isConstructionNode() [#isconstructionnode] ```ts function isConstructionNode(node): node is N & { kind: "construction" }; ``` Defined in: [bear/engine/types.ts:381](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/types.ts#L381) Narrow a node to its construction variant. #### Type Parameters [#type-parameters-10] | Type Parameter | | ------ | | `N` *extends* `object` | #### Parameters [#parameters-5] | Parameter | Type | | ------ | ------ | | `node` | `N` | #### Returns [#returns-5] `node is N & { kind: "construction" }` *** ### isEqGroup() [#iseqgroup] ```ts function isEqGroup(value): value is EqGroup; ``` Defined in: [bear/engine/types.ts:107](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/types.ts#L107) #### Parameters [#parameters-6] | Parameter | Type | | ------ | ------ | | `value` | `unknown` | #### Returns [#returns-6] `value is EqGroup` *** ### isGeometryNode() [#isgeometrynode] ```ts function isGeometryNode(node): node is N & { kind: "geometry" }; ``` Defined in: [bear/engine/types.ts:367](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/types.ts#L367) Narrow a node to its geometry variant. #### Type Parameters [#type-parameters-11] | Type Parameter | | ------ | | `N` *extends* `object` | #### Parameters [#parameters-7] | Parameter | Type | | ------ | ------ | | `node` | `N` | #### Returns [#returns-7] `node is N & { kind: "geometry" }` *** ### isPartDef() [#ispartdef] ```ts function isPartDef(type): type is PartDef, string, string>; ``` Defined in: [bear/engine/types.ts:48](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/types.ts#L48) Narrow an element type to a PartDef (vs assembly function / host element). #### Parameters [#parameters-8] | Parameter | Type | | ------ | ------ | | `type` | `unknown` | #### Returns [#returns-8] `type is PartDef, string, string>` *** ### isRef() [#isref] ```ts function isRef(value): value is Ref; ``` Defined in: [bear/engine/types.ts:71](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/types.ts#L71) #### Parameters [#parameters-9] | Parameter | Type | | ------ | ------ | | `value` | `unknown` | #### Returns [#returns-9] `value is Ref` *** ### resolvedSurface() [#resolvedsurface] ```ts function resolvedSurface(node, key): Surface | undefined; ``` Defined in: [bear/engine/types.ts:120](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/types.ts#L120) Read a prop that may be authored as a Ref (resolved during collection into `node.resolved`) or directly as a Surface. Returns undefined when neither. #### Parameters [#parameters-10] | Parameter | Type | | ------ | ------ | | `node` | \{ `props`: `object`; `resolved?`: `Readonly`\<`Record`\<`string`, [`Surface`](https://docs.bear.build/docs/bear/geometry/shapes.md#surface)\>\>; \} | | `node.props` | `object` | | `node.resolved?` | `Readonly`\<`Record`\<`string`, [`Surface`](https://docs.bear.build/docs/bear/geometry/shapes.md#surface)\>\> | | `key` | `string` | #### Returns [#returns-10] [`Surface`](https://docs.bear.build/docs/bear/geometry/shapes.md#surface) \| `undefined` *** ### segmentOf() [#segmentof] ```ts function segmentOf(node): string; ``` Defined in: [bear/engine/types.ts:270](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/types.ts#L270) A node's FQN segment, after sibling deduplication renamed it (`J@16-2`). A segment may itself contain dots (`Wall.001` from an IFC import, `J@70.5` from a position label), so it comes off the parent's FQN: splitting an FQN on "." reports `5` for `J@70.5`. #### Parameters [#parameters-11] | Parameter | Type | | ------ | ------ | | `node` | \{ `fqn`: `string`; `parent`: \| \{ `fqn`: `string`; \} \| `null`; \} | | `node.fqn` | `string` | | `node.parent` | \| \{ `fqn`: `string`; \} \| `null` | #### Returns [#returns-11] `string` *** ### walkNodes() [#walknodes] ```ts function walkNodes(node, visit): void; ``` Defined in: [bear/engine/types.ts:388](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/types.ts#L388) Depth-first pre-order walk over a node tree. #### Type Parameters [#type-parameters-12] | Type Parameter | | ------ | | `N` *extends* `object` | #### Parameters [#parameters-12] | Parameter | Type | | ------ | ------ | | `node` | `N` | | `visit` | (`node`) => `void` | #### Returns [#returns-12] `void` # workbench (https://docs.bear.build/docs/bear/engine/workbench) Import from `bear/engine/workbench`. ## Interfaces [#interfaces] ### Workbench [#workbench] Defined in: [bear/engine/workbench.ts:32](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/workbench.ts#L32) #### Properties [#properties] | Property | Modifier | Type | Description | | ------ | ------ | ------ | ------ | | `current` | `readonly` | [`Built`](https://docs.bear.build/docs/bear/engine/workbench.md#built) \| `null` | What was last built, until the next build starts or `clear`. | #### Methods [#methods] ##### build() [#build] ```ts build(source): Promise; ``` Defined in: [bear/engine/workbench.ts:35](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/workbench.ts#L35) ###### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `source` | [`ModelSource`](https://docs.bear.build/docs/bear/engine/workbench.md#modelsource) | ###### Returns [#returns] `Promise`\<[`Model`](https://docs.bear.build/docs/bear/engine/model.md#model)\> ##### clear() [#clear] ```ts clear(): void; ``` Defined in: [bear/engine/workbench.ts:38](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/workbench.ts#L38) Free the current model. Its shapes stay for the next build. ###### Returns [#returns-1] `void` ##### dispose() [#dispose] ```ts dispose(): void; ``` Defined in: [bear/engine/workbench.ts:40](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/workbench.ts#L40) Free the current model and every shape. ###### Returns [#returns-2] `void` ##### scene() [#scene] ```ts scene(source): Promise>; ``` Defined in: [bear/engine/workbench.ts:36](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/workbench.ts#L36) ###### Parameters [#parameters-1] | Parameter | Type | | ------ | ------ | | `source` | [`ModelSource`](https://docs.bear.build/docs/bear/engine/workbench.md#modelsource) | ###### Returns [#returns-3] `Promise`\<`Scene`\<`Object3DEventMap`\>\> ## Type Aliases [#type-aliases] ### Built [#built] ```ts type Built = object; ``` Defined in: [bear/engine/workbench.ts:30](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/workbench.ts#L30) A model and what it was built from. #### Properties [#properties-1] | Property | Type | | ------ | ------ | | `model` | [`Model`](https://docs.bear.build/docs/bear/engine/model.md#model) | | `source` | [`ModelSource`](https://docs.bear.build/docs/bear/engine/workbench.md#modelsource) | *** ### ModelSource [#modelsource] ```ts type ModelSource = ModelExport & object; ``` Defined in: [bear/engine/workbench.ts:27](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/workbench.ts#L27) A built module and the export of it to materialize. #### Type Declaration [#type-declaration] | Name | Type | | ------ | ------ | | `url` | `string` | ## Functions [#functions] ### createWorkbench() [#createworkbench] ```ts function createWorkbench(options?): Workbench; ``` Defined in: [bear/engine/workbench.ts:43](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/workbench.ts#L43) #### Parameters [#parameters-2] | Parameter | Type | | ------ | ------ | | `options?` | `Omit`\<[`MaterializeOptions`](https://docs.bear.build/docs/bear/engine/materialize.md#materializeoptions), `"shapes"`\> | #### Returns [#returns-4] [`Workbench`](https://docs.bear.build/docs/bear/engine/workbench.md#workbench) # worldTransform (https://docs.bear.build/docs/bear/engine/worldTransform) Import from `bear/engine/worldTransform`. ## Functions [#functions] ### composeBelow() [#composebelow] ```ts function composeBelow(node, ancestor): Matrix4; ``` Defined in: [bear/engine/worldTransform.ts:26](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/worldTransform.ts#L26) The product of local transforms from just below `ancestor` down to `node` (inclusive): `node`'s pose in `ancestor`'s frame. A null ancestor composes from the tree root, i.e. building space. #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `node` | [`AncestorNode`](https://docs.bear.build/docs/bear/engine/types.md#ancestornode) \| `null` | | `ancestor` | [`AncestorNode`](https://docs.bear.build/docs/bear/engine/types.md#ancestornode) \| `null` | #### Returns [#returns] `Matrix4` *** ### relativeTransform() [#relativetransform] ```ts function relativeTransform(target, frame): Matrix4; ``` Defined in: [bear/engine/worldTransform.ts:48](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/worldTransform.ts#L48) `target`'s pose expressed in `frame`'s space, composed through their lowest common ancestor. Everything above the shared assembly cancels, so it is never consulted: a subtree can be placed relative to itself before anything above it is known. #### Parameters [#parameters-1] | Parameter | Type | | ------ | ------ | | `target` | [`AncestorNode`](https://docs.bear.build/docs/bear/engine/types.md#ancestornode) | | `frame` | [`AncestorNode`](https://docs.bear.build/docs/bear/engine/types.md#ancestornode) \| `null` | #### Returns [#returns-1] `Matrix4` *** ### worldPosition() [#worldposition] ```ts function worldPosition(node): Vector3; ``` Defined in: [bear/engine/worldTransform.ts:17](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/worldTransform.ts#L17) A node's origin in world space. #### Parameters [#parameters-2] | Parameter | Type | | ------ | ------ | | `node` | [`AncestorNode`](https://docs.bear.build/docs/bear/engine/types.md#ancestornode) | #### Returns [#returns-2] `Vector3` *** ### worldTransform() [#worldtransform] ```ts function worldTransform(node): Matrix4; ``` Defined in: [bear/engine/worldTransform.ts:12](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/engine/worldTransform.ts#L12) Compose a node's world transform by walking up the ancestor chain. Returns a Matrix4 that transforms from the node's local space to world space. Node transforms are local to their parent; this module is the one place that composes them. #### Parameters [#parameters-3] | Parameter | Type | | ------ | ------ | | `node` | [`AncestorNode`](https://docs.bear.build/docs/bear/engine/types.md#ancestornode) | #### Returns [#returns-3] `Matrix4` # box (https://docs.bear.build/docs/bear/geometry/box) Import from `bear/geometry/box`. ## Functions [#functions] ### boxCenter() [#boxcenter] ```ts function boxCenter(box): Vec3; ``` Defined in: [bear/geometry/box.ts:63](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/geometry/box.ts#L63) Center point of a box. #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `box` | [`Box`](https://docs.bear.build/docs/bear/geometry/types.md#box) | #### Returns [#returns] [`Vec3`](https://docs.bear.build/docs/bear/geometry/types.md#vec3) *** ### boxSize() [#boxsize] ```ts function boxSize(box): Vec3; ``` Defined in: [bear/geometry/box.ts:53](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/geometry/box.ts#L53) Size of the box; zero when empty (mirrors Box3.getSize). #### Parameters [#parameters-1] | Parameter | Type | | ------ | ------ | | `box` | [`Box`](https://docs.bear.build/docs/bear/geometry/types.md#box) | #### Returns [#returns-1] [`Vec3`](https://docs.bear.build/docs/bear/geometry/types.md#vec3) *** ### centeredBox() [#centeredbox] ```ts function centeredBox( width, depth, height ): Box; ``` Defined in: [bear/geometry/box.ts:72](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/geometry/box.ts#L72) A box of the given size centered on the origin. #### Parameters [#parameters-2] | Parameter | Type | | ------ | ------ | | `width` | `number` | | `depth` | `number` | | `height` | `number` | #### Returns [#returns-2] [`Box`](https://docs.bear.build/docs/bear/geometry/types.md#box) *** ### emptyBox() [#emptybox] ```ts function emptyBox(): Box; ``` Defined in: [bear/geometry/box.ts:9](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/geometry/box.ts#L9) A box that unions as the identity: min \> max on every axis. #### Returns [#returns-3] [`Box`](https://docs.bear.build/docs/bear/geometry/types.md#box) *** ### isEmptyBox() [#isemptybox] ```ts function isEmptyBox(box): boolean; ``` Defined in: [bear/geometry/box.ts:16](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/geometry/box.ts#L16) #### Parameters [#parameters-3] | Parameter | Type | | ------ | ------ | | `box` | [`Box`](https://docs.bear.build/docs/bear/geometry/types.md#box) | #### Returns [#returns-4] `boolean` *** ### transformBox() [#transformbox] ```ts function transformBox(box, transform): Box; ``` Defined in: [bear/geometry/box.ts:37](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/geometry/box.ts#L37) Axis-aligned box containing the transformed corners. Empty stays empty. #### Parameters [#parameters-4] | Parameter | Type | | ------ | ------ | | `box` | [`Box`](https://docs.bear.build/docs/bear/geometry/types.md#box) | | `transform` | [`TransformMatrix`](https://docs.bear.build/docs/bear/geometry/transform.md#transformmatrix) | #### Returns [#returns-5] [`Box`](https://docs.bear.build/docs/bear/geometry/types.md#box) *** ### unionBoxes() [#unionboxes] ```ts function unionBoxes(boxes): Box; ``` Defined in: [bear/geometry/box.ts:23](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/geometry/box.ts#L23) Union of boxes. Empty boxes contribute nothing; no boxes yields empty. #### Parameters [#parameters-5] | Parameter | Type | | ------ | ------ | | `boxes` | readonly [`Box`](https://docs.bear.build/docs/bear/geometry/types.md#box)[] | #### Returns [#returns-6] [`Box`](https://docs.bear.build/docs/bear/geometry/types.md#box) # effects (https://docs.bear.build/docs/bear/geometry/effects) Import from `bear/geometry/effects`. ## Functions [#functions] ### applyHoverEffect() [#applyhovereffect] ```ts function applyHoverEffect(mesh): void; ``` Defined in: [bear/geometry/effects.ts:71](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/geometry/effects.ts#L71) Tints a mesh in the model's periwinkle and traces its edges in a glow. #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `mesh` | `Mesh` | #### Returns [#returns] `void` *** ### clearEffects() [#cleareffects] ```ts function clearEffects(root): void; ``` Defined in: [bear/geometry/effects.ts:155](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/geometry/effects.ts#L155) Clears all hover and selection effects from an object and its children. #### Parameters [#parameters-1] | Parameter | Type | | ------ | ------ | | `root` | `Object3D` | #### Returns [#returns-1] `void` *** ### isHelper() [#ishelper] ```ts function isHelper(obj): boolean; ``` Defined in: [bear/geometry/effects.ts:45](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/geometry/effects.ts#L45) Drawn by the viewer, not the model: walks over the model's meshes (section caps, selection, shading, hover itself) skip it. Hover's lines are meshes. #### Parameters [#parameters-2] | Parameter | Type | | ------ | ------ | | `obj` | `Object3D` | #### Returns [#returns-2] `boolean` *** ### removeHoverEffect() [#removehovereffect] ```ts function removeHoverEffect(mesh): void; ``` Defined in: [bear/geometry/effects.ts:98](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/geometry/effects.ts#L98) Removes the hover effect from a mesh. #### Parameters [#parameters-3] | Parameter | Type | | ------ | ------ | | `mesh` | `Mesh` | #### Returns [#returns-3] `void` *** ### setSelectionEffect() [#setselectioneffect] ```ts function setSelectionEffect(obj, selected): void; ``` Defined in: [bear/geometry/effects.ts:122](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/geometry/effects.ts#L122) Toggles selection effect (orange edge outline) on an object. #### Parameters [#parameters-4] | Parameter | Type | | ------ | ------ | | `obj` | `Object3D` | | `selected` | `boolean` | #### Returns [#returns-4] `void` # manifold (https://docs.bear.build/docs/bear/geometry/manifold) Import from `bear/geometry/manifold`. ## Functions [#functions] ### createFallbackMaterial() [#createfallbackmaterial] ```ts function createFallbackMaterial(): MeshStandardMaterial; ``` Defined in: [bear/geometry/manifold.ts:65](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/geometry/manifold.ts#L65) Creates a default gray material for manifolds without a specified material. #### Returns [#returns] `MeshStandardMaterial` *** ### instantiateMaterial() [#instantiatematerial] ```ts function instantiateMaterial(descriptor, onTextureLoaded?): MeshStandardMaterial; ``` Defined in: [bear/geometry/manifold.ts:107](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/geometry/manifold.ts#L107) Instantiates (or retrieves from cache) a MeshStandardMaterial from a lightweight MaterialDescriptor. Textures referenced by the descriptor are loaded asynchronously; the material is returned immediately and textures are assigned as they resolve. Callers should provide an `onTextureLoaded` callback to trigger a re-render when textures arrive. #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `descriptor` | [`MaterialDescriptor`](https://docs.bear.build/docs/bear/engine/types.md#materialdescriptor) | | `onTextureLoaded?` | () => `void` | #### Returns [#returns-1] `MeshStandardMaterial` *** ### manifoldMeshToGeometry() [#manifoldmeshtogeometry] ```ts function manifoldMeshToGeometry(mesh): BufferGeometry; ``` Defined in: [bear/geometry/manifold.ts:28](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/geometry/manifold.ts#L28) Converts a Manifold Mesh to a Three.js BufferGeometry. Generates vertex normals and UV coordinates using bounding box projection. #### Parameters [#parameters-1] | Parameter | Type | | ------ | ------ | | `mesh` | `Mesh` | #### Returns [#returns-2] `BufferGeometry` *** ### manifoldToObject3D() [#manifoldtoobject3d] ```ts function manifoldToObject3D( manifold, material?, onTextureLoaded?, materials? ): Object3D | null; ``` Defined in: [bear/geometry/manifold.ts:160](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/geometry/manifold.ts#L160) Converts a Manifold to a Three.js Object3D (Mesh). Returns null if conversion fails. #### Parameters [#parameters-2] | Parameter | Type | Description | | ------ | ------ | ------ | | `manifold` | `Manifold` | The Manifold to convert | | `material?` | \| [`MaterialDescriptor`](https://docs.bear.build/docs/bear/engine/types.md#materialdescriptor) \| `Material`\<`MaterialEventMap`\> \| `Material`\<`MaterialEventMap`\>[] | Optional Material or MaterialDescriptor. If a descriptor is provided it is instantiated into a real Three.js material. If not provided, a fallback gray material is used. | | `onTextureLoaded?` | () => `void` | Callback fired when an async texture finishes loading. | | `materials?` | `Readonly`\<`Record`\<`number`, [`MaterialDescriptor`](https://docs.bear.build/docs/bear/engine/types.md#materialdescriptor)\>\> | Descriptors by Manifold original ID. Each run of triangles becomes a group shaded by its ID's entry, else by `material`. | #### Returns [#returns-3] `Object3D`\<`Object3DEventMap`\> \| `null` *** ### updateManifoldMaterial() [#updatemanifoldmaterial] ```ts function updateManifoldMaterial( geometry, material?, onTextureLoaded? ): void; ``` Defined in: [bear/geometry/manifold.ts:249](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/geometry/manifold.ts#L249) Updates the material of a manifold-generated geometry. Handles fallback material creation and disposal. #### Parameters [#parameters-3] | Parameter | Type | Description | | ------ | ------ | ------ | | `geometry` | `Object3D` | The Object3D (must be a Mesh) to update | | `material?` | \| [`MaterialDescriptor`](https://docs.bear.build/docs/bear/engine/types.md#materialdescriptor) \| `Material`\<`MaterialEventMap`\> \| `Material`\<`MaterialEventMap`\>[] | The new material to apply. If not provided, a fallback material is used. | | `onTextureLoaded?` | () => `void` | Callback fired when an async texture finishes loading. | #### Returns [#returns-4] `void` # polygon (https://docs.bear.build/docs/bear/geometry/polygon) Import from `bear/geometry/polygon`. ## Interfaces [#interfaces] ### SliceCrossing [#slicecrossing] Defined in: [bear/geometry/polygon.ts:138](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/geometry/polygon.ts#L138) One horizontal-ray crossing: where, and through which polygon edge. #### Properties [#properties] | Property | Type | Description | | ------ | ------ | ------ | | `edge` | `number` | Index of the edge (pts[i] → pts[i+1]) the ray crossed. | | `x` | `number` | - | ## Functions [#functions] ### centerPolygon() [#centerpolygon] ```ts function centerPolygon(points): object; ``` Defined in: [bear/geometry/polygon.ts:58](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/geometry/polygon.ts#L58) Local footprint and insertion point, using the bounding-box center, not the centroid. #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `points` | [`Vec2`](https://docs.bear.build/docs/bear/geometry/types.md#vec2)[] | #### Returns [#returns] `object` | Name | Type | | ------ | ------ | | `center` | [`Vec2`](https://docs.bear.build/docs/bear/geometry/types.md#vec2) | | `height` | `number` | | `points` | [`Vec2`](https://docs.bear.build/docs/bear/geometry/types.md#vec2)[] | | `width` | `number` | *** ### ensureCCW() [#ensureccw] ```ts function ensureCCW(pts): Vec2[]; ``` Defined in: [bear/geometry/polygon.ts:33](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/geometry/polygon.ts#L33) Return points in CCW order (reverse if currently CW). #### Parameters [#parameters-1] | Parameter | Type | | ------ | ------ | | `pts` | [`Vec2`](https://docs.bear.build/docs/bear/geometry/types.md#vec2)[] | #### Returns [#returns-1] [`Vec2`](https://docs.bear.build/docs/bear/geometry/types.md#vec2)[] *** ### horizontalSliceCrossings() [#horizontalslicecrossings] ```ts function horizontalSliceCrossings(pts, y): SliceCrossing[]; ``` Defined in: [bear/geometry/polygon.ts:149](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/geometry/polygon.ts#L149) Cast a horizontal ray at the given Y through a polygon and return every edge crossing, sorted by X. Consecutive pairs bound the inside spans, and the edge index says which boundary each span ends on. #### Parameters [#parameters-2] | Parameter | Type | | ------ | ------ | | `pts` | [`Vec2`](https://docs.bear.build/docs/bear/geometry/types.md#vec2)[] | | `y` | `number` | #### Returns [#returns-2] [`SliceCrossing`](https://docs.bear.build/docs/bear/geometry/polygon.md#slicecrossing)[] *** ### horizontalSliceRanges() [#horizontalsliceranges] ```ts function horizontalSliceRanges(pts, y): [number, number][]; ``` Defined in: [bear/geometry/polygon.ts:182](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/geometry/polygon.ts#L182) Cast a horizontal ray at the given Y through a polygon and return the X-ranges where the ray is inside the polygon. Returns sorted, non-overlapping `[xEnter, xExit]` pairs. #### Parameters [#parameters-3] | Parameter | Type | | ------ | ------ | | `pts` | [`Vec2`](https://docs.bear.build/docs/bear/geometry/types.md#vec2)[] | | `y` | `number` | #### Returns [#returns-3] \[`number`, `number`\][] *** ### insetPolygon() [#insetpolygon] ```ts function insetPolygon(pts, distance): Vec2[]; ``` Defined in: [bear/geometry/polygon.ts:81](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/geometry/polygon.ts#L81) Offset each edge inward by `distance` and recompute vertices. For CCW winding, the inward normal of edge direction (dx, dy) is (-dy, dx). Each edge is shifted inward, then consecutive shifted edges are intersected to produce the new vertex positions. #### Parameters [#parameters-4] | Parameter | Type | | ------ | ------ | | `pts` | [`Vec2`](https://docs.bear.build/docs/bear/geometry/types.md#vec2)[] | | `distance` | `number` | #### Returns [#returns-4] [`Vec2`](https://docs.bear.build/docs/bear/geometry/types.md#vec2)[] *** ### polygonBoundingBox() [#polygonboundingbox] ```ts function polygonBoundingBox(pts): object; ``` Defined in: [bear/geometry/polygon.ts:38](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/geometry/polygon.ts#L38) Axis-aligned bounding box of a polygon. #### Parameters [#parameters-5] | Parameter | Type | | ------ | ------ | | `pts` | [`Vec2`](https://docs.bear.build/docs/bear/geometry/types.md#vec2)[] | #### Returns [#returns-5] `object` | Name | Type | | ------ | ------ | | `maxX` | `number` | | `maxY` | `number` | | `minX` | `number` | | `minY` | `number` | *** ### polygonEdges() [#polygonedges] ```ts function polygonEdges(pts): [Vec2, Vec2][]; ``` Defined in: [bear/geometry/polygon.ts:11](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/geometry/polygon.ts#L11) Return consecutive edge pairs, wrapping the last vertex back to the first. #### Parameters [#parameters-6] | Parameter | Type | | ------ | ------ | | `pts` | [`Vec2`](https://docs.bear.build/docs/bear/geometry/types.md#vec2)[] | #### Returns [#returns-6] \[[`Vec2`](https://docs.bear.build/docs/bear/geometry/types.md#vec2), [`Vec2`](https://docs.bear.build/docs/bear/geometry/types.md#vec2)\][] *** ### polygonSignedArea() [#polygonsignedarea] ```ts function polygonSignedArea(pts): number; ``` Defined in: [bear/geometry/polygon.ts:21](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/geometry/polygon.ts#L21) Signed area via the shoelace formula. Positive = CCW, negative = CW. #### Parameters [#parameters-7] | Parameter | Type | | ------ | ------ | | `pts` | [`Vec2`](https://docs.bear.build/docs/bear/geometry/types.md#vec2)[] | #### Returns [#returns-7] `number` # shapes (https://docs.bear.build/docs/bear/geometry/shapes) Import from `bear/geometry/shapes`. ## Type Aliases [#type-aliases] ### Boundary [#boundary] ```ts type Boundary = Vec2[]; ``` Defined in: [bear/geometry/shapes.ts:6](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/geometry/shapes.ts#L6) *** ### Hole [#hole] ```ts type Hole = object; ``` Defined in: [bear/geometry/shapes.ts:7](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/geometry/shapes.ts#L7) #### Properties [#properties] | Property | Type | | ------ | ------ | | `center` | [`Vec2`](https://docs.bear.build/docs/bear/geometry/types.md#vec2) | | `radius` | `number` | *** ### Surface [#surface] ```ts type Surface = object; ``` Defined in: [bear/geometry/shapes.ts:12](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/geometry/shapes.ts#L12) #### Properties [#properties-1] | Property | Type | | ------ | ------ | | `boundary` | [`Boundary`](https://docs.bear.build/docs/bear/geometry/shapes.md#boundary) | | `frame` | [`Frame3`](https://docs.bear.build/docs/bear/geometry/types.md#frame3) | | `holes?` | `Record`\<`string`, [`Hole`](https://docs.bear.build/docs/bear/geometry/shapes.md#hole)\> | ## Functions [#functions] ### boundaryToBoundingBox() [#boundarytoboundingbox] ```ts function boundaryToBoundingBox(b): object; ``` Defined in: [bear/geometry/shapes.ts:25](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/geometry/shapes.ts#L25) Computes the bounding box of any polygon boundary. Works with rectangles, trapezoids, and arbitrary polygons. #### Parameters [#parameters] | Parameter | Type | Description | | ------ | ------ | ------ | | `b` | [`Boundary`](https://docs.bear.build/docs/bear/geometry/shapes.md#boundary) | The boundary polygon | #### Returns [#returns] `object` the width and height of the bounding box | Name | Type | | ------ | ------ | | `height` | `number` | | `width` | `number` | *** ### boundaryToRectangle() [#boundarytorectangle] ```ts function boundaryToRectangle(b, eps?): object; ``` Defined in: [bear/geometry/shapes.ts:52](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/geometry/shapes.ts#L52) This is a HACKY function to allow us to move quicker before we have robust geometry slicing and dicing. Oftentimes our simple cases are just rectangles, so this function will take a polygon boundary and (after making sure that it's a recangle) will extract the width and height #### Parameters [#parameters-1] | Parameter | Type | Default value | Description | | ------ | ------ | ------ | ------ | | `b` | [`Boundary`](https://docs.bear.build/docs/bear/geometry/shapes.md#boundary) | `undefined` | The boundary that should be a rectangle | | `eps?` | `number` | `1e-4` | How much float jitter to tolerate in verifying that the boundary is a rectangle | #### Returns [#returns-1] `object` the width and height of the rectangle (2d, can be projected onto a 3d frame) | Name | Type | | ------ | ------ | | `height` | `number` | | `width` | `number` | # three (https://docs.bear.build/docs/bear/geometry/three) Import from `bear/geometry/three`. ## Functions [#functions] ### matrixFromFrame() [#matrixfromframe] ```ts function matrixFromFrame(__namedParameters): Matrix4; ``` Defined in: [bear/geometry/three.ts:29](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/geometry/three.ts#L29) #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `__namedParameters` | [`Frame3`](https://docs.bear.build/docs/bear/geometry/types.md#frame3) | #### Returns [#returns] `Matrix4` *** ### vectorize2() [#vectorize2] ```ts function vectorize2(...args): { [K in string | number | symbol]: Vector2 }; ``` Defined in: [bear/geometry/three.ts:21](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/geometry/three.ts#L21) Converts our POJO Vec2 object(s) into a new three.js Vector2 No need to clone the vector that's returned as it's a new vector. #### Type Parameters [#type-parameters] | Type Parameter | | ------ | | `T` *extends* readonly [`Vec2`](https://docs.bear.build/docs/bear/geometry/types.md#vec2)[] | #### Parameters [#parameters-1] | Parameter | Type | | ------ | ------ | | ...`args` | `T` | #### Returns [#returns-1] \{ \[K in string \| number \| symbol\]: Vector2 \} *** ### vectorize3() [#vectorize3] ```ts function vectorize3(...args): { [K in string | number | symbol]: Vector3 }; ``` Defined in: [bear/geometry/three.ts:9](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/geometry/three.ts#L9) Converts our POJO Vec3 object(s) into a new three.js Vector3 No need to clone the vector that's returned as it's a new vector. #### Type Parameters [#type-parameters-1] | Type Parameter | | ------ | | `T` *extends* readonly [`Vec3`](https://docs.bear.build/docs/bear/geometry/types.md#vec3)[] | #### Parameters [#parameters-2] | Parameter | Type | | ------ | ------ | | ...`args` | `T` | #### Returns [#returns-2] \{ \[K in string \| number \| symbol\]: Vector3 \} # transform (https://docs.bear.build/docs/bear/geometry/transform) Import from `bear/geometry/transform`. ## Type Aliases [#type-aliases] ### TransformMatrix [#transformmatrix] ```ts type TransformMatrix = [[number, number, number, number], [number, number, number, number], [number, number, number, number], [number, number, number, number]]; ``` Defined in: [bear/geometry/transform.ts:5](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/geometry/transform.ts#L5) ## Variables [#variables] ### identity [#identity] ```ts const identity: TransformMatrix; ``` Defined in: [bear/geometry/transform.ts:61](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/geometry/transform.ts#L61) ## Functions [#functions] ### applyTransformToObject() [#applytransformtoobject] ```ts function applyTransformToObject(obj, matrix?): void; ``` Defined in: [bear/geometry/transform.ts:102](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/geometry/transform.ts#L102) Applies a transformation matrix to a Three.js Object3D. Sets matrixAutoUpdate to false and decomposes the matrix into position, quaternion, and scale. #### Parameters [#parameters] | Parameter | Type | Description | | ------ | ------ | ------ | | `obj` | `Object3D` | The Object3D to transform | | `matrix?` | `Matrix4` | The transformation matrix to apply | #### Returns [#returns] `void` *** ### fromMatrix4() [#frommatrix4] ```ts function fromMatrix4(m): TransformMatrix; ``` Defined in: [bear/geometry/transform.ts:18](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/geometry/transform.ts#L18) Converts a THREE.Matrix4 into a TransformMatrix. #### Parameters [#parameters-1] | Parameter | Type | Description | | ------ | ------ | ------ | | `m` | `Matrix4` | The Matrix4 to convert. | #### Returns [#returns-1] [`TransformMatrix`](https://docs.bear.build/docs/bear/geometry/transform.md#transformmatrix) The equivalent TransformMatrix. *** ### pose() [#pose] ```ts function pose( x, y, z, axis?, degrees? ): TransformMatrix; ``` Defined in: [bear/geometry/transform.ts:111](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/geometry/transform.ts#L111) Local rotation followed by parent-frame placement, in project units and degrees. #### Parameters [#parameters-2] | Parameter | Type | Default value | | ------ | ------ | ------ | | `x` | `number` | `undefined` | | `y` | `number` | `undefined` | | `z` | `number` | `undefined` | | `axis?` | `"y"` \| `"x"` \| `"z"` | `"z"` | | `degrees?` | `number` | `0` | #### Returns [#returns-2] [`TransformMatrix`](https://docs.bear.build/docs/bear/geometry/transform.md#transformmatrix) *** ### resolveMatrix() [#resolvematrix] ```ts function resolveMatrix(value): Matrix4 | undefined; ``` Defined in: [bear/geometry/transform.ts:89](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/geometry/transform.ts#L89) Resolves an unknown value to a Matrix4 if possible. Accepts Matrix4 instances or TransformMatrix arrays. #### Parameters [#parameters-3] | Parameter | Type | Description | | ------ | ------ | ------ | | `value` | `unknown` | The value to resolve (Matrix4, TransformMatrix, or other) | #### Returns [#returns-3] `Matrix4` \| `undefined` A Matrix4 if conversion is possible, undefined otherwise *** ### toMatrix4() [#tomatrix4] ```ts function toMatrix4(t?): Matrix4; ``` Defined in: [bear/geometry/transform.ts:34](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/geometry/transform.ts#L34) Converts a TransformMatrix into a THREE.Matrix4. #### Parameters [#parameters-4] | Parameter | Type | Description | | ------ | ------ | ------ | | `t?` | [`TransformMatrix`](https://docs.bear.build/docs/bear/geometry/transform.md#transformmatrix) | The TransformMatrix to convert. | #### Returns [#returns-4] `Matrix4` A new Matrix4 with the same elements. *** ### translate() [#translate] ```ts function translate( x, y, z ): TransformMatrix; ``` Defined in: [bear/geometry/transform.ts:69](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/geometry/transform.ts#L69) Create a pure translation transform. #### Parameters [#parameters-5] | Parameter | Type | | ------ | ------ | | `x` | [`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement) | | `y` | [`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement) | | `z` | [`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement) | #### Returns [#returns-5] [`TransformMatrix`](https://docs.bear.build/docs/bear/geometry/transform.md#transformmatrix) *** ### translation() [#translation] ```ts function translation(t?): Vector3; ``` Defined in: [bear/geometry/transform.ts:57](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/geometry/transform.ts#L57) Translation component of a transform (identity when undefined). #### Parameters [#parameters-6] | Parameter | Type | | ------ | ------ | | `t?` | [`TransformMatrix`](https://docs.bear.build/docs/bear/geometry/transform.md#transformmatrix) | #### Returns [#returns-6] `Vector3` # types (https://docs.bear.build/docs/bear/geometry/types) Import from `bear/geometry/types`. ## Interfaces [#interfaces] ### Box [#box] Defined in: [bear/geometry/types.ts:25](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/geometry/types.ts#L25) An axis-aligned bounding box. Purposefully compatible with Three.js Box3 so wherever a Box is used, a Three.js Box3 can also be used. An empty box has min \> max on every axis (see geometry/box.ts helpers). #### Properties [#properties] | Property | Type | | ------ | ------ | | `max` | [`Vec3`](https://docs.bear.build/docs/bear/geometry/types.md#vec3) | | `min` | [`Vec3`](https://docs.bear.build/docs/bear/geometry/types.md#vec3) | *** ### Vec2 [#vec2] Defined in: [bear/geometry/types.ts:5](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/geometry/types.ts#L5) A 2 dimentional vector. Purposefully compatible with Three.js Vector2 so wherever a Vec2 is used, a Three.js Vector2 can also be used. #### Properties [#properties-1] | Property | Type | | ------ | ------ | | `x` | `number` | | `y` | `number` | *** ### Vec3 [#vec3] Defined in: [bear/geometry/types.ts:14](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/geometry/types.ts#L14) A 3 dimentional vector. Purposefully compatible with Three.js Vector3 so wherever a Vec3 is used, a Three.js Vector3 can also be used. #### Properties [#properties-2] | Property | Type | | ------ | ------ | | `x` | `number` | | `y` | `number` | | `z` | `number` | ## Type Aliases [#type-aliases] ### Basis3 [#basis3] ```ts type Basis3 = object; ``` Defined in: [bear/geometry/types.ts:30](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/geometry/types.ts#L30) #### Properties [#properties-3] | Property | Type | | ------ | ------ | | `n` | [`Vec3`](https://docs.bear.build/docs/bear/geometry/types.md#vec3) | | `u` | [`Vec3`](https://docs.bear.build/docs/bear/geometry/types.md#vec3) | | `v` | [`Vec3`](https://docs.bear.build/docs/bear/geometry/types.md#vec3) | *** ### BuildingFrame3 [#buildingframe3] ```ts type BuildingFrame3 = Frame3 & object; ``` Defined in: [bear/geometry/types.ts:38](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/geometry/types.ts#L38) #### Type Declaration [#type-declaration] | Name | Type | | ------ | ------ | | `space` | `"building"` | *** ### Frame3 [#frame3] ```ts type Frame3 = object; ``` Defined in: [bear/geometry/types.ts:36](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/geometry/types.ts#L36) #### Properties [#properties-4] | Property | Type | | ------ | ------ | | `basis` | [`Basis3`](https://docs.bear.build/docs/bear/geometry/types.md#basis3) | | `origin` | [`Vec3`](https://docs.bear.build/docs/bear/geometry/types.md#vec3) | | `space` | `CoordinateSpace` | *** ### LocalFrame3 [#localframe3] ```ts type LocalFrame3 = Frame3 & object; ``` Defined in: [bear/geometry/types.ts:37](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/geometry/types.ts#L37) #### Type Declaration [#type-declaration-1] | Name | Type | | ------ | ------ | | `space` | `"local"` | *** ### Polygon3 [#polygon3] ```ts type Polygon3 = object; ``` Defined in: [bear/geometry/types.ts:31](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/geometry/types.ts#L31) #### Properties [#properties-5] | Property | Type | | ------ | ------ | | `points` | [`Vec3`](https://docs.bear.build/docs/bear/geometry/types.md#vec3)[] | # urls (https://docs.bear.build/docs/bear/geometry/urls) Import from `bear/geometry/urls`. ## Type Aliases [#type-aliases] ### ImageTransformOptions [#imagetransformoptions] ```ts type ImageTransformOptions = Record; ``` Defined in: [bear/geometry/urls.ts:53](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/geometry/urls.ts#L53) Cloudflare image transform parameters (width, quality, format, etc.). ## Functions [#functions] ### geometryUrlFromBucket() [#geometryurlfrombucket] ```ts function geometryUrlFromBucket(path): string; ``` Defined in: [bear/geometry/urls.ts:27](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/geometry/urls.ts#L27) Constructs a full URL from an S3 bucket path #### Parameters [#parameters] | Parameter | Type | Description | | ------ | ------ | ------ | | `path` | `string` | The path to the geometry file in the bucket | #### Returns [#returns] `string` The full URL to access the geometry file *** ### projectTextureUrl() [#projecttextureurl] ```ts function projectTextureUrl(s3Uri, options?): string; ``` Defined in: [bear/geometry/urls.ts:55](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/geometry/urls.ts#L55) #### Parameters [#parameters-1] | Parameter | Type | | ------ | ------ | | `s3Uri` | `string` | | `options?` | [`ImageTransformOptions`](https://docs.bear.build/docs/bear/geometry/urls.md#imagetransformoptions) | #### Returns [#returns-1] `string` *** ### publicAssetEndpoint() [#publicassetendpoint] ```ts function publicAssetEndpoint(): string | undefined; ``` Defined in: [bear/geometry/urls.ts:19](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/geometry/urls.ts#L19) Where this build serves static assets from, if it serves them at all. Not every way of running Bear has a bucket behind it: the package runs standalone, outside the app that configures one. A caller that cannot proceed without assets asks with `geometryUrlFromBucket` and gets a throw; a caller with something to fall back on asks here and gets `undefined`. #### Returns [#returns-2] `string` \| `undefined` *** ### textureUrlFromBucket() [#textureurlfrombucket] ```ts function textureUrlFromBucket(filename): string; ``` Defined in: [bear/geometry/urls.ts:40](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/geometry/urls.ts#L40) Constructs a full URL for a texture file from the S3 bucket #### Parameters [#parameters-2] | Parameter | Type | Description | | ------ | ------ | ------ | | `filename` | `string` | The texture filename (e.g., "plywood_diff_4k.avif") | #### Returns [#returns-3] `string` The full URL to access the texture file # Bear overview (https://docs.bear.build/docs/bear) This is a package that represents buildings using JSX / TSX. This is a pretty complex domain to model so there are some concepts that are useful to know. ## TSX Elements [#tsx-elements] TSX is the authoring and code-based UX for the representation of the building. However, the TSX is simply there to express how the building is assembled in an easy-to-read-and-write way. Bear uses its own JSX runtime, not React's renderer. `materialize()` turns the elements into a model that consumers can query, measure, and render. ## Capabilities [#capabilities] Beyond simply piling building products together, models must know how the different elements relate and interact with each other so they can be properly constructed. For instance, if you have a Simpson tie and some lumber, you would fasten them together differently than if you had a mortise and tenon and some lumber, while still achieving a similar structural outcome. Capabilities allow products and assemblies to describe how they can interact with the world. For instance, an assembled wall of studs can provide a "surface" for drywall and "anchors" for drywall screws. When solving for how to cut an lay out the drywall panels, we view the stud frame was a planar surface. When figuring out where to place all the screws, we view it as a series of rectangles that we can anchor fasteners to. ## Coordinate Conventions [#coordinate-conventions] Bear uses a right-handed, Z-up coordinate system with project units (1 pu = 1/32 inch). ### Transforms are local (parent-relative) [#transforms-are-local-parent-relative] Each node's `transform` is relative to its parent's coordinate frame. Consumers compose transforms top-down to produce world positions: `treeToScene` nests Three.js Groups (automatic parent-child composition) and `sectionView` explicitly multiplies `parentWorldMatrix * localMatrix`. This matches IFC's `IfcLocalPlacement` model. ### Levels are elevation-only [#levels-are-elevation-only] A Level supplies a horizontal datum with `translate(0, 0, elevation)` by default. Its children use the enclosing building's XY frame. An explicit Level transform composes with that elevation. ### Elevation props are local offsets [#elevation-props-are-local-offsets] A component's `elevation` prop is relative to its parent frame (usually a Level). Floor datums refer to the **top of the finish surface**; roofing uses its bearing or eave datum. | Blueprint | Elevation reference point | |-----------|--------------------------| | Level | The datum plane itself | | Floor | Top of sheathing (finish surface) | | Slab | Top of slab (implied at z=0 in parent frame) | | Roof | Bottom of rafters at the low edge | ### A stable insertion point [#a-stable-insertion-point] Dimension-defined blueprints center their nominal plan at `(0, 0)`: X spans `[-width/2, width/2]` and Y spans `[-depth/2, depth/2]`. Their local origin is a stable insertion point, with Z on a construction datum. It is not the centroid of the generated geometry: changing finishes, pitch or framing spacing must not move it. | Blueprint | Local origin / insertion point | |-----------|--------------------------------| | Building | Plan center at grade; default grids are Left/Right = ±width/2, Front/Back = ±depth/2 | | Floor | Plan center at the top of sheathing, or joists when sheathing is omitted | | Slab | Footprint bounding-box center at the top surface; a gradient pivots through this point | | GableTrusses / ScissorTrusses | Plan center at chord-axis eave elevation; ridge at X = 0 | | Roof / RafterFraming | Plan center at the low-edge rafter-bottom elevation | | StudFraming | Wall midpoint in plan, at the base | | JoistFraming with a footprint | Footprint bounding-box center at the joist base | These blueprints accept `transform` directly. It moves the entire subtree, including children and named reference surfaces. Rotation acts about the insertion point. `Roof` does not inspect its ancestors' grids to choose a position. ```tsx ``` To put a dimension-defined assembly's front-left corner at `(x, y)`, translate its center to `(x + width/2, y + depth/2)`. To rotate about some other point, compose an explicit transform or use an enclosing Assembly. There is no per-blueprint center/corner mode. ### Coordinates are placements, dimensions are sizes [#coordinates-are-placements-dimensions-are-sizes] An explicit path, polygon, point or grid contains placement information in the **parent frame**, not world coordinates. Preserve that information. Walls use their authored path; Floor, Slab and footprint-based JoistFraming use `centerPolygon()` to derive a local footprint and its insertion point from the bounding box. Their automatic placement translates back to that point, and an optional transform acts in the resulting local frame. A footprint from `(10, 20)` to `(30, 40)` therefore stays there, with a rotation pivot at `(20, 30)`. Explicit `Building.gridReferences` are used verbatim, including imported grids. They do not move dimension-defined children. Connection-defined elements (a joist run between supports, connectors on named faces, or panels on a face) derive their placement from those references. Moving their supports moves them; an independent transform is not a substitute for that connection. Named reference surfaces are published in their owner's local frame. `resolveRef()` and resolved Ref props express them in the consuming parent's frame. Surface UV coordinates can still start at a corner for panel layout; those are separate from the blueprint's XYZ origin. ### Migrating corner-based models [#migrating-corner-based-models] - GableTrusses and ScissorTrusses now center themselves. Remove wrappers that translated them by `(-width/2, -depth/2)`. To retain an old corner placement instead, give the trusses `transform={translate(width/2, depth/2, 0)}` (compose this after any existing placement transform). - Building's default grid is centered. For an existing model authored on `[0, width] × [0, depth]`, pass the old grid explicitly: `{ x: { Left: 0, Right: width }, y: { Front: 0, Back: depth } }`. - Floor's `length`/`width` form and Roof now center at zero. Existing corner-based callers need an explicit translation to the intended center. For a Roof that previously used an enclosing grid's center, use that center, which can differ from the roof's own half dimensions. - Explicit Floor and Slab polygons retain their placement. Floor children now use the finish datum at Z = 0; an existing child offset measured from the old framing base must subtract the floor's total thickness. Floor and Slab rotations about X/Y now pivot on the top surface. ## Building a model [#building-a-model] The model holds the element tree, relations, resolved dimensions, diagnostics, and geometry. `materialize()` builds it in three stages: 1. Collect the JSX into a tree with sizes, reference planes, and placements. 2. Compute relations and solve dimensions, repeating to a fixed point. 3. Build geometry once for the converged tree. The finished tree is sealed. Each node carries its model, so a query starting from a node can also find its relations. The full pipeline contract lives in `engine/architecture.md`. ## Consumers [#consumers] Consumers take the finished model: `q(model)` queries it, `treeToScene(model)` builds a Three.js scene, and `diagnosticsOf(model)` reports findings. Drawings, checks, quantities, and exports all use the same model. # init (https://docs.bear.build/docs/bear/manifold/init) Import from `bear/manifold/init`. ## Type Aliases [#type-aliases] ### Handle [#handle] ```ts type Handle = Manifold | CrossSection; ``` Defined in: [bear/manifold/init.ts:34](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/manifold/init.ts#L34) WASM memory that is only freed by `delete()`. ## Functions [#functions] ### detached() [#detached] ```ts function detached(fn): T; ``` Defined in: [bear/manifold/init.ts:77](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/manifold/init.ts#L77) Run `fn` owned by no materialize: what it makes along the way is freed (also when it throws), and the handle it returns is the caller's to delete. #### Type Parameters [#type-parameters] | Type Parameter | | ------ | | `T` *extends* [`Handle`](https://docs.bear.build/docs/bear/manifold/init.md#handle) | #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `fn` | () => `T` | #### Returns [#returns] `T` *** ### dropEntry() [#dropentry] ```ts function dropEntry(entry): void; ``` Defined in: [bear/manifold/init.ts:109](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/manifold/init.ts#L109) Free a cache entry the cache is dropping, once it has loaded. #### Parameters [#parameters-1] | Parameter | Type | | ------ | ------ | | `entry` | `Promise`\<[`Handle`](https://docs.bear.build/docs/bear/manifold/init.md#handle) \| `null`\> | #### Returns [#returns-1] `void` *** ### initManifold() [#initmanifold] ```ts function initManifold(): Promise; ``` Defined in: [bear/manifold/init.ts:15](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/manifold/init.ts#L15) Eagerly load the Manifold WASM module. Returns the cached instance on subsequent calls. Routed through manifold-3d's own loader so its global (used by helpers like `gltfDocToManifold`) and our cached handle are the same instance. Concurrent first callers share one load, so the module is hooked once. #### Returns [#returns-2] `Promise`\<`ManifoldToplevel`\> *** ### manifoldModule() [#manifoldmodule] ```ts function manifoldModule(): ManifoldToplevel; ``` Defined in: [bear/manifold/init.ts:28](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/manifold/init.ts#L28) The loaded Manifold module, synchronously. `render()` awaits `initManifold()` before collecting, so parts computing extents with CrossSection math can rely on it. #### Returns [#returns-3] `ManifoldToplevel` *** ### owning() [#owning] ```ts function owning(owned, fn): T; ``` Defined in: [bear/manifold/init.ts:50](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/manifold/init.ts#L50) Run `fn`, adding every handle it creates to `owned`. #### Type Parameters [#type-parameters-1] | Type Parameter | | ------ | | `T` | #### Parameters [#parameters-2] | Parameter | Type | | ------ | ------ | | `owned` | `Set`\<[`Handle`](https://docs.bear.build/docs/bear/manifold/init.md#handle)\> | | `fn` | () => `T` | #### Returns [#returns-4] `T` *** ### release() [#release] ```ts function release(handles): void; ``` Defined in: [bear/manifold/init.ts:89](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/manifold/init.ts#L89) Free every handle in `handles` that is still live, and forget them. #### Parameters [#parameters-3] | Parameter | Type | | ------ | ------ | | `handles` | `Set`\<[`Handle`](https://docs.bear.build/docs/bear/manifold/init.md#handle)\> | #### Returns [#returns-5] `void` *** ### scoped() [#scoped] ```ts function scoped(fn): T; ``` Defined in: [bear/manifold/init.ts:64](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/manifold/init.ts#L64) Run `fn` owning every handle it makes and free them all when it returns: for code outside materialize that uses solids and returns plain data. #### Type Parameters [#type-parameters-2] | Type Parameter | | ------ | | `T` | #### Parameters [#parameters-4] | Parameter | Type | | ------ | ------ | | `fn` | () => `T` | #### Returns [#returns-6] `T` *** ### share() [#share] ```ts function share(handle): T; ``` Defined in: [bear/manifold/init.ts:102](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/manifold/init.ts#L102) A cache owns its entries and hands out shares: another handle on the same solid (embind refcounts it), owned by the caller like any handle it makes. #### Type Parameters [#type-parameters-3] | Type Parameter | | ------ | | `T` *extends* `object` | #### Parameters [#parameters-5] | Parameter | Type | | ------ | ------ | | `handle` | `T` | #### Returns [#returns-7] `T` # measurement-calc (https://docs.bear.build/docs/bear/measurement-calc) Import from `bear/measurement-calc`. ## Functions [#functions] ### evaluateMeasurement() [#evaluatemeasurement] ```ts function evaluateMeasurement(expression): object; ``` Defined in: [bear/measurement-calc.ts:305](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/measurement-calc.ts#L305) #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `expression` | `string` | #### Returns [#returns] `object` | Name | Type | | ------ | ------ | | `formatted` | `string` | | `result` | `number` | *** ### mc() [#mc] ```ts function mc(strings, ...values): number; ``` Defined in: [bear/measurement-calc.ts:298](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/measurement-calc.ts#L298) Tagged template literal for inline measurement expressions. Returns the result in project units (32nds of an inch). Usage: mc`3ft + 6in + 3/4in + 3/16in` #### Parameters [#parameters-1] | Parameter | Type | | ------ | ------ | | `strings` | `TemplateStringsArray` | | ...`values` | `unknown`[] | #### Returns [#returns-1] `number` # measurements (https://docs.bear.build/docs/bear/measurements) Import from `bear/measurements`. ## Type Aliases [#type-aliases] ### GridReferences [#gridreferences] ```ts type GridReferences = object; ``` Defined in: [bear/measurements.ts:15](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/measurements.ts#L15) #### Properties [#properties] | Property | Type | | ------ | ------ | | `x` | `Record`\<`string`, `number`\> | | `y` | `Record`\<`string`, `number`\> | *** ### Measurement [#measurement] ```ts type Measurement = string | number; ``` Defined in: [bear/measurements.ts:5](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/measurements.ts#L5) *** ### Path [#path] ```ts type Path = Point[]; ``` Defined in: [bear/measurements.ts:10](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/measurements.ts#L10) *** ### Point [#point] ```ts type Point = [PointComponent, PointComponent]; ``` Defined in: [bear/measurements.ts:9](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/measurements.ts#L9) *** ### PointComponent [#pointcomponent] ```ts type PointComponent = number | string; ``` Defined in: [bear/measurements.ts:8](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/measurements.ts#L8) A single x or y value: number = project units, string = "@A", "@A+6ft", or "6ft" *** ### ResolvedPath [#resolvedpath] ```ts type ResolvedPath = ResolvedPoint[]; ``` Defined in: [bear/measurements.ts:13](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/measurements.ts#L13) *** ### ResolvedPoint [#resolvedpoint] ```ts type ResolvedPoint = [number, number]; ``` Defined in: [bear/measurements.ts:12](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/measurements.ts#L12) ## Functions [#functions] ### d() [#d] ```ts function d(strings, ...values): number; ``` Defined in: [bear/measurements.ts:24](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/measurements.ts#L24) Tagged template literal for inline measurement conversion. Usage: d`6ft` returns toProjectUnits("6ft") #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `strings` | `TemplateStringsArray` | | ...`values` | `unknown`[] | #### Returns [#returns] `number` *** ### formatProjectUnits() [#formatprojectunits] ```ts function formatProjectUnits(projectUnits): string; ``` Defined in: [bear/measurements.ts:187](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/measurements.ts#L187) Converts project units (32nds of an inch) to a human-readable string in feet and fractional inches format. #### Parameters [#parameters-1] | Parameter | Type | Description | | ------ | ------ | ------ | | `projectUnits` | `number` | The measurement in project units (32nds of an inch) | #### Returns [#returns-1] `string` A formatted string like "8'", "8'4"", or "8'4 5/16"" #### Example [#example] ```ts formatProjectUnits(3072) // "8'" (8 feet) formatProjectUnits(3200) // "8'4"" (8 feet 4 inches) formatProjectUnits(3210) // "8'4 5/16"" (8 feet, 4 and 5/16 inches) formatProjectUnits(160) // "5"" (5 inches, less than a foot) formatProjectUnits(165) // "5 5/32"" (5 and 5/32 inches) @public ``` *** ### pitch() [#pitch] ```ts function pitch(p): number; ``` Defined in: [bear/measurements.ts:132](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/measurements.ts#L132) Parses string pitches into a multiple. #### Parameters [#parameters-2] | Parameter | Type | Description | | ------ | ------ | ------ | | `p` | `string` | a pitch in rise:run format (eg. "3:12") | #### Returns [#returns-2] `number` rise divided by run *** ### toProjectUnits() [#toprojectunits] ```ts function toProjectUnits(m): number; ``` Defined in: [bear/measurements.ts:106](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/measurements.ts#L106) Converts `Measurement`s to quantities of the default project unit. Currently this always returns 32nds of an inch. #### Parameters [#parameters-3] | Parameter | Type | Description | | ------ | ------ | ------ | | `m` | [`Measurement`](https://docs.bear.build/docs/bear/measurements.md#measurement) | Any measurement that we want to use in the project context (eg in a 3d model or in quantity calculations). If `m` is a number, it's assumed to already be in project units (32nds of an inch). | #### Returns [#returns-3] `number` - What the measurement represents in projects units. Currently hardcoded to 32nds of an inch. # Bear Library (https://docs.bear.build/docs/bear/modules) ## Modules [#modules] - [bear/blueprints/Beam](https://docs.bear.build/docs/bear/blueprints/Beam.md) - [bear/blueprints/Building](https://docs.bear.build/docs/bear/blueprints/Building.md) - [bear/blueprints/connectors/anchorBolts](https://docs.bear.build/docs/bear/blueprints/connectors/anchorBolts.md) - [bear/blueprints/connectors/angles](https://docs.bear.build/docs/bear/blueprints/connectors/angles.md) - [bear/blueprints/connectors/columnCaps](https://docs.bear.build/docs/bear/blueprints/connectors/columnCaps.md) - [bear/blueprints/connectors/concrete](https://docs.bear.build/docs/bear/blueprints/connectors/concrete.md) - [bear/blueprints/connectors/finishes](https://docs.bear.build/docs/bear/blueprints/connectors/finishes.md) - [bear/blueprints/connectors/hangers](https://docs.bear.build/docs/bear/blueprints/connectors/hangers.md) - [bear/blueprints/connectors/holdowns](https://docs.bear.build/docs/bear/blueprints/connectors/holdowns.md) - [bear/blueprints/connectors/members](https://docs.bear.build/docs/bear/blueprints/connectors/members.md) - [bear/blueprints/connectors/mudsillAnchors](https://docs.bear.build/docs/bear/blueprints/connectors/mudsillAnchors.md) - [bear/blueprints/connectors/postBases](https://docs.bear.build/docs/bear/blueprints/connectors/postBases.md) - [bear/blueprints/connectors/schedules](https://docs.bear.build/docs/bear/blueprints/connectors/schedules.md) - [bear/blueprints/connectors/simpson/LUS28](https://docs.bear.build/docs/bear/blueprints/connectors/simpson/LUS28.md) - [bear/blueprints/connectors/solids](https://docs.bear.build/docs/bear/blueprints/connectors/solids.md) - [bear/blueprints/connectors/steel](https://docs.bear.build/docs/bear/blueprints/connectors/steel.md) - [bear/blueprints/connectors/types](https://docs.bear.build/docs/bear/blueprints/connectors/types.md) - [bear/blueprints/Custom](https://docs.bear.build/docs/bear/blueprints/Custom.md) - [bear/blueprints/Envelope](https://docs.bear.build/docs/bear/blueprints/Envelope.md) - [bear/blueprints/ExteriorWall](https://docs.bear.build/docs/bear/blueprints/ExteriorWall.md) - [bear/blueprints/Floor](https://docs.bear.build/docs/bear/blueprints/Floor.md) - [bear/blueprints/framing](https://docs.bear.build/docs/bear/blueprints/framing.md) - [bear/blueprints/GableTrusses](https://docs.bear.build/docs/bear/blueprints/GableTrusses.md) - [bear/blueprints/InteriorWall](https://docs.bear.build/docs/bear/blueprints/InteriorWall.md) - [bear/blueprints/JoistFraming](https://docs.bear.build/docs/bear/blueprints/JoistFraming.md) - [bear/blueprints/Level](https://docs.bear.build/docs/bear/blueprints/Level.md) - [bear/blueprints/materials/AsphaltShingles](https://docs.bear.build/docs/bear/blueprints/materials/AsphaltShingles.md) - [bear/blueprints/materials/BasePlate](https://docs.bear.build/docs/bear/blueprints/materials/BasePlate.md) - [bear/blueprints/materials/BuildingPaper](https://docs.bear.build/docs/bear/blueprints/materials/BuildingPaper.md) - [bear/blueprints/materials/CedarShingles](https://docs.bear.build/docs/bear/blueprints/materials/CedarShingles.md) - [bear/blueprints/materials/CMU](https://docs.bear.build/docs/bear/blueprints/materials/CMU.md) - [bear/blueprints/materials/ColdFormedSteel](https://docs.bear.build/docs/bear/blueprints/materials/ColdFormedSteel.md) - [bear/blueprints/materials/Concrete](https://docs.bear.build/docs/bear/blueprints/materials/Concrete.md) - [bear/blueprints/materials/CortenCorrugate](https://docs.bear.build/docs/bear/blueprints/materials/CortenCorrugate.md) - [bear/blueprints/materials/CortenShingle](https://docs.bear.build/docs/bear/blueprints/materials/CortenShingle.md) - [bear/blueprints/materials/Drywall](https://docs.bear.build/docs/bear/blueprints/materials/Drywall.md) - [bear/blueprints/materials/Glulam](https://docs.bear.build/docs/bear/blueprints/materials/Glulam.md) - [bear/blueprints/materials/IJoist](https://docs.bear.build/docs/bear/blueprints/materials/IJoist.md) - [bear/blueprints/materials/Insulation](https://docs.bear.build/docs/bear/blueprints/materials/Insulation.md) - [bear/blueprints/materials/keynote](https://docs.bear.build/docs/bear/blueprints/materials/keynote.md) - [bear/blueprints/materials/LSL](https://docs.bear.build/docs/bear/blueprints/materials/LSL.md) - [bear/blueprints/materials/MetalDeck](https://docs.bear.build/docs/bear/blueprints/materials/MetalDeck.md) - [bear/blueprints/materials/MetalPanel](https://docs.bear.build/docs/bear/blueprints/materials/MetalPanel.md) - [bear/blueprints/materials/Molding](https://docs.bear.build/docs/bear/blueprints/materials/Molding.md) - [bear/blueprints/materials/NominalLumber](https://docs.bear.build/docs/bear/blueprints/materials/NominalLumber.md) - [bear/blueprints/materials/OSB](https://docs.bear.build/docs/bear/blueprints/materials/OSB.md) - [bear/blueprints/materials/Plywood](https://docs.bear.build/docs/bear/blueprints/materials/Plywood.md) - [bear/blueprints/materials/RigidInsulation](https://docs.bear.build/docs/bear/blueprints/materials/RigidInsulation.md) - [bear/blueprints/materials/SheetGood](https://docs.bear.build/docs/bear/blueprints/materials/SheetGood.md) - [bear/blueprints/materials/ShiplapSiding](https://docs.bear.build/docs/bear/blueprints/materials/ShiplapSiding.md) - [bear/blueprints/materials/SinglePlyRoofing](https://docs.bear.build/docs/bear/blueprints/materials/SinglePlyRoofing.md) - [bear/blueprints/materials/SprayFireproofing](https://docs.bear.build/docs/bear/blueprints/materials/SprayFireproofing.md) - [bear/blueprints/materials/SteelJoist](https://docs.bear.build/docs/bear/blueprints/materials/SteelJoist.md) - [bear/blueprints/materials/StorefrontGlazing](https://docs.bear.build/docs/bear/blueprints/materials/StorefrontGlazing.md) - [bear/blueprints/materials/StructuralFastener](https://docs.bear.build/docs/bear/blueprints/materials/StructuralFastener.md) - [bear/blueprints/materials/StructuralSteel](https://docs.bear.build/docs/bear/blueprints/materials/StructuralSteel.md) - [bear/blueprints/materials/TongueAndGroove](https://docs.bear.build/docs/bear/blueprints/materials/TongueAndGroove.md) - [bear/blueprints/materials/Waterproofing](https://docs.bear.build/docs/bear/blueprints/materials/Waterproofing.md) - [bear/blueprints/mep/Plumbing](https://docs.bear.build/docs/bear/blueprints/mep/Plumbing.md) - [bear/blueprints/mep/SupplyBranch](https://docs.bear.build/docs/bear/blueprints/mep/SupplyBranch.md) - [bear/blueprints/mep/SupplyNetwork](https://docs.bear.build/docs/bear/blueprints/mep/SupplyNetwork.md) - [bear/blueprints/mep/SupplyRiser](https://docs.bear.build/docs/bear/blueprints/mep/SupplyRiser.md) - [bear/blueprints/mep/SupplyStub](https://docs.bear.build/docs/bear/blueprints/mep/SupplyStub.md) - [bear/blueprints/mep/SupplyTrace](https://docs.bear.build/docs/bear/blueprints/mep/SupplyTrace.md) - [bear/blueprints/Opening](https://docs.bear.build/docs/bear/blueprints/Opening.md) - [bear/blueprints/Panels](https://docs.bear.build/docs/bear/blueprints/Panels.md) - [bear/blueprints/Pier](https://docs.bear.build/docs/bear/blueprints/Pier.md) - [bear/blueprints/playground/Barrier](https://docs.bear.build/docs/bear/blueprints/playground/Barrier.md) - [bear/blueprints/playground/Bridge](https://docs.bear.build/docs/bear/blueprints/playground/Bridge.md) - [bear/blueprints/playground/Canopy](https://docs.bear.build/docs/bear/blueprints/playground/Canopy.md) - [bear/blueprints/playground/Deck](https://docs.bear.build/docs/bear/blueprints/playground/Deck.md) - [bear/blueprints/playground/Platform](https://docs.bear.build/docs/bear/blueprints/playground/Platform.md) - [bear/blueprints/playground/Stairs](https://docs.bear.build/docs/bear/blueprints/playground/Stairs.md) - [bear/blueprints/playground/Tower](https://docs.bear.build/docs/bear/blueprints/playground/Tower.md) - [bear/blueprints/RafterFraming](https://docs.bear.build/docs/bear/blueprints/RafterFraming.md) - [bear/blueprints/Roof](https://docs.bear.build/docs/bear/blueprints/Roof.md) - [bear/blueprints/ScissorTrusses](https://docs.bear.build/docs/bear/blueprints/ScissorTrusses.md) - [bear/blueprints/Sheathing](https://docs.bear.build/docs/bear/blueprints/Sheathing.md) - [bear/blueprints/Slab](https://docs.bear.build/docs/bear/blueprints/Slab.md) - [bear/blueprints/span-placement](https://docs.bear.build/docs/bear/blueprints/span-placement.md) - [bear/blueprints/StudFraming](https://docs.bear.build/docs/bear/blueprints/StudFraming.md) - [bear/blueprints/StudRun](https://docs.bear.build/docs/bear/blueprints/StudRun.md) - [bear/blueprints/truss-layout](https://docs.bear.build/docs/bear/blueprints/truss-layout.md) - [bear/blueprints/Void](https://docs.bear.build/docs/bear/blueprints/Void.md) - [bear/blueprints/Wall](https://docs.bear.build/docs/bear/blueprints/Wall.md) - [bear/blueprints/wall-joins](https://docs.bear.build/docs/bear/blueprints/wall-joins.md) - [bear/blueprints/WallStrip](https://docs.bear.build/docs/bear/blueprints/WallStrip.md) - [bear/catalog/andersen/AndersenEAwning](https://docs.bear.build/docs/bear/catalog/andersen/AndersenEAwning.md) - [bear/catalog/andersen/AndersenEAwning/record](https://docs.bear.build/docs/bear/catalog/andersen/AndersenEAwning/record.md) - [bear/catalog/caterpillar/Cat3516C2000kW](https://docs.bear.build/docs/bear/catalog/caterpillar/Cat3516C2000kW.md) - [bear/catalog/caterpillar/Cat3516C2000kW/record](https://docs.bear.build/docs/bear/catalog/caterpillar/Cat3516C2000kW/record.md) - [bear/catalog/caterpillar/Cat3516C2500kW](https://docs.bear.build/docs/bear/catalog/caterpillar/Cat3516C2500kW.md) - [bear/catalog/caterpillar/Cat3516C2500kW/record](https://docs.bear.build/docs/bear/catalog/caterpillar/Cat3516C2500kW/record.md) - [bear/catalog/doors/prehung](https://docs.bear.build/docs/bear/catalog/doors/prehung.md) - [bear/catalog/fit](https://docs.bear.build/docs/bear/catalog/fit.md) - [bear/catalog/generic/PrehungInteriorDoor](https://docs.bear.build/docs/bear/catalog/generic/PrehungInteriorDoor.md) - [bear/catalog/jensen/A150](https://docs.bear.build/docs/bear/catalog/jensen/A150.md) - [bear/catalog/jensen/Wave8C](https://docs.bear.build/docs/bear/catalog/jensen/Wave8C.md) - [bear/catalog/simpson](https://docs.bear.build/docs/bear/catalog/simpson.md) - [bear/catalog/simpson/data](https://docs.bear.build/docs/bear/catalog/simpson/data.md) - [bear/catalog/simpson/models](https://docs.bear.build/docs/bear/catalog/simpson/models.md) - [bear/catalog/simpson/mudsills](https://docs.bear.build/docs/bear/catalog/simpson/mudsills.md) - [bear/catalog/therma-tru/ThermaTruBenchmark](https://docs.bear.build/docs/bear/catalog/therma-tru/ThermaTruBenchmark.md) - [bear/catalog/types](https://docs.bear.build/docs/bear/catalog/types.md) - [bear/catalog/ultraplay/CrawlTunnel](https://docs.bear.build/docs/bear/catalog/ultraplay/CrawlTunnel.md) - [bear/drawings/types](https://docs.bear.build/docs/bear/drawings/types.md) - [bear/engine/Assembly](https://docs.bear.build/docs/bear/engine/Assembly.md) - [bear/engine/collection](https://docs.bear.build/docs/bear/engine/collection.md) - [bear/engine/construction](https://docs.bear.build/docs/bear/engine/construction.md) - [bear/engine/context](https://docs.bear.build/docs/bear/engine/context.md) - [bear/engine/coplanar](https://docs.bear.build/docs/bear/engine/coplanar.md) - [bear/engine/createElement](https://docs.bear.build/docs/bear/engine/createElement.md) - [bear/engine/datums](https://docs.bear.build/docs/bear/engine/datums.md) - [bear/engine/diagnostics](https://docs.bear.build/docs/bear/engine/diagnostics.md) - [bear/engine/diff](https://docs.bear.build/docs/bear/engine/diff.md) - [bear/engine/dims](https://docs.bear.build/docs/bear/engine/dims.md) - [bear/engine/factory](https://docs.bear.build/docs/bear/engine/factory.md) - [bear/engine/geometry](https://docs.bear.build/docs/bear/engine/geometry.md) - [bear/engine/geometryReferences](https://docs.bear.build/docs/bear/engine/geometryReferences.md) - [bear/engine/grid](https://docs.bear.build/docs/bear/engine/grid.md) - [bear/engine/hosting](https://docs.bear.build/docs/bear/engine/hosting.md) - [bear/engine/jsx-dev-runtime](https://docs.bear.build/docs/bear/engine/jsx-dev-runtime.md) - [bear/engine/jsx-runtime](https://docs.bear.build/docs/bear/engine/jsx-runtime/bear.md) - [bear/engine/loadGlb](https://docs.bear.build/docs/bear/engine/loadGlb.md) - [bear/engine/lru](https://docs.bear.build/docs/bear/engine/lru.md) - [bear/engine/mate](https://docs.bear.build/docs/bear/engine/mate.md) - [bear/engine/materialize](https://docs.bear.build/docs/bear/engine/materialize.md) - [bear/engine/model](https://docs.bear.build/docs/bear/engine/model.md) - [bear/engine/model-export](https://docs.bear.build/docs/bear/engine/model-export.md) - [bear/engine/models](https://docs.bear.build/docs/bear/engine/models.md) - [bear/engine/panelize](https://docs.bear.build/docs/bear/engine/panelize.md) - [bear/engine/part](https://docs.bear.build/docs/bear/engine/part.md) - [bear/engine/place](https://docs.bear.build/docs/bear/engine/place.md) - [bear/engine/planeOf](https://docs.bear.build/docs/bear/engine/planeOf.md) - [bear/engine/print](https://docs.bear.build/docs/bear/engine/print.md) - [bear/engine/printConstraints](https://docs.bear.build/docs/bear/engine/printConstraints.md) - [bear/engine/query](https://docs.bear.build/docs/bear/engine/query.md) - [bear/engine/query-plan](https://docs.bear.build/docs/bear/engine/query-plan.md) - [bear/engine/relations](https://docs.bear.build/docs/bear/engine/relations.md) - [bear/engine/shapes](https://docs.bear.build/docs/bear/engine/shapes.md) - [bear/engine/snapshot](https://docs.bear.build/docs/bear/engine/snapshot.md) - [bear/engine/snapshot-data](https://docs.bear.build/docs/bear/engine/snapshot-data.md) - [bear/engine/snapshot-value](https://docs.bear.build/docs/bear/engine/snapshot-value.md) - [bear/engine/solvable](https://docs.bear.build/docs/bear/engine/solvable.md) - [bear/engine/solve](https://docs.bear.build/docs/bear/engine/solve.md) - [bear/engine/spacing](https://docs.bear.build/docs/bear/engine/spacing.md) - [bear/engine/surfaces](https://docs.bear.build/docs/bear/engine/surfaces.md) - [bear/engine/System](https://docs.bear.build/docs/bear/engine/System.md) - [bear/engine/threeConsumer](https://docs.bear.build/docs/bear/engine/threeConsumer.md) - [bear/engine/timing](https://docs.bear.build/docs/bear/engine/timing.md) - [bear/engine/treeToScene](https://docs.bear.build/docs/bear/engine/treeToScene.md) - [bear/engine/types](https://docs.bear.build/docs/bear/engine/types.md) - [bear/engine/workbench](https://docs.bear.build/docs/bear/engine/workbench.md) - [bear/engine/worldTransform](https://docs.bear.build/docs/bear/engine/worldTransform.md) - [bear/geometry/box](https://docs.bear.build/docs/bear/geometry/box.md) - [bear/geometry/effects](https://docs.bear.build/docs/bear/geometry/effects.md) - [bear/geometry/manifold](https://docs.bear.build/docs/bear/geometry/manifold.md) - [bear/geometry/polygon](https://docs.bear.build/docs/bear/geometry/polygon.md) - [bear/geometry/shapes](https://docs.bear.build/docs/bear/geometry/shapes.md) - [bear/geometry/three](https://docs.bear.build/docs/bear/geometry/three.md) - [bear/geometry/transform](https://docs.bear.build/docs/bear/geometry/transform.md) - [bear/geometry/types](https://docs.bear.build/docs/bear/geometry/types.md) - [bear/geometry/urls](https://docs.bear.build/docs/bear/geometry/urls.md) - [bear/manifold/init](https://docs.bear.build/docs/bear/manifold/init.md) - [bear/measurement-calc](https://docs.bear.build/docs/bear/measurement-calc.md) - [bear/measurements](https://docs.bear.build/docs/bear/measurements.md) - [bear/point\_resolver](https://docs.bear.build/docs/bear/point_resolver.md) - [bear/revit/brep](https://docs.bear.build/docs/bear/revit/brep.md) - [bear/revit/compare](https://docs.bear.build/docs/bear/revit/compare.md) - [bear/revit/family](https://docs.bear.build/docs/bear/revit/family.md) - [bear/revit/hosted](https://docs.bear.build/docs/bear/revit/hosted.md) - [bear/spatial](https://docs.bear.build/docs/bear/spatial.md) - [bear/test](https://docs.bear.build/docs/bear/test.md) # point_resolver (https://docs.bear.build/docs/bear/point_resolver) Import from `bear/point_resolver`. ## Functions [#functions] ### resolveComponent() [#resolvecomponent] ```ts function resolveComponent(component, axisRefs): number; ``` Defined in: [bear/point\_resolver.ts:18](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/point_resolver.ts#L18) Resolves a single x or y component to project units. - `number` — returned as-is (already project units) - `"@Name"` — looked up in `axisRefs` - `"@Name+6ft"` / `"@Name-3in"` — ref ± measurement offset - `"6ft"` — bare measurement string #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `component` | `string` \| `number` | | `axisRefs` | `Record`\<`string`, `number`\> | #### Returns [#returns] `number` *** ### resolvePath() [#resolvepath] ```ts function resolvePath(path, refs): ResolvedPath; ``` Defined in: [bear/point\_resolver.ts:45](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/point_resolver.ts#L45) #### Parameters [#parameters-1] | Parameter | Type | | ------ | ------ | | `path` | [`Path`](https://docs.bear.build/docs/bear/measurements.md#path) | | `refs` | [`GridReferences`](https://docs.bear.build/docs/bear/measurements.md#gridreferences) | #### Returns [#returns-1] [`ResolvedPath`](https://docs.bear.build/docs/bear/measurements.md#resolvedpath) *** ### resolvePoint() [#resolvepoint] ```ts function resolvePoint(point, refs): [number, number]; ``` Defined in: [bear/point\_resolver.ts:35](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/point_resolver.ts#L35) #### Parameters [#parameters-2] | Parameter | Type | | ------ | ------ | | `point` | \[`string` \| `number`, `string` \| `number`\] | | `refs` | [`GridReferences`](https://docs.bear.build/docs/bear/measurements.md#gridreferences) | #### Returns [#returns-2] \[`number`, `number`\] # brep (https://docs.bear.build/docs/bear/revit/brep) Import from `bear/revit/brep`. ## Type Aliases [#type-aliases] ### BrepCurve [#brepcurve] ```ts type BrepCurve = | { a: Vec3; b: Vec3; type: "line"; } | { a: Vec3 | null; b: Vec3 | null; center: Vec3; normal: Vec3; radius: number; type: "arc"; }; ``` Defined in: [bear/revit/brep.ts:20](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/revit/brep.ts#L20) An arc runs counterclockwise about its normal from `a` to `b`; with no ends it is a circle. *** ### BrepSolid [#brepsolid] ```ts type BrepSolid = | { end: number; kind: "extrusion"; loops: BrepCurve[][]; normal: Vec3; start: number; } | { at: Vec3; kind: "sweep"; path: BrepCurve[]; profile: BrepCurve[][]; } | { bottom: BrepCurve[]; bottomOffset: number; kind: "blend"; normal: Vec3; top: BrepCurve[]; topOffset: number; } | { axis: Vec3; end: number; kind: "revolution"; loops: BrepCurve[][]; origin: Vec3; start: number; }; ``` Defined in: [bear/revit/brep.ts:31](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/revit/brep.ts#L31) #### Union Members [#union-members] ##### Type Literal [#type-literal] ```ts { end: number; kind: "extrusion"; loops: BrepCurve[][]; normal: Vec3; start: number; } ``` | Name | Type | Description | | ------ | ------ | ------ | | `end` | `number` | - | | `kind` | `"extrusion"` | - | | `loops` | [`BrepCurve`](https://docs.bear.build/docs/bear/revit/brep.md#brepcurve)[][] | Closed loops on one plane. | | `normal` | [`Vec3`](https://docs.bear.build/docs/bear/revit/brep.md#vec3) | - | | `start` | `number` | Offsets of the two caps from the loops' plane, along `normal`. | *** ##### Type Literal [#type-literal-1] ```ts { at: Vec3; kind: "sweep"; path: BrepCurve[]; profile: BrepCurve[][]; } ``` | Name | Type | Description | | ------ | ------ | ------ | | `at` | [`Vec3`](https://docs.bear.build/docs/bear/revit/brep.md#vec3) | The point on the path the profile is drawn at, square to the path. | | `kind` | `"sweep"` | - | | `path` | [`BrepCurve`](https://docs.bear.build/docs/bear/revit/brep.md#brepcurve)[] | - | | `profile` | [`BrepCurve`](https://docs.bear.build/docs/bear/revit/brep.md#brepcurve)[][] | - | *** ##### Type Literal [#type-literal-2] ```ts { bottom: BrepCurve[]; bottomOffset: number; kind: "blend"; normal: Vec3; top: BrepCurve[]; topOffset: number; } ``` | Name | Type | Description | | ------ | ------ | ------ | | `bottom` | [`BrepCurve`](https://docs.bear.build/docs/bear/revit/brep.md#brepcurve)[] | - | | `bottomOffset` | `number` | Offsets of the two loops from their sketch planes, along `normal`. | | `kind` | `"blend"` | A loft from one closed loop to another, on parallel planes: convex only. | | `normal` | [`Vec3`](https://docs.bear.build/docs/bear/revit/brep.md#vec3) | - | | `top` | [`BrepCurve`](https://docs.bear.build/docs/bear/revit/brep.md#brepcurve)[] | - | | `topOffset` | `number` | - | *** ##### Type Literal [#type-literal-3] ```ts { axis: Vec3; end: number; kind: "revolution"; loops: BrepCurve[][]; origin: Vec3; start: number; } ``` | Name | Type | Description | | ------ | ------ | ------ | | `axis` | [`Vec3`](https://docs.bear.build/docs/bear/revit/brep.md#vec3) | - | | `end` | `number` | - | | `kind` | `"revolution"` | - | | `loops` | [`BrepCurve`](https://docs.bear.build/docs/bear/revit/brep.md#brepcurve)[][] | Closed loops on a plane through the axis, to one side of it. | | `origin` | [`Vec3`](https://docs.bear.build/docs/bear/revit/brep.md#vec3) | The axis: a point on it and its direction. | | `start` | `number` | Angles, radians, counterclockwise about the axis from the loops' plane. | *** ### Vec3 [#vec3] ```ts type Vec3 = [number, number, number]; ``` Defined in: [bear/revit/brep.ts:17](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/revit/brep.ts#L17) ## Functions [#functions] ### brepSolid() [#brepsolid-1] ```ts function brepSolid(s, tol): Manifold; ``` Defined in: [bear/revit/brep.ts:561](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/revit/brep.ts#L561) The solid, in the same units as its definition. `tol` is how close two ends must be to join. #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `s` | [`BrepSolid`](https://docs.bear.build/docs/bear/revit/brep.md#brepsolid) | | `tol` | `number` | #### Returns [#returns] `Manifold` # compare (https://docs.bear.build/docs/bear/revit/compare) Import from `bear/revit/compare`. ## Functions [#functions] ### compare() [#compare] ```ts function compare( a, b, op ): boolean; ``` Defined in: [bear/revit/compare.ts:8](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/revit/compare.ts#L8) How a Revit family formula compares, for the oracle `bolt revit` compiles. A family's formula text gives a length to 12 digits, so two lengths closer than a billionth of a foot are one length: `Wall Depth > 0.380208333333'` is false when Wall Depth is 4 9/16". Yes/No compares as 1 and 0. #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `a` | `string` \| `number` \| `boolean` | | `b` | `string` \| `number` \| `boolean` | | `op` | `"="` \| `"<"` \| `">"` \| `"<="` \| `">="` | #### Returns [#returns] `boolean` # family (https://docs.bear.build/docs/bear/revit/family) Import from `bear/revit/family`. ## Interfaces [#interfaces] ### RevitAffine [#revitaffine] Defined in: [bear/revit/family.ts:50](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/revit/family.ts#L50) c + Σ t[name]·value(name), feet. #### Properties [#properties] | Property | Type | | ------ | ------ | | `c` | `number` | | `t?` | `Record`\<`string`, `number`\> | *** ### RevitConnector [#revitconnector] Defined in: [bear/revit/family.ts:134](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/revit/family.ts#L134) A connector's face: where it is, which way it faces, how big it is. #### Properties [#properties-1] | Property | Type | Description | | ------ | ------ | ------ | | `description` | `string` | - | | `domain` | `string` | Revit's domain and system, e.g. "DomainPiping" / "OtherPipe". | | `height?` | [`RevitAffine`](https://docs.bear.build/docs/bear/revit/family.md#revitaffine) | - | | `origin` | [`RevitPoint`](https://docs.bear.build/docs/bear/revit/family.md#revitpoint) | - | | `radius?` | [`RevitAffine`](https://docs.bear.build/docs/bear/revit/family.md#revitaffine) | - | | `ref` | `string` | The ref this connector publishes. | | `system` | `string` | - | | `width?` | [`RevitAffine`](https://docs.bear.build/docs/bear/revit/family.md#revitaffine) | - | | `x` | [`Vec3`](https://docs.bear.build/docs/bear/revit/brep.md#vec3) | - | | `z` | [`Vec3`](https://docs.bear.build/docs/bear/revit/brep.md#vec3) | Outward direction (Revit's basis z) and in-plane x. | *** ### RevitFamilyOptions [#revitfamilyoptions] Defined in: [bear/revit/family.ts:419](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/revit/family.ts#L419) #### Properties [#properties-2] | Property | Type | Description | | ------ | ------ | ------ | | `hosted?` | [`RevitHosted`](https://docs.bear.build/docs/bear/revit/family.md#revithosted) | How a hosted family sits in its host. | | `turn?` | `number` | Degrees about z (a quarter turn's multiple) the family's frame turns about its origin, so a part's length runs along x the way Bear's do. | *** ### RevitFamilyRecord [#revitfamilyrecord] Defined in: [bear/revit/family.ts:150](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/revit/family.ts#L150) #### Properties [#properties-3] | Property | Type | Description | | ------ | ------ | ------ | | `connectors` | [`RevitConnector`](https://docs.bear.build/docs/bear/revit/family.md#revitconnector)[] | - | | `division` | `string` | - | | `forms` | [`RevitForm`](https://docs.bear.build/docs/bear/revit/family.md#revitform)[] | - | | `manufacturer` | `string` | - | | `material` | [`MaterialDescriptor`](https://docs.bear.build/docs/bear/engine/types.md#materialdescriptor) | Shades what no form's own material does: by-category forms, faces a cut opens. | | `materials` | `Record`\<`string`, [`MaterialDescriptor`](https://docs.bear.build/docs/bear/engine/types.md#materialdescriptor)\> | The family's Revit materials its forms are drawn in, by Revit id. | | `name` | `string` | - | | `url?` | `string` | - | | `validation?` | `object` | The value that holds Revit's own configuration check, and what it says when it passes. | | `validation.ok` | `string` | - | | `validation.value` | `string` | - | *** ### RevitForm [#revitform] Defined in: [bear/revit/family.ts:114](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/revit/family.ts#L114) #### Properties [#properties-4] | Property | Type | Description | | ------ | ------ | ------ | | `cuts?` | [`RevitSolidDef`](https://docs.bear.build/docs/bear/revit/family.md#revitsoliddef)[] | Void forms cut from this one. | | `id` | `number` | Revit element id, for tracing a form back to the family. | | `material?` | `string` | Its Revit material, by id in the record's `materials`; none shades it in the record's `material`. | | `name` | `string` | - | | `repeat?` | `object` | A linear array's first member, the array moved to its last: `count` members in all, evenly between this one and one `span` away (whose own forms are the last member's); the ones between are copies of this. | | `repeat.count` | `string` | - | | `repeat.span` | [`RevitPoint`](https://docs.bear.build/docs/bear/revit/family.md#revitpoint) | - | | `solid` | \| [`RevitSolidDef`](https://docs.bear.build/docs/bear/revit/family.md#revitsoliddef) \| [`RevitSolvedTable`](https://docs.bear.build/docs/bear/revit/family.md#revitsolvedtable) | - | | `visible?` | `string`[] | The Yes/No values that must all be on to show it (its own, its nested instance's). | *** ### RevitHosted [#revithosted] Defined in: [bear/revit/family.ts:482](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/revit/family.ts#L482) How a hosted family sits in its host: the host faces it reads and its planes on them, from the family's values (see `bear/revit/hosted.ts`). #### Properties [#properties-5] | Property | Type | | ------ | ------ | | `faces` | `Readonly`\<`Record`\<`string`, readonly \[(`props`) => `unknown`, `string`\]\>\> | | `mates` | (`values`, `host`) => readonly (`Omit`\<[`Mate`](https://docs.bear.build/docs/bear/engine/mate.md#mate), `"on"`\> & `object`)[] | *** ### RevitSolvedTable [#revitsolvedtable] Defined in: [bear/revit/family.ts:106](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/revit/family.ts#L106) A form whose sketch Revit solves non-linearly (a line that turns): one solved definition per tuple of the options that turn it, each still affine in the family's values. `reason` says which lines turn. #### Properties [#properties-6] | Property | Type | Description | | ------ | ------ | ------ | | `entries` | `Record`\<`string`, [`RevitSolidDef`](https://docs.bear.build/docs/bear/revit/family.md#revitsoliddef)\> | By `tupleKey` of the keys' values. | | `keys` | `string`[] | - | | `kind` | `"table"` | - | | `reason` | `string` | - | ## Type Aliases [#type-aliases] ### RevitCurve [#revitcurve] ```ts type RevitCurve = | { a: RevitPoint; b: RevitPoint; type: "line"; } | { a: RevitPoint | null; b: RevitPoint | null; center: RevitPoint; normal: Vec3; radius: RevitAffine; type: "arc"; }; ``` Defined in: [bear/revit/family.ts:57](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/revit/family.ts#L57) *** ### RevitPoint [#revitpoint] ```ts type RevitPoint = [RevitAffine, RevitAffine, RevitAffine]; ``` Defined in: [bear/revit/family.ts:55](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/revit/family.ts#L55) *** ### RevitSolidDef [#revitsoliddef] ```ts type RevitSolidDef = | { end: RevitAffine; kind: "extrusion"; loops: RevitCurve[][]; normal: Vec3; start: RevitAffine; } | { at: RevitPoint; kind: "sweep"; path: RevitCurve[]; profile: RevitCurve[][]; } | { bottom: RevitCurve[]; bottomOffset: RevitAffine; kind: "blend"; normal: Vec3; top: RevitCurve[]; topOffset: RevitAffine; } | { axis: Vec3; end: number; kind: "revolution"; loops: RevitCurve[][]; origin: RevitPoint; start: number; }; ``` Defined in: [bear/revit/family.ts:68](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/revit/family.ts#L68) #### Union Members [#union-members] ##### Type Literal [#type-literal] ```ts { end: RevitAffine; kind: "extrusion"; loops: RevitCurve[][]; normal: Vec3; start: RevitAffine; } ``` *** ##### Type Literal [#type-literal-1] ```ts { at: RevitPoint; kind: "sweep"; path: RevitCurve[]; profile: RevitCurve[][]; } ``` | Name | Type | Description | | ------ | ------ | ------ | | `at` | [`RevitPoint`](https://docs.bear.build/docs/bear/revit/family.md#revitpoint) | The point on the path the profile is drawn at. | | `kind` | `"sweep"` | - | | `path` | [`RevitCurve`](https://docs.bear.build/docs/bear/revit/family.md#revitcurve)[] | - | | `profile` | [`RevitCurve`](https://docs.bear.build/docs/bear/revit/family.md#revitcurve)[][] | - | *** ##### Type Literal [#type-literal-2] ```ts { bottom: RevitCurve[]; bottomOffset: RevitAffine; kind: "blend"; normal: Vec3; top: RevitCurve[]; topOffset: RevitAffine; } ``` *** ##### Type Literal [#type-literal-3] ```ts { axis: Vec3; end: number; kind: "revolution"; loops: RevitCurve[][]; origin: RevitPoint; start: number; } ``` | Name | Type | Description | | ------ | ------ | ------ | | `axis` | [`Vec3`](https://docs.bear.build/docs/bear/revit/brep.md#vec3) | - | | `end` | `number` | - | | `kind` | `"revolution"` | - | | `loops` | [`RevitCurve`](https://docs.bear.build/docs/bear/revit/family.md#revitcurve)[][] | - | | `origin` | [`RevitPoint`](https://docs.bear.build/docs/bear/revit/family.md#revitpoint) | - | | `start` | `number` | Radians. | *** ### RevitValue [#revitvalue] ```ts type RevitValue = number | string | boolean; ``` Defined in: [bear/revit/family.ts:44](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/revit/family.ts#L44) A computed parameter value: Yes/No as boolean, numbers in Revit internal units. ## Functions [#functions] ### definitionAt() [#definitionat] ```ts function definitionAt(form, values): RevitSolidDef; ``` Defined in: [bear/revit/family.ts:176](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/revit/family.ts#L176) A form's definition: its own, or Revit's for these values. #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `form` | [`RevitForm`](https://docs.bear.build/docs/bear/revit/family.md#revitform) | | `values` | `Values` | #### Returns [#returns] [`RevitSolidDef`](https://docs.bear.build/docs/bear/revit/family.md#revitsoliddef) *** ### evaluateAffine() [#evaluateaffine] ```ts function evaluateAffine(a, values): number; ``` Defined in: [bear/revit/family.ts:197](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/revit/family.ts#L197) #### Parameters [#parameters-1] | Parameter | Type | | ------ | ------ | | `a` | [`RevitAffine`](https://docs.bear.build/docs/bear/revit/family.md#revitaffine) | | `values` | `Values` | #### Returns [#returns-1] `number` *** ### formSolid() [#formsolid] ```ts function formSolid(form, values): Manifold; ``` Defined in: [bear/revit/family.ts:265](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/revit/family.ts#L265) A form's solid, its voids cut out, with an array's copies between its first and last. #### Parameters [#parameters-2] | Parameter | Type | | ------ | ------ | | `form` | [`RevitForm`](https://docs.bear.build/docs/bear/revit/family.md#revitform) | | `values` | `Values` | #### Returns [#returns-2] `Manifold` *** ### revitFamily() [#revitfamily] ```ts function revitFamily

( record, evaluate, columns?, options? ): PartDef; ``` Defined in: [bear/revit/family.ts:317](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/revit/family.ts#L317) The part for one family. `evaluate` returns the family's values by Revit name; its props are the part's. `columns` names the options that make one configuration a different product from another: the BOM consolidates parts by kind and columns, so without them a 480 V and a 600 V set would be one line. #### Type Parameters [#type-parameters] | Type Parameter | | ------ | | `P` *extends* `object` | #### Parameters [#parameters-3] | Parameter | Type | | ------ | ------ | | `record` | [`RevitFamilyRecord`](https://docs.bear.build/docs/bear/revit/family.md#revitfamilyrecord) | | `evaluate` | (`props`, `host`) => `Values` | | `columns?` | (`props`) => [`PartColumn`](https://docs.bear.build/docs/bear/engine/part.md#partcolumn)[] | | `options?` | [`RevitFamilyOptions`](https://docs.bear.build/docs/bear/revit/family.md#revitfamilyoptions) | #### Returns [#returns-3] [`PartDef`](https://docs.bear.build/docs/bear/engine/types.md#partdef)\<`P`, `never`, `string`\> *** ### solidAt() [#solidat] ```ts function solidAt(def, values): BrepSolid; ``` Defined in: [bear/revit/family.ts:227](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/revit/family.ts#L227) A form's definition at these values, project units. #### Parameters [#parameters-4] | Parameter | Type | | ------ | ------ | | `def` | [`RevitSolidDef`](https://docs.bear.build/docs/bear/revit/family.md#revitsoliddef) | | `values` | `Values` | #### Returns [#returns-4] [`BrepSolid`](https://docs.bear.build/docs/bear/revit/brep.md#brepsolid) *** ### tupleKey() [#tuplekey] ```ts function tupleKey(values): string; ``` Defined in: [bear/revit/family.ts:171](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/revit/family.ts#L171) The one spelling of a tuple of numbers (lengths in feet, Yes/No as 0/1), shared by the importer and the part: to a billionth of a foot, so two spellings of one formula agree. #### Parameters [#parameters-5] | Parameter | Type | | ------ | ------ | | `values` | readonly `number`[] | #### Returns [#returns-5] `string` # hosted (https://docs.bear.build/docs/bear/revit/hosted) Import from `bear/revit/hosted`. ## Interfaces [#interfaces] ### OpeningParameters [#openingparameters] Defined in: [bear/revit/hosted.ts:23](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/revit/hosted.ts#L23) The family's parameters a hosted window or door is placed by, by Revit name. #### Properties [#properties] | Property | Type | Description | | ------ | ------ | ------ | | `defaultSill` | `string` | - | | `roughHeight` | `string` | - | | `roughWidth` | `string` | Revit's own: "Rough Width", "Rough Height", "Default Sill Height". | | `wallThickness` | `string` | The reporting parameter that measures the sample wall. | ## Functions [#functions] ### between() [#between] ```ts function between(a, b): number; ``` Defined in: [bear/revit/hosted.ts:33](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/revit/hosted.ts#L33) How far apart two parallel planes are. #### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `a` | [`Surface`](https://docs.bear.build/docs/bear/geometry/shapes.md#surface) | | `b` | [`Surface`](https://docs.bear.build/docs/bear/geometry/shapes.md#surface) | #### Returns [#returns] `number` *** ### inOpening() [#inopening] ```ts function inOpening(names, faces?): RevitHosted; ``` Defined in: [bear/revit/hosted.ts:44](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/revit/hosted.ts#L44) A family that fills an `` in a ``. `faces` adds host faces the family's own values read (a window's depth from the wall's sheathing). #### Parameters [#parameters-1] | Parameter | Type | | ------ | ------ | | `names` | [`OpeningParameters`](https://docs.bear.build/docs/bear/revit/hosted.md#openingparameters) | | `faces?` | `Readonly`\<`Record`\<`string`, readonly \[(`props`) => `unknown`, `string`\]\>\> | #### Returns [#returns-1] [`RevitHosted`](https://docs.bear.build/docs/bear/revit/family.md#revithosted) # Bear execution environment (https://docs.bear.build/docs/bear/runtime) `createBearSession` binds a Bear-configured code loader and domain environment to the same Playground. It runs inside the realm where models are compiled. This environment has no renderer, drawing jig or branch selector. ```ts import { createBearSession } from "bear/runtime/session"; const task = createBearSession({ playground: taskPlayground, capabilities: {}, types: { module: "bear/runtime/environment", export: "BearEnvironment" }, }); await task.run({ entryPoint: "analysis.ts", input: {} }); await task.evaluate(` const model = await env.bear.model({ entryPoint: "model.tsx", exportName: "default", props: {} }); model.tree.fqn `); await task.close(); ``` The environment is `BearEnvironment`: `playground`, the supplied `capabilities`, and `bear.model(selection)`. Hosts with capabilities export a concrete alias of that type and name it in `types`, so snippets see the same contract their handlers and factory use. The generic session's `declarations` are supplied to the host's language service alongside those types. `Files` defaults to the full writable `Playground`, and the factory infers it from the supplied object. Compilation needs only `PlaygroundReader` (open, resolve, and a directory listing), so a captured Playground preserves its read-only type in `env.playground`. `model` resolves the selected entrypoint through that Playground's loader. The model store keys by the loader's module URL, export selection and detached data props. The module URL incorporates project imports, so a changed dependency causes a new build. Concurrent requests for the same key share the pending materialization; failed entries are removed so a later call can retry. Several models coexist. Calling `model` does not replace a current model or change what an earlier result means. Models and keyed loaded shapes are kept until session close. This initial policy favors sharing; it is not a bounded cache for an indefinitely open editor. An eviction policy can later release unreferenced revisions without changing the operation API. Model results expose `ModelView`, the engine's consumer contract. The store keeps the owning `Model` and its disposal operation. Queries, drawings, checks, scenes and compiled snapshots accept the view. Model data and native solids are borrowed for computation, not transferred out of the runtime. Return a detached snapshot or other portable result across a sandbox boundary. Closing the session invalidates its native geometry; detached snapshots remain usable. Each operation gets a bound `bear.model` function. Calls through a saved environment after the operation ends fail. Session shutdown drains operations before disposing their models. Operations must await the work they start. The loader/runtime/asset view is the cache's scope. Code URLs alone do not pin arbitrary network responses or mutable external assets. Hosts supplying those must version them or start a new environment when that view changes. Automatic filesystem capture remains an explicit host operation. Drawings use ordinary jig-owned handlers receiving `BearEnvironment`, obtain a model, and invoke their own drawing functions. No drawing operation is registered in this environment or in Playground. ## Captured main and task inputs [#captured-main-and-task-inputs] Playground's existing `snapshotTree` captures a project's root and linked directory heads. `openSnapshotPlayground` opens that descriptor as a `SnapshotPlayground`: the loader's extension/index fallback, file reads and directory listings all refer to the captured tree. Imported modules are read on demand. No file list is passed to Bear and no checkpoint is published. ```ts import { snapshotTree } from "playground/history/snapshot"; import { openSnapshotPlayground, type SnapshotPlayground } from "playground/history/playground"; import { diffModels } from "bear/engine/diff"; import { snapshotModel } from "bear/engine/snapshot"; import type { BearEnvironment } from "bear/runtime/environment"; // Export this concrete alias from the host's environment module; use that // module's name in `types` for both sessions. export type ReviewEnvironment = BearEnvironment<{}, SnapshotPlayground>; const revision = await snapshotTree(repo, mainRoot, "/"); const mainPlayground = await openSnapshotPlayground(context, revision); const main = createBearSession({ playground: mainPlayground, capabilities: {}, types: { module: "my-product/environment", export: "ReviewEnvironment" }, }); // Construct task the same way from the task root or a saved TreeSnapshot. async function capture(_input: undefined, env: ReviewEnvironment) { const selection = { entryPoint: "model.tsx", exportName: "default", props: {} }; return snapshotModel(await env.bear.model(selection), { files: env.playground.revision, selection, }); } try { const [before, after] = await Promise.all([ main.invoke(capture, undefined), task.invoke(capture, undefined), ]); const changes = diffModels(before, after); // changes.before.files.root.heads retains its captured type and values. } finally { await Promise.all([main.close(), task.close()]); } ``` The descriptor uses Playground's stored, repo-encoded Automerge heads for each document. One `Heads` array cannot identify an entire linked project. Opening copies the descriptor before its first await, so changing the input or editing either live workspace cannot change subsequent reads. Captured files expose read operations only, and returned listings are detached. A missing captured version fails through the existing history reader instead of falling back to live bytes. This is source pinning. The host still owns the runtime/importmap and external asset versions; include their identifiers in revision metadata when comparing across runtimes. Published mounts are immutable by URI in production; local development deliberately serves their current contents. Neither arbitrary network reads nor ambient process state becomes pinned by opening a snapshot. Tests compile main and a real task branch after both live workspaces change, check that unchanged FQNs keep their mesh IDs, and distinguish a data-only edit from a geometry edit. This remains full materialization per changed model; compilation reuse and incremental rendering are later slices. ## Studio and executor [#studio-and-executor] `createBearExecution({ playground, modules })` is the host adapter both the studio iframe and executor use. It shares one model store between `env.bear`, the displayed model and pictures. Building another model changes the host's current-model pointer without invalidating a borrowed model or rendering it. The existing workbench remains available to standalone build consumers. The shared contract is `ExecutionEnvironment` from `bear/runtime/contract`: ```ts import type { ExecutionEnvironment } from "bear/runtime/contract"; import { q } from "bear/engine/query"; export default async function (input: { name: string }, env: ExecutionEnvironment) { const model = await env.bear.model({ entryPoint: "model.tsx", exportName: "default", props: {} }); return q(model).named(input.name).all().map((node) => node.fqn); } ``` The executor's `eval({ filePath, args })` loads this as an ordinary module, including relative imports from that file's directory. Its default export must be a handler. The entry initializes each run; its imports stay cached. Inline snippets keep their existing persistent console semantics. The iframe accepts the same handler request through `runSandboxHandler`. Saved modules import the environment type explicitly; `env` is a snippet binding, not a project-wide global. The session exposes its declaration for a future snippet editor (the studio console currently uses a textarea). `env.capabilities.agent` contains the calling agent's tools, or is undefined for a human console or a host-only operation. Inline agent snippets also get the existing `read`, `write`, `edit`, `bash` and `tools` aliases. Each call gets a fresh file-version ledger. Saved tool functions reject after that invocation ends; a module helper receives `env` explicitly instead of depending on globals. The adapters retain models until session close (or iframe destruction). This also applies to editor rebuilds; bounded retention needs an explicit ownership policy before old borrowed models can be evicted. Hosts can now open captured sessions as above; wiring those into studio review panes and partial recompilation remain separate work. ## Shared model tools [#shared-model-tools] Every executor binds the contract in `tool-contract.ts` under `tools.bear` (and `env.tools.bear` in a saved handler). `tool-catalog.ts` references that contract for discovery; `tools.ts` supplies the implementation. Adding an operation must satisfy both the typed catalog and the implementation. `materialize(element)` returns a session-owned model. Every other operation requires that model explicitly: `query(model)`, `show(model)`, `view(model, options?)`, `print(model, options?)` and `diagnostics(model)`. There is no current-model state or implicit materialization. `query` keeps the full fluent query and component identity. `show` presents through the host, `view` returns PNG content, and `print` returns a tree or constraint report. For custom geometry, define a small part and materialize it before inspection. Project operations and jig namespaces continue through the same tools proxy. Loading a file with `env.bear.model` requires all source fields: `{ entryPoint: "model/index.tsx", exportName: "default", props: {} }`. The loader never infers the file, export or arguments from a previous model. The host supplies presentation and image rendering. A headless microVM uses Darkroom for pictures and has no direct interactive presentation capability; the project's existing top-level browser tools still handle those calls. The Claude widget and Studio iframe present models locally. Models created from elements and loaded modules share session ownership and survive later materializations. Only tool bindings expire at the end of each invocation. A test file is an ordinary handler. Import assertions and `runTests` from `bear/test`, pass the model to `runTests(model)`, and return the report through `execute({ filePath, exportName?, args? })`. Inline code uses `execute({ code })`. # spatial (https://docs.bear.build/docs/bear/spatial) Import from `bear/spatial`. ## Classes [#classes] ### SpatialIndex [#spatialindex] Defined in: [bear/spatial.ts:132](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/spatial.ts#L132) #### Constructors [#constructors] ##### Constructor [#constructor] ```ts new SpatialIndex(): SpatialIndex; ``` ###### Returns [#returns] [`SpatialIndex`](https://docs.bear.build/docs/bear/spatial.md#spatialindex) #### Methods [#methods] ##### get() [#get] ```ts get(nodeId): ShapeProxy[] | undefined; ``` Defined in: [bear/spatial.ts:148](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/spatial.ts#L148) ###### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `nodeId` | `string` | ###### Returns [#returns-1] [`ShapeProxy`](https://docs.bear.build/docs/bear/spatial.md#shapeproxy)[] \| `undefined` ##### raycast() [#raycast] ```ts raycast( originInput, directionInput, options? ): SpatialHit[]; ``` Defined in: [bear/spatial.ts:153](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/spatial.ts#L153) ###### Parameters [#parameters-1] | Parameter | Type | | ------ | ------ | | `originInput` | `Vector3` | | `directionInput` | `Vector3` | | `options?` | [`SpatialRaycastOptions`](https://docs.bear.build/docs/bear/spatial.md#spatialraycastoptions) | ###### Returns [#returns-2] [`SpatialHit`](https://docs.bear.build/docs/bear/spatial.md#spatialhit)[] ##### remove() [#remove] ```ts remove(nodeId): void; ``` Defined in: [bear/spatial.ts:144](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/spatial.ts#L144) ###### Parameters [#parameters-2] | Parameter | Type | | ------ | ------ | | `nodeId` | `string` | ###### Returns [#returns-3] `void` ##### update() [#update] ```ts update(nodeId, proxies): void; ``` Defined in: [bear/spatial.ts:135](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/spatial.ts#L135) ###### Parameters [#parameters-3] | Parameter | Type | | ------ | ------ | | `nodeId` | `string` | | `proxies` | [`ShapeProxy`](https://docs.bear.build/docs/bear/spatial.md#shapeproxy) \| [`ShapeProxy`](https://docs.bear.build/docs/bear/spatial.md#shapeproxy)[] | ###### Returns [#returns-4] `void` ##### within() [#within] ```ts within(bounds, options?): ShapeProxy[]; ``` Defined in: [bear/spatial.ts:219](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/spatial.ts#L219) ###### Parameters [#parameters-4] | Parameter | Type | | ------ | ------ | | `bounds` | [`Aabb`](https://docs.bear.build/docs/bear/spatial.md#aabb) | | `options?` | \{ `excludeIds?`: `Iterable`\<`string`, `any`, `any`\>; `kinds?`: `Iterable`\<`string`, `any`, `any`\>; \} | | `options.excludeIds?` | `Iterable`\<`string`, `any`, `any`\> | | `options.kinds?` | `Iterable`\<`string`, `any`, `any`\> | ###### Returns [#returns-5] [`ShapeProxy`](https://docs.bear.build/docs/bear/spatial.md#shapeproxy)[] ## Interfaces [#interfaces] ### AabbProxy [#aabbproxy] Defined in: [bear/spatial.ts:33](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/spatial.ts#L33) #### Extends [#extends] - `BaseProxy` #### Properties [#properties] | Property | Type | Overrides | Inherited from | | ------ | ------ | ------ | ------ | | `aabb` | [`Aabb`](https://docs.bear.build/docs/bear/spatial.md#aabb) | - | - | | `aggregate?` | `boolean` | - | `BaseProxy.aggregate` | | `nodeId` | `string` | - | `BaseProxy.nodeId` | | `nodeKind` | `string` | - | `BaseProxy.nodeKind` | | `roles?` | [`Role`](https://docs.bear.build/docs/bear/spatial.md#role)[] | - | `BaseProxy.roles` | | `tags?` | `string`[] | - | `BaseProxy.tags` | | `type` | `"aabb"` | `BaseProxy.type` | - | *** ### PlaneProxy [#planeproxy] Defined in: [bear/spatial.ts:27](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/spatial.ts#L27) #### Extends [#extends-1] - `BaseProxy` #### Properties [#properties-1] | Property | Type | Overrides | Inherited from | | ------ | ------ | ------ | ------ | | `aggregate?` | `boolean` | - | `BaseProxy.aggregate` | | `bounds?` | [`Aabb`](https://docs.bear.build/docs/bear/spatial.md#aabb) | - | - | | `nodeId` | `string` | - | `BaseProxy.nodeId` | | `nodeKind` | `string` | - | `BaseProxy.nodeKind` | | `plane` | `Plane` | - | - | | `roles?` | [`Role`](https://docs.bear.build/docs/bear/spatial.md#role)[] | - | `BaseProxy.roles` | | `tags?` | `string`[] | - | `BaseProxy.tags` | | `type` | `"plane"` | `BaseProxy.type` | - | *** ### SpatialRaycastOptions [#spatialraycastoptions] Defined in: [bear/spatial.ts:40](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/spatial.ts#L40) #### Properties [#properties-2] | Property | Type | | ------ | ------ | | `allowAggregates?` | `boolean` | | `bias?` | `number` | | `excludeIds?` | `Iterable`\<`string`, `any`, `any`\> | | `kinds?` | `Iterable`\<`string`, `any`, `any`\> | | `maxDistance?` | `number` | | `roles?` | `Iterable`\<[`Role`](https://docs.bear.build/docs/bear/spatial.md#role), `any`, `any`\> | ## Type Aliases [#type-aliases] ### Aabb [#aabb] ```ts type Aabb = object; ``` Defined in: [bear/spatial.ts:3](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/spatial.ts#L3) #### Properties [#properties-3] | Property | Type | | ------ | ------ | | `max` | `Vector3` | | `min` | `Vector3` | *** ### ProxyKind [#proxykind] ```ts type ProxyKind = "plane" | "aabb"; ``` Defined in: [bear/spatial.ts:14](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/spatial.ts#L14) *** ### Role [#role] ```ts type Role = | "structural" | "connecting" | "enclosure" | "environmental" | "finish" | "service"; ``` Defined in: [bear/spatial.ts:6](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/spatial.ts#L6) *** ### ShapeProxy [#shapeproxy] ```ts type ShapeProxy = PlaneProxy | AabbProxy; ``` Defined in: [bear/spatial.ts:38](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/spatial.ts#L38) *** ### SpatialHit [#spatialhit] ```ts type SpatialHit = object; ``` Defined in: [bear/spatial.ts:49](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/spatial.ts#L49) #### Properties [#properties-4] | Property | Type | | ------ | ------ | | `distance` | `number` | | `nodeId` | `string` | | `nodeKind` | `string` | | `point` | `Vector3` | | `proxy` | [`ShapeProxy`](https://docs.bear.build/docs/bear/spatial.md#shapeproxy) | # test (https://docs.bear.build/docs/bear/test) Import from `bear/test`. # Testing a Bear model [#testing-a-bear-model] A test states a fact about a building and checks it. It materializes the source once and asserts against the model's tree (extents, transforms, node counts, props), so a claim costs one materialize pass rather than a pile of boolean geometry. Tests are ordinary project files, so they version and sync alongside the model. ## Writing one [#writing-one] ```ts // deck.test.ts import { describe, expect, it, runTests } from "bear/test"; import NominalLumber from "bear/blueprints/materials/NominalLumber"; import { d } from "bear/measurements"; import Source from "@/model"; describe("deck framing", () => { it('has a 1/4" ledger gap', ({ q }) => { const ledger = q("Ledger").one(); const joist = q(/^Joist-/).first(); expect(gapBetween(ledger, joist)).toBeCloseTo(d`1/4"`, 3); }); it("hangs every joist off the ledger", ({ q }) => { expect(q(NominalLumber).length).toBe(14); }); }); export default () => runTests(Source); ``` ## Running it [#running-it] `executeScript({ filePath: "deck.test.ts" })`. That's the whole wiring. The default export is what makes the file runnable. The execution session imports a fresh entry module and calls its handler with `(args, env)`, so the value you return becomes the tool result: the agent reads the [TestReport](https://docs.bear.build/docs/bear/test.md#testreport) straight out of the tool call. Every call re-fetches and re-evaluates the file, so `describe`/`it` register again on each run and the counts stay stable. Registration is inert on its own: nothing runs until `runTests` does, so importing a test file is free. ## Checking one thing, right now [#checking-one-thing-right-now] In the REPL the model is already on screen, and the REPL's built-in `runTests()` (no import) checks that tree. No import of the model, and no second materialize: ```ts import { expect, it } from "bear/test"; import NominalLumber from "bear/blueprints/materials/NominalLumber"; it("has 14 joists", ({ q }) => expect(q(NominalLumber).length).toBe(14)); await runTests() ``` The built-in passes the model on screen to this module's `runTests`, so the `q` a check receives is bound to the same tree as the `q` you explored with by hand. A selector naming a project component works too: the sandbox keeps one instance of each project file, so `import Deck from "@/parts/Deck"` in the REPL is the very `Deck` the model on screen was built from, and `q(Deck)` matches it. The body ports into a file unchanged: keep the `it(…)` as written, import `runTests` from `bear/test`, and give it a source to materialize. ## The test context [#the-test-context] Each test receives a [TestContext](https://docs.bear.build/docs/bear/test.md#testcontext), destructured. `q` is `bear/engine/query`'s bound entry point (`queryOf(result)`), nothing narrowed: every selector form works, and the tree you're asserting against is the one this run materialized. Nothing global is touched, so verifying a model never disturbs the one on screen. `q`'s strict terminals are worth leaning on here. `.one()` and `.first()` throw when a selector matches nothing, and the message carries the chain and a diagnosis, so a check that was silently asserting over an empty set becomes a named failure telling you which selector went stale. ## Checks in the workspace [#checks-in-the-workspace] The workbench's Checks panel runs Bear's built-ins (`bear/checks/builtin`) against the model on screen, then imports each `spec/tests/` test file and runs what it registered against that same model, after each build and whenever a test file changes. The file's default export isn't called there, so there is no second materialize, and its project imports are the modules the model on screen was built from. Tell a reader where a check comes from and what it requires with an options object, as in Vitest: ```ts it( "Ledger is flashed", { layer: "code", requirement: "IRC R703.4: flashing over every ledger." }, ({ q }) => expect(q("Ledger-Flashing").length).toBe(1), ); ``` `layer` is one of `bear`, `location`, `code`, `firm` or `model`; a check without one is the model's own. `bear/checks/mechanical` holds ready-made checks for an imported Revit mechanical model. ## Matchers [#matchers] `expect` is the Jest/Vitest vocabulary: `toBe`, `toEqual`, `toStrictEqual`, `toBeCloseTo`, `toBeGreaterThan`, `toBeGreaterThanOrEqual`, `toBeLessThan`, `toBeLessThanOrEqual`, `toBeDefined`, `toBeUndefined`, `toBeNull`, `toBeTruthy`, `toBeFalsy`, `toContain`, `toContainEqual`, `toHaveLength`, `toHaveProperty`, `toMatchObject`, `toThrow`, and `.not` in front of any of them. Measurements are floats in project units, so compare them with `toBeCloseTo`, not `toBe`. `it` and `test` are the same function; `describe` nests. ## Interfaces [#interfaces] ### Expect [#expect] Defined in: [bear/test.ts:201](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/test.ts#L201) The matcher surface. Every matcher also reads through `.not`. Hand-declared rather than imported so it resolves through the `bear` mount; the implementations come from `@vitest/expect` at runtime. #### Properties [#properties] | Property | Modifier | Type | | ------ | ------ | ------ | | `not` | `readonly` | [`Expect`](https://docs.bear.build/docs/bear/test.md#expect) | #### Methods [#methods] ##### toBe() [#tobe] ```ts toBe(expected): void; ``` Defined in: [bear/test.ts:202](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/test.ts#L202) ###### Parameters [#parameters] | Parameter | Type | | ------ | ------ | | `expected` | `unknown` | ###### Returns [#returns] `void` ##### toBeCloseTo() [#tobecloseto] ```ts toBeCloseTo(expected, numDigits?): void; ``` Defined in: [bear/test.ts:205](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/test.ts#L205) ###### Parameters [#parameters-1] | Parameter | Type | | ------ | ------ | | `expected` | `number` | | `numDigits?` | `number` | ###### Returns [#returns-1] `void` ##### toBeDefined() [#tobedefined] ```ts toBeDefined(): void; ``` Defined in: [bear/test.ts:210](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/test.ts#L210) ###### Returns [#returns-2] `void` ##### toBeFalsy() [#tobefalsy] ```ts toBeFalsy(): void; ``` Defined in: [bear/test.ts:214](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/test.ts#L214) ###### Returns [#returns-3] `void` ##### toBeGreaterThan() [#tobegreaterthan] ```ts toBeGreaterThan(expected): void; ``` Defined in: [bear/test.ts:206](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/test.ts#L206) ###### Parameters [#parameters-2] | Parameter | Type | | ------ | ------ | | `expected` | `number` | ###### Returns [#returns-4] `void` ##### toBeGreaterThanOrEqual() [#tobegreaterthanorequal] ```ts toBeGreaterThanOrEqual(expected): void; ``` Defined in: [bear/test.ts:207](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/test.ts#L207) ###### Parameters [#parameters-3] | Parameter | Type | | ------ | ------ | | `expected` | `number` | ###### Returns [#returns-5] `void` ##### toBeLessThan() [#tobelessthan] ```ts toBeLessThan(expected): void; ``` Defined in: [bear/test.ts:208](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/test.ts#L208) ###### Parameters [#parameters-4] | Parameter | Type | | ------ | ------ | | `expected` | `number` | ###### Returns [#returns-6] `void` ##### toBeLessThanOrEqual() [#tobelessthanorequal] ```ts toBeLessThanOrEqual(expected): void; ``` Defined in: [bear/test.ts:209](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/test.ts#L209) ###### Parameters [#parameters-5] | Parameter | Type | | ------ | ------ | | `expected` | `number` | ###### Returns [#returns-7] `void` ##### toBeNull() [#tobenull] ```ts toBeNull(): void; ``` Defined in: [bear/test.ts:212](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/test.ts#L212) ###### Returns [#returns-8] `void` ##### toBeTruthy() [#tobetruthy] ```ts toBeTruthy(): void; ``` Defined in: [bear/test.ts:213](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/test.ts#L213) ###### Returns [#returns-9] `void` ##### toBeUndefined() [#tobeundefined] ```ts toBeUndefined(): void; ``` Defined in: [bear/test.ts:211](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/test.ts#L211) ###### Returns [#returns-10] `void` ##### toContain() [#tocontain] ```ts toContain(expected): void; ``` Defined in: [bear/test.ts:215](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/test.ts#L215) ###### Parameters [#parameters-6] | Parameter | Type | | ------ | ------ | | `expected` | `unknown` | ###### Returns [#returns-11] `void` ##### toContainEqual() [#tocontainequal] ```ts toContainEqual(expected): void; ``` Defined in: [bear/test.ts:216](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/test.ts#L216) ###### Parameters [#parameters-7] | Parameter | Type | | ------ | ------ | | `expected` | `unknown` | ###### Returns [#returns-12] `void` ##### toEqual() [#toequal] ```ts toEqual(expected): void; ``` Defined in: [bear/test.ts:203](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/test.ts#L203) ###### Parameters [#parameters-8] | Parameter | Type | | ------ | ------ | | `expected` | `unknown` | ###### Returns [#returns-13] `void` ##### toHaveLength() [#tohavelength] ```ts toHaveLength(expected): void; ``` Defined in: [bear/test.ts:217](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/test.ts#L217) ###### Parameters [#parameters-9] | Parameter | Type | | ------ | ------ | | `expected` | `number` | ###### Returns [#returns-14] `void` ##### toHaveProperty() [#tohaveproperty] ```ts toHaveProperty(path, value?): void; ``` Defined in: [bear/test.ts:218](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/test.ts#L218) ###### Parameters [#parameters-10] | Parameter | Type | | ------ | ------ | | `path` | `string` | | `value?` | `unknown` | ###### Returns [#returns-15] `void` ##### toMatchObject() [#tomatchobject] ```ts toMatchObject(expected): void; ``` Defined in: [bear/test.ts:219](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/test.ts#L219) ###### Parameters [#parameters-11] | Parameter | Type | | ------ | ------ | | `expected` | `object` | ###### Returns [#returns-16] `void` ##### toStrictEqual() [#tostrictequal] ```ts toStrictEqual(expected): void; ``` Defined in: [bear/test.ts:204](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/test.ts#L204) ###### Parameters [#parameters-12] | Parameter | Type | | ------ | ------ | | `expected` | `unknown` | ###### Returns [#returns-17] `void` ##### toThrow() [#tothrow] ```ts toThrow(expected?): void; ``` Defined in: [bear/test.ts:220](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/test.ts#L220) ###### Parameters [#parameters-13] | Parameter | Type | | ------ | ------ | | `expected?` | `string` \| `RegExp` \| `Error` | ###### Returns [#returns-18] `void` *** ### TestContext [#testcontext] Defined in: [bear/test.ts:139](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/test.ts#L139) What every test callback receives. #### Properties [#properties-1] | Property | Type | Description | | ------ | ------ | ------ | | `q` | [`QueryFn`](https://docs.bear.build/docs/bear/engine/query.md#queryfn) | `bear/engine/query`'s entry point, pointed at this run's tree. The whole selector vocabulary works, not a narrowed subset: injecting `q` by its own contract type is what keeps it that way as the query API grows. | | `result` | [`ModelView`](https://docs.bear.build/docs/bear/engine/model.md#modelview) | The whole model: diagnostics, edges and dims live here, not on nodes. | | `tree` | [`TreeNode`](https://docs.bear.build/docs/bear/engine/types.md#treenode) | The model's tree itself, for assertions that don't need a query. | *** ### TestFailure [#testfailure] Defined in: [bear/test.ts:171](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/test.ts#L171) One failed assertion, named by its enclosing `describe`s. #### Properties [#properties-2] | Property | Type | | ------ | ------ | | `message` | `string` | | `name` | `string` | *** ### TestOptions [#testoptions] Defined in: [bear/test.ts:163](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/test.ts#L163) What a test states beyond its name, for a reader of its result. #### Extended by [#extended-by] - [`TestResult`](https://docs.bear.build/docs/bear/test.md#testresult) #### Properties [#properties-3] | Property | Type | Description | | ------ | ------ | ------ | | `layer?` | [`CheckLayer`](https://docs.bear.build/docs/bear/test.md#checklayer) | Where the check comes from. Unset for an ordinary test. | | `requirement?` | `string` | The requirement in one line: what is checked and what passing means. | *** ### TestReport [#testreport] Defined in: [bear/test.ts:185](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/test.ts#L185) The result of a [runTests](https://docs.bear.build/docs/bear/test.md#runtests) call. #### Properties [#properties-4] | Property | Type | Description | | ------ | ------ | ------ | | `durationMs` | `number` | - | | `failed` | `number` | - | | `failures` | [`TestFailure`](https://docs.bear.build/docs/bear/test.md#testfailure)[] | - | | `passed` | `number` | - | | `results` | [`TestResult`](https://docs.bear.build/docs/bear/test.md#testresult)[] | Every registered test, in registration order. | | `skipped` | `number` | - | *** ### TestResult [#testresult] Defined in: [bear/test.ts:177](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/test.ts#L177) One registered test's outcome. #### Extends [#extends] - [`TestOptions`](https://docs.bear.build/docs/bear/test.md#testoptions) #### Properties [#properties-5] | Property | Type | Description | Inherited from | | ------ | ------ | ------ | ------ | | `layer?` | [`CheckLayer`](https://docs.bear.build/docs/bear/test.md#checklayer) | Where the check comes from. Unset for an ordinary test. | [`TestOptions`](https://docs.bear.build/docs/bear/test.md#testoptions).[`layer`](https://docs.bear.build/docs/bear/test.md#property-layer) | | `message?` | `string` | Why it failed; only a failed test has one. | - | | `name` | `string` | - | - | | `requirement?` | `string` | The requirement in one line: what is checked and what passing means. | [`TestOptions`](https://docs.bear.build/docs/bear/test.md#testoptions).[`requirement`](https://docs.bear.build/docs/bear/test.md#property-requirement) | | `status` | `"passed"` \| `"failed"` \| `"skipped"` | - | - | ## Type Aliases [#type-aliases] ### CheckLayer [#checklayer] ```ts type CheckLayer = "bear" | "location" | "code" | "firm" | "model"; ``` Defined in: [bear/test.ts:160](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/test.ts#L160) Where a check comes from, from most general to most specific: Bear's own built-ins, the building's location, the codes and AHJ that govern it, the firm's standards, and checks written for this one model. *** ### Source [#source] ```ts type Source = | BearElement | (() => BearElement); ``` Defined in: [bear/test.ts:339](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/test.ts#L339) The two shapes a source file default-exports, matching the sandbox runtime. *** ### TestFn [#testfn] ```ts type TestFn = (ctx) => void | Promise; ``` Defined in: [bear/test.ts:153](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/test.ts#L153) A test body. May be async. #### Parameters [#parameters-14] | Parameter | Type | | ------ | ------ | | `ctx` | [`TestContext`](https://docs.bear.build/docs/bear/test.md#testcontext) | #### Returns [#returns-19] `void` \| `Promise`\<`void`\> ## Variables [#variables] ### it [#it] ```ts const it: Register & object; ``` Defined in: [bear/test.ts:262](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/test.ts#L262) State one fact about the model. #### Type Declaration [#type-declaration] | Name | Type | Description | | ------ | ------ | ------ | | `only` | `Register` | Run only the `only` tests in this file. | | `skip` | `Register` | Register but don't run. | *** ### test [#test] ```ts const test: Register & object = it; ``` Defined in: [bear/test.ts:270](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/test.ts#L270) Alias of [it](https://docs.bear.build/docs/bear/test.md#it). #### Type Declaration [#type-declaration-1] | Name | Type | Description | | ------ | ------ | ------ | | `only` | `Register` | Run only the `only` tests in this file. | | `skip` | `Register` | Register but don't run. | ## Functions [#functions] ### describe() [#describe] ```ts function describe(name, fn): void; ``` Defined in: [bear/test.ts:239](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/test.ts#L239) Group related checks. Nests. #### Parameters [#parameters-15] | Parameter | Type | | ------ | ------ | | `name` | `string` | | `fn` | () => `void` | #### Returns [#returns-20] `void` *** ### expect() [#expect-1] ```ts function expect(value): Expect; ``` Defined in: [bear/test.ts:326](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/test.ts#L326) Assert on a value. Only callable from inside a test: [runTests](https://docs.bear.build/docs/bear/test.md#runtests) loads the matchers before it runs anything, so a test body always finds them ready. #### Parameters [#parameters-16] | Parameter | Type | | ------ | ------ | | `value` | `unknown` | #### Returns [#returns-21] [`Expect`](https://docs.bear.build/docs/bear/test.md#expect) *** ### mergeReports() [#mergereports] ```ts function mergeReports(reports): TestReport; ``` Defined in: [bear/test.ts:441](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/test.ts#L441) Several runs as one report, results in the order given. #### Parameters [#parameters-17] | Parameter | Type | | ------ | ------ | | `reports` | readonly [`TestReport`](https://docs.bear.build/docs/bear/test.md#testreport)[] | #### Returns [#returns-22] [`TestReport`](https://docs.bear.build/docs/bear/test.md#testreport) *** ### runTests() [#runtests] ```ts function runTests(root): Promise; ``` Defined in: [bear/test.ts:381](https://github.com/bearbuild/bear/blob/672f47b7ff82d0e7ec2f1a4441f3d21dc28d73b6/packages/bear/test.ts#L381) Run every test registered so far, against `root`: a source materialized fresh, or a model that already exists. Pass the model in a saved test file, so the file checks its own model rather than whatever happens to be on screen. In the REPL, the built-in `runTests()` passes the model on screen, so nothing re-materializes and the checks see the same tree as the `q` you were just exploring with. Draining the registry is what makes a second call safe: the sandbox caches modules by URL, so a re-run would otherwise replay every registration on top of the last set. It happens first, before anything that can throw, so a run that fails to even get a tree still consumes what it was going to check rather than leaking it into the next run. A failing assertion is data, not an exception: the report comes back whole, so one bad check doesn't hide the rest. #### Parameters [#parameters-18] | Parameter | Type | | ------ | ------ | | `root` | [`ModelView`](https://docs.bear.build/docs/bear/engine/model.md#modelview) \| [`Source`](https://docs.bear.build/docs/bear/test.md#source) | #### Returns [#returns-23] `Promise`\<[`TestReport`](https://docs.bear.build/docs/bear/test.md#testreport)\> # Bear reference (https://docs.bear.build/docs) Bear describes buildings with JSX. This reference is generated from the Bear library's TypeScript source and is also included in the published skills. [Browse the API reference](https://docs.bear.build/docs/bear), or search for a module, blueprint, material, or catalog. Start with the Bear overview, then use the [module index](https://docs.bear.build/docs/bear/modules) to find a specific API. ## For agents [#for-agents] Start with the [documentation index](https://docs.bear.build/llms.txt), then fetch the Markdown pages it links to. Each page is available as Markdown by appending `.md` to its URL, or by requesting `Accept: text/markdown`. The [complete reference](https://docs.bear.build/llms-full.txt) is available as a single text file. Prefer individual pages when you only need a few signatures. These pages are public and require no sign-in or skill-file access.