@visactor/vchart 1.3.2 → 1.3.4

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.
Files changed (87) hide show
  1. package/build/es5/index.js +2 -2
  2. package/build/index.js +63 -40
  3. package/build/index.min.js +1 -1
  4. package/build/tsconfig.tsbuildinfo +1 -1
  5. package/cjs/chart/progress/circular/circular.js +1 -1
  6. package/cjs/chart/progress/circular/circular.js.map +1 -1
  7. package/cjs/component/axis/cartesian/axis.d.ts +8 -0
  8. package/cjs/component/axis/cartesian/axis.js +10 -9
  9. package/cjs/component/axis/cartesian/axis.js.map +1 -1
  10. package/cjs/component/axis/cartesian/util/common.d.ts +1 -0
  11. package/cjs/component/axis/cartesian/util/common.js +8 -2
  12. package/cjs/component/axis/cartesian/util/common.js.map +1 -1
  13. package/cjs/component/base/base-component.js +2 -1
  14. package/cjs/component/base/base-component.js.map +1 -1
  15. package/cjs/component/brush/brush.js +3 -1
  16. package/cjs/component/brush/brush.js.map +1 -1
  17. package/cjs/component/crosshair/cartesian.js +2 -1
  18. package/cjs/component/crosshair/cartesian.js.map +1 -1
  19. package/cjs/component/crosshair/polar.js +2 -1
  20. package/cjs/component/crosshair/polar.js.map +1 -1
  21. package/cjs/component/data-zoom/data-zoom/data-zoom.js +3 -2
  22. package/cjs/component/data-zoom/data-zoom/data-zoom.js.map +1 -1
  23. package/cjs/component/indicator/indicator.js +2 -1
  24. package/cjs/component/indicator/indicator.js.map +1 -1
  25. package/cjs/component/legend/base-legend.js +4 -2
  26. package/cjs/component/legend/base-legend.js.map +1 -1
  27. package/cjs/component/marker/base-marker.js +3 -2
  28. package/cjs/component/marker/base-marker.js.map +1 -1
  29. package/cjs/component/player/player.js +7 -3
  30. package/cjs/component/player/player.js.map +1 -1
  31. package/cjs/component/title/title.js +3 -2
  32. package/cjs/component/title/title.js.map +1 -1
  33. package/cjs/core/index.d.ts +1 -1
  34. package/cjs/core/index.js +1 -1
  35. package/cjs/core/index.js.map +1 -1
  36. package/cjs/core/vchart.js +3 -2
  37. package/cjs/core/vchart.js.map +1 -1
  38. package/cjs/mark/progress-arc.js +2 -2
  39. package/cjs/mark/progress-arc.js.map +1 -1
  40. package/cjs/model/layout-item.js +1 -1
  41. package/cjs/model/layout-item.js.map +1 -1
  42. package/cjs/series/progress/circular/circular.js +4 -3
  43. package/cjs/series/progress/circular/circular.js.map +1 -1
  44. package/cjs/series/progress/linear/linear.js +8 -9
  45. package/cjs/series/progress/linear/linear.js.map +1 -1
  46. package/esm/chart/progress/circular/circular.js +1 -1
  47. package/esm/chart/progress/circular/circular.js.map +1 -1
  48. package/esm/component/axis/cartesian/axis.d.ts +8 -0
  49. package/esm/component/axis/cartesian/axis.js +11 -10
  50. package/esm/component/axis/cartesian/axis.js.map +1 -1
  51. package/esm/component/axis/cartesian/util/common.d.ts +1 -0
  52. package/esm/component/axis/cartesian/util/common.js +7 -1
  53. package/esm/component/axis/cartesian/util/common.js.map +1 -1
  54. package/esm/component/base/base-component.js +2 -1
  55. package/esm/component/base/base-component.js.map +1 -1
  56. package/esm/component/brush/brush.js +3 -1
  57. package/esm/component/brush/brush.js.map +1 -1
  58. package/esm/component/crosshair/cartesian.js +2 -1
  59. package/esm/component/crosshair/cartesian.js.map +1 -1
  60. package/esm/component/crosshair/polar.js +2 -1
  61. package/esm/component/crosshair/polar.js.map +1 -1
  62. package/esm/component/data-zoom/data-zoom/data-zoom.js +3 -2
  63. package/esm/component/data-zoom/data-zoom/data-zoom.js.map +1 -1
  64. package/esm/component/indicator/indicator.js +2 -1
  65. package/esm/component/indicator/indicator.js.map +1 -1
  66. package/esm/component/legend/base-legend.js +4 -2
  67. package/esm/component/legend/base-legend.js.map +1 -1
  68. package/esm/component/marker/base-marker.js +3 -2
  69. package/esm/component/marker/base-marker.js.map +1 -1
  70. package/esm/component/player/player.js +7 -3
  71. package/esm/component/player/player.js.map +1 -1
  72. package/esm/component/title/title.js +3 -2
  73. package/esm/component/title/title.js.map +1 -1
  74. package/esm/core/index.d.ts +1 -1
  75. package/esm/core/index.js +1 -1
  76. package/esm/core/index.js.map +1 -1
  77. package/esm/core/vchart.js +3 -2
  78. package/esm/core/vchart.js.map +1 -1
  79. package/esm/mark/progress-arc.js +2 -2
  80. package/esm/mark/progress-arc.js.map +1 -1
  81. package/esm/model/layout-item.js +1 -1
  82. package/esm/model/layout-item.js.map +1 -1
  83. package/esm/series/progress/circular/circular.js +4 -2
  84. package/esm/series/progress/circular/circular.js.map +1 -1
  85. package/esm/series/progress/linear/linear.js +7 -9
  86. package/esm/series/progress/linear/linear.js.map +1 -1
  87. package/package.json +1 -1
