schedules
Import from bear/blueprints/connectors/schedules.
Interfaces
ConnectorSchedule
Defined in: bear/blueprints/connectors/schedules.ts:25
One catalog option for a connector part: per-role fastener rows plus allowable loads (lb) per direction, as the table publishes them.
Properties
| Property | Type |
|---|---|
capacity? | object |
capacity.download? | number |
capacity.f1? | number |
capacity.f2? | number |
capacity.uplift? | number |
fasteners | Record<string, FastenerSpec> |
FastenerSpec
Defined in: bear/blueprints/connectors/schedules.ts:11
One row of a connector schedule: the fasteners for one role.
Properties
Functions
nails()
function nails(product, count): FastenerSpec;Defined in: bear/blueprints/connectors/schedules.ts:17
Shorthand for a schedule row: nails("10dx1.5", 4).
Parameters
| Parameter | Type |
|---|---|
product | string |
count | number |
Returns
scheduledRoles()
function scheduledRoles<R>(
roles,
schedules,
defaultSchedule
): Record<R, ConnectRole>;Defined in: bear/blueprints/connectors/schedules.ts:40
Wire connector roles to a schedule table: each role lowers through its
relation spelling, and the chosen option's row (the element's
schedule prop, else the default) rides that role's edge.
An empty table wires the roles plainly, with no row on the edge. A catalog part whose loads nobody has transcribed is in exactly that state, and its topology is no less real for it: demanding a row it cannot have would make every such part report a missing schedule.
Type Parameters
Parameters
| Parameter | Type |
|---|---|
roles | Record<R, string> |
schedules | Record<string, ConnectorSchedule> |
defaultSchedule | string | undefined |
Returns
Record<R, ConnectRole>