Skip to content

NodeLayout

Classes

NodeLayout

Extends

Constructors

new NodeLayout()
new NodeLayout(__namedParameters): NodeLayout
Parameters

__namedParameters

__namedParameters.owner: NodeFactory

Returns

NodeLayout

Inherited from

BaseComponent.constructor

Defined in

tmp/graph-editor/src/lib/graph-editor/components/BaseComponent.ts:8

Properties

cleanup()?
optional cleanup: () => void;
Returns

void

Inherited from

BaseComponent.cleanup

Defined in

tmp/graph-editor/src/lib/graph-editor/components/BaseComponent.ts:13

Methods

alignBottom()
alignBottom(): Promise<void>
Returns

Promise<void>

Defined in

tmp/graph-editor/src/lib/graph-editor/editor/NodeLayout.ts:91

alignMiddle()
alignMiddle(): Promise<void>
Returns

Promise<void>

Defined in

tmp/graph-editor/src/lib/graph-editor/editor/NodeLayout.ts:87

alignTop()
alignTop(): Promise<void>
Returns

Promise<void>

Defined in

tmp/graph-editor/src/lib/graph-editor/editor/NodeLayout.ts:83

applyLayout()
applyLayout(offsetFunction): Promise<void>
Parameters

offsetFunction

Returns

Promise<void>

Defined in

tmp/graph-editor/src/lib/graph-editor/editor/NodeLayout.ts:60

applyOffsets()
applyOffsets(nodes, offsets): Promise<void>
Parameters

nodes: Node<Record<string, Socket<SocketType, "scalar" | "array">>, object, object, Record<string, unknown>, Record<string, unknown>>[]

offsets: Vector2D[]

Returns

Promise<void>

Defined in

tmp/graph-editor/src/lib/graph-editor/editor/NodeLayout.ts:8

getLayoutRectsAndRefPos()
getLayoutRectsAndRefPos(): object
Returns

object

rects
rects: LayoutRect[];
refPos
refPos: number;
Defined in

tmp/graph-editor/src/lib/graph-editor/editor/NodeLayout.ts:24

getOffsets()
getOffsets(offsetFunction): Vector2D[]
Parameters

offsetFunction

Returns

Vector2D[]

Defined in

tmp/graph-editor/src/lib/graph-editor/editor/NodeLayout.ts:53

justifyBetween()
justifyBetween(): Promise<void>
Returns

Promise<void>

Defined in

tmp/graph-editor/src/lib/graph-editor/editor/NodeLayout.ts:79

justifyCenter()
justifyCenter(): Promise<void>
Returns

Promise<void>

Defined in

tmp/graph-editor/src/lib/graph-editor/editor/NodeLayout.ts:75

justifyLeft()
justifyLeft(): Promise<void>
Returns

Promise<void>

Defined in

tmp/graph-editor/src/lib/graph-editor/editor/NodeLayout.ts:67

justifyRight()
justifyRight(): Promise<void>
Returns

Promise<void>

Defined in

tmp/graph-editor/src/lib/graph-editor/editor/NodeLayout.ts:71

spaceVertical()
spaceVertical(): Promise<void>
Returns

Promise<void>

Defined in

tmp/graph-editor/src/lib/graph-editor/editor/NodeLayout.ts:95