@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.
- package/build/es5/index.js +1 -1
- package/build/index.es.js +61 -78
- package/build/index.js +61 -78
- package/build/index.min.js +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/cjs/chart/index.js +1 -1
- package/cjs/chart/stack.js +1 -1
- package/cjs/chart/util.js +1 -1
- package/cjs/component/crosshair/utils/cartesian.js +3 -5
- package/cjs/component/crosshair/utils/cartesian.js.map +1 -1
- package/cjs/component/crosshair/utils/common.js +2 -2
- package/cjs/component/crosshair/utils/common.js.map +1 -1
- package/cjs/component/index.js +1 -1
- package/cjs/component/util.js +1 -1
- package/cjs/constant/attribute.js +1 -2
- package/cjs/constant/base.js +2 -1
- package/cjs/constant/waterfall.js +1 -2
- package/cjs/constant/word-cloud.js +2 -1
- package/cjs/core/vchart.js +3 -4
- package/cjs/core/vchart.js.map +1 -1
- package/cjs/series/map/map.js +6 -18
- package/cjs/series/map/map.js.map +1 -1
- package/cjs/series/scatter/scatter.d.ts +2 -0
- package/cjs/series/scatter/scatter.js +28 -18
- package/cjs/series/scatter/scatter.js.map +1 -1
- package/esm/chart/index.js +1 -1
- package/esm/chart/stack.js +1 -1
- package/esm/chart/util.js +1 -1
- package/esm/component/crosshair/utils/cartesian.js +3 -5
- package/esm/component/crosshair/utils/cartesian.js.map +1 -1
- package/esm/component/crosshair/utils/common.js +2 -2
- package/esm/component/crosshair/utils/common.js.map +1 -1
- package/esm/component/index.js +1 -1
- package/esm/component/util.js +1 -1
- package/esm/constant/attribute.js +1 -2
- package/esm/constant/base.js +2 -1
- package/esm/constant/waterfall.js +1 -2
- package/esm/constant/word-cloud.js +2 -1
- package/esm/core/vchart.js +3 -4
- package/esm/core/vchart.js.map +1 -1
- package/esm/series/map/map.js +6 -18
- package/esm/series/map/map.js.map +1 -1
- package/esm/series/scatter/scatter.d.ts +2 -0
- package/esm/series/scatter/scatter.js +28 -18
- package/esm/series/scatter/scatter.js.map +1 -1
- 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
|
-
|
|
61788
|
-
|
|
61789
|
-
|
|
61790
|
-
|
|
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
|
-
|
|
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
|
|
71864
|
+
const startX = field === 'xField' ? series.dataToPositionX(datum) : series.dataToPositionY(datum);
|
|
71864
71865
|
if (field2) {
|
|
71865
|
-
|
|
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
|
-
|
|
74031
|
-
var _a
|
|
74032
|
-
this.
|
|
74033
|
-
|
|
74034
|
-
|
|
74035
|
-
|
|
74036
|
-
|
|
74037
|
-
|
|
74038
|
-
|
|
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
|
-
|
|
74050
|
-
|
|
74051
|
-
|
|
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
|
-
|
|
74054
|
-
|
|
74055
|
-
|
|
74055
|
+
return labelGraphic;
|
|
74056
|
+
}
|
|
74057
|
+
handleZoom(e) {
|
|
74058
|
+
const { scale, scaleCenter } = e;
|
|
74059
|
+
if (scale === 1) {
|
|
74060
|
+
return;
|
|
74056
74061
|
}
|
|
74057
|
-
|
|
74058
|
-
|
|
74059
|
-
|
|
74060
|
-
|
|
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
|
-
|
|
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
|
|
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
|
|
75342
|
-
if (
|
|
75343
|
-
|
|
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
|
|
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
|
|
75375
|
-
if (
|
|
75376
|
-
|
|
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
|
-
|
|
61794
|
-
|
|
61795
|
-
|
|
61796
|
-
|
|
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
|
-
|
|
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
|
|
71870
|
+
const startX = field === 'xField' ? series.dataToPositionX(datum) : series.dataToPositionY(datum);
|
|
71870
71871
|
if (field2) {
|
|
71871
|
-
|
|
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
|
-
|
|
74037
|
-
var _a
|
|
74038
|
-
this.
|
|
74039
|
-
|
|
74040
|
-
|
|
74041
|
-
|
|
74042
|
-
|
|
74043
|
-
|
|
74044
|
-
|
|
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
|
-
|
|
74056
|
-
|
|
74057
|
-
|
|
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
|
-
|
|
74060
|
-
|
|
74061
|
-
|
|
74061
|
+
return labelGraphic;
|
|
74062
|
+
}
|
|
74063
|
+
handleZoom(e) {
|
|
74064
|
+
const { scale, scaleCenter } = e;
|
|
74065
|
+
if (scale === 1) {
|
|
74066
|
+
return;
|
|
74062
74067
|
}
|
|
74063
|
-
|
|
74064
|
-
|
|
74065
|
-
|
|
74066
|
-
|
|
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
|
-
|
|
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
|
|
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
|
|
75348
|
-
if (
|
|
75349
|
-
|
|
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
|
|
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
|
|
75381
|
-
if (
|
|
75382
|
-
|
|
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) {
|