package/build/index.js CHANGED
@@ -53718,6 +53718,13 @@
53718
53718
  function getDirectionByOrient(orient) {
53719
53719
  return orient === 'top' || orient === 'bottom' ? Direction.horizontal : Direction.vertical;
53720
53720
  }
53721
+ function transformInverse(spec, isHorizontal) {
53722
+ let inverse = spec.inverse;
53723
+ if (isHorizontal && !isXAxis(spec.orient)) {
53724
+ inverse = isValid$1(spec.inverse) ? !spec.inverse : true;
53725
+ }
53726
+ return inverse;
53727
+ }
53721
53728
 
53722
53729
  const getAxis$1 = (chart, type, pos) => {
53723
53730
  const axesComponents = chart
@@ -57495,11 +57502,12 @@
57495
57502
  spec = mergeSpec({}, this._spec, spec);
57496
57503
  }
57497
57504
  yield this.updateCustomConfigAndRerender(() => {
57498
- var _a, _b;
57505
+ var _a, _b, _c;
57499
57506
  spec = specTransform(spec);
57500
57507
  this._spec = spec;
57501
57508
  this._updateCurrentTheme();
57502
- (_b = (_a = this._compiler) === null || _a === void 0 ? void 0 : _a.getVGrammarView()) === null || _b === void 0 ? void 0 : _b.updateLayoutTag();
57509
+ (_a = this._chart) === null || _a === void 0 ? void 0 : _a.setCurrentTheme(this._currentTheme, true);
57510
+ (_c = (_b = this._compiler) === null || _b === void 0 ? void 0 : _b.getVGrammarView()) === null || _c === void 0 ? void 0 : _c.updateLayoutTag();
57503
57511
  return this._chart.updateSpec(spec, morphConfig);
57504
57512
  }, morphConfig);
57505
57513
  return this;
@@ -58182,7 +58190,7 @@
58182
58190
  this.layoutZIndex = 0;
58183
58191
  }
58184
58192
  getSpec() {
58185
- return this._spec;
58193
+ return this._spec || {};
58186
58194
  }
