Skip to content

when the width or height are 0 triggers a throw #33

@Bengreen

Description

@Bengreen

When I am using this (inside leaflet.heat) I am getting an error thrown as due to the lifecycle of objects, but initial canvas is created with size 0,0 so throwing an error with the getImageData functions.
Is it possible to put guards around these to do something without a throw if the width or height are 0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions