Skip to content

ElementBlueprint

Defined in: blueprint/ref-blueprint.ts:54

Blueprint for an element. Returned by vivarium().element(). Use to() to define rules on this element.

new ElementBlueprint(context, automaton, element, index): ElementBlueprint

Defined in: blueprint/ref-blueprint.ts:59

BlueprintContext

Automaton

Element

number

ElementBlueprint

RefBlueprint.constructor

id: string

Defined in: blueprint/ref-blueprint.ts:56

RefBlueprint.id


index: number

Defined in: blueprint/ref-blueprint.ts:57


name: string

Defined in: blueprint/ref-blueprint.ts:13

RefBlueprint.name


type: "element"

Defined in: blueprint/ref-blueprint.ts:55

RefBlueprint.type

to(elementBlueprintOrNeighbor): RuleBlueprint

Defined in: blueprint/ref-blueprint.ts:33

Creates a new rule that transitions cells of this element (or kind) to another element or neighbor reference.

The target element, or a neighbor position reference (e.g. vi.neighbor.TOP).

AnyNeighbor | ElementBlueprint

RuleBlueprint

A RuleBlueprint for chaining conditions.

RefBlueprint.to