context-menu-plugin
Type Aliases
NodeMenuItem<NC>
Type Parameters
• NC extends typeof Node
= typeof Node
Type declaration
description
Description of the node.
inputTypes
label
Label of the node.
nodeClass
Function that creates the node.
outputTypes
params
path
Menu path of the node.
tags
Search tags of the node.
Defined in
tmp/graph-editor/src/lib/graph-editor/plugins/context-menu-plugin.svelte.ts:16
Variables
baseNodeMenuItems
Defined in
tmp/graph-editor/src/lib/graph-editor/plugins/context-menu-plugin.svelte.ts:120
Functions
contextMenuSetup()
Parameters
• __namedParameters
• __namedParameters.additionalNodeItems?: NodeMenuItem
<typeof Node
>[]
• __namedParameters.showContextMenu: ShowContextMenu
Returns
Defined in
tmp/graph-editor/src/lib/graph-editor/plugins/context-menu-plugin.svelte.ts:210
createNodeMenuItem()
Parameters
• params: Partial
<Omit
<NodeMenuItem
<typeof Node
>, "nodeClass"
| "params"
>> & object
Returns
Defined in
tmp/graph-editor/src/lib/graph-editor/plugins/context-menu-plugin.svelte.ts:192
getMenuItemsFromNodeItems()
Parameters
• __namedParameters
• __namedParameters.action?
• __namedParameters.factory: NodeFactory
• __namedParameters.nodeItems: NodeMenuItem
<typeof Node
>[]
• __namedParameters.pos: Position
Returns
MenuItem
[]
Defined in
tmp/graph-editor/src/lib/graph-editor/plugins/context-menu-plugin.svelte.ts:157
nodeItem()
Type Parameters
• I extends Ins
• O extends Outs
• C extends Controls
• S extends State
• P extends Params
• N extends typeof Node
Parameters
• item: any
Returns
Defined in
tmp/graph-editor/src/lib/graph-editor/plugins/context-menu-plugin.svelte.ts:37
xmlItem()
Parameters
• __namedParameters
• __namedParameters.label?: string
• __namedParameters.xmlConfig: XmlConfig
Returns
NodeMenuItem
<typeof Node
>
Defined in
tmp/graph-editor/src/lib/graph-editor/plugins/context-menu-plugin.svelte.ts:47
xmlNodeItems()
Parameters
• __namedParameters
• __namedParameters.basePath?: string
[] = ...
• __namedParameters.priorities?: Record
<string
, Record
<string
, number
>>
• __namedParameters.schema: XmlSchema
Returns
Defined in
tmp/graph-editor/src/lib/graph-editor/plugins/context-menu-plugin.svelte.ts:66