GraphSurya

Import

svelte
import { GraphSurya } from 'markgraphy';

Basic usage

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

the mover of days

Props

PropTypeDefaultDescription
titlestringCaption drawn on the top edge as [ TITLE ]. Uppercase, 1–2 words.
animated?booleantrueAnimate the day cycle. Default true. Reduced motion freezes a mid-morning frame.
cols?number60Width of the scene in characters. Default 60.
rows?number18Height of the scene in rows. Default 18.
speedMs?number120Milliseconds per tick. Default 120.
rays?number12Number of spokes on the wheel. Default 12.
seedNum?number5Seed for the per-spoke length jitter. Default 5.
label?string'the mover of days'Short caption under the art; the art itself is decorative.
class?string''

Exported types

  • GraphSuryaProps

Reduced motion

Animation is disabled under prefers-reduced-motion.