Skip to content

utils

Classes

EventEmitter<T>

Type Parameters

T

Constructors

new EventEmitter()
new EventEmitter<T>(): EventEmitter<T>
Returns

EventEmitter<T>

Properties

listeners
listeners: Set<(data) => void>;
Defined in

tmp/graph-editor/src/lib/graph-editor/render/sockets-position.ts/utils.ts:26

Methods

emit()
emit(data): void
Parameters

data: T

Returns

void

Defined in

tmp/graph-editor/src/lib/graph-editor/render/sockets-position.ts/utils.ts:28

listen()
listen(handler): () => void
Parameters

handler

Returns

Function

Returns

void

Defined in

tmp/graph-editor/src/lib/graph-editor/render/sockets-position.ts/utils.ts:32

Functions

getElementCenter()

function getElementCenter(child, parent): Promise<object>

Parameters

child: HTMLElement

parent: HTMLElement

Returns

Promise<object>

x
x: number;
y
y: number;

Defined in

tmp/graph-editor/src/lib/graph-editor/render/sockets-position.ts/utils.ts:1