リファレンス
カレンダーアイコン
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. |
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。