Skip to content

types

Type Aliases

ExpectArea2DExtra<Schemes>

type ExpectArea2DExtra<Schemes>:
| RenderSignal<"socket", object>
| RenderSignal<"connection", object>
| object
| object
| object;

Type Parameters

Schemes extends BaseSchemes

Defined in

tmp/graph-editor/src/lib/graph-editor/render/sockets-position.ts/types.ts:29


OnChange()

type OnChange: (data) => void;

Parameters

data: Position

Returns

void

Defined in

tmp/graph-editor/src/lib/graph-editor/render/sockets-position.ts/types.ts:5


RenderMeta

type RenderMeta: object;

Type declaration

filled?
optional filled: boolean;

Defined in

tmp/graph-editor/src/lib/graph-editor/render/sockets-position.ts/types.ts:24


RenderSignal<Type, Data>

type RenderSignal<Type, Data>: object | object;

Type Parameters

Type extends string

Data

Defined in

tmp/graph-editor/src/lib/graph-editor/render/sockets-position.ts/types.ts:25


SocketPositionWatcher<ChildScope>

type SocketPositionWatcher<ChildScope>: object;

Interface for socket position watcher.

Type Parameters

ChildScope

Type declaration

attach()

Attach the watcher to the area’s child scope.

Parameters

area: ChildScope

Returns

void

listen()

Listen to the socket position changes.

Parameters

nodeId: string

Node ID

side: Side

Side of the socket, ‘input’ or ‘output’

key: string

Socket key

onChange: OnChange

Callback that is called when the socket position changes

Returns

Function

Function that removes the listener

Returns

void

Defined in

tmp/graph-editor/src/lib/graph-editor/render/sockets-position.ts/types.ts:10