framing
Import from bear/blueprints/framing.
Interfaces
FramedOpening
Defined in: bear/blueprints/framing.ts:13
The excluded span a hosted component reserves in a stud field, in authored order.
Properties
StudFrame
Defined in: bear/blueprints/framing.ts:32
The framing's facts, in its own frame (x along the wall, centered).
Properties
| 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 | - |
WallLayers
Defined in: bear/blueprints/framing.ts:84
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
| Property | Type |
|---|---|
elements | readonly BearElement<object>[] |
yMax | number |
yMin | number |
Type Aliases
WallStudSize
type WallStudSize = "2x3" | "2x4" | "2x6" | "2x8";Defined in: bear/blueprints/framing.ts:20
Nominal lumber sizes suitable for wall studs and plates.
Variables
FramedOpenings
const FramedOpenings: HostSlot<FramedOpening>;Defined in: bear/blueprints/framing.ts:17
FramingSupports
const FramingSupports: BearContext<{
base: BearElement;
top: BearElement;
}>;Defined in: bear/blueprints/framing.ts:53
Physical supports are identities, independent of nested names and wrapper scopes.
StudFrame
StudFrame: BearContext<StudFrame>;Defined in: bear/blueprints/framing.ts:32
WallLayers
WallLayers: BearContext<WallLayers>;Defined in: bear/blueprints/framing.ts:84
Functions
crossSectionPu()
function crossSectionPu(size): [number, number];Defined in: bear/blueprints/framing.ts:25
Actual cross-section dimensions for a nominal lumber size, in project units.
Parameters
| Parameter | Type |
|---|---|
size | WallStudSize |
Returns
[number, number]
openingLeft()
function openingLeft(
x,
width,
length
): number;Defined in: bear/blueprints/framing.ts:74
The inverse of openingX.
Parameters
| Parameter | Type |
|---|---|
x | number |
width | number |
length | number |
Returns
number
openingX()
function openingX(
left,
width,
length
): number;Defined in: bear/blueprints/framing.ts:69
An opening's position along its wall, from its offset from the wall's start.
Parameters
| Parameter | Type |
|---|---|
left | number |
width | number |
length | number |
Returns
number
studFieldHeight()
function studFieldHeight(frame, x): number;Defined in: bear/blueprints/framing.ts:63
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
| Parameter | Type |
|---|---|
frame | StudFrame |
x | number |
Returns
number