Skip to the content

Koyomi Calendars暦

Calendar pages as SVG: a day as an icon in 18 original designs, a whole month as a poster or a desk pad, and the page turning from one day to the next.

Koyomi is the Japanese word 暦 for the calendar. About the name

Contents

Reference

/animate

import { … } from "@johnmorrisdotca/koyomi-calendars/animate";

Exports

NameKindWhat it is
addDaysfunctionThe date days after (or before, when negative) date: across months, years and leap days.
CALENDAR_FLIP_LABELSconstantEach flip's name for a picker, in English and in Japanese.
CALENDAR_FLIPSconstantThe four ways a page turns: tear-down, fly-up, rip-corner and flip-down.
CalendarFliptypeOne of the names in CALENDAR_FLIPS.
compareDaysfunctionWhich way a turn from one day to another goes.
FLIP_KEYFRAMESconstantWhat the sheet does as it goes: from lying on the pad (the first frame) to gone (the last).
flipCalendarfunctionTurns the icon in host from one date to another.
FlipDatetypeA day to show or turn to: a year, a month 1 to 12 and a day of the month.
FlipOptionstypeWhat flipCalendar takes: how to draw a date, the two dates, and how the page turns.
nextDayfunctionThe day after date.
previousDayfunctionThe day before date.
reducedMotionfunctionDoes the reader ask for less motion?

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/koyomi-calendars 0.3.0.