viz.renderers.AttentionFlowOptions
export interface AttentionFlowOptions {
/** Minimum attention value to display (default: 0.01) */
minAttention?: number;
/** Maximum attention value for color scaling (default: auto) */
maxAttention?: number;
/** Width of connection lines in pixels (default: 2) */
lineWidth?: number;
/** Height of arcs relative to viewport (default: 100) */
arcHeight?: number;
/** Index of token to highlight (-1 for none) */
highlightToken?: number;
/** Show all connections or only highlighted (default: true) */
showAll?: boolean;
/** Padding around the visualization */
padding?: { left?: number; right?: number; top?: number; bottom?: number };
/** Token labels to display */
tokens?: string[];
/** Background color as [r, g, b, a] (default: [1, 1, 1, 1]) */
backgroundColor?: [number, number, number, number];
/** Target to render to */
target?: RenderTarget;
}minAttention(number)optional- – Minimum attention value to display (default: 0.01)
maxAttention(number)optional- – Maximum attention value for color scaling (default: auto)
lineWidth(number)optional- – Width of connection lines in pixels (default: 2)
arcHeight(number)optional- – Height of arcs relative to viewport (default: 100)
highlightToken(number)optional- – Index of token to highlight (-1 for none)
showAll(boolean)optional- – Show all connections or only highlighted (default: true)
padding({ left?: number; right?: number; top?: number; bottom?: number })optional- – Padding around the visualization
tokens(string[])optional- – Token labels to display
backgroundColor([number, number, number, number])optional- – Background color as [r, g, b, a] (default: [1, 1, 1, 1])
target(RenderTarget)optional- – Target to render to