API referenceBlueprints
Opening
Import from bear/blueprints/Opening.
Interfaces
OpeningProps
Defined in: bear/blueprints/Opening.tsx:41
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 | Rough opening height. |
left? | 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 (<Dim to="D101.centerline" …/>). |
sill? | Measurement | Sill height above the base plate. 0 (the default) frames a door. |
width | Measurement | Rough opening width. |
OpeningSpec
Defined in: bear/blueprints/Opening.tsx:30
Pure data describing an opening in a wall, for the openings prop.
Properties
| Property | Type | Description |
|---|---|---|
bottom | Measurement | Elevation above base plate (0 = door, >0 = window). |
height | Measurement | Rough opening height. |
left | Measurement | Distance from wall start to opening left edge. |
width | Measurement | Rough 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
| Parameter | Type |
|---|---|
props | OpeningProps |