utils
Functions
addGraphToEditor()
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()
Recursively converts the parsed xml to editor nodes
Parameters
• __namedParameters
• __namedParameters.factory?: NodeFactory
• __namedParameters.schema: XmlSchema
• __namedParameters.xml: ParsedXmlNodes
Returns
object
connections
nodes
Defined in
tmp/graph-editor/src/lib/graph-editor/editor/code-integration/utils.svelte.ts:32
xmlToGraph()
Parameters
• params
• params.factory?: NodeFactory
• params.schema: XmlSchema
• params.xml: string
Returns
object
connections
nodes
Defined in
tmp/graph-editor/src/lib/graph-editor/editor/code-integration/utils.svelte.ts:19