Draws the chart given a data table [dataTable] and an optional set of options [options]. TODO: handle updates while animation is happening.
(&self, ctx: &C)
| 688 | /// options [options]. |
| 689 | // TODO: handle updates while animation is happening. |
| 690 | fn draw(&self, ctx: &C) { |
| 691 | // TODO: use this not_eq |
| 692 | // let props = self.props.borrow(); |
| 693 | // if props.width == 0_f64 || props.height == 0_f64 { |
| 694 | // return; |
| 695 | // } |
| 696 | |
| 697 | // data_tableSubscriptionTracker |
| 698 | // ..add(dataTable.onCellChange.listen(data_cell_changed)) |
| 699 | // ..add(dataTable.onColumnsChange.listen(dataColumnsChanged)) |
| 700 | // ..add(dataTable.onRowsChange.listen(data_rows_changed)); |
| 701 | |
| 702 | // self.ctx.clearRect(0, 0, self.width, self.height); |
| 703 | } |
| 704 | |
| 705 | /// Resizes just only change size state for chart and do not resize the container/canvas. |
| 706 | fn resize(&self, w: f64, h: f64) { |
nothing calls this directly
no outgoing calls
no test coverage detected