Aller au contenu

utils

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

Functions

addGraphToEditor()

function addGraphToEditor(__namedParameters): Promise<void>

Parameters

__namedParameters

__namedParameters.connections: (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>>> | ConnectionSaveData)[]

__namedParameters.factory: NodeFactory

__namedParameters.nodes: (Node<Record<string, Socket<SocketType, "scalar" | "array">>, object, object, Record<string, unknown>, Record<string, unknown>> | NodeSaveData)[]

__namedParameters.t0: number

Returns

Promise<void>

Defined in

tmp/graph-editor/src/lib/graph-editor/editor/code-integration/utils.svelte.ts:380


parsedXmlToGraph()

function parsedXmlToGraph(__namedParameters): object

Recursively converts the parsed xml to editor nodes

Parameters

__namedParameters

__namedParameters.factory?: NodeFactory

__namedParameters.schema: XmlSchema

__namedParameters.xml: ParsedXmlNodes

Returns

object

connections
connections: Connection[];
nodes
nodes: Node[];

Defined in

tmp/graph-editor/src/lib/graph-editor/editor/code-integration/utils.svelte.ts:32


xmlToGraph()

function xmlToGraph(params): object

Parameters

params

params.factory?: NodeFactory

params.schema: XmlSchema

params.xml: string

Returns

object

connections
connections: 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>>>[];
nodes
nodes: Node<Record<string, Socket<SocketType, "scalar" | "array">>, object, object, Record<string, unknown>, Record<string, unknown>>[];

Defined in

tmp/graph-editor/src/lib/graph-editor/editor/code-integration/utils.svelte.ts:19