NodeFactory
Ce contenu n’est pas encore disponible dans votre langue.
Classes
NodeFactory
Implements
Constructors
new NodeFactory()
Parameters
• params
• params.accumulating?
• params.accumulating.active
• params.accumulating.destroy
• params.area?: AreaPlugin
<Schemes
, AreaExtra
>
• params.arrange?: AutoArrangePlugin
<Schemes
, never
>
• params.comment?: CommentPlugin
<Schemes
, AreaExtra
>
• params.editor: NodeEditor
• params.history?: HistoryPlugin
<Schemes
>
• params.makutuClasses?: MakutuClassRepository
• params.xmlSchemas?: Record
<string
, undefined
| XmlSchema
>
Returns
Defined in
tmp/graph-editor/src/lib/graph-editor/editor/NodeFactory.svelte.ts:508
Properties
arrange?
Defined in
tmp/graph-editor/src/lib/graph-editor/editor/NodeFactory.svelte.ts:449
codeIntegration
Defined in
tmp/graph-editor/src/lib/graph-editor/editor/NodeFactory.svelte.ts:506
comment
Defined in
tmp/graph-editor/src/lib/graph-editor/editor/NodeFactory.svelte.ts:452
components
Defined in
tmp/graph-editor/src/lib/graph-editor/editor/NodeFactory.svelte.ts:94
connectionPathType
Defined in
tmp/graph-editor/src/lib/graph-editor/editor/NodeFactory.svelte.ts:132
connectionPlugin?
Defined in
tmp/graph-editor/src/lib/graph-editor/editor/NodeFactory.svelte.ts:451
dataflowCache
Defined in
tmp/graph-editor/src/lib/graph-editor/editor/NodeFactory.svelte.ts:817
dataflowEngine
Defined in
tmp/graph-editor/src/lib/graph-editor/editor/NodeFactory.svelte.ts:438
editor
Defined in
tmp/graph-editor/src/lib/graph-editor/editor/NodeFactory.svelte.ts:140
effetRootCleanup
Defined in
tmp/graph-editor/src/lib/graph-editor/editor/NodeFactory.svelte.ts:264
history
Defined in
tmp/graph-editor/src/lib/graph-editor/editor/NodeFactory.svelte.ts:450
id
Defined in
tmp/graph-editor/src/lib/graph-editor/editor/NodeFactory.svelte.ts:149
lastAddedNode?
Defined in
tmp/graph-editor/src/lib/graph-editor/editor/NodeFactory.svelte.ts:181
lastSearchNodeIndex
Defined in
tmp/graph-editor/src/lib/graph-editor/editor/NodeFactory.svelte.ts:761
lastSelectedNode
Defined in
tmp/graph-editor/src/lib/graph-editor/editor/NodeFactory.svelte.ts:139
layout
Defined in
tmp/graph-editor/src/lib/graph-editor/editor/NodeFactory.svelte.ts:504
makutuClasses?
Defined in
tmp/graph-editor/src/lib/graph-editor/editor/NodeFactory.svelte.ts:436
minimapEnabled
Defined in
tmp/graph-editor/src/lib/graph-editor/editor/NodeFactory.svelte.ts:103
modalStore
Defined in
tmp/graph-editor/src/lib/graph-editor/editor/NodeFactory.svelte.ts:145
notifications
Defined in
tmp/graph-editor/src/lib/graph-editor/editor/NodeFactory.svelte.ts:104
pythonDataflowEngine
Defined in
tmp/graph-editor/src/lib/graph-editor/editor/NodeFactory.svelte.ts:211
reactivateDataflowTimeout
Defined in
tmp/graph-editor/src/lib/graph-editor/editor/NodeFactory.svelte.ts:459
search
Defined in
tmp/graph-editor/src/lib/graph-editor/editor/NodeFactory.svelte.ts:446
selector
Defined in
tmp/graph-editor/src/lib/graph-editor/editor/NodeFactory.svelte.ts:441
surfaceRect
Defined in
tmp/graph-editor/src/lib/graph-editor/editor/NodeFactory.svelte.ts:137
transform
zoom
Defined in
tmp/graph-editor/src/lib/graph-editor/editor/NodeFactory.svelte.ts:418
Accessors
area
Parameters
• area: undefined
| AreaPlugin
<Schemes
, AreaExtra
>
Returns
undefined
| AreaPlugin
<Schemes
, AreaExtra
>
Defined in
tmp/graph-editor/src/lib/graph-editor/editor/NodeFactory.svelte.ts:415
connections
Connections in the editor.
Returns
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
>>>[]
Defined in
tmp/graph-editor/src/lib/graph-editor/editor/NodeFactory.svelte.ts:470
nodes
Nodes in the editor.
Returns
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/NodeFactory.svelte.ts:464
previewedNodes
Returns
SvelteSet
<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/NodeFactory.svelte.ts:141
selection
Returns
Defined in
tmp/graph-editor/src/lib/graph-editor/editor/NodeFactory.svelte.ts:442
storage
Returns
Defined in
tmp/graph-editor/src/lib/graph-editor/editor/NodeFactory.svelte.ts:207
xmlSchemas
Returns
SvelteMap
<string
, XmlSchema
>
Defined in
tmp/graph-editor/src/lib/graph-editor/editor/NodeFactory.svelte.ts:455
Methods
addComponentByClass()
Type Parameters
• P extends Record
<string
, unknown
>
• C extends BaseComponent
<ComponentSupportInterface
>
Parameters
• componentClass
• params: Omit
<P
, "owner"
>
Returns
C
Implementation of
ComponentSupportInterface
.addComponentByClass
Defined in
tmp/graph-editor/src/lib/graph-editor/editor/NodeFactory.svelte.ts:95
addNode()
Type Parameters
• T extends Node
<Record
<string
, Socket
<SocketType
, "scalar"
| "array"
>>, object
, object
, Record
<string
, unknown
>, Record
<string
, unknown
>>
• Params = Record
<string
, unknown
>
Parameters
• nodeClass
• params: WithoutFactory
<Params
> = ...
Returns
Promise
<T
>
Defined in
tmp/graph-editor/src/lib/graph-editor/editor/NodeFactory.svelte.ts:182
addNodes()
Parameters
• nodes: (Node
<Record
<string
, Socket
<SocketType
, "scalar"
| "array"
>>, object
, object
, Record
<string
, unknown
>, Record
<string
, unknown
>> | NodeSaveData
)[]
Returns
Promise
<void
>
Defined in
tmp/graph-editor/src/lib/graph-editor/editor/NodeFactory.svelte.ts:193
bulkOperation()
Executes callback without running dataflow engines.
It is useful to execute multiple operations without unnecessarily running dataflow engines.
Parameters
• callback
Callback to execute
Returns
Promise
<void
>
Defined in
tmp/graph-editor/src/lib/graph-editor/editor/NodeFactory.svelte.ts:479
centerView()
Moves the view to the center of the nodes, with a zoom such that all nodes are visible.
Parameters
• nodes?: Node
<Record
<string
, Socket
<SocketType
, "scalar"
| "array"
>>, object
, object
, Record
<string
, unknown
>, Record
<string
, unknown
>>[]
Nodes to center the view on. If not provided, all nodes are used.
Returns
undefined
| Promise
<void
>
Defined in
tmp/graph-editor/src/lib/graph-editor/editor/NodeFactory.svelte.ts:286
clear()
Removes all nodes and connections from the editor.
Returns
Promise
<void
>
Defined in
tmp/graph-editor/src/lib/graph-editor/editor/NodeFactory.svelte.ts:498
commentSelectedNodes()
Parameters
• params = {}
• params.text?: string
Returns
void
Defined in
tmp/graph-editor/src/lib/graph-editor/editor/NodeFactory.svelte.ts:603
create()
Type Parameters
• T extends Node
<Record
<string
, Socket
<SocketType
, "scalar"
| "array"
>>, object
, object
, Record
<string
, unknown
>, Record
<string
, unknown
>>
Parameters
• type
Returns
T
Defined in
tmp/graph-editor/src/lib/graph-editor/editor/NodeFactory.svelte.ts:712
deleteSelectedElements()
Delete all selected elements
Returns
Promise
<void
>
Defined in
tmp/graph-editor/src/lib/graph-editor/editor/NodeFactory.svelte.ts:619
destroy()
Returns
void
Defined in
tmp/graph-editor/src/lib/graph-editor/editor/NodeFactory.svelte.ts:273
destroyArea()
Returns
void
Defined in
tmp/graph-editor/src/lib/graph-editor/editor/NodeFactory.svelte.ts:269
disable()
Returns
void
Defined in
tmp/graph-editor/src/lib/graph-editor/editor/NodeFactory.svelte.ts:704
downloadGraph()
Returns
void
Defined in
tmp/graph-editor/src/lib/graph-editor/editor/NodeFactory.svelte.ts:735
enable()
Returns
void
Defined in
tmp/graph-editor/src/lib/graph-editor/editor/NodeFactory.svelte.ts:700
findNode()
Finds a node whose label or name matches the query. Repeated calls will cycle through the nodes.
Parameters
• query: string
Returns
undefined
| Node
<Record
<string
, Socket
<SocketType
, "scalar"
| "array"
>>, object
, object
, Record
<string
, unknown
>, Record
<string
, unknown
>>
found node or undefined
Defined in
tmp/graph-editor/src/lib/graph-editor/editor/NodeFactory.svelte.ts:768
focusNode()
Parameters
• node?: Node
<Record
<string
, Socket
<SocketType
, "scalar"
| "array"
>>, object
, object
, Record
<string
, unknown
>, Record
<string
, unknown
>>
Returns
void
Defined in
tmp/graph-editor/src/lib/graph-editor/editor/NodeFactory.svelte.ts:785
focusNodes()
Parameters
• nodes?: Node
<Record
<string
, Socket
<SocketType
, "scalar"
| "array"
>>, object
, object
, Record
<string
, unknown
>, Record
<string
, unknown
>>[]
• options?: Params
= {}
Returns
void
Defined in
tmp/graph-editor/src/lib/graph-editor/editor/NodeFactory.svelte.ts:792
getArea()
Returns
undefined
| AreaPlugin
<Schemes
, AreaExtra
>
Defined in
tmp/graph-editor/src/lib/graph-editor/editor/NodeFactory.svelte.ts:724
getControlFlowEngine()
Returns
ControlFlowEngine
<Schemes
>
Defined in
tmp/graph-editor/src/lib/graph-editor/editor/NodeFactory.svelte.ts:720
getEditor()
Returns
Defined in
tmp/graph-editor/src/lib/graph-editor/editor/NodeFactory.svelte.ts:716
getNode()
Parameters
• id: string
Returns
undefined
| 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/NodeFactory.svelte.ts:708
getNodes()
Returns
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/NodeFactory.svelte.ts:203
getState()
Type Parameters
• T
Parameters
• id: string
• key: string
• initial?: T
Returns
T
Defined in
tmp/graph-editor/src/lib/graph-editor/editor/NodeFactory.svelte.ts:171
loadFromFile()
Returns
void
Defined in
tmp/graph-editor/src/lib/graph-editor/editor/NodeFactory.svelte.ts:739
loadGraph()
Loads a graph from a save.
Parameters
• editorSaveData
Save data to load.
• editorSaveData.comments: object
[] = ...
• editorSaveData.connections: ConnectionSaveData
[] = ...
• editorSaveData.editorName: string
= ...
• editorSaveData.graphName: string
= ...
• editorSaveData.id: undefined
| string
= ...
• editorSaveData.nodes: NodeSaveData
[] = ...
• editorSaveData.previewedNodes: string
[] = ...
• editorSaveData.variables: Record
<string
, Variable
> | Variable
[] = ...
Returns
Promise
<void
>
Defined in
tmp/graph-editor/src/lib/graph-editor/editor/NodeFactory.svelte.ts:340
loadNode()
Parameters
• nodeSaveData: NodeSaveData
Returns
Promise
<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/NodeFactory.svelte.ts:213
openGraphForm()
Parameters
• defaultName: string
= 'New Graph'
Returns
Promise
<void
>
Defined in
tmp/graph-editor/src/lib/graph-editor/editor/NodeFactory.svelte.ts:291
removeNode()
Removes a node from the editor, as well as its connections.
Parameters
• target: string
| Node
<Record
<string
, Socket
<SocketType
, "scalar"
| "array"
>>, object
, object
, Record
<string
, unknown
>, Record
<string
, unknown
>>
node or node id
Returns
Promise
<void
>
Defined in
tmp/graph-editor/src/lib/graph-editor/editor/NodeFactory.svelte.ts:682
resetDataflow()
Parameters
• node?: Node
<Record
<string
, Socket
<SocketType
, "scalar"
| "array"
>>, object
, object
, Record
<string
, unknown
>, Record
<string
, unknown
>>
Returns
Promise
<void
>
Defined in
tmp/graph-editor/src/lib/graph-editor/editor/NodeFactory.svelte.ts:849
resetSuccessors()
Parameters
• node: Node
<Record
<string
, Socket
<SocketType
, "scalar"
| "array"
>>, object
, object
, Record
<string
, unknown
>, Record
<string
, unknown
>>
Returns
void
Defined in
tmp/graph-editor/src/lib/graph-editor/editor/NodeFactory.svelte.ts:728
runDataflowEngines()
Returns
Promise
<void
>
Defined in
tmp/graph-editor/src/lib/graph-editor/editor/NodeFactory.svelte.ts:819
select()
Parameters
• entity: SelectorEntity
• options: undefined
| object
= {}
Returns
void
Defined in
tmp/graph-editor/src/lib/graph-editor/editor/NodeFactory.svelte.ts:796
selectAll()
Returns
void
Defined in
tmp/graph-editor/src/lib/graph-editor/editor/NodeFactory.svelte.ts:809
selectConnection()
Parameters
• id: string
Returns
void
Defined in
tmp/graph-editor/src/lib/graph-editor/editor/NodeFactory.svelte.ts:800
setState()
Parameters
• id: string
• key: string
• value: unknown
Returns
void
Defined in
tmp/graph-editor/src/lib/graph-editor/editor/NodeFactory.svelte.ts:177
unselectAll()
Returns
void
Defined in
tmp/graph-editor/src/lib/graph-editor/editor/NodeFactory.svelte.ts:813
useState()
Type Parameters
• T = unknown
Parameters
• id: string
• key: string
• value?: T
Returns
object
get()
Returns
T
set()
Parameters
• value: T
Returns
void
value
Defined in
tmp/graph-editor/src/lib/graph-editor/editor/NodeFactory.svelte.ts:151