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

Method draw_frame

src/basechart.rs:744–752  ·  view source on GitHub ↗

Draws the current animation frame. If [time] is `null`, draws the last frame (i.e. no animation).

(&self, ctx: &C, time: Option<i64>)

Source from the content-addressed store, hash-verified

742 ///
743 /// If [time] is `null`, draws the last frame (i.e. no animation).
744 fn draw_frame(&self, ctx: &C, time: Option<i64>) {
745 let props = self.props.borrow();
746 let width = props.width;
747 let height = props.height;
748
749 ctx.set_fill_color(*self.options.background());
750 // just fill instead clear
751 ctx.fill_rect(0., 0., width, height);
752 }
753
754 /// Draws the channel given the current animation percent [percent].
755 ///

Callers

nothing calls this directly

Calls 1

backgroundMethod · 0.80

Tested by

no test coverage detected