Skip to Content
Bear documentation
API referenceBlueprints

JoistFraming

Import from bear/blueprints/JoistFraming.

Type Aliases

JoistFramingProps

type JoistFramingProps = JoistFramingBase & (
  | {
  footprint: [number, number][];
  from?: never;
  to?: never;
  transform?: TransformMatrix;
}
  | {
  footprint?: never;
  from: JoistSupport;
  to: JoistSupport;
  transform?: never;
});

Defined in: bear/blueprints/JoistFraming.tsx:72


JoistSupport

type JoistSupport = 
  | BearElement
  | Ref;

Defined in: bear/blueprints/JoistFraming.tsx:51

A support a run of joists rests on: a ref names the plane the joist ends land on (getRef(ledger, "back")); an element means its centerline (a Beam or Wall).

Variables

DEFAULT_JOIST

const DEFAULT_JOIST: Factory<Partial<IJoistProps>, IJoistProps>;

Defined in: bear/blueprints/JoistFraming.tsx:103

The stock JoistFraming uses when no factory is given.


DEFAULT_RIMBOARD

const DEFAULT_RIMBOARD: Factory<Partial<LSLProps>, LSLProps>;

Defined in: bear/blueprints/JoistFraming.tsx:104

Functions

JoistFraming()

function JoistFraming(props): BearElement;

Defined in: bear/blueprints/JoistFraming.tsx:451

JoistFraming — floor/roof joist framing, two ways. A footprint gets rims on every edge and joists along x between them; from/to gets a run of joists between two supports. Either way the joists are solved members resting on their supports (or on their hangers' seats), and the assembly publishes top/bottom surfaces for downstream layers.

Joists stand on edge (depth along Z) from z = 0, so the framing's top sits at the joists' depth: read off the stock before anything renders.

Parameters

ParameterType
propsJoistFramingProps

Returns

BearElement


joistFramingDepth()

function joistFramingDepth(joistFactory?): number;

Defined in: bear/blueprints/JoistFraming.tsx:110

The framing's depth: the joists'. A pure function of the stock, so a floor can place itself before rendering the framing.

Parameters

ParameterTypeDefault value
joistFactory?FactoryDEFAULT_JOIST

Returns

number

On this page