本文へ移動

@eightkk/vue-weave / core / GraphCloneOptions

Interface: GraphCloneOptions ​

Defined in: src/core/graphEditing.ts:56

Options of cloneGraphElements.

Properties ​

createId ​

createId: (id, kind) => string

Defined in: src/core/graphEditing.ts:58

Returns the ID of the copy of a node or an edge. IDs must be nonempty, unique and unused in the input arrays.

Parameters ​

id ​

string

kind ​

"node" | "edge"

Returns ​

string


offset? ​

optional offset?: GraphPoint

Defined in: src/core/graphEditing.ts:62

Added to every copied position. Default { x: 0, y: 0 }.


positions? ​

optional positions?: ReadonlyMap<string, GraphPoint>

Defined in: src/core/graphEditing.ts:60

Saved positions of the source nodes. Copies of the nodes that have one receive it, moved by offset.

MIT ライセンスで公開しています。