Flame
A flame graph drawn in ASCII, cycling which leaf of the call tree is lit as the hot path.
Install
pnpm add @fractaldesign/machines-ui import '@fractaldesign/machines-ui/style.css';
import { GraphFlame } from '@fractaldesign/machines-ui';Preview
flame graph, width = time
<GraphFlame title="PROFILE" />Props
| Prop | Type | Default | Description |
|---|---|---|---|
| title* | string | — | Caption drawn on the top edge as `[ TITLE ]`. Uppercase, 1–2 words. |
| animated | boolean | true | Animate the hot-path cycle. Default true. Reduced motion freezes on the first leaf. |
| speedMs | number | 600 | Milliseconds per leaf. Default 600. |
| label | string | 'flame graph, width = time' | Short caption under the art; the chart itself is the message. |
| class | string | '' |
API
- class forwarded to the outer element
- motion runs live; set animated={false} to freeze
- a11y honours prefers-reduced-motion
Types
| Name | Kind | Description |
|---|---|---|
| StackFrame | interface | |
| Positioned | interface | |
| Seg | interface |
Theming
CSS custom properties this component reads.
- --graph-accent
- --text-primary
- --text-secondary
Related
Built from
src/lib/components/animated/GraphFlame.svelte