Open MohsinQK opened 6 years ago
bindChangeEvent methods can be used like this ↓ (https://github.com/zhenglei21887/hotArea/blob/HEAD/index.html)
$("#canvas") .hotArea({initAreas: initAreas}) .hotArea('bindChangeEvent', function (event, data) { console.log(data.areas); });
and the get method is also missing in your library.
check out my this comment. https://github.com/zhenglei21887/hotArea/commit/be9f6fe93e2bc5115434548b9a940ef390d3d833#comments
I don't know the reason for doing this so that's why I am not sending you to pull request for fixing this issue.