MCPcopy Create free account
hub / github.com/angular-rust/ux-charts / draw

Method draw

src/basechart.rs:690–703  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected