本文へ移動

Koyomi Calendars暦

カレンダーのページをSVGで描きます。1日を18種類のアイコンで、1か月をポスターや卓上カレンダーで、そして日めくりも使えます。

「暦」(こよみ) は、カレンダーのことです。 名前について(英語)

目次

リファレンス

カレンダーアイコン

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

リファレンスの説明と例は英語です。見出しと目次は日本語です。

エクスポート

名前種類概要
CALENDAR_HOUSINGS定数The housings an icon can sit in: square (the icon alone) and circle (on a coloured disc).
CALENDAR_PRESETS定数The named looks: flat, disc, ringed, tilted and disc-ringed.
CALENDAR_THEME_ALIASES定数The ten names of 0.12 and 0.13, still accepted: each reads as the theme that replaced it.
CALENDAR_THEME_LABELS定数Each design's name for a picker, in English and in Japanese.
CALENDAR_THEMES定数The 18 designs, by name.
CALENDAR_TURN_MAX定数The most the icon may be turned either way, in degrees.
CALENDAR_YEAR_CLEAR定数The share of the drawing's width the year keeps clear of the bottom of its zone.
CALENDAR_YEAR_MIN定数The year is never smaller than this share of the drawing's width (its font size).
CalendarDate型A day on the calendar: a four-digit year, a month 1 to 12 and a day of the month.
CalendarHousing型One of the housings in CALENDAR_HOUSINGS.
calendarIcon関数An original calendar-page SVG for a month, day and optional year.
CalendarIconOptions型What calendarIcon takes: the date, the design and the look of one calendar page.
calendarLayout関数The box, the page and the year's room of a theme, with and without a year.
CalendarLayout型Where a theme puts the day and the year; a theme's layout says it once and the drawing and the tests both read it.
CalendarLook型The three options a preset sets: a housing, rings and a turn.
calendarMoon関数The 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.
CalendarPreset型One of the names in CALENDAR_PRESETS.
calendarPresetOf関数Reads a preset's name.
CalendarTheme型One of the names in CALENDAR_THEMES.
calendarThemeOf関数Reads a design's name, or an older name for one.
calendarWeekend関数The Saturday and the Sunday of the weekend a date is in.
JAPANESE_HOLIDAY_YEARS定数The first and last year the holiday rules describe.
japaneseHoliday関数The public holiday of a day, in both languages.
JapaneseHoliday型A Japanese public holiday's name, in Japanese and in English.
japaneseHolidaysOf関数Every public holiday of a year, computed from the law's rules.
OLD_CALENDAR_YEARS定数The first and last year the old-calendar astronomy is held to.
oldCalendarDate関数The old-calendar date of a Gregorian date, from the new moons and the sun's longitude.
OldDate型A date of the old Japanese calendar (旧暦, kyūreki): a month 1 to 12, a day, and whether the month is a leap month.
Rokuyo型One day of the six-day cycle (六曜, rokuyō): its name, its reading and an English gloss.
ROKUYO定数The six days in order of (old month + old day) mod 6, with the reading and an English gloss.
rokuyoOf関数The day of the six-day cycle (六曜, rokuyō) of a Gregorian date.

ソースを見るGitHub で編集@johnmorrisdotca/koyomi-calendars 0.3.0 のソースから作成しました。

この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。