Skip to Content
Bear documentation
API referenceBlueprintsConnectors

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

PropertyType
capacity?object
capacity.download?number
capacity.f1?number
capacity.f2?number
capacity.uplift?number
fastenersRecord<string, FastenerSpec>

FastenerSpec

Defined in: bear/blueprints/connectors/schedules.ts:11

One row of a connector schedule: the fasteners for one role.

Properties

PropertyType
countnumber
productstring

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

ParameterType
productstring
countnumber

Returns

FastenerSpec


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

Type Parameter
R extends string

Parameters

ParameterType
rolesRecord<R, string>
schedulesRecord<string, ConnectorSchedule>
defaultSchedulestring | undefined

Returns

Record<R, ConnectRole>

On this page