Skip to Content
Bear documentation

types

Import from bear/catalog/types.

Interfaces

ColumnCapSelectionQuery

Defined in: bear/catalog/types.ts:219

The widths a column cap's straps close on, in project units.

Extends

Properties

PropertyTypeDescriptionInherited from
beamobject--
beam.widthnumber--
demand?ConnectorLoadDemandAllowable loads the choice must meet, in lb.-
finish?"G90" | "grayPaint" | "uncoated" | "ZMAX" | "HDG" | "stainless"-ConnectorOptions.finish
postobject--
post.widthnumber--

ConnectorCatalog()

Defined in: bear/catalog/types.ts:255

A manufacturer's connectors, offline.

Call it to get a part: simpson("LUS28") is whichever archetype that model is, and a catalog that knows its own model numbers says which (see SimpsonCatalog). The named members are for selection and for agents exploring the catalog from the REPL.

ConnectorCatalog(product, options?): ConnectorPart;

Defined in: bear/catalog/types.ts:265

The part for a product in a finish; throws when the catalog has no such product, or does not sell it in that finish.

Parameters

ParameterType
productstring
options?ConnectorOptions<"G90" | "grayPaint" | "uncoated" | "ZMAX" | "HDG" | "stainless">

Returns

ConnectorPart

Properties

PropertyModifierTypeDescription
idreadonlystringStable id, e.g. "simpson".
namereadonlystringDisplay name, e.g. "Simpson Strong-Tie".

Methods

get()
get(product, options?): ConnectorPart | undefined;

Defined in: bear/catalog/types.ts:268

The part for a product in a finish, or undefined when there is none.

Parameters
ParameterType
productstring
options?ConnectorOptions<"G90" | "grayPaint" | "uncoated" | "ZMAX" | "HDG" | "stainless">
Returns

ConnectorPart | undefined

info()
info(product, options?): ConnectorRecord | undefined;

Defined in: bear/catalog/types.ts:288

The published record for a product in a finish.

Parameters
ParameterType
productstring
options?ConnectorOptions<"G90" | "grayPaint" | "uncoated" | "ZMAX" | "HDG" | "stainless">
Returns

ConnectorRecord | undefined

search(filter): readonly ConnectorRecord[];

Defined in: bear/catalog/types.ts:285

Every record matching the given fields, for browsing the catalog: search({ product: "LUS28" }) is every finish it is sold in.

Parameters
ParameterType
filterPartial<ConnectorRecord>
Returns

readonly ConnectorRecord[]

selectHanger()
selectHanger(query): JoistHangerPart;

Defined in: bear/catalog/types.ts:271

The best-fitting hanger for the members and load; throws when none fits.

Parameters
ParameterType
queryHangerSelectionQuery
Returns

JoistHangerPart

validateFit()
validateFit(part, members): FitResult;

Defined in: bear/catalog/types.ts:279

Whether a hanger suits the two members it would connect, by their stated sections. A placed hanger checks itself against its members; this is the same rules, asked before there are any. Hanger-shaped because sizing is: an angle is chosen by the corner, which it checks.

Parameters
ParameterType
partJoistHangerPart
membersHangerMembers
Returns

FitResult


ConnectorLoadDemand

Defined in: bear/catalog/types.ts:202

Allowable load demand, in lb.

Properties

PropertyType
download?number
uplift?number

ConnectorOptions

Defined in: bear/catalog/types.ts:119

What a lookup takes besides the product. The finish picks which of the product's model numbers is ordered; omitted, it is the product itself.

Extended by

Type Parameters

Type ParameterDefault type
Finish extends ConnectorFinishConnectorFinish

Properties

PropertyType
finish?Finish

ConnectorRecord

Defined in: bear/catalog/types.ts:134

One orderable model, as the manufacturer's table publishes it. Lengths are project units; undefined means the table has no such column for this family, never "zero".

A product sold in several finishes is several records, one per model number, because that is where they differ: a stainless tie can carry its own load table. They share product, and their dimensions.

Properties

PropertyTypeDescription
bearing?numberCatalog B: seat depth (how far the carried member bears in).
defaultSchedule?stringWhich of schedules applies when an element names none.
diameter?numberA bolt's diameter.
embedment?numberCatalog le: how far a cast-in part reaches below the top of the concrete.
familyConnectorFamily-
finish"G90" | "grayPaint" | "uncoated" | "ZMAX" | "HDG" | "stainless"Coating or material.
gauge?numberSheet steel gauge.
height?numberCatalog H: overall height.
length?numberCatalog L: length, for angles, bases and anchor bolts.
loadTablesreadonly string[]Catalog pages holding this series' allowable-load tables.
madeToOrder?MadeToOrderThe dimensions the buyer specifies when ordering, each with the range it is made in. A dimension here has no published value: a girder hanger has no height until one is ordered with simpson.order.
memberSize?stringNominal member the model is sized for, as published ("2x8", "4x4").
modelstringModel number as ordered, finish included, e.g. "LUS28Z".
packaging?numberUnits per carton.
postWidth?numberCatalog W2: a cap's column-strap width, where the table prints one.
productstringThe product a designer specs, e.g. "LUS28": the model number of its plainest finish, which is the one ordered when no finish is named.
schedules?Readonly<Record<string, ConnectorSchedule>>Fastener options and their allowable loads, by schedule name. Transcribed from loadTables; absent until someone has done that for this model.
seriesstringThe series the model belongs to, e.g. "LUS".
solid?ConnectorSolidThe manufacturer's solid, when they publish one for this model.
urlstringCanonical product page.
width?numberCatalog W: seat/base width.

