Closed bchoii closed 8 years ago
html5's canvas save() and restore() supports multiple recursive calls, as in
save() save() restore() restore()
It would be reasonable to expect CQ to also perform similarly.
But CQ's prevAlignX and prevAlignY are overwritten if cq().save() / cq().restore() is called more than once.
This change introduces a stack to store multiple prevAlign values.
Duplicate of #49 . Please ignore this request.
html5's canvas save() and restore() supports multiple recursive calls, as in
It would be reasonable to expect CQ to also perform similarly.
But CQ's prevAlignX and prevAlignY are overwritten if cq().save() / cq().restore() is called more than once.
This change introduces a stack to store multiple prevAlign values.