Skip to content

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

@DrMinh

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

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