charturbo - v0.1.0
    Preparing search index...

    Interface UseCharturboChartResult

    interface UseCharturboChartResult {
        canvasRef: RefObject<HTMLCanvasElement | null>;
        error: unknown;
        sdk: Charturbo | null;
        getSdk(): Charturbo | null;
        whenReady(): Promise<Charturbo | null>;
    }
    Index
    canvasRef: RefObject<HTMLCanvasElement | null>
    error: unknown

    Last create / render error (CharturboInitError without WebGPU / WebGL2)

    sdk: Charturbo | null

    The engine once ready (null before and after unmount); changing it re-renders

    • Resolves with the engine, or null when unmounted first / create failed (also null when called before the mount effect ran, e.g. from a parent's layout effect)

      Returns Promise<Charturbo | null>