ElementBlueprint
Defined in: blueprint/ref-blueprint.ts:54
Blueprint for an element. Returned by vivarium().element(). Use to() to define rules on this element.
Extends
Section titled “Extends”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new ElementBlueprint(
context,automaton,element,index):ElementBlueprint
Defined in: blueprint/ref-blueprint.ts:59
Parameters
Section titled “Parameters”context
Section titled “context”BlueprintContext
automaton
Section titled “automaton”Automaton
element
Section titled “element”Element
number
Returns
Section titled “Returns”ElementBlueprint
Overrides
Section titled “Overrides”Properties
Section titled “Properties”id:
string
Defined in: blueprint/ref-blueprint.ts:56
Overrides
Section titled “Overrides”index:
number
Defined in: blueprint/ref-blueprint.ts:57
name:
string
Defined in: blueprint/ref-blueprint.ts:13
Inherited from
Section titled “Inherited from”type:
"element"
Defined in: blueprint/ref-blueprint.ts:55
Overrides
Section titled “Overrides”Methods
Section titled “Methods”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.
Parameters
Section titled “Parameters”elementBlueprintOrNeighbor
Section titled “elementBlueprintOrNeighbor”The target element, or a neighbor position reference (e.g. vi.neighbor.TOP).
AnyNeighbor | ElementBlueprint
Returns
Section titled “Returns”A RuleBlueprint for chaining conditions.