message: fix: fix subpixel optimize with no lineWidth  (related: apache/incubator-echarts#11874 apache/incubator-echarts#11891)
diff: @@ -21,9 +21,7 @@ var round = Math.round;
  * @param {number} [style.lineWidth]
  */
  export function subPixelOptimizeLine(outputShape, inputShape, style) {
  - var lineWidth = style && style.lineWidth;
  -
  - if (!inputShape || !lineWidth) {
  + if (!inputShape) {
  return;
  }
  @@ -32,20 +30,22 @@ export function subPixelOptimizeLine(outputShape, inputShape, style) {
  var y1 = inputShape.y1;
  var y2 = inputShape.y2;
  - if (round(x1 * 2) === round(x2 * 2)) {
  - outputShape.x1 = outputShape.x2 = subPixelOptimize(x1, lineWidth, true);
  - }
  - else {
  outputShape.x1 = x1;
  outputShape.x2 = x2;
  + outputShape.y1 = y1;
  + outputShape.y2 = y2;
  +
  + var lineWidth = style && style.lineWidth;
  + if (!lineWidth) {
  + return;
  + }
  +
  + if (round(x1 * 2) === round(x2 * 2)) {
  + outputShape.x1 = outputShape.x2 = subPixelOptimize(x1, lineWidth, true);
  }
  if (round(y1 * 2) === round(y2 * 2)) {
  outputShape.y1 = outputShape.y2 = subPixelOptimize(y1, lineWidth, true);
  }
  - else {
  - outputShape.y1 = y1;
  - outputShape.y2 = y2;
  - }
  }
  /**
  @@ -64,9 +64,7 @@ export function subPixelOptimizeLine(outputShape, inputShape, style) {
  * @param {number} [style.lineWidth]
  */
  export function subPixelOptimizeRect(outputShape, inputShape, style) {
  - var lineWidth = style && style.lineWidth;
  -
  - if (!inputShape || !lineWidth) {
  + if (!inputShape) {
  return;
  }
  @@ -75,6 +73,16 @@ export function subPixelOptimizeRect(outputShape, inputShape, style) {
  var originWidth = inputShape.width;
  var originHeight = inputShape.height;
  + outputShape.x = originX;
  + outputShape.y = originY;
  + outputShape.width = originWidth;
  + outputShape.height = originHeight;
  +
  + var lineWidth = style && style.lineWidth;
  + if (!lineWidth) {
  + return;
  + }
  +
  outputShape.x = subPixelOptimize(originX, lineWidth, true);
  outputShape.y = subPixelOptimize(originY, lineWidth, true);
  outputShape.width = Math.max(
  