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

can not cache with StageGL instance get "TypeError: Cannot create property 'width' on boolean" #1065

Open
DrMinh opened this issue Dec 10, 2021 · 2 comments

Comments

@DrMinh
Copy link

DrMinh commented Dec 10, 2021

I tried to cache a container using stagegl insatance:

let newStage = new createjs.StageGL(document.createElement('canvas'), {antialias: true, transparent: true, autoPurge: -1});
myContainer.cache(0,0,100,100,1, {useGL: newStage});

But I got "TypeError: Cannot create property 'width' on boolean" error.
Look like EaselJS set "this.target.cacheCanvas = true;" but then get "width" property:

createjsError

@vszabolcs0411
Copy link

This has been fixed on branch 1.1.0 and I believe on the master branch too. I recommend switching to 1.1.0 as it seems to be the most stable. It's a shame they are not updating their website or their releases with fixes.

Also, good luck if you are trying to cache with stagegl, it's a buggy nightmare in all versions.

@danzen
Copy link
Contributor

danzen commented Dec 17, 2021

What needs to be updated and I will see if I can help. I usually cache on StageGL to be able to see text, shapes, etc. and have not noticed anything broken.

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

3 participants