GraphDiya

Import

svelte
import { GraphDiya } from 'markgraphy';

Basic usage

svelte
<GraphDiya
  title="example"
  animated={true}
  cols={60}
/>
[ example ]

row of light

Props

PropTypeDefaultDescription
titlestringCaption drawn on the top edge as [ TITLE ]. Uppercase, 1–2 words.
animated?booleantrueAnimate the lighting and the breathing. Default true. Reduced motion freezes a fully lit row.
cols?number60Width of the scene in characters. Default 60.
rows?number14Height of the scene in rows. Default 14.
lamps?number5Number of diyas in the row. Default 5.
speedMs?number110Milliseconds per tick. Default 110.
seedNum?number13Seed for the per-lamp phase and gutter schedule. Default 13.
label?string'row of light'Short caption under the art; the art itself is decorative.
class?string''

Exported types

  • GraphDiyaProps

Reduced motion

Animation is disabled under prefers-reduced-motion.