Skip to content

@graphty/graphty-element / session / LayerSource

Type Alias: LayerSource ​

LayerSource = { by: "element"; reason: "default" | "selection" | "hover" | "notes"; } | { algorithm: AlgorithmKey; by: "run"; params: Record<string, unknown>; runId: RunId; } | { by: "user"; } | { by: "template"; templateId: string; } | { by: "plugin"; name: string; }

Defined in: graphty-element/src/catalog/types.ts:645

Who put a layer in the stack. Every layer names its source.