mourner / simpleheat

A tiny JavaScript library for drawing heatmaps with Canvas

Home Page:http://mourner.github.io/simpleheat/demo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

when the width or height are 0 triggers a throw

Bengreen opened this issue · comments

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.

This is solved by #34