58187
58195
  getAutoIndent() {
58188
58196
  return this._autoIndent;
@@ -60733,7 +60741,7 @@
60733
60741
  VChart.useMark([ComponentMark, GroupMark, ImageMark]);
60734
60742
  Factory.registerRegion('region', Region);
60735
60743
  Factory.registerLayout('base', Layout);
60736
- const version = "1.3.2";
60744
+ const version = "1.3.4";
60737
60745
  Logger.getInstance(LoggerLevel.Error);
60738
60746
 
60739
60747
  const Appear_ClipIn$1 = {
@@ -69365,17 +69373,17 @@
69365
69373
  return defaultStyle;
69366
69374
  }
69367
69375
  _filterStyle(style, state, level, stateStyle = this.stateStyle) {
69368
- var _a, _b, _c, _d, _e, _f;
69376
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
69369
69377
  if (isValid$1(style.innerRadius)) {
69370
69378
  this.setAttribute('innerRadius', this._styleConvert(style.innerRadius), state, level, this._cacheStateStyle);
69371
69379
  }
69372
69380
  if (isValid$1(style.outerRadius)) {
69373
69381
  this.setAttribute('outerRadius', this._styleConvert(style.outerRadius), state, level, this._cacheStateStyle);
69374
69382
  }
69375
- const innerPadding = (_a = style.innerPadding) !== null && _a !== void 0 ? _a : stateStyle[state].innerPadding.style;
69376
- const outerPadding = (_b = style.outerPadding) !== null && _b !== void 0 ? _b : stateStyle[state].outerPadding.style;
69377
- const innerRadius = (_d = (_c = style.innerRadius) !== null && _c !== void 0 ? _c : this._cacheStateStyle[state].innerRadius.style) !== null && _d !== void 0 ? _d : stateStyle[state].innerRadius.style;
69378
- const outerRadius = (_f = (_e = style.outerRadius) !== null && _e !== void 0 ? _e : this._cacheStateStyle[state].outerRadius.style) !== null && _f !== void 0 ? _f : stateStyle[state].outerRadius.style;
69383
+ const innerPadding = (_a = style.innerPadding) !== null && _a !== void 0 ? _a : (_c = (_b = stateStyle[state]) === null || _b === void 0 ? void 0 : _b.innerPadding) === null || _c === void 0 ? void 0 : _c.style;
69384
+ const outerPadding = (_d = style.outerPadding) !== null && _d !== void 0 ? _d : (_f = (_e = stateStyle[state]) === null || _e === void 0 ? void 0 : _e.outerPadding) === null || _f === void 0 ? void 0 : _f.style;
69385
+ const innerRadius = (_k = (_g = style.innerRadius) !== null && _g !== void 0 ? _g : (_j = (_h = this._cacheStateStyle[state]) === null || _h === void 0 ? void 0 : _h.innerRadius) === null || _j === void 0 ? void 0 : _j.style) !== null && _k !== void 0 ? _k : (_m = (_l = stateStyle[state]) === null || _l === void 0 ? void 0 : _l.innerRadius) === null || _m === void 0 ? void 0 : _m.style;
69386
+ const outerRadius = (_r = (_o = style.outerRadius) !== null && _o !== void 0 ? _o : (_q = (_p = this._cacheStateStyle[state]) === null || _p === void 0 ? void 0 : _p.outerRadius) === null || _q === void 0 ? void 0 : _q.style) !== null && _r !== void 0 ? _r : (_t = (_s = stateStyle[state]) === null || _s === void 0 ? void 0 : _s.outerRadius) === null || _t === void 0 ? void 0 : _t.style;
69379
69387
  if (innerRadius === 0 && outerRadius === 0) {
69380
69388
  return style;
69381
69389
  }
@@ -69387,7 +69395,9 @@
69387
69395
  if (isFunction$1(innerRadius)) {
69388
69396
  newStyle.innerRadius = (item, ctx, opt, source) => {
69389
69397
  const result = innerRadius(item, ctx, opt, source);
69390
- const padding = isFunction$1(innerPadding) ? innerPadding(item, ctx, opt, source) : innerPadding;
69398
+ const padding = isFunction$1(innerPadding)
69399
+ ? innerPadding(item, ctx, opt, source)
69400
+ : innerPadding;
69391
69401
  return result + padding;
69392
69402
  };
69393
69403
  }
@@ -69407,7 +69417,9 @@
69407
69417
  if (isFunction$1(outerRadius)) {
69408
69418
  newStyle.outerRadius = (item, ctx, opt, source) => {
69409
69419
  const result = outerRadius(item, ctx, opt, source);
69410
- const padding = isFunction$1(outerPadding) ? outerPadding(item, ctx, opt, source) : outerPadding;
69420
+ const padding = isFunction$1(outerPadding)
69421
+ ? outerPadding(item, ctx, opt, source)
69422
+ : outerPadding;
69411
69423
  return result - padding;
69412
69424
  };
69413
69425
  }
@@ -71352,7 +71364,7 @@
71352
71364
  fill: this.getColorAttribute(),
71353
71365
  zIndex: 200,
71354
71366
  forceShowCap: true
71355
- });
71367
+ }, 'normal', AttributeLevel.Series);
71356
71368
  this._trigger.registerMark(progressMark);
