Skip to content

DynamicTypeComponent

Classes

DynamicTypeComponent<Inputs, Outputs>

Extends

Type Parameters

Inputs extends Record<string, Socket> = Record<string, Socket>

Outputs extends Record<string, Socket> = Record<string, Socket>

Constructors

new DynamicTypeComponent()
new DynamicTypeComponent<Inputs, Outputs>(params): DynamicTypeComponent<Inputs, Outputs>
Parameters

params: DynamicTypeParams<Inputs, Outputs>

Returns

DynamicTypeComponent<Inputs, Outputs>

Overrides

NodeComponent.constructor

Defined in

tmp/graph-editor/src/lib/graph-editor/nodes/components/DynamicTypeComponent.svelte.ts:33

Properties

cleanup()?
optional cleanup: () => void;
Returns

void

Inherited from

NodeComponent.cleanup

Defined in

tmp/graph-editor/src/lib/graph-editor/components/BaseComponent.ts:13

numConnections
numConnections: number = 0;
Defined in

tmp/graph-editor/src/lib/graph-editor/nodes/components/DynamicTypeComponent.svelte.ts:20

params
params: DynamicTypeParams<Inputs, Outputs>;
Defined in

tmp/graph-editor/src/lib/graph-editor/nodes/components/DynamicTypeComponent.svelte.ts:32

Accessors

dynamicTypeInputs
get dynamicTypeInputs(): "*" | keyof Inputs[]
Returns

"*" | keyof Inputs[]

Defined in

tmp/graph-editor/src/lib/graph-editor/nodes/components/DynamicTypeComponent.svelte.ts:26

dynamicTypeOutputs
get dynamicTypeOutputs(): "*" | keyof Outputs[]
Returns

"*" | keyof Outputs[]

Defined in

tmp/graph-editor/src/lib/graph-editor/nodes/components/DynamicTypeComponent.svelte.ts:29

state
get state(): object
Returns

object

type
type: SocketType;
Defined in

tmp/graph-editor/src/lib/graph-editor/nodes/components/DynamicTypeComponent.svelte.ts:22

Methods

changeType()
changeType(type): void
Parameters

type: SocketType

Returns

void

Defined in

tmp/graph-editor/src/lib/graph-editor/nodes/components/DynamicTypeComponent.svelte.ts:99

Type Aliases

DynamicTypeParams<Inputs, Outputs>

type DynamicTypeParams<Inputs, Outputs>: NodeComponentParams<Inputs, Outputs> & object;

Type declaration

initial?
optional initial: SocketType;
inputs?
optional inputs: keyof Inputs[];
outputs?
optional outputs: keyof Outputs[];

Type Parameters

Inputs extends R = R

Outputs extends Record<string, Socket> = Record<string, Socket>

Defined in

tmp/graph-editor/src/lib/graph-editor/nodes/components/DynamicTypeComponent.svelte.ts:8