message: Fix a problem of line alignment on CanvasRenderer
diff: @@ -492,6 +492,11 @@ export class CanvasGraphicsRenderer
  const xm = x + (w / 2); // x-middle
  const ym = y + (h / 2); // y-middle
  + if (lineStyle.alignment === 0)
  + {
  + context.save();
  + }
  +
  context.beginPath();
  context.moveTo(x, ym);
  context.bezierCurveTo(x, ym - oy, xm - ox, y, xm, y);
  @@ -511,6 +516,11 @@ export class CanvasGraphicsRenderer
  context.fillStyle = contextFillStyle;
  context.fill();
  }
  +
  + if (lineStyle.alignment === 0)
  + {
  + context.restore();
  + }
  }
  /**
  @@ -540,6 +550,11 @@ export class CanvasGraphicsRenderer
  radius = radius > maxRadius ? maxRadius : radius;
  + if (lineStyle.alignment === 0)
  + {
  + context.save();
  + }
  +
  context.beginPath();
  context.moveTo(rx, ry + radius);
  context.lineTo(rx, ry + height - radius);
  @@ -563,6 +578,11 @@ export class CanvasGraphicsRenderer
  context.fillStyle = contextFillStyle;
  context.fill();
  }
  +
  + if (lineStyle.alignment === 0)
  + {
  + context.restore();
  + }
  }
  public setPatternTransform(pattern: CanvasPattern, matrix: Matrix): void
  