Skip to content

Would adding OffscreenCanvas type to ImageryTypes be possible? #13296

@pakb

Description

@pakb

* @typedef {HTMLImageElement|HTMLCanvasElement|ImageBitmap} ImageryTypes

I was wondering if there is any limitation to adding OffscreenCanvas here too.
I've been playing with a third-party library to load GeoTIFF inside Cesium and they are using OffscreenCanvas to achieve that.
In a JS context (without type-checking) it works pretty well. But when using their code in a TypeScript env, it starts to raise type-checking errors because of their use of OffscreenCanvas as ImageryType.

Anyone with a good knowledge of the processing of ImageryType knows of a "show-stopper" reason not to add OffscreenCanvas here?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions