Skip to Content
Bear documentation
API referenceBlueprints

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

PropertyType
endRef
startRef

StudFrame

Defined in: bear/blueprints/framing.ts:32

The framing's facts, in its own frame (x along the wall, centered).

Properties

PropertyTypeDescription
heightnumberWall height at the start, in project units; 0 for a wall line.
lengthnumberWall length in project units: the wall line, which openings and pitch measure from.
onCenternumberStud spacing in project units.
pitchnumberRise per unit run of the top plate (0 when flat).
plateTopnumberTop 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.
studSizeWallStudSize-

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

PropertyType
elementsreadonly BearElement<object>[]
yMaxnumber
yMinnumber

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

ParameterType
sizeWallStudSize

Returns

[number, number]


openingLeft()

function openingLeft(
   x, 
   width, 
   length
): number;

Defined in: bear/blueprints/framing.ts:74

The inverse of openingX.

Parameters

ParameterType
xnumber
widthnumber
lengthnumber

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

ParameterType
leftnumber
widthnumber
lengthnumber

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

ParameterType
frameStudFrame
xnumber

Returns

number

On this page