@visactor/vchart 2.0.23-alpha.1 → 2.0.23-alpha.2

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 (46) hide show
  1. package/build/es5/index.js +1 -1
  2. package/build/index.es.js +61 -78
  3. package/build/index.js +61 -78
  4. package/build/index.min.js +1 -1
  5. package/build/tsconfig.tsbuildinfo +1 -1
  6. package/cjs/chart/index.js +1 -1
  7. package/cjs/chart/stack.js +1 -1
  8. package/cjs/chart/util.js +1 -1
  9. package/cjs/component/crosshair/utils/cartesian.js +3 -5
  10. package/cjs/component/crosshair/utils/cartesian.js.map +1 -1
  11. package/cjs/component/crosshair/utils/common.js +2 -2
  12. package/cjs/component/crosshair/utils/common.js.map +1 -1
  13. package/cjs/component/index.js +1 -1
  14. package/cjs/component/util.js +1 -1
  15. package/cjs/constant/attribute.js +1 -2
  16. package/cjs/constant/base.js +2 -1
  17. package/cjs/constant/waterfall.js +1 -2
  18. package/cjs/constant/word-cloud.js +2 -1
  19. package/cjs/core/vchart.js +3 -4
  20. package/cjs/core/vchart.js.map +1 -1
  21. package/cjs/series/map/map.js +6 -18
  22. package/cjs/series/map/map.js.map +1 -1
  23. package/cjs/series/scatter/scatter.d.ts +2 -0
  24. package/cjs/series/scatter/scatter.js +28 -18
  25. package/cjs/series/scatter/scatter.js.map +1 -1
  26. package/esm/chart/index.js +1 -1
  27. package/esm/chart/stack.js +1 -1
  28. package/esm/chart/util.js +1 -1
  29. package/esm/component/crosshair/utils/cartesian.js +3 -5
  30. package/esm/component/crosshair/utils/cartesian.js.map +1 -1
  31. package/esm/component/crosshair/utils/common.js +2 -2
  32. package/esm/component/crosshair/utils/common.js.map +1 -1
  33. package/esm/component/index.js +1 -1
  34. package/esm/component/util.js +1 -1
  35. package/esm/constant/attribute.js +1 -2
  36. package/esm/constant/base.js +2 -1
  37. package/esm/constant/waterfall.js +1 -2
  38. package/esm/constant/word-cloud.js +2 -1
  39. package/esm/core/vchart.js +3 -4
  40. package/esm/core/vchart.js.map +1 -1
  41. package/esm/series/map/map.js +6 -18
  42. package/esm/series/map/map.js.map +1 -1
  43. package/esm/series/scatter/scatter.d.ts +2 -0
  44. package/esm/series/scatter/scatter.js +28 -18
  45. package/esm/series/scatter/scatter.js.map +1 -1
  46. package/package.json +5 -5
package/build/index.es.js CHANGED
@@ -61784,10 +61784,13 @@ class VChart {
61784
61784
  (_a = this._chart) === null || _a === void 0 ? void 0 : _a.setLayout(layout);
61785
61785
  }
61786
61786
  reLayout() {
61787
- var _a, _b, _c;
61788
- (_a = this._chart) === null || _a === void 0 ? void 0 : _a.resetLayoutItemTag();
61789
- (_b = this._chart) === null || _b === void 0 ? void 0 : _b.setLayoutTag(true, null, false);
61790
- (_c = this._compiler) === null || _c === void 0 ? void 0 : _c.render();
61787
+ if (!this._chart || !this._compiler || this._isReleased) {
61788
+ return;
61789
+ }
61790
+ this._chart.resetLayoutItemTag();
61791
+ this._chart.setLayoutTag(true, null, false);
61792
+ this._compiler.render();
61793
+ this._chart.onEvaluateEnd();
61791
61794
  }
