OptionalcurrentThe whole definition, not just its stages: definition-level vocabulary (field titles, author predicates) feeds features like human-language explanations, so the contract asks for it up front.
OptionaldevTooling mode: tooltips additionally show machine names and raw GROQ conditions. Never on for end users.
OptionalevaluationUpgrades the explanations where it speaks: the current stage's transitions and gates get real ✓/✗ verdicts, the rest of the chart stays static. Only read when WorkflowDiagramProps.explain is on — that's the feature gate, this is its data.
OptionalexplainExplain the workflow in human language: tooltips gain each gate's phrased requirements ("«Review decision» must be 'approve'") — derived from the definition alone, so it works without an instance.
OptionalfillFill the parent's width and use height as supplied. Defaults to false.
A height of '100%' fills a sized parent.
OptionalgatedNames of current-stage transitions that cannot fire yet — their markers show a lock ("can't proceed, criteria unmet").
OptionalheightCanvas height, defaulting to 360. Without WorkflowDiagramProps.fill,
a number is a pixel ceiling: smaller graphs shrink the canvas.
CSS strings and heights with fill enabled are used as supplied.
OptionalhistoryInstance history; tones visited stages and traversed transitions.
OptionalinitialHow the diagram opens. Defaults to 'fit'.
'fit' shows the whole workflow, scaled down to fit the canvas and
never enlarged beyond 1:1.'actual-size' opens at 1:1, so every workflow renders at the same
scale. Along each axis where the workflow fits the canvas, the workflow
is centered. Along an axis where it overflows, the current stage is
centered, or the initial stage when
WorkflowDiagramProps.currentStage is unset. The rest stays
cropped until the user pans, zooms, or uses the fit button.A WorkflowDiagramProps.static diagram always opens with 'fit'.
The value is read on mount; remount the diagram to apply a change.
OptionallocalContext snippet around the current stage instead of the whole workflow: only the current stage's own transitions render (LocalView.show picks next / previous / both). The hidden side collapses into short ghost-anchored stubs whose tooltips name the hidden stage. Requires currentStage.
OptionalstaticFrozen canvas: no pan/zoom, no zoom controls — shows its initial fit. Tooltips and hover highlight stay live.
Highlight this stage as where the instance is now.