Aller au contenu

NodeSelection

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

Classes

NodeSelection

Extends

Constructors

new NodeSelection()
new NodeSelection(params): NodeSelection
Parameters

params

params.owner: NodeFactory

Returns

NodeSelection

Overrides

BaseComponent.constructor

Defined in

tmp/graph-editor/src/lib/graph-editor/editor/NodeSelection.svelte.ts:46

Properties

accumulating
accumulating: boolean;
Defined in

tmp/graph-editor/src/lib/graph-editor/editor/NodeSelection.svelte.ts:24

boxSelectionAction
boxSelectionAction: undefined | void | ActionReturn<undefined | BoxSelectionParams, Record<never, any>>;
Defined in

tmp/graph-editor/src/lib/graph-editor/editor/NodeSelection.svelte.ts:299

cleanup()?
optional cleanup: () => void;
Returns

void

Inherited from

BaseComponent.cleanup

Defined in

tmp/graph-editor/src/lib/graph-editor/components/BaseComponent.ts:13

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>>>[];
Defined in

tmp/graph-editor/src/lib/graph-editor/editor/NodeSelection.svelte.ts:130

entities
entities: SvelteSet<SelectorEntity>;
Defined in

tmp/graph-editor/src/lib/graph-editor/editor/NodeSelection.svelte.ts:23

modifierActive
modifierActive: boolean;
Defined in

tmp/graph-editor/src/lib/graph-editor/editor/NodeSelection.svelte.ts:27

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/NodeSelection.svelte.ts:124

picked
picked: undefined | SelectorEntity;
Defined in

tmp/graph-editor/src/lib/graph-editor/editor/NodeSelection.svelte.ts:136

pickedConnection
pickedConnection: undefined | 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/NodeSelection.svelte.ts:138

pickedNode
pickedNode: 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/NodeSelection.svelte.ts:137

ranging
ranging: boolean;
Defined in

tmp/graph-editor/src/lib/graph-editor/editor/NodeSelection.svelte.ts:25

typedEntities
typedEntities: EntityWithType<"node" | "connection" | "comment">[];
Defined in

tmp/graph-editor/src/lib/graph-editor/editor/NodeSelection.svelte.ts:28

Accessors

boxSelectionEnabled
get boxSelectionEnabled(): boolean
set boxSelectionEnabled(value): void
Parameters

value: boolean

Returns

boolean

Defined in

tmp/graph-editor/src/lib/graph-editor/editor/NodeSelection.svelte.ts:294

Methods

entityElement()
entityElement(entity): undefined | HTMLElement
Parameters

entity: SelectorEntity

Returns

undefined | HTMLElement

Defined in

tmp/graph-editor/src/lib/graph-editor/editor/NodeSelection.svelte.ts:140

invertSelection()
invertSelection(): void
Returns

void

Defined in

tmp/graph-editor/src/lib/graph-editor/editor/NodeSelection.svelte.ts:163

isPicked()
isPicked(entity): boolean
Parameters

entity: SelectorEntity | EntityWithType<"node" | "connection" | "comment">

Returns

boolean

Defined in

tmp/graph-editor/src/lib/graph-editor/editor/NodeSelection.svelte.ts:275

isSelected()
isSelected(entity): boolean
Parameters

entity: SelectorEntity

Returns

boolean

Defined in

tmp/graph-editor/src/lib/graph-editor/editor/NodeSelection.svelte.ts:159

pick()
pick(entity): void
Parameters

entity: SelectorEntity

Returns

void

Defined in

tmp/graph-editor/src/lib/graph-editor/editor/NodeSelection.svelte.ts:268

releasePicked()
releasePicked(): void
Returns

void

Defined in

tmp/graph-editor/src/lib/graph-editor/editor/NodeSelection.svelte.ts:272

remove()
remove(entity): void
Parameters

entity: SelectorEntity

Returns

void

Defined in

tmp/graph-editor/src/lib/graph-editor/editor/NodeSelection.svelte.ts:238

select()
select(entity, options): void
Parameters

entity: SelectorEntity

options = {}

options.accumulate?: boolean

options.pick?: boolean

options.range?: boolean

Returns

void

Defined in

tmp/graph-editor/src/lib/graph-editor/editor/NodeSelection.svelte.ts:212

selectAll()
selectAll(): void
Returns

void

Defined in

tmp/graph-editor/src/lib/graph-editor/editor/NodeSelection.svelte.ts:279

selectMultiple()
selectMultiple(entities): void
Parameters

entities: Iterable<SelectorEntity>

Returns

void

Defined in

tmp/graph-editor/src/lib/graph-editor/editor/NodeSelection.svelte.ts:203

selectRange()
selectRange(a, b): void

Selects all entities between two entities.

Selects only entities with 50% of their bounding box inside the bouding box formed by the two entities.

Parameters

a: SelectorEntity

b: SelectorEntity

Returns

void

Defined in

tmp/graph-editor/src/lib/graph-editor/editor/NodeSelection.svelte.ts:177

translate()
translate(dx, dy): void
Parameters

dx: number

dy: number

Returns

void

Defined in

tmp/graph-editor/src/lib/graph-editor/editor/NodeSelection.svelte.ts:252

unselect()
unselect(entity): void
Parameters

entity: SelectorEntity

Returns

void

Defined in

tmp/graph-editor/src/lib/graph-editor/editor/NodeSelection.svelte.ts:241

unselectAll()
unselectAll(): void
Returns

void

Defined in

tmp/graph-editor/src/lib/graph-editor/editor/NodeSelection.svelte.ts:247

Type Aliases

SelectOptions

type SelectOptions: Parameters<NodeSelection["select"]>[1];

Defined in

tmp/graph-editor/src/lib/graph-editor/editor/NodeSelection.svelte.ts:335


SelectorEntity

type SelectorEntity: InstanceType<typeof entityTypesMap[EntityType]>;

Defined in

tmp/graph-editor/src/lib/graph-editor/editor/NodeSelection.svelte.ts:16