skia
    Preparing search index...

    Interface EmbindObject<T>

    CanvasKit is built with Emscripten and Embind. Embind adds the following methods to all objects that are exposed with it. This _type field is necessary for the TypeScript compiler to differentiate between opaque types such as Shader and ColorFilter. It doesn't exist at runtime.

    interface EmbindObject<T extends string> {
        _type: T;
        delete(): void;
        deleteLater(): void;
        isAliasOf(other: any): boolean;
        isDeleted(): boolean;
    }

    Type Parameters

    • T extends string

    Hierarchy (View Summary)

    Index

    Properties

    _type: T

    Methods

    • Parameters

      • other: any

      Returns boolean