Aller au contenu

context-menu-plugin

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

Type Aliases

NodeMenuItem<NC>

type NodeMenuItem<NC>: object;

Type Parameters

NC extends typeof Node = typeof Node

Type declaration

description
description: string;

Description of the node.

inputTypes
inputTypes: Node["inputTypes"];
label
label: string;

Label of the node.

nodeClass
nodeClass: NC;

Function that creates the node.

outputTypes
outputTypes: Node["outputTypes"];
params
params: ConstructorParameters<NC>[0];
path
path: string[];

Menu path of the node.

tags
tags: string[];

Search tags of the node.

Defined in

tmp/graph-editor/src/lib/graph-editor/plugins/context-menu-plugin.svelte.ts:16

Variables

baseNodeMenuItems

baseNodeMenuItems: NodeMenuItem[] = [];

Defined in

tmp/graph-editor/src/lib/graph-editor/plugins/context-menu-plugin.svelte.ts:120

Functions

contextMenuSetup()

function contextMenuSetup(__namedParameters): Setup

Parameters

__namedParameters

__namedParameters.additionalNodeItems?: NodeMenuItem<typeof Node>[]

__namedParameters.showContextMenu: ShowContextMenu

Returns

Setup

Defined in

tmp/graph-editor/src/lib/graph-editor/plugins/context-menu-plugin.svelte.ts:210


createNodeMenuItem()

function createNodeMenuItem(params): NodeMenuItem

Parameters

params: Partial<Omit<NodeMenuItem<typeof Node>, "nodeClass" | "params">> & object

Returns

NodeMenuItem

Defined in

tmp/graph-editor/src/lib/graph-editor/plugins/context-menu-plugin.svelte.ts:192


getMenuItemsFromNodeItems()

function getMenuItemsFromNodeItems(__namedParameters): MenuItem[]

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()

function nodeItem<I, O, C, S, P, N>(item): NodeMenuItem

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

NodeMenuItem

Defined in

tmp/graph-editor/src/lib/graph-editor/plugins/context-menu-plugin.svelte.ts:37


xmlItem()

function xmlItem(__namedParameters): NodeMenuItem<typeof Node>

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()

function xmlNodeItems(__namedParameters): NodeMenuItem[]

Parameters

__namedParameters

__namedParameters.basePath?: string[] = ...

__namedParameters.priorities?: Record<string, Record<string, number>>

__namedParameters.schema: XmlSchema

Returns

NodeMenuItem[]

Defined in

tmp/graph-editor/src/lib/graph-editor/plugins/context-menu-plugin.svelte.ts:66