71357
71369
  (_b = this._tooltipHelper) === null || _b === void 0 ? void 0 : _b.activeTriggerSet.mark.add(progressMark);
71358
71370
  }
@@ -71377,7 +71389,7 @@
71377
71389
  cornerRadius: this._spec.cornerRadius,
71378
71390
  fill: this.getColorAttribute(),
71379
71391
  zIndex: 100
71380
- });
71392
+ }, 'normal', AttributeLevel.Series);
71381
71393
  this._trigger.registerMark(trackMark);
71382
71394
  }
71383
71395
  }
@@ -71424,7 +71436,7 @@
71424
71436
  _getDefaultSeriesSpec(spec) {
71425
71437
  var _a, _b;
71426
71438
  const series = super._getDefaultSeriesSpec(spec);
71427
- return Object.assign(Object.assign({}, series), { cornerRadius: (_a = spec.cornerRadius) !== null && _a !== void 0 ? _a : 0, roundCap: (_b = spec.roundCap) !== null && _b !== void 0 ? _b : false, progress: spec.progress, background: spec.background });
71439
+ return Object.assign(Object.assign({}, series), { cornerRadius: (_a = spec.cornerRadius) !== null && _a !== void 0 ? _a : 0, roundCap: (_b = spec.roundCap) !== null && _b !== void 0 ? _b : false, progress: spec.progress, track: spec.track });
71428
71440
  }
71429
71441
  transformSpec(spec) {
71430
71442
  super.transformSpec(spec);
@@ -71499,7 +71511,7 @@
71499
71511
  width: this._spec.bandWidth - leftPadding - rightPadding,
71500
71512
  cornerRadius: this._spec.cornerRadius,
71501
71513
  fill: this.getColorAttribute()
71502
- });
71514
+ }, 'normal', AttributeLevel.Series);
71503
71515
  }
71504
71516
  else {
71505
71517
  const topPadding = (_f = (_e = this._spec.progress) === null || _e === void 0 ? void 0 : _e.topPadding) !== null && _f !== void 0 ? _f : 0;
@@ -71520,7 +71532,7 @@
71520
71532
  width: () => { var _a; return (_a = this._xAxisHelper) === null || _a === void 0 ? void 0 : _a.dataToPosition([1], { bandPosition: this._bandPosition }); },
71521
71533
  cornerRadius: this._spec.cornerRadius,
71522
71534
  fill: this.getColorAttribute()
71523
- });
71535
+ }, 'normal', AttributeLevel.Series);
71524
71536
  }
71525
71537
  this._trigger.registerMark(progressMark);
71526
71538
  (_j = this._tooltipHelper) === null || _j === void 0 ? void 0 : _j.activeTriggerSet.mark.add(progressMark);
@@ -71533,7 +71545,7 @@
71533
71545
  return this._trackMark;
71534
71546
  }
71535
71547
  initTrackMarkStyle() {
71536
- var _a, _b, _c, _d, _e;
71548
+ var _a;
71537
71549
  const trackMark = this._trackMark;
71538
71550
  if (trackMark) {
71539
71551
  if (this._spec.direction === 'vertical') {
@@ -71546,9 +71558,8 @@
71546
71558
  y: 0,
71547
71559
  width: this._spec.bandWidth,
71548
71560
  height: () => this._scaleY.range()[0],
71549
- cornerRadius: this._spec.cornerRadius,
71550
- fill: (_b = (_a = this._spec.track) === null || _a === void 0 ? void 0 : _a.style) === null || _b === void 0 ? void 0 : _b.fill
71551
- });
71561
+ cornerRadius: this._spec.cornerRadius
71562
+ }, 'normal', AttributeLevel.Series);
71552
71563
  }
