export function getCanvas(): Canvas { if (!(canvas instanceof Canvas) || !canvas.ready) { throw new Error(game.i18n.localize("DS4.ErrorCanvasIsNotInitialized")); } return canvas; }