-
Notifications
You must be signed in to change notification settings - Fork 56
Open
Description
I wanted to experiment with multiple whiskers but creating the second whisker failed with the error:
Error[program:0:0]: "Cannot read property 'getContext' of null"
The problem seems to be that paper.get('supporterCanvas') only returns a reference to the canvas on the first call. I assume the reason for this is that you can call transferControlToOffscreen only once. Instead of just returning null I think it would be nicer if paper.get('supporterCanvas') would cache the reference to the canvas on the worker side and return the cached reference instead. I think this would be generally useful independent of the whisker issue. To improve handling multiple whiskers I would like to change the current implementation so only a single setInterval is created by paper.whenPointsAt().
Metadata
Metadata
Assignees
Labels
No labels