artf / grapick

Easy configurable gradient picker, with no dependencies

Home Page:https://artf.github.io/grapick/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is there a way to programmatically set handles?

michaeldtruong opened this issue · comments

Thanks for this great library. Is there a way to set handles? Currently I am getting all the handles and looping through each one and calling the remove function then re adding handles again. However, I do not want to call the add and remove event listeners during the redraw and It just feels dirty.

A better solution for my case is to re initialize every time I need to set handlers programmatically.