Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create hooks to engine in the editor #22

Open
evktalo opened this issue Feb 15, 2020 · 0 comments
Open

Create hooks to engine in the editor #22

evktalo opened this issue Feb 15, 2020 · 0 comments

Comments

@evktalo
Copy link
Member

evktalo commented Feb 15, 2020

As a developer,
I want to create hooks to engine,
so that I can listen to engine's events (e.g. shapes cached, konva loaded, engine initialized) in the editor and respond to them accordingly.

One usecase is hit region initialization, where we currently have an ugly setTimeout-based hack (when the users clicks the start button) to increase the chances that konva has cached the shapes. With hooks, we could just listen for that event and initialize the hit regions exactly when the shapes have been cached.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant