@visactor/react-vchart 2.0.23-alpha.4 → 2.0.23-alpha.5
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/index.js
CHANGED
|
@@ -60567,7 +60567,7 @@
|
|
|
60567
60567
|
visible: !0
|
|
60568
60568
|
}, "normal", AttributeLevel.Series) : this.setMarkStyle(this._symbolMark, {
|
|
60569
60569
|
visible: this._getInvalidDefined.bind(this)
|
|
60570
|
-
}, "normal", AttributeLevel.Series), this._symbolMark.getProduct() && this._symbolMark.compileEncode();
|
|
60570
|
+
}, "normal", AttributeLevel.Series), this._symbolMark.getProduct() && this._symbolMark.compileEncode(), this._isGeoCoordinateSeries() && (this._updateSymbolGraphicPosition(), this._refreshLabelComponent(!0, !0));
|
|
60571
60571
|
}
|
|
60572
60572
|
initLabelMarkStyle(labelMark) {
|
|
60573
60573
|
labelMark && (this._labelMark = labelMark, this.setMarkStyle(labelMark, {
|
|
@@ -60598,6 +60598,22 @@
|
|
|
60598
60598
|
postMatrix: new Matrix()
|
|
60599
60599
|
}), labelGraphic;
|
|
60600
60600
|
}
|
|
60601
|
+
_isGeoCoordinateSeries() {
|
|
60602
|
+
var _a, _b;
|
|
60603
|
+
return (null === (_b = null === (_a = this.getXAxisHelper()) || void 0 === _a ? void 0 : _a.getAxisType) || void 0 === _b ? void 0 : _b.call(_a)) === ComponentTypeEnum.geoCoordinate;
|
|
60604
|
+
}
|
|
60605
|
+
_refreshLabelComponent(resetPostMatrix = !1, disableAnimation = !1) {
|
|
60606
|
+
var _a, _b;
|
|
60607
|
+
const vgrammarLabel = null === (_a = this._labelMark) || void 0 === _a ? void 0 : _a.getComponent(),
|
|
60608
|
+
labelGraphic = null === (_b = null == vgrammarLabel ? void 0 : vgrammarLabel.getComponent) || void 0 === _b ? void 0 : _b.call(vgrammarLabel);
|
|
60609
|
+
resetPostMatrix && (null == labelGraphic ? void 0 : labelGraphic.attribute.postMatrix) && labelGraphic.setAttributes({
|
|
60610
|
+
postMatrix: new Matrix()
|
|
60611
|
+
}), disableAnimation && (null == labelGraphic ? void 0 : labelGraphic.disableAnimation) && (labelGraphic.disableAnimation(), this._enableLabelAnimationHook || (this._enableLabelAnimationHook = () => {
|
|
60612
|
+
var _a, _b, _c, _d;
|
|
60613
|
+
const currentLabelGraphic = null === (_c = null === (_b = null === (_a = this._labelMark) || void 0 === _a ? void 0 : _a.getComponent()) || void 0 === _b ? void 0 : _b.getComponent) || void 0 === _c ? void 0 : _c.call(_b);
|
|
60614
|
+
null === (_d = null == currentLabelGraphic ? void 0 : currentLabelGraphic.enableAnimation) || void 0 === _d || _d.call(currentLabelGraphic), this.event.off(HOOK_EVENT.AFTER_MARK_RENDER_END, this._enableLabelAnimationHook), this._enableLabelAnimationHook = void 0;
|
|
60615
|
+
}, this.event.on(HOOK_EVENT.AFTER_MARK_RENDER_END, this._enableLabelAnimationHook))), (null == vgrammarLabel ? void 0 : vgrammarLabel.getProduct()) && vgrammarLabel.renderInner();
|
|
60616
|
+
}
|
|
60601
60617
|
handleZoom(e) {
|
|
60602
60618
|
const {
|
|
60603
60619
|
scale: scale,
|
|
@@ -60618,14 +60634,12 @@
|
|
|
60618
60634
|
labelGraphic && labelGraphic.translate(delta[0], delta[1]);
|
|
60619
60635
|
}
|
|
60620
60636
|
onLayoutEnd() {
|
|
60621
|
-
var _a, _b
|
|
60637
|
+
var _a, _b;
|
|
60622
60638
|
super.onLayoutEnd(), this._updateSymbolGraphicPosition();
|
|
60623
60639
|
const labelGraphic = null === (_b = null === (_a = this._labelMark) || void 0 === _a ? void 0 : _a.getComponent()) || void 0 === _b ? void 0 : _b.getComponent();
|
|
60624
60640
|
(null == labelGraphic ? void 0 : labelGraphic.attribute.postMatrix) && labelGraphic.setAttributes({
|
|
60625
60641
|
postMatrix: new Matrix()
|
|
60626
|
-
});
|
|
60627
|
-
const vgrammarLabel = null === (_c = this._labelMark) || void 0 === _c ? void 0 : _c.getComponent();
|
|
60628
|
-
vgrammarLabel && vgrammarLabel.renderInner();
|
|
60642
|
+
}), this._refreshLabelComponent();
|
|
60629
60643
|
}
|
|
60630
60644
|
getDefaultShapeType() {
|
|
60631
60645
|
return "circle";
|