tvcharts 0.7.56 → 0.7.58

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
@@ -16358,6 +16358,7 @@ var BUITIN_COMPONENTS_MAP = {
16358
16358
  axisPointer: "AxisPointerComponent",
16359
16359
  brush: "BrushComponent",
16360
16360
  title: "TitleComponent",
16361
+ cursorPointer: "CursorPointerComponent",
16361
16362
  table: "TableComponent",
16362
16363
  alarm: "AlarmComponent",
16363
16364
  bgRect: "BgRectComponent",
@@ -24241,7 +24242,7 @@ var ECharts = class extends Eventful_default {
24241
24242
  if (!isObject(opt)) {
24242
24243
  opt = {silent: !!opt};
24243
24244
  }
24244
- let replaceMerge;
24245
+ const replaceMerge = opt.replaceMerge;
24245
24246
  this[IN_MAIN_PROCESS_KEY] = true;
24246
24247
  if (!this._model) {
24247
24248
  error("\u56FE\u8868\u5C1A\u672A\u521D\u59CB\u5316");
@@ -58009,6 +58010,7 @@ BoxesSeriesModel.defaultOption = {
58009
58010
  x: ["extend", "left", "right"],
58010
58011
  y: ["top", "bottom"]
58011
58012
  },
58013
+ baseDim: "top",
58012
58014
  emphasis: {
58013
58015
  emphasisState: {
58014
58016
  zlevel: 1
@@ -68693,7 +68695,8 @@ function calculateDataExtent(axisProxy, axisDim, seriesModels) {
68693
68695
  const seriesData = seriesModel.getData();
68694
68696
  let baseValue = void 0;
68695
68697
  if (axisModel.axis.type === "percentage") {
68696
- baseValue = seriesData.get(isCandle(seriesModel.subType) ? "close" : "y", 0);
68698
+ const dim = seriesModel.option.baseDim || "y";
68699
+ baseValue = seriesData.getBaseValue(dim);
68697
68700
  }
68698
68701
  unionAxisExtentFromData(dataExtent, seriesData, axisDim, baseValue);
68699
68702
  });
@@ -72167,6 +72170,80 @@ function install53(registers) {
72167
72170
  registers.registerComponentView(TitleView);
72168
72171
  }
72169
72172
 
72173
+ // src/component/cursorPointer/install.ts
72174
+ var CursorPointerModel2 = class extends Component_default {
72175
+ constructor() {
72176
+ super(...arguments);
72177
+ this.type = CursorPointerModel2.type;
72178
+ }
72179
+ };
72180
+ var CursorPointerModel = CursorPointerModel2;
72181
+ CursorPointerModel.type = "cursorPointer";
72182
+ CursorPointerModel.defaultOption = {
72183
+ z: 6,
72184
+ r: 20,
72185
+ show: true,
72186
+ backgroundColor: "rgba(242, 54, 69, 0.2)"
72187
+ };
72188
+ var CursorPointerView2 = class extends Component_default2 {
72189
+ constructor() {
72190
+ super(...arguments);
72191
+ this.type = CursorPointerView2.type;
72192
+ }
72193
+ init(ecModel, api2) {
72194
+ this.element = new Circle_default();
72195
+ this.group.add(this.element);
72196
+ }
72197
+ render(cursorPointerModel, ecModel, api2) {
72198
+ if (!cursorPointerModel.get("show")) {
72199
+ this.group.removeAll();
72200
+ return;
72201
+ }
72202
+ const backgroundColor2 = cursorPointerModel.get("backgroundColor");
72203
+ const r = cursorPointerModel.get("r");
72204
+ const element = this.element;
72205
+ element.attr({
72206
+ style: {
72207
+ fill: backgroundColor2
72208
+ },
72209
+ shape: {
72210
+ r
72211
+ },
72212
+ silent: true
72213
+ });
72214
+ api2.getZr().on("mousemove", this.handleMove, this);
72215
+ api2.getZr().on("globalout", this.handleGlobalOut, this);
72216
+ }
72217
+ dispose(ecModel, api2) {
72218
+ this.group.removeAll();
72219
+ this.element = null;
72220
+ api2.getZr().off("mousemove", this.handleMove);
72221
+ api2.getZr().off("globalout", this.handleGlobalOut);
72222
+ }
72223
+ handleMove(event) {
72224
+ const x = event.offsetX;
72225
+ const y = event.offsetY;
72226
+ if (!this.group.childCount()) {
72227
+ this.group.add(this.element);
72228
+ }
72229
+ this.element.attr({
72230
+ shape: {
72231
+ cx: x,
72232
+ cy: y
72233
+ }
72234
+ });
72235
+ }
72236
+ handleGlobalOut() {
72237
+ this.group.remove(this.element);
72238
+ }
72239
+ };
72240
+ var CursorPointerView = CursorPointerView2;
72241
+ CursorPointerView.type = "cursorPointer";
72242
+ function install54(registers) {
72243
+ registers.registerComponentModel(CursorPointerModel);
72244
+ registers.registerComponentView(CursorPointerView);
72245
+ }
72246
+
72170
72247
  // src/component/table/TableModel.ts
72171
72248
  var TableModel2 = class extends Component_default {
72172
72249
  constructor() {
@@ -72553,7 +72630,7 @@ TableView.type = "table";
72553
72630
  var TableView_default = TableView;
72554
72631
 
72555
72632
  // src/component/table/install.ts
72556
- function install54(registers) {
72633
+ function install55(registers) {
72557
72634
  registers.registerComponentModel(TableModel_default);
72558
72635
  registers.registerComponentView(TableView_default);
72559
72636
  }
@@ -73017,7 +73094,7 @@ AlarmModel.defaultOption = {
73017
73094
  var AlarmModel_default = AlarmModel;
73018
73095
 
73019
73096
  // src/component/alarm/install.ts
73020
- function install55(registers) {
73097
+ function install56(registers) {
73021
73098
  registers.registerComponentView(AlarmView_default);
73022
73099
  registers.registerComponentModel(AlarmModel_default);
73023
73100
  registers.registerAction({type: "alarm", event: "alarm", update: "updateVisual"}, function(payload, ecModel) {
@@ -73095,7 +73172,7 @@ var BgRectView2 = class extends Component_default2 {
73095
73172
  };
73096
73173
  var BgRectView = BgRectView2;
73097
73174
  BgRectView.type = "bgRect";
73098
- function install56(registers) {
73175
+ function install57(registers) {
73099
73176
  registers.registerComponentModel(BgRectModel);
73100
73177
  registers.registerComponentView(BgRectView);
73101
73178
  }
@@ -73156,7 +73233,7 @@ var LogoView2 = class extends Component_default2 {
73156
73233
  };
73157
73234
  var LogoView = LogoView2;
73158
73235
  LogoView.type = "logo";
73159
- function install57(registers) {
73236
+ function install58(registers) {
73160
73237
  registers.registerComponentModel(LogoModel);
73161
73238
  registers.registerComponentView(LogoView);
73162
73239
  }
@@ -74010,7 +74087,7 @@ function has(obj, attr) {
74010
74087
  }
74011
74088
 
74012
74089
  // src/component/timeline/install.ts
74013
- function install58(registers) {
74090
+ function install59(registers) {
74014
74091
  registers.registerComponentModel(SliderTimelineModel_default);
74015
74092
  registers.registerComponentView(SliderTimelineView_default);
74016
74093
  registers.registerSubTypeDefaulter("timeline", function() {
@@ -74451,7 +74528,7 @@ function createData(coordSys, seriesModel, mpModel) {
74451
74528
  var MarkPointView_default = MarkPointView;
74452
74529
 
74453
74530
  // src/component/marker/installMarkPoint.ts
74454
- function install59(registers) {
74531
+ function install60(registers) {
74455
74532
  registers.registerComponentModel(MarkPointModel_default);
74456
74533
  registers.registerComponentView(MarkPointView_default);
74457
74534
  registers.registerPreprocessor(function(opt) {
@@ -74769,7 +74846,7 @@ function createList2(coordSys, seriesModel, mlModel) {
74769
74846
  var MarkLineView_default = MarkLineView;
74770
74847
 
74771
74848
  // src/component/marker/installMarkLine.ts
74772
- function install60(registers) {
74849
+ function install61(registers) {
74773
74850
  registers.registerComponentModel(MarkLineModel_default);
74774
74851
  registers.registerComponentView(MarkLineView_default);
74775
74852
  registers.registerPreprocessor(function(opt) {
@@ -75083,7 +75160,7 @@ function createList3(coordSys, seriesModel, maModel) {
75083
75160
  var MarkAreaView_default = MarkAreaView;
75084
75161
 
75085
75162
  // src/component/marker/installMarkArea.ts
75086
- function install61(registers) {
75163
+ function install62(registers) {
75087
75164
  registers.registerComponentModel(MarkAreaModel_default);
75088
75165
  registers.registerComponentView(MarkAreaView_default);
75089
75166
  registers.registerPreprocessor(function(opt) {
@@ -75696,7 +75773,7 @@ function updateLabel({x, y, labelData, markerModel, gridRect, position: position
75696
75773
  var MarkLabelView_default = MarkLabelView;
75697
75774
 
75698
75775
  // src/component/marker/installMarkLabel.ts
75699
- function install62(registers) {
75776
+ function install63(registers) {
75700
75777
  registers.registerComponentModel(MarkLabelModal_default);
75701
75778
  registers.registerComponentView(MarkLabelView_default);
75702
75779
  registers.registerPreprocessor(function(opt) {
@@ -76378,7 +76455,7 @@ function installLegendAction(registers) {
76378
76455
  }
76379
76456
 
76380
76457
  // src/component/legend/installLegendPlain.ts
76381
- function install63(registers) {
76458
+ function install64(registers) {
76382
76459
  registers.registerComponentModel(LegendModel_default);
76383
76460
  registers.registerComponentView(LegendView_default);
76384
76461
  registers.registerProcessor(registers.PRIORITY.PROCESSOR.SERIES_FILTER, legendFilter);
@@ -76708,17 +76785,17 @@ function installScrollableLegendAction(registers) {
76708
76785
  }
76709
76786
 
76710
76787
  // src/component/legend/installLegendScroll.ts
76711
- function install64(registers) {
76712
- use(install63);
76788
+ function install65(registers) {
76789
+ use(install64);
76713
76790
  registers.registerComponentModel(ScrollableLegendModel_default);
76714
76791
  registers.registerComponentView(ScrollableLegendView_default);
76715
76792
  installScrollableLegendAction(registers);
76716
76793
  }
76717
76794
 
76718
76795
  // src/component/legend/install.ts
76719
- function install65(registers) {
76720
- use(install63);
76796
+ function install66(registers) {
76721
76797
  use(install64);
76798
+ use(install65);
76722
76799
  }
76723
76800
 
76724
76801
  // src/component/dataZoom/InsideZoomModel.ts
@@ -77164,7 +77241,7 @@ var getDirectionInfo = {
77164
77241
  var InsideZoomView_default = InsideZoomView;
77165
77242
 
77166
77243
  // src/component/dataZoom/installDataZoomInside.ts
77167
- function install66(registers) {
77244
+ function install67(registers) {
77168
77245
  installCommon(registers);
77169
77246
  registers.registerComponentModel(InsideZoomModel_default);
77170
77247
  registers.registerComponentView(InsideZoomView_default);
@@ -77920,16 +77997,16 @@ function getCursor(orient) {
77920
77997
  var SliderZoomView_default = SliderZoomView;
77921
77998
 
77922
77999
  // src/component/dataZoom/installDataZoomSlider.ts
77923
- function install67(registers) {
78000
+ function install68(registers) {
77924
78001
  registers.registerComponentModel(SliderZoomModel_default);
77925
78002
  registers.registerComponentView(SliderZoomView_default);
77926
78003
  installCommon(registers);
77927
78004
  }
77928
78005
 
77929
78006
  // src/component/dataZoom/install.ts
77930
- function install68(registers) {
77931
- use(install66);
78007
+ function install69(registers) {
77932
78008
  use(install67);
78009
+ use(install68);
77933
78010
  }
77934
78011
 
77935
78012
  // src/visual/visualDefault.ts
@@ -79194,7 +79271,7 @@ function installCommon2(registers) {
79194
79271
  }
79195
79272
 
79196
79273
  // src/component/visualMap/installVisualMapContinuous.ts
79197
- function install69(registers) {
79274
+ function install70(registers) {
79198
79275
  registers.registerComponentModel(ContinuousModel_default);
79199
79276
  registers.registerComponentView(ContinuousView_default);
79200
79277
  installCommon2(registers);
@@ -79634,16 +79711,16 @@ PiecewiseVisualMapView.type = "visualMap.piecewise";
79634
79711
  var PiecewiseView_default = PiecewiseVisualMapView;
79635
79712
 
79636
79713
  // src/component/visualMap/installVisualMapPiecewise.ts
79637
- function install70(registers) {
79714
+ function install71(registers) {
79638
79715
  registers.registerComponentModel(PiecewiseModel_default);
79639
79716
  registers.registerComponentView(PiecewiseView_default);
79640
79717
  installCommon2(registers);
79641
79718
  }
79642
79719
 
79643
79720
  // src/component/visualMap/install.ts
79644
- function install71(registers) {
79645
- use(install69);
79721
+ function install72(registers) {
79646
79722
  use(install70);
79723
+ use(install71);
79647
79724
  }
79648
79725
 
79649
79726
  // src/visual/aria.ts
@@ -79839,7 +79916,7 @@ function ariaPreprocessor(option) {
79839
79916
  }
79840
79917
 
79841
79918
  // src/component/aria/install.ts
79842
- function install72(registers) {
79919
+ function install73(registers) {
79843
79920
  registers.registerPreprocessor(ariaPreprocessor);
79844
79921
  registers.registerVisual(registers.PRIORITY.VISUAL.ARIA, ariaVisual);
79845
79922
  }
@@ -80177,7 +80254,7 @@ var sortTransform = {
80177
80254
  };
80178
80255
 
80179
80256
  // src/component/transform/install.ts
80180
- function install73(registers) {
80257
+ function install74(registers) {
80181
80258
  registers.registerTransform(filterTransform);
80182
80259
  registers.registerTransform(sortTransform);
80183
80260
  }
@@ -80215,7 +80292,7 @@ var DatasetView = class extends Component_default2 {
80215
80292
  }
80216
80293
  };
80217
80294
  DatasetView.type = "dataset";
80218
- function install74(registers) {
80295
+ function install75(registers) {
80219
80296
  registers.registerComponentModel(DatasetModel);
80220
80297
  registers.registerComponentView(DatasetView);
80221
80298
  }
@@ -81977,16 +82054,17 @@ use(install59);
81977
82054
  use(install60);
81978
82055
  use(install61);
81979
82056
  use(install62);
81980
- use(install65);
81981
- use(install68);
82057
+ use(install63);
81982
82058
  use(install66);
81983
- use(install67);
81984
- use(install71);
81985
82059
  use(install69);
81986
- use(install70);
82060
+ use(install67);
82061
+ use(install68);
81987
82062
  use(install72);
82063
+ use(install70);
82064
+ use(install71);
81988
82065
  use(install73);
81989
82066
  use(install74);
82067
+ use(install75);
81990
82068
  use(installUniversalTransition);
81991
82069
  use(installLabelLayout);
81992
82070