@canvas-harness/core 0.1.14 → 0.1.15

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
@@ -4342,8 +4342,10 @@ var drawAtomic = (ctx, type, w, h, style, scale, theme, opts) => {
4342
4342
  if (strokeVisible && !opts?.skipStroke) {
4343
4343
  ctx.strokeStyle = stroke;
4344
4344
  ctx.lineWidth = Math.max(strokeWidth, 1 / scale);
4345
- ctx.setLineDash(dashPatternFor(style?.strokeStyle, strokeWidth));
4345
+ const dash = dashPatternFor(style?.strokeStyle, strokeWidth);
4346
+ ctx.setLineDash(dash);
4346
4347
  ctx.stroke();
4348
+ if (dash.length > 0) ctx.setLineDash([]);
4347
4349
  }
4348
4350
  if (needsScope) ctx.restore();
4349
4351
  };