-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Comments
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. |
@nicolasgoudard - did you find a work-around for this at all? |
FWIW, I did a patch to createjs.js (from a different branch/repo) to fix this problem. Basically:
Then throughout (6 or 7 places), check for ww before accessing 'window' or 'document':
becomes
and
becomes
That being said, I have just discovered this repo; it appears that Dan has inherited it from lenny/gskinner? Dan, |
FWIW, I did a patch (from a different branch/repo) to fix this problem. That being said, I have just discovered this repo; it appears that Dan has inherited it from lenny/gskinner?
|
I have cloned this repo, and will "soonish" have a PR for this. Dan: it would be helpful to publish a new "release" when CreateJS package is updated. |
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
The text was updated successfully, but these errors were encountered: