euv-chart 0.32.9

A high-performance charting library for the euv framework, providing an ECharts-compatible option model with WebGPU, WebGL2, and Canvas2D backends behind one API.
Documentation
1
2
3
4
5
6
7
8
/// Creates the best rendering backend available on the host.
///
/// The preference order is WebGPU, then WebGL2, then Canvas2D. A canvas
/// can only ever have one kind of context, so the choice has to be made
/// before the first `get_context` call — which is why the WebGPU probe
/// is asynchronous and the factory is asynchronous too.
#[derive(Clone, Copy, Debug, Default)]
pub struct BackendFactory;