ConnectionSetup
Classes
ConnectionPlugin
Extends
Constructors
new ConnectionPlugin()
Parameters
• factory: NodeFactory
• area: AreaPlugin
<Schemes
, AreaExtra
>
Returns
Overrides
BaseConnectionPlugin<Schemes, AreaExtra>.constructor
Defined in
tmp/graph-editor/src/lib/graph-editor/setup/ConnectionSetup.ts:31
Properties
__scope
parents
produces
Inherited from
BaseConnectionPlugin.__scope
Defined in
tmp/graph-editor/node_modules/rete/_types/scope.d.ts:49
lastClickedSocket
Defined in
tmp/graph-editor/src/lib/graph-editor/setup/ConnectionSetup.ts:27
lastConn?
Last picked connection.
Defined in
tmp/graph-editor/src/lib/graph-editor/setup/ConnectionSetup.ts:30
lastPickedSockedData
Defined in
tmp/graph-editor/src/lib/graph-editor/setup/ConnectionSetup.ts:28
name
Inherited from
BaseConnectionPlugin.name
Defined in
tmp/graph-editor/node_modules/rete/_types/scope.d.ts:46
parent?
Inherited from
BaseConnectionPlugin.parent
Defined in
tmp/graph-editor/node_modules/rete/_types/scope.d.ts:48
picked
Defined in
tmp/graph-editor/src/lib/graph-editor/setup/ConnectionSetup.ts:26
presets
Inherited from
BaseConnectionPlugin.presets
Defined in
tmp/graph-editor/node_modules/rete-connection-plugin/_types/index.d.ts:42
signal
Inherited from
BaseConnectionPlugin.signal
Defined in
tmp/graph-editor/node_modules/rete/_types/scope.d.ts:47
Methods
addPipe()
Parameters
• middleware: Pipe
<AreaExtra
| Connection
| Requires
>
Returns
void
Inherited from
BaseConnectionPlugin.addPipe
Defined in
tmp/graph-editor/node_modules/rete/_types/scope.d.ts:54
addPreset()
Add preset to the plugin
Parameters
• preset: Preset
<Schemes
>
Preset to add
Returns
void
Inherited from
BaseConnectionPlugin.addPreset
Defined in
tmp/graph-editor/node_modules/rete-connection-plugin/_types/index.d.ts:53
drop()
Drop pseudo-connection if exists
Returns
void
Emits
connectiondrop
Inherited from
BaseConnectionPlugin.drop
Defined in
tmp/graph-editor/node_modules/rete-connection-plugin/_types/index.d.ts:60
emit()
Type Parameters
• C extends Connection
Parameters
• context: C
Returns
Promise
<undefined
| Extract
<object
, C
> | Extract
<object
, C
>>
Inherited from
BaseConnectionPlugin.emit
Defined in
tmp/graph-editor/node_modules/rete/_types/scope.d.ts:59
hasParent()
Returns
boolean
Inherited from
BaseConnectionPlugin.hasParent
Defined in
tmp/graph-editor/node_modules/rete/_types/scope.d.ts:60
parentScope()
parentScope()
Type Parameters
• T extends AreaExtra
| Requires
• P extends []
Returns
Scope
<T
, P
>
Inherited from
BaseConnectionPlugin.parentScope
Defined in
tmp/graph-editor/node_modules/rete/_types/scope.d.ts:61
parentScope(type)
Type Parameters
• T
Parameters
• type: Type
<T
>
Returns
T
Inherited from
BaseConnectionPlugin.parentScope
Defined in
tmp/graph-editor/node_modules/rete/_types/scope.d.ts:62
pick()
Handles pointer down and up events to control interactive connection creation.
Parameters
• event: PointerEvent
• type: EventType
Returns
Promise
<void
>
Overrides
BaseConnectionPlugin.pick
Defined in
tmp/graph-editor/src/lib/graph-editor/setup/ConnectionSetup.ts:91
setParent()
Parameters
• scope: Scope
<
| AreaExtra
| object
| object
| RenderSignal
<"socket"
, object
>
| object
, []>
Returns
void
Overrides
BaseConnectionPlugin.setParent
Defined in
tmp/graph-editor/src/lib/graph-editor/setup/ConnectionSetup.ts:37
update()
Returns
void
Inherited from
BaseConnectionPlugin.update
Defined in
tmp/graph-editor/node_modules/rete-connection-plugin/_types/index.d.ts:55
use()
Type Parameters
• S extends Scope
<any
, any
[]>
Parameters
• scope: NestedScope
<S
, [Connection
, AreaExtra
| Requires
]>
Returns
object
debug()
Type Parameters
• T extends []
Parameters
• _f
Returns
void
Inherited from
BaseConnectionPlugin.use
Defined in
tmp/graph-editor/node_modules/rete/_types/scope.d.ts:55
ConnectionSetup
Extends
Constructors
new ConnectionSetup()
Returns
Inherited from
Methods
setup()
Parameters
• editor: NodeEditor
• area: AreaPlugin
<Schemes
, AreaExtra
>
• factory: NodeFactory
Returns
void
Overrides
Defined in
tmp/graph-editor/src/lib/graph-editor/setup/ConnectionSetup.ts:164
Functions
setupConnections()
Parameters
• params: SetupParams
Returns
void
| Promise
<void
> | SetupParams
| Promise
<SetupParams
>
Defined in
tmp/graph-editor/src/lib/graph-editor/setup/ConnectionSetup.ts:169