61792
61795
  getCompiler() {
61793
61796
  return this._compiler;
@@ -66087,9 +66090,7 @@ function getDatumByValue(data, value, startField, endField) {
66087
66090
  if (record) {
66088
66091
  const startValue = record[startField];
66089
66092
  const endValue = record[endField || startField];
66090
- const min = Math.min(startValue, endValue);
66091
- const max = Math.max(startValue, endValue);
66092
- if (min <= value && max >= value) {
66093
+ if (startValue <= value && endValue >= value) {
66093
66094
  return record;
66094
66095
  }
66095
66096
  }
@@ -71860,17 +71861,15 @@ const layoutByValue$1 = (stateByField, series, layoutStartPoint, enableRemain =
71860
71861
  const field2 = field === 'xField' ? series.fieldX2 : series.fieldY2;
71861
71862
  const datum = getDatumByValue(series.getViewData().latestData, +value, field1, field2);
71862
71863
  if (datum) {
71863
- const posStart = field === 'xField' ? series.dataToPositionX(datum) : series.dataToPositionY(datum);
71864
+ const startX = field === 'xField' ? series.dataToPositionX(datum) : series.dataToPositionY(datum);
71864
71865
  if (field2) {
71865
- const posEnd = field === 'xField' ? series.dataToPositionX1(datum) : series.dataToPositionY1(datum);
71866
- bandSize = Math.abs(posStart - posEnd);
71867
- coord = Math.min(posStart, posEnd);
71866
+ bandSize = Math.abs(startX - (field === 'xField' ? series.dataToPositionX1(datum) : series.dataToPositionY1(datum)));
71868
71867
  value = `${datum[field1]} ~ ${datum[field2]}`;
71869
71868
  }
71870
71869
  else {
71871
71870
  bandSize = 1;
71872
- coord = posStart;
71873
71871
  }
71872
+ coord = startX;
71874
71873
  }
71875
71874
  niceLabelFormatter = axis.niceLabelFormatter;
71876
71875
  }
@@ -74027,45 +74026,55 @@ class ScatterSeries extends CartesianSeries {
74027
74026
  }, STATE_VALUE_ENUM.STATE_NORMAL, AttributeLevel.Series);
74028
74027
  }
74029
74028
  }
