bugfix/fix-debug-text-font-size

This commit is contained in:
Thilo Behnke
2022-07-04 22:04:50 +02:00
parent 46237098a9
commit ce653603aa

View File

@@ -3,6 +3,7 @@ import main from "../main";
export const mainColor = '#ff3e00';
export const drawObjects = (ctx: CanvasRenderingContext2D, objects, [width, height], debug = false) => {
ctx.font = ctx.font.replace(/\d+px/, "12px");
objects.forEach(obj => {
ctx.beginPath();
ctx.strokeStyle = mainColor;