GraphCron

Import

svelte
import { GraphCron } from 'markgraphy';

Basic usage

svelte
<GraphCron
  title="example"
  expr="example"
  count={8}
/>
[ example ]
Cron timeline. Expression: error: expected 5 fields, got 1. 0 runs.

Props

PropTypeDefaultDescription
titlestringCaption drawn on the top edge as [ TITLE ].
exprstringStandard 5-field cron expression: min hour dom mon dow.
count?number8Number of next runs to render on the tick timeline. Default 8.
baseTime?numberBase time as ms since epoch; next runs are computed from this point. Default now.
cols?number60Scene width in characters. Default 60.
rows?number12Scene height in rows. Default 12.
animated?booleantrueAnimate the tick highlight. Default true. Reduced motion freezes on first run.
speedMs?number220Milliseconds per tick. Default 220.
label?string''Caption rendered muted under the timeline.
class?string''

Exported types

  • GraphCronProps

Reduced motion

Animation is disabled under prefers-reduced-motion.