74030
- handleZoom(e) {
74031
- var _a, _b, _c, _d;
74032
- this.getMarksWithoutRoot().forEach(mark => {
74033
- if (!mark) {
74034
- return;
74035
- }
74036
- const graphics = mark.getGraphics();
74037
- if (!graphics || !graphics.length) {
74038
- return;
74029
+ _updateSymbolGraphicPosition() {
74030
+ var _a;
74031
+ const graphics = (_a = this._symbolMark) === null || _a === void 0 ? void 0 : _a.getGraphics();
74032
+ if (!graphics || !graphics.length) {
74033
+ return;
74034
+ }
74035
+ graphics.forEach((graphicItem) => {
74036
+ var _a, _b;
74037
+ const datum = (_b = (_a = graphicItem === null || graphicItem === void 0 ? void 0 : graphicItem.context) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b[0];
74038
+ const newPosition = this.dataToPosition(datum);
74039
+ if (newPosition && graphicItem) {
74040
+ graphicItem.setAttributes({
74041
+ x: newPosition.x,
74042
+ y: newPosition.y
74043
+ });
74039
74044
  }
74040
- graphics.forEach((graphicItem, i) => {
74041
- var _a, _b;
74042
- const datum = (_b = (_a = graphicItem === null || graphicItem === void 0 ? void 0 : graphicItem.context) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b[0];
74043
- const newPosition = this.dataToPosition(datum);
74044
- if (newPosition && graphicItem) {
74045
- graphicItem.translateTo(newPosition.x, newPosition.y);
74046
- }
74047
- });
74048
74045
  });
74049
- const labelComponent = (_a = this._labelMark) === null || _a === void 0 ? void 0 : _a.getComponent();
74050
- if (labelComponent === null || labelComponent === void 0 ? void 0 : labelComponent.renderInner) {
74051
- labelComponent.renderInner();
74046
+ }
74047
+ _ensureLabelGraphicPostMatrix() {
74048
+ var _a, _b;
74049
+ const labelGraphic = (_b = (_a = this._labelMark) === null || _a === void 0 ? void 0 : _a.getComponent()) === null || _b === void 0 ? void 0 : _b.getComponent();
74050
+ if (labelGraphic && !labelGraphic.attribute.postMatrix) {
74051
+ labelGraphic.setAttributes({
74052
+ postMatrix: new Matrix()
74053
+ });
74052
74054
  }
74053
- const vgrammarLabel = (_b = labelComponent === null || labelComponent === void 0 ? void 0 : labelComponent.getComponent) === null || _b === void 0 ? void 0 : _b.call(labelComponent);
74054
- if (vgrammarLabel === null || vgrammarLabel === void 0 ? void 0 : vgrammarLabel.evaluate) {
74055
- vgrammarLabel.evaluate(null, null);
74055
+ return labelGraphic;
74056
+ }
74057
+ handleZoom(e) {
74058
+ const { scale, scaleCenter } = e;
74059
+ if (scale === 1) {
74060
+ return;
74056
74061
  }
74057
- const labelGroup = (_c = labelComponent === null || labelComponent === void 0 ? void 0 : labelComponent.getProduct) === null || _c === void 0 ? void 0 : _c.call(labelComponent);
74058
- if (labelGroup && (e === null || e === void 0 ? void 0 : e.scale) && (e === null || e === void 0 ? void 0 : e.scaleCenter)) {
74059
- if (!((_d = labelGroup.attribute) === null || _d === void 0 ? void 0 : _d.postMatrix)) {
74060
- labelGroup.setAttributes({
74061
- postMatrix: new Matrix()
74062
- });
74063
- }
74064
- labelGroup.scale(e.scale, e.scale, e.scaleCenter);
74062
+ this._updateSymbolGraphicPosition();
74063
+ const labelGraphic = this._ensureLabelGraphicPostMatrix();
74064
+ if (labelGraphic) {
74065
+ labelGraphic.scale(scale, scale, scaleCenter);
74065
74066
  }
74066
74067
  }
74067
74068
  handlePan(e) {
74068
- this.handleZoom(e);
74069
+ const { delta } = e;
74070
+ if ((delta === null || delta === void 0 ? void 0 : delta[0]) === 0 && (delta === null || delta === void 0 ? void 0 : delta[1]) === 0) {
74071
+ return;
74072
+ }
74073
+ this._updateSymbolGraphicPosition();
74074
+ const labelGraphic = this._ensureLabelGraphicPostMatrix();
74075
+ if (labelGraphic) {
74076
+ labelGraphic.translate(delta[0], delta[1]);
74077
+ }
74069
74078
  }
74070
74079
  getDefaultShapeType() {
74071
74080
  return 'circle';
@@ -75324,7 +75333,7 @@ class MapSeries extends GeoSeries {
75324
75333
  this._mapViewData = null;
75325
75334
  }
75326
75335
  handleZoom(e) {
75327
- var _a, _b, _c, _d;
75336
+ var _a;
75328
75337
  const { scale, scaleCenter } = e;
75329
75338
  if (scale === 1) {
75330
75339
  return;
@@ -75338,26 +75347,13 @@ class MapSeries extends GeoSeries {
75338
75347
  }
75339
75348
  pathGroup.scale(scale, scale, scaleCenter);
75340
75349
  }
75341
- const labelComponent = (_a = this._labelMark) === null || _a === void 0 ? void 0 : _a.getComponent();
75342
- if (labelComponent === null || labelComponent === void 0 ? void 0 : labelComponent.renderInner) {
75343
- labelComponent.renderInner();
75344
- }
75345
- const vgrammarLabel = (_b = labelComponent === null || labelComponent === void 0 ? void 0 : labelComponent.getComponent) === null || _b === void 0 ? void 0 : _b.call(labelComponent);
75346
- if (vgrammarLabel === null || vgrammarLabel === void 0 ? void 0 : vgrammarLabel.evaluate) {
75347
- vgrammarLabel.evaluate(null, null);
75348
- }
75349
- const labelGroup = (_c = labelComponent === null || labelComponent === void 0 ? void 0 : labelComponent.getProduct) === null || _c === void 0 ? void 0 : _c.call(labelComponent);
75350
- if (labelGroup && scale && scaleCenter) {
75351
- if (!((_d = labelGroup.attribute) === null || _d === void 0 ? void 0 : _d.postMatrix)) {
75352
- labelGroup.setAttributes({
75353
- postMatrix: new Matrix()
75354
- });
75355
- }
75356
- labelGroup.scale(scale, scale, scaleCenter);
75350
+ const vgrammarLabel = (_a = this._labelMark) === null || _a === void 0 ? void 0 : _a.getComponent();
75351
+ if (vgrammarLabel) {
75352
+ vgrammarLabel.renderInner();
75357
75353
  }
75358
75354
  }
75359
75355
  handlePan(e) {
75360
- var _a, _b, _c, _d;
75356
+ var _a;
75361
75357
  const { delta } = e;
75362
75358
  if (delta[0] === 0 && delta[1] === 0) {
75363
75359
  return;
@@ -75371,22 +75367,9 @@ class MapSeries extends GeoSeries {
75371
75367
  }
75372
75368
  pathGroup.translate(delta[0], delta[1]);
75373
75369
  }
75374
- const labelComponent = (_a = this._labelMark) === null || _a === void 0 ? void 0 : _a.getComponent();
75375
- if (labelComponent === null || labelComponent === void 0 ? void 0 : labelComponent.renderInner) {
75376
- labelComponent.renderInner();
75377
- }
75378
- const vgrammarLabel = (_b = labelComponent === null || labelComponent === void 0 ? void 0 : labelComponent.getComponent) === null || _b === void 0 ? void 0 : _b.call(labelComponent);
75379
- if (vgrammarLabel === null || vgrammarLabel === void 0 ? void 0 : vgrammarLabel.evaluate) {
75380
- vgrammarLabel.evaluate(null, null);
75381
- }
75382
- const labelGroup = (_c = labelComponent === null || labelComponent === void 0 ? void 0 : labelComponent.getProduct) === null || _c === void 0 ? void 0 : _c.call(labelComponent);
75383
- if (labelGroup && delta) {
75384
- if (!((_d = labelGroup.attribute) === null || _d === void 0 ? void 0 : _d.postMatrix)) {
75385
- labelGroup.setAttributes({
75386
- postMatrix: new Matrix()
75387
- });
75388
- }
75389
- labelGroup.translate(delta[0], delta[1]);
75370
+ const vgrammarLabel = (_a = this._labelMark) === null || _a === void 0 ? void 0 : _a.getComponent();
75371
+ if (vgrammarLabel) {
75372
+ vgrammarLabel.renderInner();
75390
75373
  }
75391
75374
  }
75392
75375
  getDatumCenter(datum) {
package/build/index.js CHANGED
@@ -61790,10 +61790,13 @@
61790
61790
  (_a = this._chart) === null || _a === void 0 ? void 0 : _a.setLayout(layout);
61791
61791
  }
61792
61792
  reLayout() {
61793
- var _a, _b, _c;
61794
- (_a = this._chart) === null || _a === void 0 ? void 0 : _a.resetLayoutItemTag();
61795
- (_b = this._chart) === null || _b === void 0 ? void 0 : _b.setLayoutTag(true, null, false);
61796
- (_c = this._compiler) === null || _c === void 0 ? void 0 : _c.render();
61793
+ if (!this._chart || !this._compiler || this._isReleased) {
61794
+ return;
61795
+ }
61796
+ this._chart.resetLayoutItemTag();
61797
+ this._chart.setLayoutTag(true, null, false);
61798
+ this._compiler.render();
61799
+ this._chart.onEvaluateEnd();
61797
61800
  }
61798
61801
  getCompiler() {
61799
61802
  return this._compiler;
@@ -66093,9 +66096,7 @@
66093
66096
  if (record) {
66094
66097
  const startValue = record[startField];
66095
66098
  const endValue = record[endField || startField];
66096
- const min = Math.min(startValue, endValue);
66097
- const max = Math.max(startValue, endValue);
66098
- if (min <= value && max >= value) {
66099
+ if (startValue <= value && endValue >= value) {
66099
66100
  return record;
66100
66101
  }
66101
66102
  }
@@ -71866,17 +71867,15 @@
71866
71867
  const field2 = field === 'xField' ? series.fieldX2 : series.fieldY2;
71867
71868
  const datum = getDatumByValue(series.getViewData().latestData, +value, field1, field2);
71868
71869
  if (datum) {
71869
- const posStart = field === 'xField' ? series.dataToPositionX(datum) : series.dataToPositionY(datum);
71870
+ const startX = field === 'xField' ? series.dataToPositionX(datum) : series.dataToPositionY(datum);
71870
71871
  if (field2) {
71871
- const posEnd = field === 'xField' ? series.dataToPositionX1(datum) : series.dataToPositionY1(datum);
71872
- bandSize = Math.abs(posStart - posEnd);
71873
- coord = Math.min(posStart, posEnd);
71872
+ bandSize = Math.abs(startX - (field === 'xField' ? series.dataToPositionX1(datum) : series.dataToPositionY1(datum)));
71874
71873
  value = `${datum[field1]} ~ ${datum[field2]}`;
71875
71874
  }
71876
71875
  else {
71877
71876
  bandSize = 1;
71878
- coord = posStart;
71879
71877
  }
71878
+ coord = startX;
71880
71879
  }
71881
71880
  niceLabelFormatter = axis.niceLabelFormatter;
71882
71881
  }
@@ -74033,45 +74032,55 @@
74033
74032
  }, exports.STATE_VALUE_ENUM.STATE_NORMAL, exports.AttributeLevel.Series);
74034
74033
  }
74035
74034
  }
74036
- handleZoom(e) {
74037
- var _a, _b, _c, _d;
74038
- this.getMarksWithoutRoot().forEach(mark => {
74039
- if (!mark) {
74040
- return;
74041
- }
74042
- const graphics = mark.getGraphics();
74043
- if (!graphics || !graphics.length) {
74044
- return;
74035
+ _updateSymbolGraphicPosition() {
74036
+ var _a;
74037
+ const graphics = (_a = this._symbolMark) === null || _a === void 0 ? void 0 : _a.getGraphics();
74038
+ if (!graphics || !graphics.length) {
74039
+ return;
74040
+ }
74041
+ graphics.forEach((graphicItem) => {
74042
+ var _a, _b;
74043
+ const datum = (_b = (_a = graphicItem === null || graphicItem === void 0 ? void 0 : graphicItem.context) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b[0];
74044
+ const newPosition = this.dataToPosition(datum);
74045
+ if (newPosition && graphicItem) {
74046
+ graphicItem.setAttributes({
74047
+ x: newPosition.x,
74048
+ y: newPosition.y
74049
+ });
74045
74050
  }
74046
- graphics.forEach((graphicItem, i) => {
74047
- var _a, _b;
74048
- const datum = (_b = (_a = graphicItem === null || graphicItem === void 0 ? void 0 : graphicItem.context) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b[0];
74049
- const newPosition = this.dataToPosition(datum);
74050
- if (newPosition && graphicItem) {
74051
- graphicItem.translateTo(newPosition.x, newPosition.y);
74052
- }
74053
- });
74054
74051
  });
74055
- const labelComponent = (_a = this._labelMark) === null || _a === void 0 ? void 0 : _a.getComponent();
74056
- if (labelComponent === null || labelComponent === void 0 ? void 0 : labelComponent.renderInner) {
74057
- labelComponent.renderInner();
74052
+ }
74053
+ _ensureLabelGraphicPostMatrix() {
74054
+ var _a, _b;
74055
+ const labelGraphic = (_b = (_a = this._labelMark) === null || _a === void 0 ? void 0 : _a.getComponent()) === null || _b === void 0 ? void 0 : _b.getComponent();
74056
+ if (labelGraphic && !labelGraphic.attribute.postMatrix) {
74057
+ labelGraphic.setAttributes({
74058
+ postMatrix: new Matrix()
74059
+ });
74058
74060
  }
74059
- const vgrammarLabel = (_b = labelComponent === null || labelComponent === void 0 ? void 0 : labelComponent.getComponent) === null || _b === void 0 ? void 0 : _b.call(labelComponent);
74060
- if (vgrammarLabel === null || vgrammarLabel === void 0 ? void 0 : vgrammarLabel.evaluate) {
74061
- vgrammarLabel.evaluate(null, null);
74061
+ return labelGraphic;
74062
+ }
74063
+ handleZoom(e) {
74064
+ const { scale, scaleCenter } = e;
74065
+ if (scale === 1) {
74066
+ return;
74062
74067
  }
74063
- const labelGroup = (_c = labelComponent === null || labelComponent === void 0 ? void 0 : labelComponent.getProduct) === null || _c === void 0 ? void 0 : _c.call(labelComponent);
74064
- if (labelGroup && (e === null || e === void 0 ? void 0 : e.scale) && (e === null || e === void 0 ? void 0 : e.scaleCenter)) {
74065
- if (!((_d = labelGroup.attribute) === null || _d === void 0 ? void 0 : _d.postMatrix)) {
74066
- labelGroup.setAttributes({
74067
- postMatrix: new Matrix()
74068
- });
74069
- }
74070
- labelGroup.scale(e.scale, e.scale, e.scaleCenter);
74068
+ this._updateSymbolGraphicPosition();
74069
+ const labelGraphic = this._ensureLabelGraphicPostMatrix();
74070
+ if (labelGraphic) {
74071
+ labelGraphic.scale(scale, scale, scaleCenter);
74071
74072
  }
74072
74073
  }
74073
74074
  handlePan(e) {
74074
- this.handleZoom(e);
74075
+ const { delta } = e;
74076
+ if ((delta === null || delta === void 0 ? void 0 : delta[0]) === 0 && (delta === null || delta === void 0 ? void 0 : delta[1]) === 0) {
74077
+ return;
74078
+ }
74079
+ this._updateSymbolGraphicPosition();
74080
+ const labelGraphic = this._ensureLabelGraphicPostMatrix();
74081
+ if (labelGraphic) {
74082
+ labelGraphic.translate(delta[0], delta[1]);
74083
+ }
74075
74084
  }
74076
74085
  getDefaultShapeType() {
74077
74086
  return 'circle';
@@ -75330,7 +75339,7 @@
75330
75339
  this._mapViewData = null;
75331
75340
  }
75332
75341
  handleZoom(e) {
75333
- var _a, _b, _c, _d;
75342
+ var _a;
75334
75343
  const { scale, scaleCenter } = e;
75335
75344
  if (scale === 1) {
75336
75345
  return;
@@ -75344,26 +75353,13 @@
75344
75353
  }
75345
75354
  pathGroup.scale(scale, scale, scaleCenter);
75346
75355
  }
75347
- const labelComponent = (_a = this._labelMark) === null || _a === void 0 ? void 0 : _a.getComponent();
75348
- if (labelComponent === null || labelComponent === void 0 ? void 0 : labelComponent.renderInner) {
75349
- labelComponent.renderInner();
75350
- }
75351
- const vgrammarLabel = (_b = labelComponent === null || labelComponent === void 0 ? void 0 : labelComponent.getComponent) === null || _b === void 0 ? void 0 : _b.call(labelComponent);
75352
- if (vgrammarLabel === null || vgrammarLabel === void 0 ? void 0 : vgrammarLabel.evaluate) {
75353
- vgrammarLabel.evaluate(null, null);
75354
- }
75355
- const labelGroup = (_c = labelComponent === null || labelComponent === void 0 ? void 0 : labelComponent.getProduct) === null || _c === void 0 ? void 0 : _c.call(labelComponent);
75356
- if (labelGroup && scale && scaleCenter) {
75357
- if (!((_d = labelGroup.attribute) === null || _d === void 0 ? void 0 : _d.postMatrix)) {
75358
- labelGroup.setAttributes({
75359
- postMatrix: new Matrix()
75360
- });
75361
- }
75362
- labelGroup.scale(scale, scale, scaleCenter);
75356
+ const vgrammarLabel = (_a = this._labelMark) === null || _a === void 0 ? void 0 : _a.getComponent();
75357
+ if (vgrammarLabel) {
75358
+ vgrammarLabel.renderInner();
75363
75359
  }
75364
75360
  }
75365
75361
  handlePan(e) {
75366
- var _a, _b, _c, _d;
75362
+ var _a;
75367
75363
  const { delta } = e;
75368
75364
  if (delta[0] === 0 && delta[1] === 0) {
75369
75365
  return;
@@ -75377,22 +75373,9 @@
75377
75373
  }
75378
75374
  pathGroup.translate(delta[0], delta[1]);
75379
75375
  }
75380
- const labelComponent = (_a = this._labelMark) === null || _a === void 0 ? void 0 : _a.getComponent();
75381
- if (labelComponent === null || labelComponent === void 0 ? void 0 : labelComponent.renderInner) {
75382
- labelComponent.renderInner();
75383
- }
75384
- const vgrammarLabel = (_b = labelComponent === null || labelComponent === void 0 ? void 0 : labelComponent.getComponent) === null || _b === void 0 ? void 0 : _b.call(labelComponent);
75385
- if (vgrammarLabel === null || vgrammarLabel === void 0 ? void 0 : vgrammarLabel.evaluate) {
75386
- vgrammarLabel.evaluate(null, null);
75387
- }
75388
- const labelGroup = (_c = labelComponent === null || labelComponent === void 0 ? void 0 : labelComponent.getProduct) === null || _c === void 0 ? void 0 : _c.call(labelComponent);
75389
- if (labelGroup && delta) {
75390
- if (!((_d = labelGroup.attribute) === null || _d === void 0 ? void 0 : _d.postMatrix)) {
75391
- labelGroup.setAttributes({
75392
- postMatrix: new Matrix()
75393
- });
75394
- }
75395
- labelGroup.translate(delta[0], delta[1]);
75376
+ const vgrammarLabel = (_a = this._labelMark) === null || _a === void 0 ? void 0 : _a.getComponent();
75377
+ if (vgrammarLabel) {
75378
+ vgrammarLabel.renderInner();
75396
75379
  }
75397
75380
  }
75398
75381
  getDatumCenter(datum) {