tvcharts 0.9.10 → 0.9.12

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/echarts.js CHANGED
@@ -31313,6 +31313,13 @@ function makeLabelsByCustomizedCategoryInterval(axis, categoryInterval, onlyTick
31313
31313
 
31314
31314
  // src/coord/Axis.ts
31315
31315
  var NORMALIZED_EXTENT = [0, 1];
31316
+ function isMobileByWidth(breakPoint = 768) {
31317
+ if (typeof window === "undefined")
31318
+ return false;
31319
+ const viewportWidth = window.innerWidth;
31320
+ return viewportWidth < breakPoint && window.devicePixelRatio !== 1;
31321
+ }
31322
+ var isMobile = isMobileByWidth();
31316
31323
  var Axis = class {
31317
31324
  constructor(dim, scale4, extent3) {
31318
31325
  this.onBand = false;
@@ -31348,7 +31355,7 @@ var Axis = class {
31348
31355
  const dataIndex = data;
31349
31356
  const dataCount = this.scale.getAxisDataLen();
31350
31357
  const deltaFromRight = dataCount + scale4.lastBarRightSideDiffBarCount - dataIndex;
31351
- return Math.round(this._extent[1] - deltaFromRight * scale4.barSpace);
31358
+ return isMobile ? this._extent[1] - deltaFromRight * scale4.barSpace : Math.round(this._extent[1] - deltaFromRight * scale4.barSpace);
31352
31359
  }
31353
31360
  if (this.onBand && scale4.type === "ordinal") {
31354
31361
  extent3 = extent3.slice();
@@ -56890,7 +56897,7 @@ var LinesPlotView2 = class extends Chart_default {
56890
56897
  const z2 = seriesModel.get("z2");
56891
56898
  const visualColor = getVisualGradient2(data, seriesModel.coordinateSystem, api2);
56892
56899
  const connectNulls = seriesModel.get("connectNulls");
56893
- const isMobile = seriesModel.get("isMobile");
56900
+ const isMobile2 = seriesModel.get("isMobile");
56894
56901
  const step = seriesModel.get("step");
56895
56902
  const barSpace = Math.floor((seriesModel.coordinateSystem.getAxesByScale("ordinal")[0].scale.barSpace || calculatebandWidth(seriesModel, data)) * 0.8) || 1;
56896
56903
  each(linePointsByKey, function(item, key) {
@@ -56905,7 +56912,7 @@ var LinesPlotView2 = class extends Chart_default {
56905
56912
  connectSelf: !connectNulls && !step,
56906
56913
  barWidth: barSpace,
56907
56914
  stroke: color2,
56908
- isWebviewRender: isMobile
56915
+ isWebviewRender: isMobile2
56909
56916
  },
56910
56917
  style: {
56911
56918
  lineDash: lineStyleMap[lineDash],
@@ -56984,7 +56991,7 @@ var LinesPlotView2 = class extends Chart_default {
56984
56991
  const histogramGroup = this._histogramGroup;
56985
56992
  const histbase = seriesModel.get("histbase") || 0;
56986
56993
  const z2 = seriesModel.get("z2");
56987
- const isMobile = seriesModel.get("isMobile");
56994
+ const isMobile2 = seriesModel.get("isMobile");
56988
56995
  const baseY = seriesModel.coordinateSystem.dataToPoint([0, histbase], true)[1];
56989
56996
  each(linePointsByKey, function(item, key) {
56990
56997
  const [stroke, lineDash, lineWidth] = key.split(":");
@@ -56994,7 +57001,7 @@ var LinesPlotView2 = class extends Chart_default {
56994
57001
  points: item,
56995
57002
  baseY,
56996
57003
  stroke: color2,
56997
- isWebviewRender: isMobile
57004
+ isWebviewRender: isMobile2
56998
57005
  },
56999
57006
  style: {
57000
57007
  stroke: color2,
@@ -57025,7 +57032,7 @@ var LinesPlotView2 = class extends Chart_default {
57025
57032
  }
57026
57033
  const symbolGroup = this._symbolGroup;
57027
57034
  const z2 = seriesModel.get("z2");
57028
- const isMobile = seriesModel.get("isMobile");
57035
+ const isMobile2 = seriesModel.get("isMobile");
57029
57036
  each(symbolPointsByColor, function(item, key) {
57030
57037
  if (shadowShape) {
57031
57038
  const shadowEl = new SymbolPath_default({
@@ -57045,7 +57052,7 @@ var LinesPlotView2 = class extends Chart_default {
57045
57052
  const el = new SymbolPath_default({
57046
57053
  shape: {
57047
57054
  points: item,
57048
- isWebviewRender: isMobile
57055
+ isWebviewRender: isMobile2
57049
57056
  },
57050
57057
  style: {
57051
57058
  fill: "#000000"
@@ -57133,7 +57140,7 @@ var LinesPlotView2 = class extends Chart_default {
57133
57140
  });
57134
57141
  return;
57135
57142
  }
57136
- const isMobile = seriesModel.get("isMobile");
57143
+ const isMobile2 = seriesModel.get("isMobile");
57137
57144
  each(linePointsByKey, function(item, key) {
57138
57145
  const [stroke] = key.split(":");
57139
57146
  const {color: color2, isDefaultColor} = getFormatColor(stroke);
@@ -57142,7 +57149,7 @@ var LinesPlotView2 = class extends Chart_default {
57142
57149
  points: item,
57143
57150
  baseY,
57144
57151
  width,
57145
- isWebviewRender: isMobile,
57152
+ isWebviewRender: isMobile2,
57146
57153
  fill: color2
57147
57154
  },
57148
57155
  style: {
@@ -58548,7 +58555,7 @@ var MineLinesView2 = class extends Chart_default {
58548
58555
  const emphasisState = seriesModel.get("emphasis").emphasisState;
58549
58556
  const linesGroup = this._linesGroup;
58550
58557
  const z2 = seriesModel.get("z2");
58551
- const isMobile = seriesModel.get("isMobile");
58558
+ const isMobile2 = seriesModel.get("isMobile");
58552
58559
  const linesPointById = data.getLayout("linesPointById");
58553
58560
  const rectWidth = api2.getWidth();
58554
58561
  const rectHeight = api2.getHeight();
@@ -58562,7 +58569,7 @@ var MineLinesView2 = class extends Chart_default {
58562
58569
  rectWidth,
58563
58570
  rectHeight,
58564
58571
  stroke: color2,
58565
- isWebviewRender: isMobile
58572
+ isWebviewRender: isMobile2
58566
58573
  },
58567
58574
  style: {
58568
58575
  fill: "none",
@@ -59299,7 +59306,7 @@ var BoxesPath = class extends Path_default {
59299
59306
  path.lineTo(right, bottom);
59300
59307
  path.lineTo(left, bottom);
59301
59308
  path.closePath();
59302
- if (isWebviewRender && i % 5 === 0) {
59309
+ if (i < points4.length - 2) {
59303
59310
  hasFill && path.fillStyle(fill);
59304
59311
  hasStroke && path.strokeStyle(stroke);
59305
59312
  path.beginPathFill();
@@ -59351,7 +59358,7 @@ var BoxesView2 = class extends Chart_default {
59351
59358
  }
59352
59359
  const emphasisState = seriesModel.get("emphasis").emphasisState;
59353
59360
  const groupId = seriesModel.get("groupId");
59354
- const isMobile = seriesModel.get("isMobile");
59361
+ const isMobile2 = seriesModel.get("isMobile");
59355
59362
  const linesGroup = this._linesGroup;
59356
59363
  const z2 = seriesModel.get("z2");
59357
59364
  const linesPointById = data.getLayout("linesPointById");
@@ -59362,7 +59369,7 @@ var BoxesView2 = class extends Chart_default {
59362
59369
  points: item,
59363
59370
  fill: fill || "none",
59364
59371
  stroke: color2,
59365
- isWebviewRender: isMobile
59372
+ isWebviewRender: isMobile2
59366
59373
  },
59367
59374
  style: {
59368
59375
  fill: fill || "none",
@@ -59492,16 +59499,26 @@ var BoxesSeries_default = BoxesSeriesModel;
59492
59499
  // src/chart/boxes/util.ts
59493
59500
  var canvas = document.createElement("canvas");
59494
59501
  var ctx = canvas.getContext("2d");
59495
- function findFontSize(text, maxWidth, font = DefaultFamily, tolerance = 8, minSize = 2, maxSize = 50) {
59496
- let low = minSize;
59497
- let high = maxSize;
59502
+ function findFontSize(text, maxWidth, font = DefaultFamily, tolerance = 8, maxHeight) {
59503
+ let low = 2;
59504
+ let high = 50;
59505
+ const lines = text.split("\n");
59506
+ const linesLength = lines.length;
59507
+ let maxLengthText = lines[0];
59508
+ for (let index = 1; index < lines.length; index++) {
59509
+ const element = lines[index];
59510
+ if (element.length > maxLengthText.length) {
59511
+ maxLengthText = element;
59512
+ }
59513
+ }
59498
59514
  while (low <= high) {
59499
59515
  const size = Math.floor((low + high) / 2);
59500
59516
  ctx.font = `${size}px ${font}`;
59501
- const width = ctx.measureText(text).width;
59502
- if (maxWidth > width && maxWidth - width <= tolerance) {
59517
+ const isInHeight = size * linesLength <= maxHeight;
59518
+ const width = ctx.measureText(maxLengthText).width;
59519
+ if (maxWidth > width && maxWidth - width <= tolerance && isInHeight) {
59503
59520
  return size;
59504
- } else if (width < maxWidth) {
59521
+ } else if (width < maxWidth && isInHeight) {
59505
59522
  low = size + 1;
59506
59523
  } else {
59507
59524
  high = size - 1;
@@ -59516,11 +59533,11 @@ var boxFontSizeMapping = {
59516
59533
  small: 10,
59517
59534
  tiny: 8
59518
59535
  };
59519
- function getFontSize(size, text, maxWidth, font) {
59536
+ function getFontSize(size, text, maxWidth, font, maxHeight) {
59520
59537
  if (typeof size === "number") {
59521
59538
  return size;
59522
59539
  }
59523
- return boxFontSizeMapping[size] || findFontSize(text, maxWidth, font, 2);
59540
+ return boxFontSizeMapping[size] || findFontSize(text, maxWidth, font, 2, maxHeight);
59524
59541
  }
59525
59542
 
59526
59543
  // src/chart/boxes/BoxesLayout.ts
@@ -59644,12 +59661,11 @@ var BoxesLayout = {
59644
59661
  continue;
59645
59662
  }
59646
59663
  const {x, y, align, v_align} = getBoxPoint(startPoint, endPoint, text_halign, text_valign);
59647
- const padding = Math.min(minBoxSize / 2, 8);
59648
59664
  textList.push({
59649
59665
  text,
59650
59666
  text_color,
59651
59667
  text_wrap,
59652
- text_size: getFontSize(text_size, text, minBoxSize - padding, font),
59668
+ text_size: getFontSize(text_size, text, width2 - Math.floor(width2 / 5), font, height - Math.min(minBoxSize / 2, 10)),
59653
59669
  align,
59654
59670
  v_align,
59655
59671
  width: width2,
@@ -59940,21 +59956,21 @@ var NormalBoxPath2 = class extends Path_default {
59940
59956
  return new NormalBoxPathShape2();
59941
59957
  }
59942
59958
  buildPath(ctx2, shape) {
59943
- const {points: points4, isSimpleBox, fill, isMobile, stroke} = shape;
59959
+ const {points: points4, isSimpleBox, fill, isMobile: isMobile2, stroke} = shape;
59944
59960
  for (let index = 0; index < points4.length; ) {
59945
59961
  const point1 = points4[index++];
59946
59962
  const point2 = points4[index++];
59947
- const point3 = points4[index++];
59948
- const point4 = points4[index++];
59949
59963
  if (isSimpleBox) {
59950
59964
  const x = point1[0];
59951
- const isSame = point1[1] === point3[1];
59965
+ const isSame = point1[1] === point2[1];
59952
59966
  ctx2.moveTo(x, point1[1]);
59953
- ctx2.lineTo(x, isSame ? point1[1] + 1 : point3[1]);
59967
+ ctx2.lineTo(x, isSame ? point1[1] + 1 : point2[1]);
59954
59968
  } else {
59969
+ const point3 = points4[index++];
59970
+ const point4 = points4[index++];
59955
59971
  ctx2.rect(point1[0], point1[1], point2[0] - point1[0], point3[1] - point1[1]);
59956
59972
  }
59957
- if (isMobile && index % 16 === 0 && index !== points4.length) {
59973
+ if (isMobile2 && index % 16 === 0 && index !== points4.length) {
59958
59974
  !isSimpleBox && fill && ctx2.fillStyle(fill);
59959
59975
  stroke && ctx2.strokeStyle(stroke);
59960
59976
  ctx2.beginPathFill();
@@ -59976,7 +59992,7 @@ var WickPath = class extends Path_default {
59976
59992
  return new WickPathShape();
59977
59993
  }
59978
59994
  buildPath(ctx2, shape) {
59979
- const {points: points4, isMobile, stroke} = shape;
59995
+ const {points: points4, isMobile: isMobile2, stroke} = shape;
59980
59996
  for (let index = 0; index < points4.length; ) {
59981
59997
  const point1 = points4[index++];
59982
59998
  const point2 = points4[index++];
@@ -59986,7 +60002,7 @@ var WickPath = class extends Path_default {
59986
60002
  ctx2.lineTo(point2[0], point2[1]);
59987
60003
  ctx2.moveTo(point3[0], point3[1]);
59988
60004
  ctx2.lineTo(point4[0], point4[1]);
59989
- if (isMobile && stroke && index % 16 === 0 && index !== points4.length) {
60005
+ if (isMobile2 && stroke && index % 16 === 0 && index !== points4.length) {
59990
60006
  ctx2.strokeStyle(stroke);
59991
60007
  ctx2.beginPathFill();
59992
60008
  }
@@ -60014,13 +60030,13 @@ var CandlePlotView2 = class extends Chart_default {
60014
60030
  const isSimpleBox = data.getLayout("isSimpleBox");
60015
60031
  const bodyPointsByColor = data.getLayout("bodyPointsByColor");
60016
60032
  const wickPointsByColor = data.getLayout("wickPointsByColor");
60017
- const isMobile = seriesModel.get("isMobile");
60033
+ const isMobile2 = seriesModel.get("isMobile");
60018
60034
  each(wickPointsByColor, function(points4, key) {
60019
60035
  const [stroke] = key.split(":");
60020
60036
  const el = new WickPath_default({
60021
60037
  shape: {
60022
60038
  points: points4,
60023
- isMobile,
60039
+ isMobile: isMobile2,
60024
60040
  stroke: stroke !== "none" ? stroke : ""
60025
60041
  },
60026
60042
  style: {
@@ -60036,8 +60052,8 @@ var CandlePlotView2 = class extends Chart_default {
60036
60052
  shape: {
60037
60053
  points: points4,
60038
60054
  isSimpleBox,
60039
- fill: !isSimpleBox || fill !== "none" ? fill : "",
60040
- isMobile,
60055
+ fill: fill !== "none" ? fill : "",
60056
+ isMobile: isMobile2,
60041
60057
  stroke: stroke === "none" ? "" : stroke
60042
60058
  },
60043
60059
  style: {
@@ -60163,6 +60179,12 @@ var candlePlotLayout = {
60163
60179
  }
60164
60180
  const showLast = seriesModel.get("showLast");
60165
60181
  const ignoreParentColor = seriesModel.get("ignoreParentColor");
60182
+ const isMobile2 = seriesModel.get("isMobile");
60183
+ const formatY = isMobile2 ? function(y) {
60184
+ return y;
60185
+ } : function(y) {
60186
+ return Math.floor(y);
60187
+ };
60166
60188
  return {
60167
60189
  progress: normalProgress
60168
60190
  };
@@ -60183,17 +60205,17 @@ var candlePlotLayout = {
60183
60205
  const ocLow = Math.min(openVal, closeVal);
60184
60206
  const ocHigh = Math.max(openVal, closeVal);
60185
60207
  const [ocLowX, ocLowY] = coordSys.dataToPoint([axisDimVal, ocLow]);
60186
- const x = ocLowX + 0.5;
60187
- const ocLowPoint = [x, Math.floor(ocLowY)];
60208
+ const x = isMobile2 ? ocLowX : ocLowX + 0.5;
60209
+ const ocLowPoint = [x, formatY(ocLowY)];
60188
60210
  const ocHighPoint = coordSys.dataToPoint([axisDimVal, ocHigh]);
60189
60211
  ocHighPoint[0] = x;
60190
- ocHighPoint[1] = Math.floor(ocHighPoint[1]);
60212
+ ocHighPoint[1] = formatY(ocHighPoint[1]);
60191
60213
  const lowestPoint = coordSys.dataToPoint([axisDimVal, lowestVal]);
60192
60214
  lowestPoint[0] = x;
60193
- lowestPoint[1] = Math.floor(lowestPoint[1]);
60215
+ lowestPoint[1] = formatY(lowestPoint[1]);
60194
60216
  const highestPoint = coordSys.dataToPoint([axisDimVal, highestVal]);
60195
60217
  highestPoint[0] = x;
60196
- highestPoint[1] = Math.floor(highestPoint[1]);
60218
+ highestPoint[1] = formatY(highestPoint[1]);
60197
60219
  const itemModel = candleData.getItemModel(dataIndex);
60198
60220
  const hasDojiColor = !!itemModel.get(["itemStyle", "borderColorDoji"]);
60199
60221
  const sign = getSign2(store, dataIndex, openVal, closeVal, closeDimI, hasDojiColor);
@@ -60204,13 +60226,17 @@ var candlePlotLayout = {
60204
60226
  }
60205
60227
  const key = `${color2 || "none"}:${border || "none"}`;
60206
60228
  const bodyPoints = bodyPointsByColor[key] || [];
60207
- addBodyEnd(bodyPoints, ocHighPoint, 0);
60208
- addBodyEnd(bodyPoints, ocLowPoint, 1);
60229
+ if (isSimpleBox) {
60230
+ bodyPoints.push(ocHighPoint, lowestPoint);
60231
+ } else {
60232
+ addBodyEnd(bodyPoints, ocHighPoint, 0);
60233
+ addBodyEnd(bodyPoints, ocLowPoint, 1);
60234
+ }
60209
60235
  bodyPointsByColor[key] = bodyPoints;
60210
60236
  const wickKey = getWickColor(sign, itemModel, ignoreParentColor);
60211
60237
  if (wickKey) {
60212
60238
  const wickPoint = wickPointsByColor[wickKey] || [];
60213
- wickPoint.push(subPixelOptimizePoint(highestPoint), subPixelOptimizePoint(ocHighPoint), subPixelOptimizePoint(lowestPoint), subPixelOptimizePoint(ocLowPoint));
60239
+ wickPoint.push(highestPoint, ocHighPoint, lowestPoint, ocLowPoint);
60214
60240
  wickPointsByColor[wickKey] = wickPoint;
60215
60241
  }
60216
60242
  }
@@ -60224,8 +60250,8 @@ var candlePlotLayout = {
60224
60250
  const point2 = point.slice();
60225
60251
  point1[0] = point1[0] - Math.floor(candleWidth * 0.5);
60226
60252
  point2[0] = point1[0] + candleWidth;
60227
- point1[1] -= 0.5;
60228
- point2[1] -= 0.5;
60253
+ point1[1] += 0.5;
60254
+ point2[1] += 0.5;
60229
60255
  start2 ? ends.push(point1, point2) : ends.push(point2, point1);
60230
60256
  }
60231
60257
  function subPixelOptimizePoint(point) {
@@ -60246,28 +60272,26 @@ function getSign2(store, dataIndex, openVal, closeVal, closeDimI, hasDojiColor)
60246
60272
  }
60247
60273
  return sign;
60248
60274
  }
60275
+ function calculateCandleWidth2(seriesModel, data) {
60276
+ const baseAxis = seriesModel.getBaseAxis();
60277
+ let extent3;
60278
+ const bandWidth = baseAxis.type === "category" ? baseAxis.getBandWidth() : (extent3 = baseAxis.getExtent(), Math.abs(extent3[1] - extent3[0]) / data.count());
60279
+ return optimalCandlestickWidth(bandWidth, 1);
60280
+ }
60249
60281
  function optimalCandlestickWidth(barSpacing, pixelRatio) {
60250
60282
  const barSpacingSpecialCaseFrom = 2.5;
60251
60283
  const barSpacingSpecialCaseTo = 4;
60252
60284
  const barSpacingSpecialCaseCoeff = 3;
60253
60285
  if (barSpacing >= barSpacingSpecialCaseFrom && barSpacing <= barSpacingSpecialCaseTo) {
60254
- return Math.floor(barSpacingSpecialCaseCoeff * pixelRatio);
60255
- } else if (barSpacing > barSpacingSpecialCaseTo && barSpacing <= 7.5) {
60256
- return Math.floor(Math.max(barSpacing * 0.72, 1));
60286
+ return Math.floor(barSpacingSpecialCaseCoeff * pixelRatio) - 2;
60257
60287
  }
60258
60288
  const barSpacingReducingCoeff = 0.2;
60259
60289
  const coeff = 1 - barSpacingReducingCoeff * Math.atan(Math.max(barSpacingSpecialCaseTo, barSpacing) - barSpacingSpecialCaseTo) / (Math.PI * 0.5);
60260
60290
  const res = Math.floor(barSpacing * coeff * pixelRatio);
60261
60291
  const scaledBarSpacing = Math.floor(barSpacing * pixelRatio);
60262
- const optimal = Math.min(res, scaledBarSpacing);
60292
+ const optimal = Math.min(res, scaledBarSpacing) - 2;
60263
60293
  return Math.max(Math.floor(pixelRatio), optimal);
60264
60294
  }
60265
- function calculateCandleWidth2(seriesModel, data) {
60266
- const baseAxis = seriesModel.getBaseAxis();
60267
- let extent3;
60268
- const bandWidth = baseAxis.type === "category" ? baseAxis.getBandWidth() : (extent3 = baseAxis.getExtent(), Math.abs(extent3[1] - extent3[0]) / data.count());
60269
- return optimalCandlestickWidth(bandWidth, 1);
60270
- }
60271
60295
  var candlePlotLayout_default = candlePlotLayout;
60272
60296
 
60273
60297
  // src/chart/candlePlot/install.ts
@@ -60338,7 +60362,7 @@ var BarPlotView2 = class extends Chart_default {
60338
60362
  const isSimpleBox = data.getLayout("isSimpleBox");
60339
60363
  const emphasisState = seriesModel.get("emphasis").emphasisState;
60340
60364
  const groupId = seriesModel.get("groupId");
60341
- const isMobile = seriesModel.get("isMobile");
60365
+ const isMobile2 = seriesModel.get("isMobile");
60342
60366
  const bodyPointsByColor = data.getLayout("bodyPointsByColor");
60343
60367
  each(bodyPointsByColor, function(points4, stroke) {
60344
60368
  const el = new BarPath_default2({
@@ -60347,7 +60371,7 @@ var BarPlotView2 = class extends Chart_default {
60347
60371
  isSimpleBox,
60348
60372
  candleWidth,
60349
60373
  stroke,
60350
- isWebviewRender: isMobile
60374
+ isWebviewRender: isMobile2
60351
60375
  },
60352
60376
  style: {
60353
60377
  stroke,
@@ -60623,7 +60647,7 @@ var ArrowsPlotView2 = class extends Chart_default {
60623
60647
  const minheight = seriesModel.get("minheight");
60624
60648
  const emphasisState = seriesModel.get("emphasis").emphasisState;
60625
60649
  const groupId = seriesModel.get("groupId");
60626
- const isMobile = seriesModel.get("isMobile");
60650
+ const isMobile2 = seriesModel.get("isMobile");
60627
60651
  const upArrowsByColor = data.getLayout("upArrowsByColor");
60628
60652
  const maxValue = data.getLayout("maxValue");
60629
60653
  each(upArrowsByColor, function(item, color2) {
@@ -60634,7 +60658,7 @@ var ArrowsPlotView2 = class extends Chart_default {
60634
60658
  minHeight: minheight,
60635
60659
  valueLength: maxheight / maxValue,
60636
60660
  fill: color2,
60637
- isWebviewRender: isMobile
60661
+ isWebviewRender: isMobile2
60638
60662
  },
60639
60663
  style: {
60640
60664
  fill: color2
@@ -60976,7 +61000,7 @@ var LabelsView2 = class extends Chart_default {
60976
61000
  const emphasisState = seriesModel.get("emphasis").emphasisState;
60977
61001
  const symbolGroup = this._symbolGroup;
60978
61002
  const symbolStyleMap = data.getLayout("symbolStyleMap");
60979
- const isMobile = seriesModel.get("isMobile");
61003
+ const isMobile2 = seriesModel.get("isMobile");
60980
61004
  each(symbolStyleMap, function(item, key) {
60981
61005
  const isLine = lineSymbols.includes(key);
60982
61006
  const el = new SymbolPath_default3({
@@ -60984,7 +61008,7 @@ var LabelsView2 = class extends Chart_default {
60984
61008
  points: item,
60985
61009
  needCenter: !variableMap[key],
60986
61010
  isLine,
60987
- isWebviewRender: isMobile
61011
+ isWebviewRender: isMobile2
60988
61012
  },
60989
61013
  style: {
60990
61014
  fill: "#000000",
@@ -61861,7 +61885,7 @@ var FillsView2 = class extends Chart_default {
61861
61885
  render(seriesModel, ecModel, api2) {
61862
61886
  const data = seriesModel.getData();
61863
61887
  const pointsByColor = data.getLayout("pointsByColor");
61864
- const isMobile = seriesModel.get("isMobile");
61888
+ const isMobile2 = seriesModel.get("isMobile");
61865
61889
  if (!this._polygonGroup) {
61866
61890
  this._polygonGroup = new Group_default();
61867
61891
  this.group.add(this._polygonGroup);
@@ -61897,7 +61921,7 @@ var FillsView2 = class extends Chart_default {
61897
61921
  const el = new FillPolyPath_default({
61898
61922
  shape: {
61899
61923
  points: points4,
61900
- isWebviewRender: isMobile,
61924
+ isWebviewRender: isMobile2,
61901
61925
  fill
61902
61926
  },
61903
61927
  style: {
@@ -62180,7 +62204,7 @@ var BgColorView2 = class extends Chart_default {
62180
62204
  } else {
62181
62205
  this._bgColorGroup.removeAll();
62182
62206
  }
62183
- const isMobile = seriesModel.get("isMobile");
62207
+ const isMobile2 = seriesModel.get("isMobile");
62184
62208
  const bgColorGroup = this._bgColorGroup;
62185
62209
  const barWidth = Math.ceil(seriesModel.coordinateSystem.getBaseAxis().scale.barSpace) || 5;
62186
62210
  const isLine = barWidth <= 4;
@@ -62192,7 +62216,7 @@ var BgColorView2 = class extends Chart_default {
62192
62216
  height,
62193
62217
  fill: isLine ? null : color2,
62194
62218
  stroke: isLine ? color2 : "none",
62195
- isWebviewRender: isMobile
62219
+ isWebviewRender: isMobile2
62196
62220
  },
62197
62221
  style: {
62198
62222
  fill: isLine ? null : color2,
@@ -69833,8 +69857,8 @@ function collectReferCoordSysModelInfo(dataZoomModel) {
69833
69857
  return coordSysInfoWrap;
69834
69858
  }
69835
69859
  function barSpaceLimit(barSpace, maxWidth = 200) {
69836
- if (barSpace < 1) {
69837
- return 1;
69860
+ if (barSpace < 0.5) {
69861
+ return 0.5;
69838
69862
  } else if (barSpace > maxWidth) {
69839
69863
  return maxWidth;
69840
69864
  }