Skip to Content
Bear documentation
API referenceBlueprints

Opening

Import from bear/blueprints/Opening.

Interfaces

OpeningProps

Defined in: bear/blueprints/Opening.tsx:41

Properties

PropertyTypeDescription
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?unknownWhat fills the rough opening (a window, a door): it finds the opening with host(Opening).
heightMeasurementRough opening height.
left?MeasurementDistance from the wall's start to the opening's left edge. Author it and you place the opening; omit it and dims do.
namestringThe opening's mark (D101, W101): its name in the tree and the name dims reach it by (<Dim to="D101.centerline" …/>).
sill?MeasurementSill height above the base plate. 0 (the default) frames a door.
widthMeasurementRough opening width.

OpeningSpec

Defined in: bear/blueprints/Opening.tsx:30

Pure data describing an opening in a wall, for the openings prop.

Properties

PropertyTypeDescription
bottomMeasurementElevation above base plate (0 = door, >0 = window).
heightMeasurementRough opening height.
leftMeasurementDistance from wall start to opening left edge.
widthMeasurementRough opening width.

Functions

Opening()

function Opening(props): BearElement;

Defined in: bear/blueprints/Opening.tsx:401

Opening: a door or window in a wall, as a child element.

<Wall name="south" along="@1" from="@A" to="@B" exterior>
  <Opening name="D101" width="3ft" height="6ft8in" />
</Wall>
<Dim from="south.start" to="D101.centerline" value="4ft" />

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

ParameterType
propsOpeningProps

Returns

BearElement

On this page