animated

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

[ PROFILE ]

flame graph, width = time

<GraphFlame title="PROFILE" />

Props

PropTypeDefaultDescription
title* string —Caption drawn on the top edge as `[ TITLE ]`. Uppercase, 1–2 words.
animated boolean trueAnimate the hot-path cycle. Default true. Reduced motion freezes on the first leaf.
speedMs number 600Milliseconds 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

NameKindDescription
StackFrameinterface
Positionedinterface
Seginterface

Theming

CSS custom properties this component reads.

  • --graph-accent
  • --text-primary
  • --text-secondary

Related

Built from

src/lib/components/animated/GraphFlame.svelte

machines-ui