71553
71564
  else {
71554
71565
  this.setMarkStyle(trackMark, {
@@ -71560,12 +71571,11 @@
71560
71571
  },
71561
71572
  height: this._spec.bandWidth,
71562
71573
  width: () => this._scaleX.range()[1],
71563
- cornerRadius: this._spec.cornerRadius,
71564
- fill: (_d = (_c = this._spec.track) === null || _c === void 0 ? void 0 : _c.style) === null || _d === void 0 ? void 0 : _d.fill
71565
- });
71574
+ cornerRadius: this._spec.cornerRadius
71575
+ }, 'normal', AttributeLevel.Series);
71566
71576
  }
71567
71577
  this._trigger.registerMark(trackMark);
71568
- (_e = this._tooltipHelper) === null || _e === void 0 ? void 0 : _e.activeTriggerSet.mark.add(trackMark);
71578
+ (_a = this._tooltipHelper) === null || _a === void 0 ? void 0 : _a.activeTriggerSet.mark.add(trackMark);
71569
71579
  }
71570
71580
  }
71571
71581
  initProgressGroupMark() {
@@ -79919,8 +79929,9 @@
79919
79929
  }
79920
79930
  }
79921
79931
  getContainer() {
79932
+ var _a;
79922
79933
  if (!this._container) {
79923
- this._container = this._option.globalInstance.getStage().find(node => node.name === 'root', true);
79934
+ this._container = (_a = this._option) === null || _a === void 0 ? void 0 : _a.globalInstance.getStage().find(node => node.name === 'root', true);
79924
79935
  }
79925
79936
  return this._container;
79926
79937
  }
@@ -80830,8 +80841,9 @@
80830
80841
  };
80831
80842
  }
80832
80843
  clear() {
80844
+ var _a;
80833
80845
  if (this._component) {
80834
- this._container.removeChild(this._component);
80846
+ (_a = this.getContainer()) === null || _a === void 0 ? void 0 : _a.removeChild(this._component);
80835
80847
  this._component = null;
80836
80848
  }
80837
80849
  super.clear();
@@ -81278,8 +81290,9 @@
81278
81290
  }
81279
81291
  }
81280
81292
  clear() {
81293
+ var _a;
81281
81294
  if (this._brushComponents) {
81282
- this._container.removeChild(this._brushComponents);
81295
+ (_a = this.getContainer()) === null || _a === void 0 ? void 0 : _a.removeChild(this._brushComponents);
81283
81296
  this._brushComponents.forEach(brush => {
81284
81297
  brush.releaseBrushEvents();
81285
81298
  });
@@ -82991,11 +83004,7 @@
82991
83004
  const componentName = `${CartesianAxis.type}-${axisType}`;
82992
83005
  const C = Factory.getComponentInKey(componentName);
82993
83006
  if (C) {
82994
- let inverse = spec.inverse;
82995
- if (isHorizontal && !isXAxis(spec.orient)) {
82996
- inverse = isValid$1(spec.inverse) ? !spec.inverse : true;
82997
- }
82998
- return new C(Object.assign(Object.assign({}, spec), { type: axisType, inverse }), options);
83007
+ return new C(Object.assign(Object.assign({}, spec), { type: axisType, inverse: transformInverse(spec, isHorizontal) }), options);
82999
83008
  }
83000
83009
  options.onError(`Component ${componentName} not found`);
83001
83010
  return null;
@@ -83501,6 +83510,10 @@
83501
83510
  onDataUpdate() {
83502
83511
  this._clearLayoutCache();
83503
83512
  }
83513
+ updateSpec(spec) {
83514
+ const chartSpec = this._option.getChart().getSpec();
83515
+ return super.updateSpec(Object.assign(Object.assign({}, spec), { inverse: transformInverse(spec, chartSpec.direction === Direction.horizontal) }));
83516
+ }
83504
83517
  }
83505
83518
  CartesianAxis.type = ComponentTypeEnum.cartesianAxis;
83506
83519
 
@@ -84822,8 +84835,9 @@
84822
84835
  this.event.emit(ChartEvent.legendSelectedDataChange, { model: this });
84823
84836
  }
84824
84837
  clear() {
84838
+ var _a;
84825
84839
  if (this._legendComponent) {
84826
- this._container.removeChild(this._legendComponent);
84840
+ (_a = this.getContainer()) === null || _a === void 0 ? void 0 : _a.removeChild(this._legendComponent);
84827
84841
  this._legendComponent = null;
84828
84842
  }
84829
84843
  this._cacheAttrs = null;
@@ -85443,8 +85457,9 @@
85443
85457
  return eachSeries(this._regions, s => model === s) || this._regions.includes(model);
85444
85458
  }
