API referenceBlueprints
Floor
Import from bear/blueprints/Floor.
Interfaces
FloorProps
Defined in: bear/blueprints/Floor.tsx:37
Properties
| Property | Type | Description |
|---|---|---|
children? | | BearElement<object> | BearElement<object>[] | - |
elevation? | Measurement | Elevation of the floor top surface, local to the parent frame (usually a Level). |
footprint? | Point[] | Polygon footprint in the parent frame. Supports @-references. Rotates about its bounding-box center. |
joistFactory? | Factory | Factory producing joist elements. Defaults to I-Joists. |
length? | 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 | Joist spacing. Defaults to 16" OC. |
rimboardFactory? | Factory | Factory producing rimboard elements. Defaults to LSL. |
sheathing? | Factory | null | Factory producing subfloor sheathing elements. Defaults to 3/4" plywood. Pass null to skip. |
sheathingLayout? | PanelStrategy | Panel layout strategy for sheathing. Defaults to "staggered". |
sheathingPanelOptions? | PanelizeOptions | Panel dimension overrides for sheathing. |
transform? | TransformMatrix | Optional transform. Composed with auto-computed position. |
width? | Measurement | Floor width (Y axis). Convenience for rectangular floors. |
Functions
Floor()
function Floor(__namedParameters): BearElement;Defined in: bear/blueprints/Floor.tsx:77
Floor — layered assembly for floor construction.
Layers (bottom to top):
- JoistFraming — structural joists + rimboards along the footprint
- 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
| Parameter | Type |
|---|---|
__namedParameters | FloorProps |