@visactor/vchart 1.11.2-alpha.2 → 1.11.2-alpha.3
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 +14 -14
- package/build/index.js +14 -14
- package/build/index.min.js +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/cjs/compile/grammar-item.js +2 -1
- package/cjs/component/marker/mark-line/cartesian-mark-line.js +9 -9
- package/cjs/component/marker/mark-line/cartesian-mark-line.js.map +1 -1
- package/cjs/component/util.js +1 -2
- package/cjs/constant/hierarchy.js +2 -1
- package/cjs/constant/scroll-bar.js +1 -2
- package/cjs/core/index.d.ts +1 -1
- package/cjs/core/index.js +1 -1
- package/cjs/core/index.js.map +1 -1
- package/esm/compile/grammar-item.js +2 -1
- package/esm/component/marker/mark-line/cartesian-mark-line.js +9 -7
- package/esm/component/marker/mark-line/cartesian-mark-line.js.map +1 -1
- package/esm/component/util.js +1 -2
- package/esm/constant/hierarchy.js +2 -1
- package/esm/constant/scroll-bar.js +1 -2
- package/esm/core/index.d.ts +1 -1
- package/esm/core/index.js +1 -1
- package/esm/core/index.js.map +1 -1
- package/package.json +4 -4
package/build/index.es.js
CHANGED
|
@@ -67511,7 +67511,7 @@ const registerCanvasTooltipHandler = () => {
|
|
|
67511
67511
|
registerComponentPlugin(CanvasTooltipHandler);
|
|
67512
67512
|
};
|
|
67513
67513
|
|
|
67514
|
-
const version = "1.11.2-alpha.
|
|
67514
|
+
const version = "1.11.2-alpha.3";
|
|
67515
67515
|
|
|
67516
67516
|
const addVChartProperty = (data, op) => {
|
|
67517
67517
|
const context = op.beforeCall();
|
|
@@ -98805,7 +98805,7 @@ class CartesianMarkLine extends BaseMarkLine {
|
|
|
98805
98805
|
return { points };
|
|
98806
98806
|
}
|
|
98807
98807
|
_markerLayout() {
|
|
98808
|
-
var _a, _b, _c, _d;
|
|
98808
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
98809
98809
|
const updateAttrs = this._getUpdateMarkerAttrs();
|
|
98810
98810
|
if (this._spec.type === 'type-step') {
|
|
98811
98811
|
const startRelativeSeries = this._startRelativeSeries;
|
|
@@ -98832,7 +98832,7 @@ class CartesianMarkLine extends BaseMarkLine {
|
|
|
98832
98832
|
else {
|
|
98833
98833
|
expandDistanceValue = expandDistance;
|
|
98834
98834
|
}
|
|
98835
|
-
const { points, label
|
|
98835
|
+
const { points, label, limitRect } = updateAttrs;
|
|
98836
98836
|
const joinPoints = getInsertPoints(points[0], points[1], connectDirection, expandDistanceValue);
|
|
98837
98837
|
let labelPositionAttrs;
|
|
98838
98838
|
if (multiSegment && isValid$3(mainSegmentIndex)) {
|
|
@@ -98846,20 +98846,20 @@ class CartesianMarkLine extends BaseMarkLine {
|
|
|
98846
98846
|
else {
|
|
98847
98847
|
labelPositionAttrs = Object.assign(Object.assign({ position: 'start', autoRotate: false }, getTextOffset(points[0], points[1], connectDirection, expandDistanceValue)), { refX: 0, refY: 0 });
|
|
98848
98848
|
}
|
|
98849
|
-
if (isValidNumber$1(label.refX)) {
|
|
98850
|
-
labelPositionAttrs.refX += label.refX;
|
|
98849
|
+
if (isValidNumber$1((_a = this._spec.label) === null || _a === void 0 ? void 0 : _a.refX)) {
|
|
98850
|
+
labelPositionAttrs.refX += this._spec.label.refX;
|
|
98851
98851
|
}
|
|
98852
|
-
if (isValidNumber$1(label.refY)) {
|
|
98853
|
-
labelPositionAttrs.refY += label.refY;
|
|
98852
|
+
if (isValidNumber$1((_b = this._spec.label) === null || _b === void 0 ? void 0 : _b.refY)) {
|
|
98853
|
+
labelPositionAttrs.refY += this._spec.label.refY;
|
|
98854
98854
|
}
|
|
98855
|
-
if (isValidNumber$1(label.dx)) {
|
|
98856
|
-
labelPositionAttrs.dx
|
|
98855
|
+
if (isValidNumber$1((_c = this._spec.label) === null || _c === void 0 ? void 0 : _c.dx)) {
|
|
98856
|
+
labelPositionAttrs.dx = (labelPositionAttrs.dx || 0) + this._spec.label.dx;
|
|
98857
98857
|
}
|
|
98858
|
-
if (isValidNumber$1(label.dy)) {
|
|
98859
|
-
labelPositionAttrs.dy
|
|
98858
|
+
if (isValidNumber$1((_d = this._spec.label) === null || _d === void 0 ? void 0 : _d.dy)) {
|
|
98859
|
+
labelPositionAttrs.dy = (labelPositionAttrs.dy || 0) + this._spec.label.dy;
|
|
98860
98860
|
}
|
|
98861
|
-
const markerComponentAttr = (
|
|
98862
|
-
(
|
|
98861
|
+
const markerComponentAttr = (_f = (_e = this._markerComponent) === null || _e === void 0 ? void 0 : _e.attribute) !== null && _f !== void 0 ? _f : {};
|
|
98862
|
+
(_g = this._markerComponent) === null || _g === void 0 ? void 0 : _g.setAttributes({
|
|
98863
98863
|
points: multiSegment
|
|
98864
98864
|
? [
|
|
98865
98865
|
[joinPoints[0], joinPoints[1]],
|
|
@@ -98876,7 +98876,7 @@ class CartesianMarkLine extends BaseMarkLine {
|
|
|
98876
98876
|
});
|
|
98877
98877
|
}
|
|
98878
98878
|
else {
|
|
98879
|
-
(
|
|
98879
|
+
(_h = this._markerComponent) === null || _h === void 0 ? void 0 : _h.setAttributes(updateAttrs);
|
|
98880
98880
|
}
|
|
98881
98881
|
}
|
|
98882
98882
|
_computeOptions() {
|
package/build/index.js
CHANGED
|
@@ -67517,7 +67517,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
67517
67517
|
registerComponentPlugin(CanvasTooltipHandler);
|
|
67518
67518
|
};
|
|
67519
67519
|
|
|
67520
|
-
const version = "1.11.2-alpha.
|
|
67520
|
+
const version = "1.11.2-alpha.3";
|
|
67521
67521
|
|
|
67522
67522
|
const addVChartProperty = (data, op) => {
|
|
67523
67523
|
const context = op.beforeCall();
|
|
@@ -98811,7 +98811,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
98811
98811
|
return { points };
|
|
98812
98812
|
}
|
|
98813
98813
|
_markerLayout() {
|
|
98814
|
-
var _a, _b, _c, _d;
|
|
98814
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
98815
98815
|
const updateAttrs = this._getUpdateMarkerAttrs();
|
|
98816
98816
|
if (this._spec.type === 'type-step') {
|
|
98817
98817
|
const startRelativeSeries = this._startRelativeSeries;
|
|
@@ -98838,7 +98838,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
98838
98838
|
else {
|
|
98839
98839
|
expandDistanceValue = expandDistance;
|
|
98840
98840
|
}
|
|
98841
|
-
const { points, label
|
|
98841
|
+
const { points, label, limitRect } = updateAttrs;
|
|
98842
98842
|
const joinPoints = getInsertPoints(points[0], points[1], connectDirection, expandDistanceValue);
|
|
98843
98843
|
let labelPositionAttrs;
|
|
98844
98844
|
if (multiSegment && isValid$3(mainSegmentIndex)) {
|
|
@@ -98852,20 +98852,20 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
98852
98852
|
else {
|
|
98853
98853
|
labelPositionAttrs = Object.assign(Object.assign({ position: 'start', autoRotate: false }, getTextOffset(points[0], points[1], connectDirection, expandDistanceValue)), { refX: 0, refY: 0 });
|
|
98854
98854
|
}
|
|
98855
|
-
if (isValidNumber$1(label.refX)) {
|
|
98856
|
-
labelPositionAttrs.refX += label.refX;
|
|
98855
|
+
if (isValidNumber$1((_a = this._spec.label) === null || _a === void 0 ? void 0 : _a.refX)) {
|
|
98856
|
+
labelPositionAttrs.refX += this._spec.label.refX;
|
|
98857
98857
|
}
|
|
98858
|
-
if (isValidNumber$1(label.refY)) {
|
|
98859
|
-
labelPositionAttrs.refY += label.refY;
|
|
98858
|
+
if (isValidNumber$1((_b = this._spec.label) === null || _b === void 0 ? void 0 : _b.refY)) {
|
|
98859
|
+
labelPositionAttrs.refY += this._spec.label.refY;
|
|
98860
98860
|
}
|
|
98861
|
-
if (isValidNumber$1(label.dx)) {
|
|
98862
|
-
labelPositionAttrs.dx
|
|
98861
|
+
if (isValidNumber$1((_c = this._spec.label) === null || _c === void 0 ? void 0 : _c.dx)) {
|
|
98862
|
+
labelPositionAttrs.dx = (labelPositionAttrs.dx || 0) + this._spec.label.dx;
|
|
98863
98863
|
}
|
|
98864
|
-
if (isValidNumber$1(label.dy)) {
|
|
98865
|
-
labelPositionAttrs.dy
|
|
98864
|
+
if (isValidNumber$1((_d = this._spec.label) === null || _d === void 0 ? void 0 : _d.dy)) {
|
|
98865
|
+
labelPositionAttrs.dy = (labelPositionAttrs.dy || 0) + this._spec.label.dy;
|
|
98866
98866
|
}
|
|
98867
|
-
const markerComponentAttr = (
|
|
98868
|
-
(
|
|
98867
|
+
const markerComponentAttr = (_f = (_e = this._markerComponent) === null || _e === void 0 ? void 0 : _e.attribute) !== null && _f !== void 0 ? _f : {};
|
|
98868
|
+
(_g = this._markerComponent) === null || _g === void 0 ? void 0 : _g.setAttributes({
|
|
98869
98869
|
points: multiSegment
|
|
98870
98870
|
? [
|
|
98871
98871
|
[joinPoints[0], joinPoints[1]],
|
|
@@ -98882,7 +98882,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
98882
98882
|
});
|
|
98883
98883
|
}
|
|
98884
98884
|
else {
|
|
98885
|
-
(
|
|
98885
|
+
(_h = this._markerComponent) === null || _h === void 0 ? void 0 : _h.setAttributes(updateAttrs);
|
|
98886
98886
|
}
|
|
98887
98887
|
}
|
|
98888
98888
|
_computeOptions() {
|