🐛 Remove annoying console.log in set font()

main
Shad Amethyst 1 year ago
parent 5b8dbe63ad
commit d91f2b34e3

@ -97,7 +97,6 @@ export class TransformedCanvas2DCtx {
} }
set font(font: string) { set font(font: string) {
console.log(font);
const split = /^([a-z-]*\s+)?([\d.]+)px(\s+.+)$/.exec(font); const split = /^([a-z-]*\s+)?([\d.]+)px(\s+.+)$/.exec(font);
if (split) { if (split) {
this.ctx.font = `${split[1] ?? ""} ${+split[2]! * this.transform.scale}px ${split[3]}`; this.ctx.font = `${split[1] ?? ""} ${+split[2]! * this.transform.scale}px ${split[3]}`;

Loading…
Cancel
Save