References
summary | ||
public |
C Timeline Timeline class |
components
summary | ||
public |
|
|
public |
Component to show a selection box (like on windows desktop) |
|
public |
C Timebar Timebar component - displays the current time on top of the timeline |
|
public |
F Marker(props: *): * |
|
public |
F DefaultGroupRenderer(props: object): * Default group (row) renderer class |
|
public |
F DefaultItemRenderer(props: object): * Default item renderer class |
consts
summary | ||
public |
V timebarFormat: {"majorLabels": *, "minorLabels": *} Default timebar format |
utils
summary | ||
public |
Convert integer to pixel string. |
|
public |
Converts a pixel string to an int |
|
public |
Add int pixels to a css style (left or top generally) |
|
public |
F getMaxOverlappingItems(items: Object[]): number Use to find the height of a row, given a set of items |
|
public |
F getNearestRowNumber(x: number, y: number, topDiv: Object): number Gets the row number for a given x and y pixel location |
|
public |
F getNearestRowObject(x: number, y: number, topDiv: Object): Object Gets the row object for a given x and y pixel location |
|
public |
F getRowObjectRowNumber(elem: Object): number Gets the row number for a given row object |
|
public |
F getTrueBottom(elem: Object): number Gets the true bottom location given an object |
|
public |
F getVerticalMarginBorder(elem: Object): number Gets the vertical margins and borders given an object |
|
public |
F rowLayerRenderer(layers: Object[], vis_start: moment, vis_end: moment, total_width: number, itemHeight: number): * Render row layers |
|
public |
F getDurationFromPixels(pixels: number, vis_start: moment, vis_end: moment, total_width: number): moment Returns the duration from the vis_start |
|
public |
F getPixelAtTime(time: objects, vis_start: moment, vis_end: moment, total_width: number): number Get the pixel location at a specific time |
|
public |
F getSnapPixelFromDelta(delta: number, vis_start: moment, vis_end: moment, total_width: number, snapMinutes: number): * |
|
public |
F getTimeAtPixel(pixel_location: number, vis_start: moment, vis_end: moment, total_width: number, snapMinutes: number): moment Get the time at a pixel location |
|
public |
F pixelsPerMinute(vis_start: moment, vis_end: moment, total_width: number): float Get the pixels per minute |
|
public |
Snaps a moment object to the given resolution |
|
public |
Render all items in a row |