laymur 0.3.3 → 0.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -5971,6 +5971,7 @@ function renderText(x, y, text, style, context) {
5971
5971
  context.fillText(text, x, y);
5972
5972
  }
5973
5973
  function renderTextLines(paddingTop, paddingLeft, lines, context) {
5974
+ context.clearRect(0, 0, context.canvas.width, context.canvas.height);
5974
5975
  let currentY = paddingTop;
5975
5976
  for (let i = 0; i < lines.length; i++) {
5976
5977
  const line = lines[i];