Skip to Content
Bear documentation
API referenceCatalogDoors

prehung

Import from bear/catalog/doors/prehung.

Interfaces

Swing

Defined in: bear/catalog/doors/prehung.tsx:40

Where a door's hinges are (the opening's roLeft or roRight jamb) and the side of its wall it swings into.

Properties

PropertyType
hinge"left" | "right"
into"exterior" | "interior"

UnitSpec

Defined in: bear/catalog/doors/prehung.tsx:54

A unit's sizes, all in project units.

Properties

PropertyTypeDescription
jambobjectJamb thickness (face to back) and depth (through the wall).
jamb.depthnumber-
jamb.thicknessnumber-
leafobject-
leaf.heightnumber-
leaf.thicknessnumber-
leaf.widthnumber-
roughobjectThe rough opening the unit is made for.
rough.heightnumber-
rough.widthnumber-
sillnumberAn exterior unit's sill height; 0 for none.
undercutnumberThe leaf's clearance above the floor or sill.
unitobjectThe unit's outside, frame to frame, and from the bottom of its sill (or its jambs) to the top of its head jamb.
unit.heightnumber-
unit.widthnumber-

Type Aliases

Handing

type Handing = "LH" | "RH" | "LHR" | "RHR";

Defined in: bear/catalog/doors/prehung.tsx:37

Functions

prehung()

function prehung<P>(
   Unit, 
   props, 
   spec, 
   leaf
): BearElement;

Defined in: bear/catalog/doors/prehung.tsx:110

The unit, laid in the Opening that hosts it. Unit is the product's own part, so a schedule and a plan find the door by it.

Type Parameters

Type Parameter
P extends object

Parameters

ParameterType
UnitPartDef<P>
propsP
specUnitSpec
leaf{ hatch: HatchPattern; material: MaterialDescriptor; text: string; }
leaf.hatchHatchPattern
leaf.materialMaterialDescriptor
leaf.textstring

Returns

BearElement


swingOf()

function swingOf(handing): Swing;

Defined in: bear/catalog/doors/prehung.tsx:46

Seen from the exterior, the opening's roLeft jamb is on the left.

Parameters

ParameterType
handingHanding

Returns

Swing

On this page