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
| Property | Type | Description | Inherited from |
|---|---|---|---|
beam | object | - | - |
beam.width | number | - | - |
demand? | ConnectorLoadDemand | Allowable loads the choice must meet, in lb. | - |
finish? | "G90" | "grayPaint" | "uncoated" | "ZMAX" | "HDG" | "stainless" | - | ConnectorOptions.finish |
post | object | - | - |
post.width | number | - | - |
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
| Parameter | Type |
|---|---|
product | string |
options? | ConnectorOptions<"G90" | "grayPaint" | "uncoated" | "ZMAX" | "HDG" | "stainless"> |
Returns
Properties
| Property | Modifier | Type | Description |
|---|---|---|---|
id | readonly | string | Stable id, e.g. "simpson". |
name | readonly | string | Display 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
| Parameter | Type |
|---|---|
product | string |
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
| Parameter | Type |
|---|---|
product | string |
options? | ConnectorOptions<"G90" | "grayPaint" | "uncoated" | "ZMAX" | "HDG" | "stainless"> |
Returns
ConnectorRecord | undefined
search()
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
| Parameter | Type |
|---|---|
filter | Partial<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
| Parameter | Type |
|---|---|
query | HangerSelectionQuery |
Returns
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
| Parameter | Type |
|---|---|
part | JoistHangerPart |
members | HangerMembers |
Returns
ConnectorLoadDemand
Defined in: bear/catalog/types.ts:202
Allowable load demand, in lb.
Properties
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 Parameter | Default type |
|---|---|
Finish extends ConnectorFinish | ConnectorFinish |
Properties
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
| Property | Type | Description |
|---|---|---|
bearing? | number | Catalog B: seat depth (how far the carried member bears in). |
defaultSchedule? | string | Which of schedules applies when an element names none. |
diameter? | number | A bolt's diameter. |
embedment? | number | Catalog le: how far a cast-in part reaches below the top of the concrete. |
family | ConnectorFamily | - |
finish | "G90" | "grayPaint" | "uncoated" | "ZMAX" | "HDG" | "stainless" | Coating or material. |
gauge? | number | Sheet steel gauge. |
height? | number | Catalog H: overall height. |
length? | number | Catalog L: length, for angles, bases and anchor bolts. |
loadTables | readonly string[] | Catalog pages holding this series' allowable-load tables. |
madeToOrder? | MadeToOrder | The 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? | string | Nominal member the model is sized for, as published ("2x8", "4x4"). |
model | string | Model number as ordered, finish included, e.g. "LUS28Z". |
packaging? | number | Units per carton. |
postWidth? | number | Catalog W2: a cap's column-strap width, where the table prints one. |
product | string | The 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. |
series | string | The series the model belongs to, e.g. "LUS". |
solid? | ConnectorSolid | The manufacturer's solid, when they publish one for this model. |
url | string | Canonical product page. |
width? | number | Catalog 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
| Property | Type | Description |
|---|---|---|
asset | string | Shape name, e.g. "LUS28". |
bounds | Box | The solid's box in the part's local frame, project units. |
catalog | string | The 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. |
hash | string | The 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
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
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
| Property | Type | Description | Inherited from |
|---|---|---|---|
carried | object | The member the hanger seats. | HangerMembers.carried |
carried.depth | number | - | - |
carried.width | number | - | - |
carrying | object | The member the hanger fastens to (header, ledger, rim, beam). | HangerMembers.carrying |
carrying.depth | number | - | - |
carrying.width? | number | - | - |
demand? | ConnectorLoadDemand | Allowable 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
| Property | Type | Description | Inherited from |
|---|---|---|---|
finish? | "G90" | "grayPaint" | "uncoated" | "ZMAX" | "HDG" | "stainless" | - | ConnectorOptions.finish |
post | object | The post face it lies on, in project units: width across it and thickness behind it, which the fasteners must not drive through. | - |
post.thickness | number | - | - |
post.width | number | - | - |
uplift | number | Allowable 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
| Property | Type | Description |
|---|---|---|
height | object | A girder hanger's H, made to the girder's depth. |
height.max | number | - |
height.min | number | - |
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.