tvcharts 0.7.69 → 0.7.71

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
+ limitTip: "LimitTipComponent",
16361
16362
  cursorPointer: "CursorPointerComponent",
16362
16363
  table: "TableComponent",
16363
16364
  alarm: "AlarmComponent",
@@ -64965,7 +64966,7 @@ var AxisPointerView2 = class extends Component_default2 {
64965
64966
  if (currTrigger === "mouseup") {
64966
64967
  this.xLock = false;
64967
64968
  }
64968
- const updatePointDisable = globalTooltipModel.option.updatePointDisable;
64969
+ const updatePointDisable = globalTooltipModel && globalTooltipModel.option.updatePointDisable;
64969
64970
  if (updatePointDisable) {
64970
64971
  return;
64971
64972
  }
@@ -75543,7 +75544,7 @@ var MarkLabelView2 = class extends Component_default2 {
75543
75544
  const updatedSeriesByName = {};
75544
75545
  const height = api2.getHeight();
75545
75546
  let backgroundColor2 = ecModel.get("backgroundColor");
75546
- if (isGradientObject(backgroundColor2) && !backgroundColor2.global && backgroundColor2.type === "linear") {
75547
+ if (backgroundColor2 && isGradientObject(backgroundColor2) && !backgroundColor2.global && backgroundColor2.type === "linear") {
75547
75548
  backgroundColor2 = {
75548
75549
  ...backgroundColor2,
75549
75550
  global: true,
@@ -76068,6 +76069,67 @@ function install63(registers) {
76068
76069
  });
76069
76070
  }
76070
76071
 
76072
+ // src/component/limitTip/install.ts
76073
+ var LimitTipModel2 = class extends Component_default {
76074
+ constructor() {
76075
+ super(...arguments);
76076
+ this.type = LimitTipModel2.type;
76077
+ this.layoutMode = {type: "box", ignoreSize: true};
76078
+ }
76079
+ };
76080
+ var LimitTipModel = LimitTipModel2;
76081
+ LimitTipModel.type = "limitTip";
76082
+ LimitTipModel.defaultOption = {
76083
+ show: true,
76084
+ elId: "limitTip"
76085
+ };
76086
+ var LimitTipView2 = class extends Component_default2 {
76087
+ constructor() {
76088
+ super(...arguments);
76089
+ this.type = LimitTipView2.type;
76090
+ }
76091
+ init(ecModel, api2) {
76092
+ if (env_default.node || !api2.getDom()) {
76093
+ return;
76094
+ }
76095
+ const el = document.createElement("div");
76096
+ el.style.position = "absolute";
76097
+ el.style.top = "50%";
76098
+ el.style.transform = "translateY(-50%)";
76099
+ this.warpEl = el;
76100
+ api2.getDom().appendChild(el);
76101
+ }
76102
+ render(limitTipModel, ecModel, api2) {
76103
+ if (!limitTipModel.get("show")) {
76104
+ return;
76105
+ }
76106
+ const grid = ecModel.getComponent("grid", 0);
76107
+ const coordSys = grid.coordinateSystem;
76108
+ if (!coordSys) {
76109
+ return;
76110
+ }
76111
+ const warpEl = this.warpEl;
76112
+ warpEl.id = limitTipModel.get("elId");
76113
+ const xAxisModel = coordSys.getAxis("x");
76114
+ const startX = xAxisModel.dataToCoord(0);
76115
+ warpEl.style.left = startX - 580 - 50 + "px";
76116
+ }
76117
+ dispose(ecModel, api2) {
76118
+ if (env_default.node || !api2.getDom()) {
76119
+ return;
76120
+ }
76121
+ const parentNode2 = this.warpEl.parentNode;
76122
+ parentNode2 && parentNode2.removeChild(this.warpEl);
76123
+ this.warpEl = null;
76124
+ }
76125
+ };
76126
+ var LimitTipView = LimitTipView2;
76127
+ LimitTipView.type = "limitTip";
76128
+ function install64(registers) {
76129
+ registers.registerComponentModel(LimitTipModel);
76130
+ registers.registerComponentView(LimitTipView);
76131
+ }
76132
+
76071
76133
  // src/component/legend/LegendModel.ts
76072
76134
  var getDefaultSelectorOptions = function(ecModel, type) {
76073
76135
  if (type === "all") {
@@ -76740,7 +76802,7 @@ function installLegendAction(registers) {
76740
76802
  }
76741
76803
 
76742
76804
  // src/component/legend/installLegendPlain.ts
76743
- function install64(registers) {
76805
+ function install65(registers) {
76744
76806
  registers.registerComponentModel(LegendModel_default);
76745
76807
  registers.registerComponentView(LegendView_default);
76746
76808
  registers.registerProcessor(registers.PRIORITY.PROCESSOR.SERIES_FILTER, legendFilter);
@@ -77070,17 +77132,17 @@ function installScrollableLegendAction(registers) {
77070
77132
  }
77071
77133
 
77072
77134
  // src/component/legend/installLegendScroll.ts
77073
- function install65(registers) {
77074
- use(install64);
77135
+ function install66(registers) {
77136
+ use(install65);
77075
77137
  registers.registerComponentModel(ScrollableLegendModel_default);
77076
77138
  registers.registerComponentView(ScrollableLegendView_default);
77077
77139
  installScrollableLegendAction(registers);
77078
77140
  }
77079
77141
 
77080
77142
  // src/component/legend/install.ts
77081
- function install66(registers) {
77082
- use(install64);
77143
+ function install67(registers) {
77083
77144
  use(install65);
77145
+ use(install66);
77084
77146
  }
77085
77147
 
77086
77148
  // src/component/dataZoom/InsideZoomModel.ts
@@ -77526,7 +77588,7 @@ var getDirectionInfo = {
77526
77588
  var InsideZoomView_default = InsideZoomView;
77527
77589
 
77528
77590
  // src/component/dataZoom/installDataZoomInside.ts
77529
- function install67(registers) {
77591
+ function install68(registers) {
77530
77592
  installCommon(registers);
77531
77593
  registers.registerComponentModel(InsideZoomModel_default);
77532
77594
  registers.registerComponentView(InsideZoomView_default);
@@ -78282,16 +78344,16 @@ function getCursor(orient) {
78282
78344
  var SliderZoomView_default = SliderZoomView;
78283
78345
 
78284
78346
  // src/component/dataZoom/installDataZoomSlider.ts
78285
- function install68(registers) {
78347
+ function install69(registers) {
78286
78348
  registers.registerComponentModel(SliderZoomModel_default);
78287
78349
  registers.registerComponentView(SliderZoomView_default);
78288
78350
  installCommon(registers);
78289
78351
  }
78290
78352
 
78291
78353
  // src/component/dataZoom/install.ts
78292
- function install69(registers) {
78293
- use(install67);
78354
+ function install70(registers) {
78294
78355
  use(install68);
78356
+ use(install69);
78295
78357
  }
78296
78358
 
78297
78359
  // src/visual/visualDefault.ts
@@ -79556,7 +79618,7 @@ function installCommon2(registers) {
79556
79618
  }
79557
79619
 
79558
79620
  // src/component/visualMap/installVisualMapContinuous.ts
79559
- function install70(registers) {
79621
+ function install71(registers) {
79560
79622
  registers.registerComponentModel(ContinuousModel_default);
79561
79623
  registers.registerComponentView(ContinuousView_default);
79562
79624
  installCommon2(registers);
@@ -79996,16 +80058,16 @@ PiecewiseVisualMapView.type = "visualMap.piecewise";
79996
80058
  var PiecewiseView_default = PiecewiseVisualMapView;
79997
80059
 
79998
80060
  // src/component/visualMap/installVisualMapPiecewise.ts
79999
- function install71(registers) {
80061
+ function install72(registers) {
80000
80062
  registers.registerComponentModel(PiecewiseModel_default);
80001
80063
  registers.registerComponentView(PiecewiseView_default);
80002
80064
  installCommon2(registers);
80003
80065
  }
80004
80066
 
80005
80067
  // src/component/visualMap/install.ts
80006
- function install72(registers) {
80007
- use(install70);
80068
+ function install73(registers) {
80008
80069
  use(install71);
80070
+ use(install72);
80009
80071
  }
80010
80072
 
80011
80073
  // src/visual/aria.ts
@@ -80201,7 +80263,7 @@ function ariaPreprocessor(option) {
80201
80263
  }
80202
80264
 
80203
80265
  // src/component/aria/install.ts
80204
- function install73(registers) {
80266
+ function install74(registers) {
80205
80267
  registers.registerPreprocessor(ariaPreprocessor);
80206
80268
  registers.registerVisual(registers.PRIORITY.VISUAL.ARIA, ariaVisual);
80207
80269
  }
@@ -80539,7 +80601,7 @@ var sortTransform = {
80539
80601
  };
80540
80602
 
80541
80603
  // src/component/transform/install.ts
80542
- function install74(registers) {
80604
+ function install75(registers) {
80543
80605
  registers.registerTransform(filterTransform);
80544
80606
  registers.registerTransform(sortTransform);
80545
80607
  }
@@ -80577,7 +80639,7 @@ var DatasetView = class extends Component_default2 {
80577
80639
  }
80578
80640
  };
80579
80641
  DatasetView.type = "dataset";
80580
- function install75(registers) {
80642
+ function install76(registers) {
80581
80643
  registers.registerComponentModel(DatasetModel);
80582
80644
  registers.registerComponentView(DatasetView);
80583
80645
  }
@@ -82330,6 +82392,7 @@ use(install51);
82330
82392
  use(install43);
82331
82393
  use(install52);
82332
82394
  use(install53);
82395
+ use(install64);
82333
82396
  use(install54);
82334
82397
  use(install55);
82335
82398
  use(install56);
@@ -82340,16 +82403,16 @@ use(install60);
82340
82403
  use(install61);
82341
82404
  use(install62);
82342
82405
  use(install63);
82343
- use(install66);
82344
- use(install69);
82345
82406
  use(install67);
82346
- use(install68);
82347
- use(install72);
82348
82407
  use(install70);
82349
- use(install71);
82408
+ use(install68);
82409
+ use(install69);
82350
82410
  use(install73);
82411
+ use(install71);
82412
+ use(install72);
82351
82413
  use(install74);
82352
82414
  use(install75);
82415
+ use(install76);
82353
82416
  use(installUniversalTransition);
82354
82417
  use(installLabelLayout);
82355
82418