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