-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add row provider interface to fetch the full list of row ids. Add selected row index to TimeGraphRowController to allow for the case where the selected row model is not yet available. Allow for selected row model to be undefined. When the list of row ids changes, delete row component for removed rows and update the y-position of existing rows. Update the selected row index. Create placeholder rows for new rows until their row model is fetched. Allow for placeholder rows to be created and displayed while the row model is being fetched, by allowing constructor with undefined row model. Make each TimeGraphRowComponent have its own providedModel (range and resolution) object so that each row can determine independently if it needs to fetch new data when the view range or resolution changes. Compute the list of visible row ids (with a few extra buffered rows) and filter out those that already have the correct model. Fetch the row model of only the necessary rows. When the row models are received, destroy only the row components to be updated and recreate them. The other row components are left untouched. Move states and annotations from the TimeGraphChartLayer to be children of their respective TimeGraphRowComponent instead. If a newly created row component is at the selected row index, select it. In updateScaleAndPosition(), iterate through existing row components instead of row models. Handle placeholder rows that have no states or annotations. Allow row style provider to provide default style for placeholder rows when row model is undefined. Call the debounced maybeFetchNewData() method when the vertical offset is changed to fetch row model of rows that become visible. Remove getRowModels() method as all row models are not always available. Add getRowModel(index) method. Replace getElementById() with getStateById(). Iterate through the row components to find the state. Move arrow up/down navigation from TimeGraphChartCursors layer to TimeGraphChart layer. Ensure the newly selected row is visible. Make options optional in update of annotation. Clear the row components map at destroy() and removeChildren(). Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
- Loading branch information
1 parent
100418b
commit 90696d3
Showing
6 changed files
with
320 additions
and
189 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.