Get the track container's dimmensions, relative to orientation.
Getter for the component's internal scale
Getter for scaleHandler
current scale handler
Setter for scaleHandler
new scale handler
current scale handler
DOM element that has the zoom behaviour attached
Add DOM-elements for new tracks
enter selection
Remove DOM-elements belonging to removed tracks
exit selection
Update DOM-elements for existing tracks
update selection
Adds a single track to the log controller
track to be added
Rescale according to new container size
Set to true in order to force update even if size has not changed
Adjust track titles according to available space. Uses abbrievation istead of full label if not enough space.
Recalculates transform based on new container size
Convenience method if used stand-alone. Wraps onMount and returns self for chaining.
HTML element to attach itself to
Initialize the component and attach itself to the provided DOM element.
HTML element to attach itself to
To unregister event listeners etc.
Trigger onUpdate event after tracks has been altered in size
Processes track legend config object, creating the necessary DOM elements and hooking up callback functions etc.
Track to process
Legend element
Force a redraw
Removes a track from the log controller component
track to be removed
Notify all clients (tracks) on changes to domain/transform
Remove all tracks and update ui
Set the tracks for this controller, replacing any existing tracks
Setup DOM elements, scale and behaviour
Html element to attach to
Updates the legend for a specific track
Track id
Determines the required number of rows in the legend section.
Update track-elements based on current registered track instances
Event handler for pan/zoom
Simple creator function for minimal setup
optional flag to show titles or not
Generated using TypeDoc
A container component for tracks, with track titles, legends, adding/removing tracks, resizing and user interaction.