MCPcopy
hub / github.com/refly-ai/refly / MirrorCanvasOptions

Interface MirrorCanvasOptions

packages/canvas-common/src/data.ts:8–15  ·  view source on GitHub ↗

* Configuration options for the mirrorCanvasData function

Source from the content-addressed store, hash-verified

6 * Configuration options for the mirrorCanvasData function
7 */
8interface MirrorCanvasOptions {
9 /** Optional function to process/transform each node during mirroring */
10 nodeProcessor?: (node: CanvasNode) => CanvasNode;
11 /** Optional function to process/transform each edge during mirroring */
12 edgeProcessor?: (edge: CanvasEdge) => CanvasEdge;
13 /** Optional mapping to replace toolsets with new instances during mirroring */
14 replaceToolsetMap?: Record<string, GenericToolset>;
15}
16
17/**
18 * Creates a deep copy of canvas data with new entity IDs while preserving node IDs

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected