Skip to content

@eightkk/vue-weave / core / EventCalendarSvgOptions

Interface: EventCalendarSvgOptions<E> ​

Defined in: src/core/exportCalendarSvg.ts:33

Options of renderEventCalendarSvg. E types the events that eventLabel receives.

Extends ​

Type Parameters ​

E ​

E extends CalendarEvent = CalendarEvent

Properties ​

agendaDays? ​

optional agendaDays?: number

Defined in: src/core/eventCalendar.ts:92

Length of the agenda view in days, an integer from 1 to 366. Without it, the agenda shows the week that contains the date (from weekStartsOn) and steps by weeks, like the week view; with it, the agenda shows that many days from the local day of the date and steps by that many days. Other views ignore it.

Inherited from ​

EventCalendarOptions.agendaDays


background? ​

optional background?: boolean

Defined in: src/core/svgExportShared.ts:96

Paint an opaque background. Default true.

Inherited from ​

SvgExportOptions.background


dayEnd? ​

optional dayEnd?: number

Defined in: src/core/exportCalendarSvg.ts:45


dayStart? ​

optional dayStart?: number

Defined in: src/core/exportCalendarSvg.ts:44

First and last-plus-one hour of the time grid, integers from 0 to 24. Defaults 0 and 24. The whole span is drawn.


direction? ​

optional direction?: "ltr" | "rtl"

Defined in: src/core/svgExportShared.ts:100

Text direction of labels. For timelines, rtl also mirrors the time axis and places row headings on the right.

Inherited from ​

SvgExportOptions.direction


eventLabel? ​

optional eventLabel?: (event) => string

Defined in: src/core/exportCalendarSvg.ts:66

Event label text. Defaults to event.label.

Parameters ​

event ​

E

Returns ​

string


fontFamily? ​

optional fontFamily?: string

Defined in: src/core/svgExportShared.ts:92

CSS font-family list written on the root element.

Inherited from ​

SvgExportOptions.fontFamily


formatTime? ​

optional formatTime?: (time) => string

Defined in: src/core/exportCalendarSvg.ts:60

Times of day in labels. Default intlTimeFormatter({ locale, timeZone }).

Parameters ​

time ​

number

Returns ​

string


heading? ​

optional heading?: string | false

Defined in: src/core/exportCalendarSvg.ts:64

Text drawn above the view. Defaults to the title of the EventCalendar toolbar; false draws none.


hourHeight? ​

optional hourHeight?: number

Defined in: src/core/exportCalendarSvg.ts:47

Height of one hour of the time grid in pixels. Default 48.


idPrefix? ​

optional idPrefix?: string

Defined in: src/core/svgExportShared.ts:98

Prefix for the IDs of markers and clip paths, so several exports can be inlined in one page. Default vw-export.

Inherited from ​

SvgExportOptions.idPrefix


labels? ​

optional labels?: Partial<EventCalendarSvgLabels>

Defined in: src/core/exportCalendarSvg.ts:62

Texts; omitted ones use the English EventCalendar defaults.


locale? ​

optional locale?: string | readonly string[]

Defined in: src/core/exportCalendarSvg.ts:40

BCP 47 locale of the labels. Default en-US.


maxMonthLanes? ​

optional maxMonthLanes?: number

Defined in: src/core/exportCalendarSvg.ts:54

Lanes of events per week of the month view before "+N more". Default 3.


now? ​

optional now?: number

Defined in: src/core/exportCalendarSvg.ts:56

Current time: its day is marked as today and the time grid draws the now line.


resources? ​

optional resources?: readonly CalendarResource[]

Defined in: src/core/exportCalendarSvg.ts:42

Resources; the day view draws one column per resource, as EventCalendar resources.


selectedId? ​

optional selectedId?: string

Defined in: src/core/exportCalendarSvg.ts:58

An event drawn in the selected style.


theme? ​

optional theme?: SvgExportThemeInput

Defined in: src/core/svgExportShared.ts:90

Colours; omitted values use defaultSvgExportTheme. Each is a CSS colour value (hex, a colour name or keyword, or one of the colour functions such as rgb(), color-mix() or var()); anything else throws a RangeError.

Inherited from ​

SvgExportOptions.theme


timeZone? ​

optional timeZone?: string

Defined in: src/core/eventCalendar.ts:84

IANA time zone, such as Europe/Berlin, whose local dates the days follow. Default UTC.

Inherited from ​

EventCalendarOptions.timeZone


title? ​

optional title?: string

Defined in: src/core/svgExportShared.ts:94

Document title, written as <title> and the accessible name.

Inherited from ​

SvgExportOptions.title


view? ​

optional view?: EventCalendarViewName

Defined in: src/core/exportCalendarSvg.ts:38

day, week, month or agenda, as EventCalendar view. Default week. Other values throw a RangeError (Unsupported event calendar export view). The length of the agenda follows agendaDays, as on screen.


weekStartsOn? ​

optional weekStartsOn?: number

Defined in: src/core/eventCalendar.ts:86

First day of a week, 0 = Sunday to 6 = Saturday. Default 1 (Monday).

Inherited from ​

EventCalendarOptions.weekStartsOn


width? ​

optional width?: number

Defined in: src/core/exportCalendarSvg.ts:52

Width of the document in pixels; the day columns share it after the hour gutter. Default 896. The agenda puts the date beside the events from 700 pixels and above them below, like the component's narrow layout.

Released under the MIT License.