tvcharts 0.8.98 → 0.8.99

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.
@@ -60,6 +60,11 @@ import { getFormatColor } from '../../util/format.js';
60
60
  import { getECData } from '../../util/innerStore.js';
61
61
  import { toggleHoverEmphasis } from '../../util/states.js';
62
62
  var LastZ2 = -1;
63
+ var lineStyleMap = {
64
+ style_dotted: [2, 2],
65
+ style_solid: 'solid',
66
+ style_dashed: [5, 5]
67
+ };
63
68
  function clipColorStops(colorStops, maxSize) {
64
69
  var newColorStops = [];
65
70
  var len = colorStops.length;
@@ -316,7 +321,7 @@ var LinesPlotView = /** @class */function (_super) {
316
321
  isWebviewRender: isMobile_1
317
322
  },
318
323
  style: {
319
- lineDash: lineDash,
324
+ lineDash: lineStyleMap[lineDash],
320
325
  stroke: visualColor_1 || color,
321
326
  lineWidth: +lineWidth,
322
327
  lineCap: 'round',
@@ -151,7 +151,7 @@ var linesPlotLayout = {
151
151
  var _a = itemModal.lineStyle || {},
152
152
  color = _a.color,
153
153
  _b = _a.type,
154
- type = _b === void 0 ? 'solid' : _b,
154
+ type = _b === void 0 ? 'style_solid' : _b,
155
155
  _c = _a.width,
156
156
  width = _c === void 0 ? '1' : _c,
157
157
  rgbas = _a.rgbas;
@@ -220,7 +220,7 @@ var linesPlotLayout = {
220
220
  var _d = itemModel.get('lineStyle'),
221
221
  color_1 = _d.color,
222
222
  _e = _d.type,
223
- type_1 = _e === void 0 ? 'solid' : _e,
223
+ type_1 = _e === void 0 ? 'style_solid' : _e,
224
224
  _f = _d.width,
225
225
  width_1 = _f === void 0 ? '1' : _f;
226
226
  stylePointInfo = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tvcharts",
3
- "version": "0.8.98",
3
+ "version": "0.8.99",
4
4
  "main": "dist/echarts.js",
5
5
  "module": "index.js",
6
6
  "jsdelivr": "dist/echarts.min.js",