{
selectedBlockOption;
let canvas = document.getElementById("canvas-2"),
{ width, height } = canvas,
ctx = canvas.getContext("2d");
ctx.clearRect(0, 0, width, height);
if (showLabel) {
blocks.map((d, i) => {
let { x1, y1, x2, y2, cx, cy, omega, phi, uid } = d;
ctx.font = "italic 16px Courier";
ctx.textAlign = "center";
ctx.fillStyle = "yellow";
ctx.textBaseline = "bottom";
ctx.fillText(`W: ${omega.toFixed(2)}`, cx * width, y1 * height);
ctx.textBaseline = "top";
ctx.fillText(`P: ${phi.toFixed(2)}`, cx * width, y2 * height);
ctx.font = "24px Bold";
ctx.textBaseline = "middle";
ctx.strokeStyle = "red";
ctx.fillStyle = color;
ctx.fillText(`${uid}`, cx * width, cy * height);
ctx.strokeText(`${uid}`, cx * width, cy * height);
});
}
}