Home Reference Source

References

summary
public

Timeline class

components

summary
public
public

Component to show a selection box (like on windows desktop)

public

Timebar component - displays the current time on top of the timeline

public

F Marker(props: *): *

public

Default group (row) renderer class

public

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

F sumStyle(style: string, diff: number): string

Add int pixels to a css style (left or top generally)

public

Use to find the height of a row, given a set of items

public

Gets the row number for a given x and y pixel location

public

Gets the row object for a given x and y pixel location

public

Gets the row number for a given row object

public

Gets the true bottom location given an object

public

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

F timeSnap(time: moment, snapSeconds: number): moment

Snaps a moment object to the given resolution

public

E moment(items: Object[], vis_start: moment, vis_end: moment, total_width: number)

Render all items in a row

Directories