AngularTS
    Preparing search index...

    Interface CanvasRenderer

    Application renderer contract for the optional ng-canvas directive.

    interface CanvasRenderer {
        $nonscope?: true;
        animate?: boolean;
        context?: "2d" | "webgl" | "webgl2";
        maxPixelRatio?: number;
        dispose?(): void;
        mount?(surface: CanvasSurface): void;
        render(frame: CanvasFrame): void;
        resize?(size: CanvasSize): void;
        resume?(): void;
        suspend?(): void;
    }
    Index

    Properties

    $nonscope?: true

    Keep native drawing resources outside scope proxies when held on this adapter.

    animate?: boolean

    Continuous frames are opt-in. Otherwise render only after invalidation.

    context?: "2d" | "webgl" | "webgl2"

    Native context type. Defaults to 2d.

    maxPixelRatio?: number

    Optional backing-store pixel-ratio cap.

    Methods

    • Returns void

    • Returns void

    • Returns void