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 · Calendar icons

CALENDAR_TURN_MAXconstant

The most the icon may be turned either way, in degrees.

Import it

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

Definition

const CALENDAR_TURN_MAX: 45 = 45

Examples

import { CALENDAR_TURN_MAX, calendarIcon } from "@johnmorrisdotca/koyomi-calendars";

console.log(CALENDAR_TURN_MAX);
console.log(calendarIcon({ month: 11, day: 3, turn: CALENDAR_TURN_MAX }).startsWith("<svg"));
45
true

What it prints (run when this page was built)

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