Aller au contenu

storage

Ce contenu n’est pas encore disponible dans votre langue.

Classes

SocketsPositionsStorage

Constructors

new SocketsPositionsStorage()
new SocketsPositionsStorage(): SocketsPositionsStorage
Returns

SocketsPositionsStorage

Properties

elements
elements: Map<HTMLElement, SocketPayload[]>;
Defined in

tmp/graph-editor/src/lib/graph-editor/render/sockets-position.ts/storage.ts:13

Methods

add()
add(data): void
Parameters

data: SocketPayload

Returns

void

Defined in

tmp/graph-editor/src/lib/graph-editor/render/sockets-position.ts/storage.ts:34

getPosition()
getPosition(data): null | Position
Parameters

data

data.key: string

data.nodeId: string

data.side: Side

Returns

null | Position

Defined in

tmp/graph-editor/src/lib/graph-editor/render/sockets-position.ts/storage.ts:15

remove()
remove(element): void
Parameters

element: HTMLElement

Returns

void

Defined in

tmp/graph-editor/src/lib/graph-editor/render/sockets-position.ts/storage.ts:50

snapshot()
snapshot(): SocketPayload[]
Returns

SocketPayload[]

Defined in

tmp/graph-editor/src/lib/graph-editor/render/sockets-position.ts/storage.ts:54