Time Bar Events
In 3.0 we deprecated the onTimeBar- events.
Invoked whenever the range of the Time Bar changes. Returns a list of items in the updated range.
Parameters
- change required
objectAn object describing the change.
objectShows which items are currently in the visible range.
booleanIndicates if the play state has changed.
Invoked when the user clicks or taps on the time bar surface.
Parameters
- props required
object
button
requirednumberThe index of the button used.
DateThe date at the end of the clicked range.
numberThe index of the clicked selection point, or null for other click types.
modifierKeys
requiredobjectA dictionary detailing which modifier keys were pressed when the event occurred. See Modifier Keys.
pointerId
requirednumberThe unique identifier of the pointer.
pointerType
requiredstringThe type of pointing device.
numberIndex of clicked stack in the bar. Undefined if type parameter is not 'bar' or the bar is highlighted.
array of numbersValues of each stack in the bar. Undefined if type parameter is not 'bar' or the bar is highlighted.
DateThe date at the start of the clicked range.
tooltipX
requirednumberA suggested location for the tooltip in the x direction - the center of the bar or selection point.
tooltipY
requirednumberA suggested location for the tooltip in the y direction - the height of the bar or selection point.
type
required'bar' | 'area' | 'selection' | 'scale' | 'left' | 'right' | 'slider' | nullThe type of clicked item.
numberThe value of either the bar or selection.
x
requirednumberThe x location of the pointer in view coordinates.
y
requirednumberThe y location of the pointer in view coordinates.
Invoked on a right click, long press or left click + Ctrl for MacOS.
Default action: Suppresses the onClick event.
Parameters
- props required
object
button
requirednumberThe index of the button used.
defaultPrevented
requiredbooleanA read-only value indicating if the default action was prevented.
DateThe date at the end of the clicked range.
numberThe index of the clicked selection point, or null for other click types.
modifierKeys
requiredobjectA dictionary detailing which modifier keys were pressed when the event occurred. See Modifier Keys.
pointerId
requirednumberThe unique identifier of the pointer.
pointerType
requiredstringThe type of pointing device.
preventDefault
requiredfunctionCall to prevent the default action of the event.
numberIndex of clicked stack in the bar. Undefined if type parameter is not 'bar' or the bar is highlighted.
array of numbersValues of each stack in the bar. Undefined if type parameter is not 'bar' or the bar is highlighted.
DateThe date at the start of the clicked range.
tooltipX
requirednumberA suggested location for the tooltip in the x direction - the center of the bar or selection point.
tooltipY
requirednumberA suggested location for the tooltip in the y direction - the height of the bar or selection point.
type
required'bar' | 'area' | 'selection' | 'scale' | 'left' | 'right' | 'slider' | nullThe type of clicked item.
numberThe value of either the bar or selection.
x
requirednumberThe x location of the pointer in view coordinates.
y
requirednumberThe y location of the pointer in view coordinates.
Invoked when the user double-clicks or double-taps on the time bar surface.
Default action: Animated zoom in that centres at the clicked time.
Parameters
- props required
object
button
requirednumberThe index of the button used.
defaultPrevented
requiredbooleanA read-only value indicating if the default action was prevented.
DateThe date at the end of the clicked range.
numberThe index of the clicked selection point, or null for other click types.
modifierKeys
requiredobjectA dictionary detailing which modifier keys were pressed when the event occurred. See Modifier Keys.
pointerId
requirednumberThe unique identifier of the pointer.
pointerType
requiredstringThe type of pointing device.
preventDefault
requiredfunctionCall to prevent the default action of the event.
numberIndex of clicked stack in the bar. Undefined if type parameter is not 'bar' or the bar is highlighted.
array of numbersValues of each stack in the bar. Undefined if type parameter is not 'bar' or the bar is highlighted.
DateThe date at the start of the clicked range.
tooltipX
requirednumberA suggested location for the tooltip in the x direction - the center of the bar or selection point.
tooltipY
requirednumberA suggested location for the tooltip in the y direction - the height of the bar or selection point.
type
required'bar' | 'area' | 'selection' | 'scale' | 'left' | 'right' | 'slider' | nullThe type of clicked item.
numberThe value of either the bar or selection.
x
requirednumberThe x location of the pointer in view coordinates.
y
requirednumberThe y location of the pointer in view coordinates.
Invoked when the drag is finished and pointer is released, or when the drag is canceled.
Default actions depending on drag type:
- 'slider' - Accepts the final panned range of the time bar and zooms to fit the view.
- other types - Accepts the final panned range of the time bar. Prevent the default action to snap the pan back.
Parameters
- props required
object
button
requirednumberThe index of the button used.
defaultPrevented
requiredbooleanA read-only value indicating if the default action was prevented.
DateThe date at the end of the clicked range.
numberThe index of the clicked selection point, or null for other click types.
modifierKeys
requiredobjectA dictionary detailing which modifier keys were pressed when the event occurred. See Modifier Keys.
pointerId
requirednumberThe unique identifier of the pointer.
pointerType
requiredstringThe type of pointing device.
preventDefault
requiredfunctionCall to prevent the default action of the event.
numberIndex of clicked stack in the bar. Undefined if type parameter is not 'bar' or the bar is highlighted.
array of numbersValues of each stack in the bar. Undefined if type parameter is not 'bar' or the bar is highlighted.
DateThe date at the start of the clicked range.
tooltipX
requirednumberA suggested location for the tooltip in the x direction - the center of the bar or selection point.
tooltipY
requirednumberA suggested location for the tooltip in the y direction - the height of the bar or selection point.
type
required'bar' | 'area' | 'selection' | 'scale' | 'left' | 'right' | 'slider' | nullThe type of clicked item.
numberThe value of either the bar or selection.
x
requirednumberThe x location of the pointer in view coordinates.
y
requirednumberThe y location of the pointer in view coordinates.
Invoked when a drag is started.
Default actions depending on drag type:
- 'slider' - Starts dragging the slider.
- other types - Starts a pan controlled by the pointer. Prevent the default action to disable panning.
Parameters
- props required
object
button
requirednumberThe index of the button used.
defaultPrevented
requiredbooleanA read-only value indicating if the default action was prevented.
DateThe date at the end of the clicked range.
numberThe index of the clicked selection point, or null for other click types.
modifierKeys
requiredobjectA dictionary detailing which modifier keys were pressed when the event occurred. See Modifier Keys.
pointerId
requirednumberThe unique identifier of the pointer.
pointerType
requiredstringThe type of pointing device.
preventDefault
requiredfunctionCall to prevent the default action of the event.
numberIndex of clicked stack in the bar. Undefined if type parameter is not 'bar' or the bar is highlighted.
array of numbersValues of each stack in the bar. Undefined if type parameter is not 'bar' or the bar is highlighted.
DateThe date at the start of the clicked range.
tooltipX
requirednumberA suggested location for the tooltip in the x direction - the center of the bar or selection point.
tooltipY
requirednumberA suggested location for the tooltip in the y direction - the height of the bar or selection point.
type
required'bar' | 'area' | 'selection' | 'scale' | 'left' | 'right' | 'slider' | nullThe type of clicked item.
numberThe value of either the bar or selection.
x
requirednumberThe x location of the pointer in view coordinates.
y
requirednumberThe y location of the pointer in view coordinates.
Invoked when the user hovers over an item. Only invoked whenever the hover id changes.
Parameters
- props required
object
button
requirednumberThe index of the button used.
DateThe date at the end of the clicked range.
numberThe index of the clicked selection point, or null for other click types.
modifierKeys
requiredobjectA dictionary detailing which modifier keys were pressed when the event occurred. See Modifier Keys.
pointerId
requirednumberThe unique identifier of the pointer.
pointerType
requiredstringThe type of pointing device.
numberIndex of clicked stack in the bar. Undefined if type parameter is not 'bar' or the bar is highlighted.
array of numbersValues of each stack in the bar. Undefined if type parameter is not 'bar' or the bar is highlighted.
DateThe date at the start of the clicked range.
tooltipX
requirednumberA suggested location for the tooltip in the x direction - the center of the bar or selection point.
tooltipY
requirednumberA suggested location for the tooltip in the y direction - the height of the bar or selection point.
type
required'bar' | 'area' | 'selection' | 'scale' | 'left' | 'right' | 'slider' | nullThe type of clicked item.
numberThe value of either the bar or selection.
x
requirednumberThe x location of the pointer in view coordinates.
y
requirednumberThe y location of the pointer in view coordinates.
Invoked when the pointer presses down on the time bar surface.
Parameters
- props required
object
button
requirednumberThe index of the button used.
DateThe date at the end of the clicked range.
numberThe index of the clicked selection point, or null for other click types.
modifierKeys
requiredobjectA dictionary detailing which modifier keys were pressed when the event occurred. See Modifier Keys.
pointerId
requirednumberThe unique identifier of the pointer.
pointerType
requiredstringThe type of pointing device.
numberIndex of clicked stack in the bar. Undefined if type parameter is not 'bar' or the bar is highlighted.
array of numbersValues of each stack in the bar. Undefined if type parameter is not 'bar' or the bar is highlighted.
DateThe date at the start of the clicked range.
tooltipX
requirednumberA suggested location for the tooltip in the x direction - the center of the bar or selection point.
tooltipY
requirednumberA suggested location for the tooltip in the y direction - the height of the bar or selection point.
type
required'bar' | 'area' | 'selection' | 'scale' | 'left' | 'right' | 'slider' | nullThe type of clicked item.
numberThe value of either the bar or selection.
x
requirednumberThe x location of the pointer in view coordinates.
y
requirednumberThe y location of the pointer in view coordinates.
Invoked continuously while the pointer moves on the time bar surface.
Parameters
- props required
object
button
requirednumberThe index of the button used.
DateThe date at the end of the clicked range.
numberThe index of the clicked selection point, or null for other click types.
modifierKeys
requiredobjectA dictionary detailing which modifier keys were pressed when the event occurred. See Modifier Keys.
pointerId
requirednumberThe unique identifier of the pointer.
pointerType
requiredstringThe type of pointing device.
numberIndex of clicked stack in the bar. Undefined if type parameter is not 'bar' or the bar is highlighted.
array of numbersValues of each stack in the bar. Undefined if type parameter is not 'bar' or the bar is highlighted.
DateThe date at the start of the clicked range.
tooltipX
requirednumberA suggested location for the tooltip in the x direction - the center of the bar or selection point.
tooltipY
requirednumberA suggested location for the tooltip in the y direction - the height of the bar or selection point.
type
required'bar' | 'area' | 'selection' | 'scale' | 'left' | 'right' | 'slider' | nullThe type of clicked item.
numberThe value of either the bar or selection.
x
requirednumberThe x location of the pointer in view coordinates.
y
requirednumberThe y location of the pointer in view coordinates.
Invoked when the pointer is released.
Parameters
- props required
object
button
requirednumberThe index of the button used.
DateThe date at the end of the clicked range.
numberThe index of the clicked selection point, or null for other click types.
modifierKeys
requiredobjectA dictionary detailing which modifier keys were pressed when the event occurred. See Modifier Keys.
pointerId
requirednumberThe unique identifier of the pointer.
pointerType
requiredstringThe type of pointing device.
numberIndex of clicked stack in the bar. Undefined if type parameter is not 'bar' or the bar is highlighted.
array of numbersValues of each stack in the bar. Undefined if type parameter is not 'bar' or the bar is highlighted.
DateThe date at the start of the clicked range.
tooltipX
requirednumberA suggested location for the tooltip in the x direction - the center of the bar or selection point.
tooltipY
requirednumberA suggested location for the tooltip in the y direction - the height of the bar or selection point.
type
required'bar' | 'area' | 'selection' | 'scale' | 'left' | 'right' | 'slider' | nullThe type of clicked item.
numberThe value of either the bar or selection.
x
requirednumberThe x location of the pointer in view coordinates.
y
requirednumberThe y location of the pointer in view coordinates.
Invoked continuously while the user is rotating a mouse wheel or scrolling using a trackpad.
Default action: Animated zoom in or out.
Parameters
- props required
object
defaultPrevented
requiredbooleanA read-only value indicating if the default action was prevented.
deltaMode
requirednumberThe unit of measurement for the delta value.
deltaX
requirednumberThe number of units that the wheel scrolled in the x direction.
deltaY
requirednumberThe number of units that the wheel scrolled in the y direction.
modifierKeys
requiredobjectA dictionary detailing which modifier keys were pressed when the event occurred. See Modifier Keys.
preventDefault
requiredfunctionCall to prevent the default action of the event.
x
requirednumberThe x location of the pointer in view coordinates.
y
requirednumberThe y location of the pointer in view coordinates.