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

Cannot use Easeljs inside webworker #1057

Open
nicolasgoudard opened this issue Dec 26, 2020 · 2 comments
Open

Cannot use Easeljs inside webworker #1057

nicolasgoudard opened this issue Dec 26, 2020 · 2 comments

Comments

@nicolasgoudard
Copy link

TODO

Hi
I am using the last version of CreateJS (EaselJS 1.0.0 )
We cannot use easeljs functionalites in Webworker
because it is impossible to include by the "importScripts " keyword : I think because the library use the javascript "window" or "document" objects that refer to the DOM
this is a serious problem if you want to do complex geometric figure position calculations in the background before refreshing the canvas without the user losing control
Best Regards

@danzen
Copy link
Contributor

danzen commented Dec 26, 2020

Hi @nicolasgoudard - will this help? https://github.com/CreateJS/EaselJS-NodeJS - oh, maybe not as it is built on-top of node-canvas. Hmmm. Perhaps someone else has a better answer.

We had someone who succeeded running without a DOM here - perhaps you can find some clues... danzen/zimjs#39 this was on the ZIM GitHub which runs on CreateJS.

@danzen
Copy link
Contributor

danzen commented Feb 7, 2021

@nicolasgoudard - did you find a work-around for this at all?

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

No branches or pull requests

2 participants