javascript - Arbitrary Google Swiffy Canvas Size / Off Screen Rendering -
i'm using swiffy render onto hidden canvas can take result , use elsewhere. problem i'm running when resize container div swiffy won't make actual canvas bigger available viewport size. if set dimensions of swiffy div larger viewport canvas big viewport - doesn't want put part of canvas offscreen.
i'm sure efficiency, there's no reason render if it's offscreen normally, need have swiffy render time, @ whatever size want.
additionally, swiffy plain refuses if swiffy container div isn't attached dom. (forces canvas have width , height of 0).
is there way around without having dig (obfuscated) swiffy client runtime , modify it? how can trick swiffy rendering larger viewport size?
edit: able trick swiffy rendering larger viewport changing window.innerwidth whatever want. that's ugly hack though , hate overwrite causes lot of issues.
if swiffy runtime version 7.3, can hack js directly.
just remove or comment "b.xj(c);" in g.tp() function. don't care advantage of offscreen rendering. @ least, works now.
i think it's serious bug.
note it's in iframe, no need hack.
Comments
Post a Comment