Arbitrary Google Swiffy Canvas Size / Off Screen Rendering

大兔子大兔子 提交于 2019-11-28 12:52:12

If your swiffy runtime version is 7.3, you can hack the js directly.

Just remove or comment "b.xj(c);" in g.Tp() function. I don't care any advantage of offscreen rendering. At least, it works now.

I think it's a serious bug.

Note that it's good in iframe, no need to hack.

The only way I could figure out how to do it is to edit the Swiffy runtime and replace all instances of window.innerWidth and window.innerHeight with whatever size I wanted.

No ill side affects that I could see, though this is obliviously less than ideal.

If someone comes up with a better solution I'll absolutely accept it.

If i get the problem correctly, for rendering larger than the original swiffy you can put swiffy in a div and scale it

To have swiffy restrict to its original output scale as from flash, you can place it in an iframe

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!