dntzhang / cax

Canvas 渲染引擎,支持 SVG,兼容了小程序、小游戏和 Web

Home Page:https://dntzhang.github.io/cax

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

stage 怎么添加 sharedCanvas ?

liuyami opened this issue · comments

commented
    const sharedCanvas = openDataContext.canvas
    stage.add(sharedCanvas)
    stage.update()

报错:

t.isVisible is not a function
TypeError: t.isVisible is not a function

感谢

commented

stage应该不支持add canvas

new Bitmap 传 canvas试试

commented

new Bitmap 传 canvas试试

你好,加上后没反应

@dntzhang 可否给个stage 添加 sharedCanvas 的例子,我看点十消除是可以的

参考这个 #79 (comment)