Skip to content

typed-sockets

Classes

TypedSocketsPlugin<Schemes>

Extends

  • Scope<never, [Root<Schemes>]>

Type Parameters

Schemes extends BaseSchemes

Constructors

new TypedSocketsPlugin()
new TypedSocketsPlugin<Schemes>(): TypedSocketsPlugin<Schemes>
Returns

TypedSocketsPlugin<Schemes>

Overrides

Scope<never, [Root<Schemes>]>.constructor

Defined in

tmp/graph-editor/src/lib/graph-editor/plugins/typed-sockets.ts:86

Properties

__scope
__scope: object;
parents
parents: [Root<Schemes>];
produces
produces: never;
Inherited from

Scope.__scope

Defined in

tmp/graph-editor/node_modules/rete/_types/scope.d.ts:49

lastConnectionRemove
lastConnectionRemove: null | Connection<Node<Record<string, Socket<SocketType, "scalar" | "array">>, object, object, Record<string, unknown>, Record<string, unknown>>, Node<Record<string, Socket<SocketType, "scalar" | "array">>, object, object, Record<string, unknown>, Record<string, unknown>>> = null;
Defined in

tmp/graph-editor/src/lib/graph-editor/plugins/typed-sockets.ts:84

name
name: string;
Inherited from

Scope.name

Defined in

tmp/graph-editor/node_modules/rete/_types/scope.d.ts:46

parent?
optional parent: any;
Inherited from

Scope.parent

Defined in

tmp/graph-editor/node_modules/rete/_types/scope.d.ts:48

signal
signal: Signal<any>;
Inherited from

Scope.signal

Defined in

tmp/graph-editor/node_modules/rete/_types/scope.d.ts:47

Methods

addPipe()
addPipe(middleware): void
Parameters

middleware: Pipe<Root<Schemes>>

Returns

void

Inherited from

Scope.addPipe

Defined in

tmp/graph-editor/node_modules/rete/_types/scope.d.ts:54

emit()
emit<C>(context): Promise<undefined>
Type Parameters

C extends never

Parameters

context: C

Returns

Promise<undefined>

Inherited from

Scope.emit

Defined in

tmp/graph-editor/node_modules/rete/_types/scope.d.ts:59

getInputSocket()
getInputSocket(nodeId, socketName): Socket<SocketType, "scalar" | "array">
Parameters

nodeId: string

socketName: string | number

Returns

Socket<SocketType, "scalar" | "array">

Defined in

tmp/graph-editor/src/lib/graph-editor/plugins/typed-sockets.ts:153

getOutputSocket()
getOutputSocket(nodeId, socketName): Socket<SocketType, "scalar" | "array">
Parameters

nodeId: string

socketName: string | number

Returns

Socket<SocketType, "scalar" | "array">

Defined in

tmp/graph-editor/src/lib/graph-editor/plugins/typed-sockets.ts:157

hasParent()
hasParent(): boolean
Returns

boolean

Inherited from

Scope.hasParent

Defined in

tmp/graph-editor/node_modules/rete/_types/scope.d.ts:60

parentScope()
parentScope()
parentScope<T, P>(): Scope<T, P>
Type Parameters

T extends Root<Schemes>

P extends []

Returns

Scope<T, P>

Inherited from

Scope.parentScope

Defined in

tmp/graph-editor/node_modules/rete/_types/scope.d.ts:61

parentScope(type)
parentScope<T>(type): T
Type Parameters

T

Parameters

type: Type<T>

Returns

T

Inherited from

Scope.parentScope

Defined in

tmp/graph-editor/node_modules/rete/_types/scope.d.ts:62

setParent()
setParent(scope): void
Parameters

scope: Scope<Root<Schemes>, []>

Returns

void

Overrides

Scope.setParent

Defined in

tmp/graph-editor/src/lib/graph-editor/plugins/typed-sockets.ts:90

use()
use<S>(scope): object
Type Parameters

S extends Scope<any, any[]>

Parameters

scope: NestedScope<S, [never, Root<Schemes>]>

Returns

object

debug()
Type Parameters

T extends []

Parameters

_f

Returns

void

Inherited from

Scope.use

Defined in

tmp/graph-editor/node_modules/rete/_types/scope.d.ts:55

Type Aliases

BaseSocketType

type BaseSocketType: typeof baseSocketTypes[number];

Defined in

tmp/graph-editor/src/lib/graph-editor/plugins/typed-sockets.ts:19


DataType

type DataType: Exclude<SocketType, "exec">;

Defined in

tmp/graph-editor/src/lib/graph-editor/plugins/typed-sockets.ts:38


ExportedSocketType

type ExportedSocketType: BaseSocketType | "xmlAttr" | "xmlElement";

Defined in

tmp/graph-editor/src/lib/graph-editor/plugins/typed-sockets.ts:39


SocketType

type SocketType: BaseSocketType | "groupNameRef" | XMLAttrType | XMLElementType;

Defined in

tmp/graph-editor/src/lib/graph-editor/plugins/typed-sockets.ts:21


TypeInfo

type TypeInfo: object;

Type declaration

datastructure
datastructure: SocketDatastructure;
type
type: SocketType;

Defined in

tmp/graph-editor/src/lib/graph-editor/plugins/typed-sockets.ts:46


XMLAttrType

type XMLAttrType: `xmlAttr:${string}`;

Defined in

tmp/graph-editor/src/lib/graph-editor/plugins/typed-sockets.ts:6


XMLElementType

type XMLElementType: `xmlElement:${string}`;

Defined in

tmp/graph-editor/src/lib/graph-editor/plugins/typed-sockets.ts:7

Functions

areTypesCompatible()

function areTypesCompatible(outType, inType): boolean

Parameters

outType: TypeInfo

inType: TypeInfo

Returns

boolean

Defined in

tmp/graph-editor/src/lib/graph-editor/plugins/typed-sockets.ts:50


isConnectionInvalid()

function isConnectionInvalid(outputSocket, inputSocket): boolean

Parameters

outputSocket: Socket<SocketType, "scalar" | "array">

inputSocket: Socket<SocketType, "scalar" | "array">

Returns

boolean

Defined in

tmp/graph-editor/src/lib/graph-editor/plugins/typed-sockets.ts:79


socketTypeExport()

function socketTypeExport(t): ExportedSocketType

Parameters

t: SocketType

Returns

ExportedSocketType

Defined in

tmp/graph-editor/src/lib/graph-editor/plugins/typed-sockets.ts:40