Class: WeekAxis
Hierarchy
↳ WeekAxis
Table of contents
Constructors
Properties
- axisXOffset
- axisYOffset
- context
- dimensions
- domain
- element
- textFontSize
- tickFormat
- tickInterval
- tickIntervalWidth
- tickSize
Methods
- getDate
- getIntervalWidth
- getPosition
- getTickIntervalWidth
- onClick
- plot
- remove
- setAxisYOffset
- setBoundDates
- setDimensions
- setRange
- setTextFontSize
- setTickInterval
- setTickIntervalWidth
- setTickSize
Constructors
constructor
• new WeekAxis(context
)
Parameters
Name | Type |
---|---|
context |
any |
Overrides
Defined in
src/calendar-timeline/lib/classes/axes/week.axis.ts:25
Properties
axisXOffset
• Protected
axisXOffset: number
Inherited from
Defined in
src/calendar-timeline/lib/classes/axes/axis.ts:34
axisYOffset
• Protected
axisYOffset: number
Inherited from
Defined in
src/calendar-timeline/lib/classes/axes/axis.ts:35
context
• Protected
context: Selection
<SVGGElement
, TimelineData
, BaseType
, TimelineData
>
the context is the parent element to which the current element is appended
Inherited from
Defined in
src/calendar-timeline/lib/classes/drawable.object.ts:27
dimensions
• Protected
dimensions: Dimensions
Inherited from
Defined in
src/calendar-timeline/lib/classes/drawable.object.ts:28
domain
• Protected
domain: ScaleTime
<number
, number
, never
>
Inherited from
Defined in
src/calendar-timeline/lib/classes/axes/axis.ts:29
element
• Protected
element: Selection
<SVGGElement
, TimelineData
, BaseType
, TimelineData
>
the element
contains the drawing of this current object
Inherited from
Defined in
src/calendar-timeline/lib/classes/drawable.object.ts:25
textFontSize
• Protected
textFontSize: number
Inherited from
Defined in
src/calendar-timeline/lib/classes/axes/axis.ts:36
tickFormat
• Protected
tickFormat: (domainValue
: Date
| NumberValue
, index
: number
) => string
Type declaration
▸ (domainValue
, index
): string
Parameters
Name | Type |
---|---|
domainValue |
Date | NumberValue |
index |
number |
Returns
string
Inherited from
Defined in
src/calendar-timeline/lib/classes/axes/axis.ts:33
tickInterval
• Protected
tickInterval: AxisTimeInterval
Inherited from
Defined in
src/calendar-timeline/lib/classes/axes/axis.ts:30
tickIntervalWidth
• Protected
tickIntervalWidth: number
Inherited from
Defined in
src/calendar-timeline/lib/classes/axes/axis.ts:31
tickSize
• Protected
tickSize: number
= 6
Inherited from
Defined in
src/calendar-timeline/lib/classes/axes/axis.ts:32
Methods
getDate
▸ getDate(d
): Date
Parameters
Name | Type |
---|---|
d |
number |
Returns
Date
Inherited from
Defined in
src/calendar-timeline/lib/classes/axes/axis.ts:113
getIntervalWidth
▸ getIntervalWidth(d
): number
Parameters
Name | Type |
---|---|
d |
Date |
Returns
number
Inherited from
Defined in
src/calendar-timeline/lib/classes/axes/axis.ts:105
getPosition
▸ getPosition(d
): number
Parameters
Name | Type |
---|---|
d |
Date |
Returns
number
Inherited from
Defined in
src/calendar-timeline/lib/classes/axes/axis.ts:109
getTickIntervalWidth
▸ getTickIntervalWidth(): number
Returns
number
Inherited from
Defined in
src/calendar-timeline/lib/classes/axes/axis.ts:101
onClick
▸ onClick(e
): void
Parameters
Name | Type |
---|---|
e |
any |
Returns
void
Inherited from
Defined in
src/calendar-timeline/lib/classes/drawable.object.ts:60
plot
▸ plot(): void
plots the axis, if the axis has already been plotted, it's replaced.
Returns
void
Overrides
Defined in
src/calendar-timeline/lib/classes/axes/week.axis.ts:30
remove
▸ remove(): void
Returns
void
Inherited from
Defined in
src/calendar-timeline/lib/classes/drawable.object.ts:45
setAxisYOffset
▸ setAxisYOffset(axisYOffset
): Axis
Parameters
Name | Type |
---|---|
axisYOffset |
number |
Returns
Inherited from
Defined in
src/calendar-timeline/lib/classes/axes/axis.ts:76
setBoundDates
▸ setBoundDates(dates
): Axis
Set the dates of the axis bounds
Parameters
Name | Type | Description |
---|---|---|
dates |
Date [] |
start and end dates |
Returns
Overrides
Defined in
src/calendar-timeline/lib/classes/axes/week.axis.ts:40
setDimensions
▸ setDimensions(dimensions
): DrawableObject
Parameters
Name | Type |
---|---|
dimensions |
Dimensions |
Returns
Inherited from
Defined in
src/calendar-timeline/lib/classes/drawable.object.ts:52
setRange
▸ setRange(d
): Axis
Parameters
Name | Type |
---|---|
d |
Dimensions |
Returns
Inherited from
Defined in
src/calendar-timeline/lib/classes/axes/axis.ts:47
setTextFontSize
▸ setTextFontSize(textFontSize
): Axis
Parameters
Name | Type |
---|---|
textFontSize |
number |
Returns
Inherited from
Defined in
src/calendar-timeline/lib/classes/axes/axis.ts:81
setTickInterval
▸ setTickInterval(t
): WeekAxis
Parameters
Name | Type |
---|---|
t |
AxisTimeInterval |
Returns
Inherited from
Defined in
src/calendar-timeline/lib/classes/axes/axis.ts:61
setTickIntervalWidth
▸ setTickIntervalWidth(t
): WeekAxis
Parameters
Name | Type |
---|---|
t |
number |
Returns
Inherited from
Defined in
src/calendar-timeline/lib/classes/axes/axis.ts:71
setTickSize
▸ setTickSize(s
): WeekAxis
Parameters
Name | Type |
---|---|
s |
number |
Returns
Inherited from
Defined in
src/calendar-timeline/lib/classes/axes/axis.ts:66