Skip to content

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

Open

Description

@DrMinh

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

Activity

  1. vszabolcs0411 commented on Dec 16, 2021

    @vszabolcs0411

    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.

  2. danzen commented on Dec 17, 2021

    @danzen
    Contributor

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions