TCanvasSizeOptions: object | object
object
Having both options in TCanvasSizeOptions set to true transform the call in a calcOffset Better try to restrict with types to avoid confusion.
src/canvas/StaticCanvas.ts:52