fx
Plugin to add exporting functionality to the timeline namely PNG, PDF and SVG
Plugin to add exporting functionality to the timeline namely PNG, PDF and SVG
cleans up the HTML of the export-button
runs the clinicalTimelineExporter plugin
Plugin to display the x-coordinate i.e the label and y-coordiante i.e the day when clicked on a timeline element
runs the clinicalTimelineHelperLines plugin
Plugin which dandles the drawing and panning of the overviewAxis drawn below the actual timeline
runs the clinicalTimelineOverviewAxis plugin
scale for drawing the the overviewAxis and ticks in the specified width
scale to map the amount dragged on the zoomedWidth of original timeline to the overviewAxis width helps position the overview-rectangle correctly if original timeline dragged
scale to map the amount dragged on the overview-rectangle to the orignal timeline's zoomedWidth helps position the original-timeline correctly if the overview rectagle is dragged
Utility object for clinical-timeline Contains utility functions and variables required by different files
calculates the the difference (in days) between ticks on x-axis based on current zoom level
current zoom-level
difference between ticks on clinical-timeline
uses binary search to calculate the lower index of the indices between which the element(ele) lies in an array(arr)
array to calculate index upon
value of the element whose index has to be calculated
lower index
rounds down to the nearest multiple of a number
rounded down number
rounds up to the nearest multiple of a number
rounded up number
stores various contstants shared between different functions and plugins of clinical-timeline
Plugin to handle the drawing of a vertical line on hovering over the timeline
cleans up the HTML of the verticalLine
runs the clinicalTimelineVerticalLine plugin
variables to confine the hoverable area
scale to map the coordinates hovered upon (according to the svg coordinates) to the clinical-timeline days
text to be displayed along with hoverLine
Boolean to toggle the visibility of tooltips along with the vertical line
Plugin to add rectangular zoom selection. Use brush to zoom. After zooming in, scroll mouse or drag to pan.
runs the clinicalTimelineZoom plugin
Add rectangular zoom selection zoom in after brush ends
adds textual explanation for the present current zoom state
Checks wheter a timeline track contains timepoints with varying start and end dates.
Merge timepoints that have the same starting_time into one timepoint with multiple tooltip_tables
No description available.
Publically accessible object returned by clinicalTimeline
Add functions to postTimelineHooks i.e the code run everytime timeline() is called
Array of functions to be added to postTimelineHook
clinicalTimeline object
No description available.
clinicalTimeline object
Return zoomFactor by specifying what kind of zoomLevel on the x axis (e.g. years, days) is desired
zoomFactor
Return zoomLevel in human comprehensible form by determining the width in pixels of a single day
zoomLevel
Change the value of the variable allData of clinicalTimeline if argument data is provided, else return the existing value
clinicalTimeline object
Converts the dayCount (input time in days) to time object which contains the time in terms of days, months and years i.e 570 days become {y:1, m:6, d:25}
converted time object
Change the value of the variable divId of clinicalTimeline if argument name is provided, else return the existing value
clinicalTimeline object
Change the value of the variable enableTrackToolTips of clinicalTimeline if argument b is provided, else return the existing value
clinicalTimeline object
Formats and converts time according to the required zoomLevel i.e adds 'd' if time in days, 'm' if in months and 'y' if years
formatted and converted time
Returns te read-only variables of clinicalTimeline
Computes and returns the tick values for placing the ticks for the timeline drawn
Order all tooltip tables by given array of row keys. Tooltip table rows with keys not included given rowkeys argument are appended to the end in alhpanumeric order.
clinicalTimeline object
Order tooltip tables in given track by given array of row keys. Tooltip table rows with keys not included given rowkeys argument are appended to the end in alhpanumeric order.
clinicalTimeline object
Order tracks by given array of label names. Tracks with label names not included in the sequence are appended to the end in alhpanumeric order.
clinicalTimeline object
Change the value of the variable overviewAxisWidth of clinicalTimeline if argument w is provided, else return the existing value
clinicalTimeline object
Change the value of the variable overviewX of clinicalTimeline if argument x is provided, else return the existing value
clinicalTimeline object
Enable or disable a particular plugin based on the pluginId if the argument state is given, else return the existing state
Change the value of the variable plugins of clinicalTimeline if argument plugins is provided, else return the existing value
clinicalTimeline object
Set the display attribute for all timepoints with one tooltip_table on a given track.
clinicalTimeline object
Set the size of each timepoint in a track based on the value of an attribute in the tooltip_tables.
clinicalTimeline object
Split a track into multiple tracks based on the value of an attribute in the tooltip_tables. The attributes to attrs agument can be a single string or an array of strings. An array of strings splits the tracks sequentially.
clinicalTimeline object
Return the value of clinicalTimeline variable stackSlack
clinicalTimeline object
Collapse or stack timepoints on given track
clinicalTimeline object
Change the value of the variable translateX of clinicalTimeline if argument x is provided, else return the existing value
clinicalTimeline object
Change the value of the variable width of clinicalTimeline if argument w is provided, else return the existing value
clinicalTimeline object
Change the value of the variable zoomFactor of clinicalTimeline if argument zFactor is provided, else return the existing value
clinicalTimeline object
Plugin to handle configButton in clinicalTimeline
cleans up the HTML of the configButton
runs the configCheckManager plugin
handle the selection or deselection of a plugin in the config button
Exports the clinical-timeline to PDF by converting the PNG generated by clinicalTimelineExporter.generatePNG to PDF
Exports the clinical-timeline as PNG
enable or disable download
Exports the clinical-timeline as SVG
Plugin which trims the timeline to areas of interest by cutting off portions with no timeline-elements
runs the trimClinicalTimeline plugin
Handles double clicking of the kinks in trimmed timeline by extending back the timeline and also handles coming back to trimmed timeline
returns updated x coordinate for the data elements according to th trimmed timeline
starting time of the clinical timeline element
updated x coordinate post-trimming