85445
85459
  clear() {
85460
+ var _a;
85446
85461
  if (this._indicatorComponent) {
85447
- this._container.removeChild(this._indicatorComponent);
85462
+ (_a = this.getContainer()) === null || _a === void 0 ? void 0 : _a.removeChild(this._indicatorComponent);
85448
85463
  this._indicatorComponent = null;
85449
85464
  }
85450
85465
  this._cacheAttrs = null;
@@ -85585,8 +85600,9 @@
85585
85600
  return this._titleComponent;
85586
85601
  }
85587
85602
  clear() {
85603
+ var _a;
85588
85604
  if (this._titleComponent) {
85589
- this._container.removeChild(this._titleComponent);
85605
+ (_a = this.getContainer()) === null || _a === void 0 ? void 0 : _a.removeChild(this._titleComponent);
85590
85606
  this._titleComponent = null;
85591
85607
  }
85592
85608
  this._cacheAttrs = null;
@@ -86750,7 +86766,7 @@
86750
86766
  ].forEach(c => {
86751
86767
  var _a;
86752
86768
  if (c) {
86753
- (_a = this._container) === null || _a === void 0 ? void 0 : _a.removeChild(c);
86769
+ (_a = this.getContainer()) === null || _a === void 0 ? void 0 : _a.removeChild(c);
86754
86770
  c = null;
86755
86771
  }
86756
86772
  });
@@ -87105,7 +87121,7 @@
87105
87121
  [(this._radiusCrosshair, this._radiusLabelCrosshair, this._angleCrosshair, this._angleLabelCrosshair)].forEach(c => {
87106
87122
  var _a;
87107
87123
  if (c) {
87108
- (_a = this._container) === null || _a === void 0 ? void 0 : _a.removeChild(c);
87124
+ (_a = this.getContainer()) === null || _a === void 0 ? void 0 : _a.removeChild(c);
87109
87125
  c = null;
87110
87126
  }
87111
87127
  });
@@ -87204,11 +87220,13 @@
87204
87220
  };
87205
87221
  this._initEvent = () => {
87206
87222
  this._option.globalInstance.on(ChartEvent.rendered, () => {
87207
- if (this._spec.auto) {
87223
+ var _a;
87224
+ if ((_a = this._spec) === null || _a === void 0 ? void 0 : _a.auto) {
87208
87225
  this._playerComponent.play();
87209
87226
  }
87210
87227
  });
87211
87228
  this._playerComponent.addEventListener(PlayerEventEnum.OnEnd, () => {
87229
+ var _a;
87212
87230
  this.event.emit(ChartEvent.playerEnd, { model: this });
87213
87231
  if (this._alternate && this._spec.type === 'discrete') {
87214
87232
  this._direction = this._direction === 'default' ? 'reverse' : 'default';
@@ -87217,7 +87235,7 @@
87217
87235
  dataIndex: this._direction === 'reverse' ? this._specs.length - 2 : 1
87218
87236
  });
87219
87237
  }
87220
- if (this._spec.loop) {
87238
+ if ((_a = this._spec) === null || _a === void 0 ? void 0 : _a.loop) {
87221
87239
  this._playerComponent.play();
87222
87240
  }
87223
87241
  });
@@ -87332,7 +87350,11 @@
87332
87350
  onRender(ctx) {
87333
87351
  }
87334
87352
  clear() {
87353
+ var _a;
87335
87354
  super.clear();
87355
+ if (this._playerComponent) {
87356
+ (_a = this.getContainer()) === null || _a === void 0 ? void 0 : _a.removeChild(this._playerComponent);
87357
+ }
87336
87358
  this._playerComponent = null;
87337
87359
  }
87338
87360
  _computeLayoutRect(rect, width, height) {
@@ -87714,8 +87736,9 @@
87714
87736
  return null;
87715
87737
  }
87716
87738
  clear() {
87739
+ var _a;
87717
87740
  if (this._markerComponent) {
87718
- this._container.removeChild(this._markerComponent);
87741
+ (_a = this.getContainer()) === null || _a === void 0 ? void 0 : _a.removeChild(this._markerComponent);
87719
87742
  this._markerComponent = null;
87720
87743
  }
87721
87744
  super.clear();