modern-canvas 0.4.48 → 0.4.49

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
@@ -9170,7 +9170,7 @@ class BaseElement2DOutline extends BaseElement2DFill {
9170
9170
  draw() {
9171
9171
  const ctx = this.parent.context;
9172
9172
  const { textureTransform, disableWrapMode } = this._getDrawOptions();
9173
- ctx.lineWidth = this.width;
9173
+ ctx.lineWidth = this.width || 1;
9174
9174
  ctx.textureTransform = textureTransform;
9175
9175
  ctx.strokeStyle = this._texture ?? this.color;
9176
9176
  ctx.stroke({ disableWrapMode });