ConnectorSolid

Defined in: bear/catalog/types.ts:66

The manufacturer's own solid for a model, where they publish one.

asset names the shape rather than the model, because one piece of steel is stamped as several model numbers (a finish is a coating, not a shape). bounds is that shape's box in the part's local frame, so a part knows its size without waiting on the mesh: extents is read during collect() and the mesh arrives later, when geometry is built.

Both are in the frame the part's archetype fixes. For a hanger that is checked, model by model, when the catalog is generated.

Properties

PropertyTypeDescription
assetstringShape name, e.g. "LUS28".
boundsBoxThe solid's box in the part's local frame, project units.
catalogstringThe catalog that published it, by its ConnectorCatalog.id. Two manufacturers can stamp the same model number, and nothing that loads a mesh should have to know one vendor's name to find another's.
hashstringThe mesh's content hash, which is half of where it is published. The pair IS the version record, the way a mount's uri is: a mesh that changes is published beside the old one rather than over it, so a record can never point at bytes that were re-cut after its bounds were measured. There is nothing to invalidate and nothing to bump.

FitResult

Defined in: bear/catalog/types.ts:241

Whether a connector physically suits the members, and why not.

Properties

PropertyTypeDescription
okboolean-
reason?stringEvery violated rule, joined; absent when ok.

HangerMembers

Defined in: bear/catalog/types.ts:194

The two members a hanger joins, by the sections their author states. A box does not say which of its sides is a member's depth, so nothing here is measured off one.

Extended by

Properties

PropertyTypeDescription
carriedobjectThe member the hanger seats.
carried.depthnumber-
carried.widthnumber-
carryingobjectThe member the hanger fastens to (header, ledger, rim, beam).
carrying.depthnumber-
carrying.width?number-

HangerSelectionQuery

Defined in: bear/catalog/types.ts:212

What a model needs a hanger for: the two members and, optionally, the load. finish picks among the products sold in it; omitted, each product is its plainest finish.

Extends

Properties

PropertyTypeDescriptionInherited from
carriedobjectThe member the hanger seats.HangerMembers.carried
carried.depthnumber--
carried.widthnumber--
carryingobjectThe member the hanger fastens to (header, ledger, rim, beam).HangerMembers.carrying
carrying.depthnumber--
carrying.width?number--
demand?ConnectorLoadDemandAllowable loads the choice must meet, in lb.-
finish?"G90" | "grayPaint" | "uncoated" | "ZMAX" | "HDG" | "stainless"-ConnectorOptions.finish
type"faceMount" | "topFlange"--

HoldownSelectionQuery

Defined in: bear/catalog/types.ts:230

What a holdown is chosen by: the load first, since every holdown fits some post, and then the face it has to fit on.

Extends

Properties

PropertyTypeDescriptionInherited from
finish?"G90" | "grayPaint" | "uncoated" | "ZMAX" | "HDG" | "stainless"-ConnectorOptions.finish
postobjectThe post face it lies on, in project units: width across it and thickness behind it, which the fasteners must not drive through.-
post.thicknessnumber--
post.widthnumber--
upliftnumberAllowable uplift in lb, which the model's default fastening must carry.-

MadeToOrder

Defined in: bear/catalog/types.ts:93

What a made-to-order model leaves to the order, by dimension. Stock is the absence of it; each key is one more thing a purchase order states.

Properties

PropertyTypeDescription
heightobjectA girder hanger's H, made to the girder's depth.
height.maxnumber-
height.minnumber-

Type Aliases

ConnectorFamily

type ConnectorFamily = 
  | "faceMountHanger"
  | "topFlangeHanger"
  | "angle"
  | "postBase"
  | "columnCap"
  | "endColumnCap"
  | "holdown"
  | "tie"
  | "anchorBolt"
  | "mudsillAnchor";

Defined in: bear/catalog/types.ts:99

The product families a catalog partitions its records into.


ConnectorPart

type ConnectorPart = 
  | JoistHangerPart
  | FramingAnglePart
  | PostBasePart
  | ColumnCapPart
  | AnchorBoltPart
  | MudsillAnchorPart
  | HoldownPart;

Defined in: bear/catalog/types.ts:45

What a catalog lookup returns: one member per archetype in blueprints/connectors. A family with no archetype is data, not a part, and a lookup for one says so.

On this page