JAPANESE_HOLIDAY_YEARSconstant
The first and last year the holiday rules describe.
Koyomi Calendars documentation
Every export of every entry point, each with its own page. This page keeps the addresses the old one-page reference had.
@johnmorrisdotca/koyomi-calendars/japaneseJAPANESE_HOLIDAY_YEARSconstantThe first and last year the holiday rules describe.
japaneseHolidayfunctionThe public holiday of a day, in both languages.
JapaneseHolidaytypeA Japanese public holiday's name, in Japanese and in English.
japaneseHolidaysOffunctionEvery public holiday of a year, computed from the law's rules.
OLD_CALENDAR_YEARSconstantThe first and last year the old-calendar astronomy is held to.
oldCalendarDatefunctionThe old-calendar date of a Gregorian date, from the new moons and the sun's longitude.
OldDatetypeA date of the old Japanese calendar (旧暦, kyūreki): a month 1 to 12, a day, and whether the month is a leap month.
RokuyotypeOne day of the six-day cycle (六曜, rokuyō): its name, its reading and an English gloss.
ROKUYOconstantThe six days in order of (old month + old day) mod 6, with the reading and an English gloss.
rokuyoOffunctionThe day of the six-day cycle (六曜, rokuyō) of a Gregorian date.
@johnmorrisdotca/koyomi-calendars/namesCALENDAR_THEME_ALIASESconstantThe ten names of 0.12 and 0.13, still accepted: each reads as the theme that replaced it.
CALENDAR_THEME_LABELSconstantEach design's name for a picker, in English and in Japanese.
CALENDAR_THEMESconstantThe 18 designs, by name.
CALENDAR_YEAR_CLEARconstantThe share of the drawing's width the year keeps clear of the bottom of its zone.
CALENDAR_YEAR_MINconstantThe year is never smaller than this share of the drawing's width (its font size).
CalendarThemetypeOne of the names in CALENDAR_THEMES.
calendarThemeOffunctionReads a design's name, or an older name for one.
@johnmorrisdotca/koyomi-calendars/monthdaysInMonthfunctionHow many days a month has: leap years by the Gregorian rule (a year divisible by 4, but not by 100 unless by 400).
MONTH_DESIGN_LABELSconstantEach month design's name for a picker, in English and in Japanese.
MONTH_DESIGNSconstantThe four month designs: a wall poster, a memo board, a spiral-bound wall page and a desk pad.
monthCalendarfunctionA whole month as an SVG: a wall poster, a memo board, a spiral-bound wall page or a desk pad.
MonthCalendarOptionstypeWhat monthCalendar takes: the month, the design and the look of one month page.
MonthDaytypeOne cell of a month grid: a date, its weekday, and whether it belongs to the month.
MonthDesigntypeOne of the names in MONTH_DESIGNS.
monthGridfunctionThe weeks of a month: whole weeks of seven, from the week of the 1st to the week of the last day.
MonthGridtypeThe weeks of a month: whole weeks of seven days.
WeekStarttypeThe first column of a month: "sunday" or "monday".
@johnmorrisdotca/koyomi-calendars/animateaddDaysfunctionThe 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?
@johnmorrisdotca/koyomi-calendars/themes/pinscalendarIconfunctionDraws the pins calendar page alone: this theme and what it needs, nothing of the other themes.
themeconstantThe pins design's drawing, for the package's own renderer: flat page, red header, two slate pins through white holes.
@johnmorrisdotca/koyomi-calendars/themes/loopscalendarIconfunctionDraws the loops calendar page alone: this theme and what it needs, nothing of the other themes.
themeconstantThe loops design's drawing, for the package's own renderer: grey outline, grey header, three ring pins.
@johnmorrisdotca/koyomi-calendars/themes/shadowcalendarIconfunctionDraws the shadow calendar page alone: this theme and what it needs, nothing of the other themes.
themeconstantThe shadow design's drawing, for the package's own renderer: blue header with black coils, a circled day, a long shadow on a lavender tile.
@johnmorrisdotca/koyomi-calendars/themes/heavycalendarIconfunctionDraws the heavy calendar page alone: this theme and what it needs, nothing of the other themes.
themeconstantThe heavy design's drawing, for the package's own renderer: heavy black outline, ring slots over the top edge, black header rule.
@johnmorrisdotca/koyomi-calendars/themes/cartooncalendarIconfunctionDraws the cartoon calendar page alone: this theme and what it needs, nothing of the other themes.
themeconstantThe cartoon design's drawing, for the package's own renderer: black cartoon outline, pink header, white ring loops, bold glossy word and number.
@johnmorrisdotca/koyomi-calendars/themes/flipcalendarIconfunctionDraws the flip calendar page alone: this theme and what it needs, nothing of the other themes.
themeconstantThe flip design's drawing, for the package's own renderer: a flip calendar in perspective: coils, a pale header, a slanted number, a fan of pages.
@johnmorrisdotca/koyomi-calendars/themes/stackcalendarIconfunctionDraws the stack calendar page alone: this theme and what it needs, nothing of the other themes.
themeconstantThe stack design's drawing, for the package's own renderer: solid black glyph with a tilted white page, a curled corner and a sheet underneath.
@johnmorrisdotca/koyomi-calendars/themes/linecalendarIconfunctionDraws the line calendar page alone: this theme and what it needs, nothing of the other themes.
themeconstantThe line design's drawing, for the package's own renderer: black line art, a header rule, four tick marks and a big blue number.
@johnmorrisdotca/koyomi-calendars/themes/curlcalendarIconfunctionDraws the curl calendar page alone: this theme and what it needs, nothing of the other themes.
themeconstantThe curl design's drawing, for the package's own renderer: line art with an orange header, two hooks, thin rounded digits and a curled lower corner.
@johnmorrisdotca/koyomi-calendars/themes/softcalendarIconfunctionDraws the soft calendar page alone: this theme and what it needs, nothing of the other themes.
themeconstantThe soft design's drawing, for the package's own renderer: flat red-orange header, three amber rings, a cream page with a side shade and a rounded coral number.
@johnmorrisdotca/koyomi-calendars/themes/deskcalendarIconfunctionDraws the desk calendar page alone: this theme and what it needs, nothing of the other themes.
themeconstantThe desk design's drawing, for the package's own renderer: a desk pad seen from an angle: coils, a red banner with a white number, a month of small dates.
@johnmorrisdotca/koyomi-calendars/themes/thincalendarIconfunctionDraws the thin calendar page alone: this theme and what it needs, nothing of the other themes.
themeconstantThe thin design's drawing, for the package's own renderer: a plain white page, the weekday in red and a very thin number.
@johnmorrisdotca/koyomi-calendars/themes/framecalendarIconfunctionDraws the frame calendar page alone: this theme and what it needs, nothing of the other themes.
themeconstantThe frame design's drawing, for the package's own renderer: four coloured sides round a pale square with a blue number, a folded corner at the bottom right.
@johnmorrisdotca/koyomi-calendars/themes/badgecalendarIconfunctionDraws the badge calendar page alone: this theme and what it needs, nothing of the other themes.
themeconstantThe badge design's drawing, for the package's own renderer: a white tile and a soft blue page with a light top lip and a white number.
@johnmorrisdotca/koyomi-calendars/themes/suncalendarIconfunctionDraws the sun calendar page alone: this theme and what it needs, nothing of the other themes.
themeconstantThe sun design's drawing, for the package's own renderer: a square tear-off page: a grey strip to tear off by, a huge black day over a red disc (a slot for any mark), side columns for the weekday, month and holiday.
@johnmorrisdotca/koyomi-calendars/themes/rollcalendarIconfunctionDraws the roll calendar page alone: this theme and what it needs, nothing of the other themes.
themeconstantThe roll design's drawing, for the package's own renderer: a tall wall tear-off page: the pages already torn off curl above, a huge condensed day in the ink of its weekday, side columns, a dotted memo area.
@johnmorrisdotca/koyomi-calendars/themes/squirclecalendarIconfunctionDraws the squircle calendar page alone: this theme and what it needs, nothing of the other themes.
themeconstantThe squircle design's drawing, for the package's own renderer: a soft rounded-square tile in a teal-to-blue gradient, a white page with a coloured top band and two binding tabs, a large bold day.
@johnmorrisdotca/koyomi-calendars/themes/plaincalendarIconfunctionDraws the plain calendar page alone: this theme and what it needs, nothing of the other themes.
themeconstantThe plain design's drawing, for the package's own renderer: a plain, unbranded tear-off pad on a kraft stand: a small month, a big day, the weekday in capitals, the month and year, the moon.
@johnmorrisdotca/koyomi-calendarsCALENDAR_HOUSINGSconstantThe housings an icon can sit in: square (the icon alone) and circle (on a coloured disc).
CALENDAR_PRESETSconstantThe named looks: flat, disc, ringed, tilted and disc-ringed.
CALENDAR_THEME_ALIASESconstantThe ten names of 0.12 and 0.13, still accepted: each reads as the theme that replaced it.
CALENDAR_THEME_LABELSconstantEach design's name for a picker, in English and in Japanese.
CALENDAR_THEMESconstantThe 18 designs, by name.
CALENDAR_TURN_MAXconstantThe most the icon may be turned either way, in degrees.
CALENDAR_YEAR_CLEARconstantThe share of the drawing's width the year keeps clear of the bottom of its zone.
CALENDAR_YEAR_MINconstantThe year is never smaller than this share of the drawing's width (its font size).
CalendarDatetypeA day on the calendar: a four-digit year, a month 1 to 12 and a day of the month.
CalendarHousingtypeOne of the housings in CALENDAR_HOUSINGS.
calendarIconfunctionAn original calendar-page SVG for a month, day and optional year.
CalendarIconOptionstypeWhat calendarIcon takes: the date, the design and the look of one calendar page.
calendarLayoutfunctionThe box, the page and the year's room of a theme, with and without a year.
CalendarLayouttypeWhere a theme puts the day and the year; a theme's layout says it once and the drawing and the tests both read it.
CalendarLooktypeThe three options a preset sets: a housing, rings and a turn.
calendarMoonfunctionThe phase of the moon at noon UTC on a date, in eighths of a lunation: 0 new, 2 first quarter, 4 full, 6 last quarter.
CalendarPresettypeOne of the names in CALENDAR_PRESETS.
calendarPresetOffunctionReads a preset's name.
CalendarThemetypeOne of the names in CALENDAR_THEMES.
calendarThemeOffunctionReads a design's name, or an older name for one.
calendarWeekendfunctionThe Saturday and the Sunday of the weekend a date is in.
JAPANESE_HOLIDAY_YEARSconstantThe first and last year the holiday rules describe.
japaneseHolidayfunctionThe public holiday of a day, in both languages.
JapaneseHolidaytypeA Japanese public holiday's name, in Japanese and in English.
japaneseHolidaysOffunctionEvery public holiday of a year, computed from the law's rules.
OLD_CALENDAR_YEARSconstantThe first and last year the old-calendar astronomy is held to.
oldCalendarDatefunctionThe old-calendar date of a Gregorian date, from the new moons and the sun's longitude.
OldDatetypeA date of the old Japanese calendar (旧暦, kyūreki): a month 1 to 12, a day, and whether the month is a leap month.
RokuyotypeOne day of the six-day cycle (六曜, rokuyō): its name, its reading and an English gloss.
ROKUYOconstantThe six days in order of (old month + old day) mod 6, with the reading and an English gloss.
rokuyoOffunctionThe day of the six-day cycle (六曜, rokuyō) of a Gregorian date.