Function
Static Public Summary | ||
public |
DefaultGroupRenderer(props: object): * Default group (row) renderer class |
|
public |
DefaultItemRenderer(props: object): * Default item renderer class |
|
public |
Marker(props: *): * |
|
public |
getDurationFromPixels(pixels: number, vis_start: moment, vis_end: moment, total_width: number): moment Returns the duration from the vis_start |
|
public |
getMaxOverlappingItems(items: Object[]): number Use to find the height of a row, given a set of items |
|
public |
getNearestRowNumber(x: number, y: number, topDiv: Object): number Gets the row number for a given x and y pixel location |
|
public |
getNearestRowObject(x: number, y: number, topDiv: Object): Object Gets the row object for a given x and y pixel location |
|
public |
getPixelAtTime(time: objects, vis_start: moment, vis_end: moment, total_width: number): number Get the pixel location at a specific time |
|
public |
getRowObjectRowNumber(elem: Object): number Gets the row number for a given row object |
|
public |
getSnapPixelFromDelta(delta: number, vis_start: moment, vis_end: moment, total_width: number, snapMinutes: number): * |
|
public |
getTimeAtPixel(pixel_location: number, vis_start: moment, vis_end: moment, total_width: number, snapMinutes: number): moment Get the time at a pixel location |
|
public |
getTrueBottom(elem: Object): number Gets the true bottom location given an object |
|
public |
getVerticalMarginBorder(elem: Object): number Gets the vertical margins and borders given an object |
|
public |
Convert integer to pixel string. |
|
public |
Converts a pixel string to an int |
|
public |
pixelsPerMinute(vis_start: moment, vis_end: moment, total_width: number): float Get the pixels per minute |
|
public |
rowLayerRenderer(layers: Object[], vis_start: moment, vis_end: moment, total_width: number, itemHeight: number): * Render row layers |
|
public |
Add int pixels to a css style (left or top generally) |
|
public |
Snaps a moment object to the given resolution |
Static Public
public DefaultGroupRenderer(props: object): * source
import {DefaultGroupRenderer} from 'react-timeline-9000/src/components/renderers.js'
Default group (row) renderer class
Return:
* |
public DefaultItemRenderer(props: object): * source
import {DefaultItemRenderer} from 'react-timeline-9000/src/components/renderers.js'
Default item renderer class
Return:
* |
public Marker(props: *): * source
import Marker from 'react-timeline-9000/src/components/marker.js'
Params:
Name | Type | Attribute | Description |
props | * |
Return:
* |
public getDurationFromPixels(pixels: number, vis_start: moment, vis_end: moment, total_width: number): moment source
import {getDurationFromPixels} from 'react-timeline-9000/src/utils/timeUtils.js'
Returns the duration from the vis_start
public getMaxOverlappingItems(items: Object[]): number source
import {getMaxOverlappingItems} from 'react-timeline-9000/src/utils/itemUtils.js'
Use to find the height of a row, given a set of items
Params:
Name | Type | Attribute | Description |
items | Object[] | List of items |
public getNearestRowNumber(x: number, y: number, topDiv: Object): number source
import {getNearestRowNumber} from 'react-timeline-9000/src/utils/itemUtils.js'
Gets the row number for a given x and y pixel location
public getNearestRowObject(x: number, y: number, topDiv: Object): Object source
import {getNearestRowObject} from 'react-timeline-9000/src/utils/itemUtils.js'
Gets the row object for a given x and y pixel location
public getPixelAtTime(time: objects, vis_start: moment, vis_end: moment, total_width: number): number source
import {getPixelAtTime} from 'react-timeline-9000/src/utils/timeUtils.js'
Get the pixel location at a specific time
public getRowObjectRowNumber(elem: Object): number source
import {getRowObjectRowNumber} from 'react-timeline-9000/src/utils/itemUtils.js'
Gets the row number for a given row object
Params:
Name | Type | Attribute | Description |
elem | Object | The row object |
public getSnapPixelFromDelta(delta: number, vis_start: moment, vis_end: moment, total_width: number, snapMinutes: number): * source
import {getSnapPixelFromDelta} from 'react-timeline-9000/src/utils/timeUtils.js'
Return:
* |
public getTimeAtPixel(pixel_location: number, vis_start: moment, vis_end: moment, total_width: number, snapMinutes: number): moment source
import {getTimeAtPixel} from 'react-timeline-9000/src/utils/timeUtils.js'
Get the time at a pixel location
Params:
Name | Type | Attribute | Description |
pixel_location | number | the pixel location (generally from left css style) |
|
vis_start | moment | The visible start of the timeline |
|
vis_end | moment | The visible end of the timeline |
|
total_width | number | The pixel width of the timeline (row portion) |
|
snapMinutes | number | The snap resolution (in mins) |
public getTrueBottom(elem: Object): number source
import {getTrueBottom} from 'react-timeline-9000/src/utils/itemUtils.js'
Gets the true bottom location given an object
Params:
Name | Type | Attribute | Description |
elem | Object | an element |
public getVerticalMarginBorder(elem: Object): number source
import {getVerticalMarginBorder} from 'react-timeline-9000/src/utils/itemUtils.js'
Gets the vertical margins and borders given an object
Params:
Name | Type | Attribute | Description |
elem | Object | The row object |
public intToPix(int: number): string source
import {intToPix} from 'react-timeline-9000/src/utils/commonUtils.js'
Convert integer to pixel string. If not an integer the input is returned as is
Params:
Name | Type | Attribute | Description |
int | number | Integer value |
public pixToInt(pix: string): number source
import {pixToInt} from 'react-timeline-9000/src/utils/commonUtils.js'
Converts a pixel string to an int
Params:
Name | Type | Attribute | Description |
pix | string | Pixel string |
public pixelsPerMinute(vis_start: moment, vis_end: moment, total_width: number): float source
import {pixelsPerMinute} from 'react-timeline-9000/src/utils/timeUtils.js'
Get the pixels per minute
Return:
float | The pixels per minute |
public rowLayerRenderer(layers: Object[], vis_start: moment, vis_end: moment, total_width: number, itemHeight: number): * source
import {rowLayerRenderer} from 'react-timeline-9000/src/utils/itemUtils.js'
Render row layers
Return:
* |
public sumStyle(style: string, diff: number): string source
import {sumStyle} from 'react-timeline-9000/src/utils/commonUtils.js'
Add int pixels to a css style (left or top generally)
public timeSnap(time: moment, snapSeconds: number): moment source
import {timeSnap} from 'react-timeline-9000/src/utils/timeUtils.js'
Snaps a moment object to the given resolution