Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Behavior

Hierarchy

Implements

Index

Constructors

constructor

Events

inlineVariableChanged

inlineVariableChanged: AsyncEvent<string> = new AsyncEvent<string>()

pinChanged

pinChanged: VoidAsyncEvent = new VoidAsyncEvent()

Properties

deleted

deleted: AsyncEvent<string> = new AsyncEvent<string>()

id

id: string

inputsPosition

inputsPosition: Vector2 = new Vector2()

isPersistent

isPersistent: boolean = false

name

name: string

outputsPosition

outputsPosition: Vector2 = new Vector2(150, 150)

Optional templatePath

templatePath: undefined | string

Accessors

activeOperators

connections

  • get connections(): Connection[]

customPins

inlineVariables

  • get inlineVariables(): ArrayProperty<InlineVariable>

operators

ownerComponent

pins

version

  • get version(): number

Methods

activateOperator

  • activateOperator(operator: Operator): void

addConnection

  • addConnection(connection: Connection): void

addNode

addVariable

  • addVariable(variable: InlineVariable): void

clearOrphanVariables

  • clearOrphanVariables(): InlineVariable[]

copy

  • copy(preserveId?: undefined | false | true): Behavior

deserialize

destroy

  • destroy(): void

fetchInputData

  • fetchInputData(operatorId: string): void

findOperator

findPin

  • findPin(operatorId: string, pinId: string): undefined | BasePin

findVariable

  • findVariable(id: string): undefined | InlineVariable

isA

  • isA<T>(type: object): boolean

isLoaded

  • isLoaded(): boolean

onCollision

onUIEvent

  • onUIEvent(handler: function): boolean

removeConnection

  • removeConnection(connection: Connection): InlineVariable[]

removeNode

removeVariable

  • removeVariable(variable: InlineVariable): void

save

  • save(folderPath?: undefined | string): void

sendSignal

  • sendSignal(operatorId: string, pinId: string): void

serialize

setProperty

  • setProperty(name: string, value: any): void

setState

start

  • start(): void

update

  • update(): void

updateInlineVariable

  • updateInlineVariable(id: string, other: InlineVariable): void

upgrade

Static isConnectionValid

  • isConnectionValid(behavior: Behavior, src: PinReference, dest: PinReference): boolean