@visactor/vchart 1.12.13 → 1.12.14
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.js +247 -118
- package/build/index.min.js +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/cjs/chart/sankey/sankey-transformer.js +2 -0
- package/cjs/chart/sankey/sankey-transformer.js.map +1 -1
- package/cjs/compile/compiler.js +2 -0
- package/cjs/compile/compiler.js.map +1 -1
- package/cjs/compile/interface/compiler.d.ts +1 -0
- package/cjs/compile/interface/compiler.js.map +1 -1
- package/cjs/compile/util.js +1 -2
- package/cjs/component/data-zoom/data-filter-base-component.d.ts +3 -0
- package/cjs/component/data-zoom/data-filter-base-component.js +32 -8
- package/cjs/component/data-zoom/data-filter-base-component.js.map +1 -1
- package/cjs/component/data-zoom/scroll-bar/scroll-bar.js +5 -1
- package/cjs/component/data-zoom/scroll-bar/scroll-bar.js.map +1 -1
- package/cjs/component/data-zoom/util.d.ts +3 -0
- package/cjs/component/data-zoom/util.js +12 -2
- package/cjs/component/data-zoom/util.js.map +1 -1
- package/cjs/component/index.js +2 -1
- package/cjs/component/marker/base-marker.d.ts +4 -1
- package/cjs/component/marker/base-marker.js +12 -1
- package/cjs/component/marker/base-marker.js.map +1 -1
- package/cjs/component/marker/interface.d.ts +9 -2
- package/cjs/component/marker/interface.js.map +1 -1
- package/cjs/component/marker/mark-area/base-mark-area.js +5 -5
- package/cjs/component/marker/mark-area/base-mark-area.js.map +1 -1
- package/cjs/component/marker/mark-line/base-mark-line.js +9 -9
- package/cjs/component/marker/mark-line/base-mark-line.js.map +1 -1
- package/cjs/component/marker/mark-point/base-mark-point.js +16 -15
- package/cjs/component/marker/mark-point/base-mark-point.js.map +1 -1
- package/cjs/component/marker/utils.d.ts +4 -4
- package/cjs/component/marker/utils.js +7 -7
- package/cjs/component/marker/utils.js.map +1 -1
- package/cjs/constant/layout.js +2 -1
- package/cjs/constant/polar.js +1 -2
- package/cjs/core/index.d.ts +3 -1
- package/cjs/core/index.js +3 -3
- package/cjs/core/index.js.map +1 -1
- package/cjs/series/bar/bar.d.ts +2 -2
- package/cjs/series/bar/bar.js +15 -14
- package/cjs/series/bar/bar.js.map +1 -1
- package/cjs/series/progress/linear/linear.js +4 -4
- package/cjs/series/progress/linear/linear.js.map +1 -1
- package/cjs/series/sankey/interface.d.ts +3 -1
- package/cjs/series/sankey/interface.js.map +1 -1
- package/cjs/series/sankey/sankey.js +16 -21
- package/cjs/series/sankey/sankey.js.map +1 -1
- package/cjs/util/scale.d.ts +1 -1
- package/cjs/util/scale.js +2 -2
- package/cjs/util/scale.js.map +1 -1
- package/esm/chart/sankey/sankey-transformer.js +2 -0
- package/esm/chart/sankey/sankey-transformer.js.map +1 -1
- package/esm/compile/compiler.js +1 -0
- package/esm/compile/compiler.js.map +1 -1
- package/esm/compile/interface/compiler.d.ts +1 -0
- package/esm/compile/interface/compiler.js.map +1 -1
- package/esm/compile/util.js +1 -2
- package/esm/component/data-zoom/data-filter-base-component.d.ts +3 -0
- package/esm/component/data-zoom/data-filter-base-component.js +33 -9
- package/esm/component/data-zoom/data-filter-base-component.js.map +1 -1
- package/esm/component/data-zoom/scroll-bar/scroll-bar.js +5 -1
- package/esm/component/data-zoom/scroll-bar/scroll-bar.js.map +1 -1
- package/esm/component/data-zoom/util.d.ts +3 -0
- package/esm/component/data-zoom/util.js +8 -0
- package/esm/component/data-zoom/util.js.map +1 -1
- package/esm/component/index.js +2 -1
- package/esm/component/marker/base-marker.d.ts +4 -1
- package/esm/component/marker/base-marker.js +12 -1
- package/esm/component/marker/base-marker.js.map +1 -1
- package/esm/component/marker/interface.d.ts +9 -2
- package/esm/component/marker/interface.js.map +1 -1
- package/esm/component/marker/mark-area/base-mark-area.js +5 -5
- package/esm/component/marker/mark-area/base-mark-area.js.map +1 -1
- package/esm/component/marker/mark-line/base-mark-line.js +9 -9
- package/esm/component/marker/mark-line/base-mark-line.js.map +1 -1
- package/esm/component/marker/mark-point/base-mark-point.js +15 -15
- package/esm/component/marker/mark-point/base-mark-point.js.map +1 -1
- package/esm/component/marker/utils.d.ts +4 -4
- package/esm/component/marker/utils.js +8 -7
- package/esm/component/marker/utils.js.map +1 -1
- package/esm/constant/layout.js +2 -1
- package/esm/constant/polar.js +1 -2
- package/esm/core/index.d.ts +3 -1
- package/esm/core/index.js +3 -1
- package/esm/core/index.js.map +1 -1
- package/esm/series/bar/bar.d.ts +2 -2
- package/esm/series/bar/bar.js +15 -14
- package/esm/series/bar/bar.js.map +1 -1
- package/esm/series/progress/linear/linear.js +4 -4
- package/esm/series/progress/linear/linear.js.map +1 -1
- package/esm/series/sankey/interface.d.ts +3 -1
- package/esm/series/sankey/interface.js.map +1 -1
- package/esm/series/sankey/sankey.js +14 -25
- package/esm/series/sankey/sankey.js.map +1 -1
- package/esm/util/scale.d.ts +1 -1
- package/esm/util/scale.js +2 -2
- package/esm/util/scale.js.map +1 -1
- package/package.json +18 -19
package/build/index.js
CHANGED
|
@@ -693,7 +693,7 @@
|
|
|
693
693
|
let max = arr[0];
|
|
694
694
|
for (let i = 1; i < arr.length; i++) {
|
|
695
695
|
const value = arr[i];
|
|
696
|
-
(null !== (_a = null == compareFn ? void 0 : compareFn(value, max)) && void 0 !== _a ? _a : value - max > 0
|
|
696
|
+
(null !== (_a = null == compareFn ? void 0 : compareFn(value, max)) && void 0 !== _a ? _a : value - max) > 0 && (max = value);
|
|
697
697
|
}
|
|
698
698
|
return max;
|
|
699
699
|
};
|
|
@@ -703,7 +703,7 @@
|
|
|
703
703
|
let min = arr[0];
|
|
704
704
|
for (let i = 1; i < arr.length; i++) {
|
|
705
705
|
const value = arr[i];
|
|
706
|
-
(null !== (_a = null == compareFn ? void 0 : compareFn(value, min)) && void 0 !== _a ? _a : value - min < 0
|
|
706
|
+
(null !== (_a = null == compareFn ? void 0 : compareFn(value, min)) && void 0 !== _a ? _a : value - min) < 0 && (min = value);
|
|
707
707
|
}
|
|
708
708
|
return min;
|
|
709
709
|
};
|
|
@@ -1625,7 +1625,9 @@
|
|
|
1625
1625
|
} = this.textSpec;
|
|
1626
1626
|
return {
|
|
1627
1627
|
width: metrics.width,
|
|
1628
|
-
height: null !== (_a = lineHeight) && void 0 !== _a ? _a : fontSize
|
|
1628
|
+
height: null !== (_a = lineHeight) && void 0 !== _a ? _a : fontSize,
|
|
1629
|
+
fontBoundingBoxAscent: metrics.fontBoundingBoxAscent,
|
|
1630
|
+
fontBoundingBoxDescent: metrics.fontBoundingBoxDescent
|
|
1629
1631
|
};
|
|
1630
1632
|
}
|
|
1631
1633
|
quickMeasure(text) {
|
|
@@ -1639,7 +1641,7 @@
|
|
|
1639
1641
|
for (let i = 0; i < text.length; i++) {
|
|
1640
1642
|
const char = text[i];
|
|
1641
1643
|
let size = this._measureSpecialChar(char);
|
|
1642
|
-
isNil$1(size) && TextMeasure.NUMBERS_CHAR_SET.includes(char) && (size = this._measureNumberChar()), isNil$1(size) && ["F", "W"].includes(eastAsianCharacterInfo(char)) && (size = this._measureFullSizeChar()), isNil$1(size) && (size = this._measureLetterChar()), totalSize.width += size.width, totalSize.height = Math.max(totalSize.height, size.height);
|
|
1644
|
+
isNil$1(size) && TextMeasure.NUMBERS_CHAR_SET.includes(char) && (size = this._measureNumberChar()), isNil$1(size) && ["F", "W"].includes(eastAsianCharacterInfo(char)) && (size = this._measureFullSizeChar()), isNil$1(size) && (size = this._measureLetterChar()), totalSize.width += size.width, totalSize.height = Math.max(totalSize.height, size.height), !isNil$1(size.fontBoundingBoxAscent) && (totalSize.fontBoundingBoxAscent = size.fontBoundingBoxAscent), !isNil$1(size.fontBoundingBoxDescent) && (totalSize.fontBoundingBoxDescent = size.fontBoundingBoxDescent);
|
|
1643
1645
|
}
|
|
1644
1646
|
return totalSize;
|
|
1645
1647
|
}
|
|
@@ -1688,7 +1690,9 @@
|
|
|
1688
1690
|
const numberBounds = this._standardMethod(TextMeasure.NUMBERS_CHAR_SET);
|
|
1689
1691
|
this._numberCharSize = {
|
|
1690
1692
|
width: numberBounds.width / TextMeasure.NUMBERS_CHAR_SET.length,
|
|
1691
|
-
height: numberBounds.height
|
|
1693
|
+
height: numberBounds.height,
|
|
1694
|
+
fontBoundingBoxAscent: numberBounds.fontBoundingBoxAscent,
|
|
1695
|
+
fontBoundingBoxDescent: numberBounds.fontBoundingBoxDescent
|
|
1692
1696
|
};
|
|
1693
1697
|
}
|
|
1694
1698
|
return this._numberCharSize;
|
|
@@ -1701,7 +1705,9 @@
|
|
|
1701
1705
|
const alphabetBounds = this._standardMethod(TextMeasure.ALPHABET_CHAR_SET);
|
|
1702
1706
|
this._letterCharSize = {
|
|
1703
1707
|
width: alphabetBounds.width / TextMeasure.ALPHABET_CHAR_SET.length,
|
|
1704
|
-
height: alphabetBounds.height
|
|
1708
|
+
height: alphabetBounds.height,
|
|
1709
|
+
fontBoundingBoxAscent: alphabetBounds.fontBoundingBoxAscent,
|
|
1710
|
+
fontBoundingBoxDescent: alphabetBounds.fontBoundingBoxDescent
|
|
1705
1711
|
};
|
|
1706
1712
|
}
|
|
1707
1713
|
return this._letterCharSize;
|
|
@@ -17225,7 +17231,7 @@
|
|
|
17225
17231
|
originP2: originP2
|
|
17226
17232
|
} = curve;
|
|
17227
17233
|
let validP;
|
|
17228
|
-
if (originP1 && !1 !== originP1.defined ? validP = p0 : originP1 && !1 !== originP2.defined && (validP = null !== (_a = curve.p3) && void 0 !== _a ? _a : curve.p1), defined0) {
|
|
17234
|
+
if (originP1 && !1 !== originP1.defined && !lastCurve ? validP = p0 : originP1 && !1 !== originP2.defined && (validP = null !== (_a = curve.p3) && void 0 !== _a ? _a : curve.p1), defined0) {
|
|
17229
17235
|
newDefined0 = !defined0;
|
|
17230
17236
|
const x = validP ? validP.x : curve.p0.x,
|
|
17231
17237
|
y = validP ? validP.y : curve.p0.y;
|
|
@@ -21071,7 +21077,7 @@
|
|
|
21071
21077
|
}
|
|
21072
21078
|
}
|
|
21073
21079
|
|
|
21074
|
-
const RICHTEXT_UPDATE_TAG_KEY = ["width", "height", "ellipsis", "wordBreak", "verticalDirection", "maxHeight", "maxWidth", "textAlign", "textBaseline", "textConfig", "layoutDirection", "fill", "stroke", "fontSize", ...GRAPHIC_UPDATE_TAG_KEY];
|
|
21080
|
+
const RICHTEXT_UPDATE_TAG_KEY = ["width", "height", "ellipsis", "wordBreak", "verticalDirection", "maxHeight", "maxWidth", "textAlign", "textBaseline", "textConfig", "layoutDirection", "fill", "stroke", "fontSize", "fontFamily", "fontStyle", "fontWeight", "lineWidth", "opacity", "fillOpacity", "strokeOpacity", ...GRAPHIC_UPDATE_TAG_KEY];
|
|
21075
21081
|
class RichText extends Graphic {
|
|
21076
21082
|
constructor(params) {
|
|
21077
21083
|
super(params), this.type = "richtext", this._currentHoverIcon = null, this.numberType = RICHTEXT_NUMBER_TYPE, this.onBeforeAttributeUpdate = (val, attributes, key) => {
|
|
@@ -38101,7 +38107,7 @@
|
|
|
38101
38107
|
}(IMarkLineLabelPosition || (IMarkLineLabelPosition = {}));
|
|
38102
38108
|
var IMarkAreaLabelPosition;
|
|
38103
38109
|
!function (IMarkAreaLabelPosition) {
|
|
38104
|
-
IMarkAreaLabelPosition.left = "left", IMarkAreaLabelPosition.right = "right", IMarkAreaLabelPosition.top = "top", IMarkAreaLabelPosition.bottom = "bottom", IMarkAreaLabelPosition.middle = "middle", IMarkAreaLabelPosition.insideLeft = "insideLeft", IMarkAreaLabelPosition.insideRight = "insideRight", IMarkAreaLabelPosition.insideTop = "insideTop", IMarkAreaLabelPosition.insideBottom = "insideBottom";
|
|
38110
|
+
IMarkAreaLabelPosition.left = "left", IMarkAreaLabelPosition.right = "right", IMarkAreaLabelPosition.top = "top", IMarkAreaLabelPosition.bottom = "bottom", IMarkAreaLabelPosition.topLeft = "topLeft", IMarkAreaLabelPosition.topRight = "topRight", IMarkAreaLabelPosition.bottomLeft = "bottomLeft", IMarkAreaLabelPosition.bottomRight = "bottomRight", IMarkAreaLabelPosition.middle = "middle", IMarkAreaLabelPosition.insideLeft = "insideLeft", IMarkAreaLabelPosition.insideRight = "insideRight", IMarkAreaLabelPosition.insideTop = "insideTop", IMarkAreaLabelPosition.insideBottom = "insideBottom", IMarkAreaLabelPosition.insideTopLeft = "insideTopLeft", IMarkAreaLabelPosition.insideTopRight = "insideTopRight", IMarkAreaLabelPosition.insideBottomLeft = "insideBottomLeft", IMarkAreaLabelPosition.insideBottomRight = "insideBottomRight";
|
|
38105
38111
|
}(IMarkAreaLabelPosition || (IMarkAreaLabelPosition = {}));
|
|
38106
38112
|
var IMarkCommonArcLabelPosition;
|
|
38107
38113
|
!function (IMarkCommonArcLabelPosition) {
|
|
@@ -38858,6 +38864,38 @@
|
|
|
38858
38864
|
middle: {
|
|
38859
38865
|
textAlign: "center",
|
|
38860
38866
|
textBaseline: "middle"
|
|
38867
|
+
},
|
|
38868
|
+
topLeft: {
|
|
38869
|
+
textAlign: "right",
|
|
38870
|
+
textBaseline: "top"
|
|
38871
|
+
},
|
|
38872
|
+
insideTopLeft: {
|
|
38873
|
+
textAlign: "left",
|
|
38874
|
+
textBaseline: "top"
|
|
38875
|
+
},
|
|
38876
|
+
topRight: {
|
|
38877
|
+
textAlign: "left",
|
|
38878
|
+
textBaseline: "top"
|
|
38879
|
+
},
|
|
38880
|
+
insideTopRight: {
|
|
38881
|
+
textAlign: "right",
|
|
38882
|
+
textBaseline: "top"
|
|
38883
|
+
},
|
|
38884
|
+
bottomLeft: {
|
|
38885
|
+
textAlign: "right",
|
|
38886
|
+
textBaseline: "bottom"
|
|
38887
|
+
},
|
|
38888
|
+
insideBottomLeft: {
|
|
38889
|
+
textAlign: "left",
|
|
38890
|
+
textBaseline: "bottom"
|
|
38891
|
+
},
|
|
38892
|
+
bottomRight: {
|
|
38893
|
+
textAlign: "left",
|
|
38894
|
+
textBaseline: "bottom"
|
|
38895
|
+
},
|
|
38896
|
+
insideBottomRight: {
|
|
38897
|
+
textAlign: "right",
|
|
38898
|
+
textBaseline: "bottom"
|
|
38861
38899
|
}
|
|
38862
38900
|
};
|
|
38863
38901
|
const DEFAULT_MARK_POINT_THEME = {
|
|
@@ -39600,7 +39638,7 @@
|
|
|
39600
39638
|
const {
|
|
39601
39639
|
x: x1,
|
|
39602
39640
|
y: y1
|
|
39603
|
-
} =
|
|
39641
|
+
} = this.attribute.position,
|
|
39604
39642
|
{
|
|
39605
39643
|
x: x2,
|
|
39606
39644
|
y: y2
|
|
@@ -39613,7 +39651,10 @@
|
|
|
39613
39651
|
startAngle = deltaXYToAngle(y1 - centerY, x1 - centerX), endAngle = deltaXYToAngle(y2 - centerY, x2 - centerX), center = {
|
|
39614
39652
|
x: centerX,
|
|
39615
39653
|
y: centerY
|
|
39616
|
-
}
|
|
39654
|
+
};
|
|
39655
|
+
const R = Math.sqrt((centerX - x1) * (centerX - x1) + (centerY - y1) * (centerY - y1)),
|
|
39656
|
+
r = this.attribute.targetSymbol.style.size / 2;
|
|
39657
|
+
startAngle += 2 * Math.acos(Math.sqrt(1 - r * r / (4 * R * R))), arcRatio > 0 ? endAngle < startAngle && (endAngle += 2 * Math.PI) : startAngle < endAngle && (startAngle += 2 * Math.PI), radius = Math.sqrt((centerX - x1) * (centerX - x1) + (centerY - y1) * (centerY - y1));
|
|
39617
39658
|
} else points = "type-do" !== type || this._isStraightLine ? "type-po" !== type || this._isStraightLine ? "type-op" !== type || this._isStraightLine ? [newPosition, newItemPosition] : [newPosition, {
|
|
39618
39659
|
x: newPosition.x,
|
|
39619
39660
|
y: newItemPosition.y
|
|
@@ -39764,7 +39805,8 @@
|
|
|
39764
39805
|
var _a, _b;
|
|
39765
39806
|
const {
|
|
39766
39807
|
itemContent = {},
|
|
39767
|
-
targetSymbol: targetSymbol
|
|
39808
|
+
targetSymbol: targetSymbol,
|
|
39809
|
+
itemLine: itemLine
|
|
39768
39810
|
} = this.attribute,
|
|
39769
39811
|
{
|
|
39770
39812
|
offsetX: itemContentOffsetX = 0,
|
|
@@ -39776,8 +39818,9 @@
|
|
|
39776
39818
|
visible: targetItemvisible = !1,
|
|
39777
39819
|
size: targetSymbolSize
|
|
39778
39820
|
} = targetSymbol,
|
|
39779
|
-
targetSize = targetItemvisible ? null !== (_b = null !== (_a = targetSymbolStyle.size) && void 0 !== _a ? _a : targetSymbolSize) && void 0 !== _b ? _b : 20 : 0
|
|
39780
|
-
|
|
39821
|
+
targetSize = targetItemvisible ? null !== (_b = null !== (_a = targetSymbolStyle.size) && void 0 !== _a ? _a : targetSymbolSize) && void 0 !== _b ? _b : 20 : 0;
|
|
39822
|
+
let targetOffsetAngle;
|
|
39823
|
+
targetOffsetAngle = "type-do" === itemLine.type ? deltaXYToAngle(itemContentOffsetY, itemContentOffsetX / 2) : "type-po" === itemLine.type ? deltaXYToAngle(0, itemContentOffsetX) : "type-op" === itemLine.type ? deltaXYToAngle(itemContentOffsetY, 0) : deltaXYToAngle(itemContentOffsetY, itemContentOffsetX);
|
|
39781
39824
|
return {
|
|
39782
39825
|
newPosition: {
|
|
39783
39826
|
x: position.x + (targetSize / 2 + targetSymbolOffset) * Math.cos(targetOffsetAngle),
|
|
@@ -44070,11 +44113,12 @@
|
|
|
44070
44113
|
scale.specified(spec.specified);
|
|
44071
44114
|
}
|
|
44072
44115
|
}
|
|
44073
|
-
function valueInScaleRange(v, s) {
|
|
44116
|
+
function valueInScaleRange(v, s, useWholeRange) {
|
|
44074
44117
|
if (!s) {
|
|
44075
44118
|
return v;
|
|
44076
44119
|
}
|
|
44077
|
-
const
|
|
44120
|
+
const scaleRange = s.range();
|
|
44121
|
+
const range = useWholeRange && s._calculateWholeRange ? s._calculateWholeRange(scaleRange) : s.range();
|
|
44078
44122
|
const min = Math.min(range[0], range[range.length - 1]);
|
|
44079
44123
|
const max = Math.max(range[0], range[range.length - 1]);
|
|
44080
44124
|
return Math.min(Math.max(min, v), max);
|
|
@@ -46469,6 +46513,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
46469
46513
|
return initTextMeasure(textSpec, option, useNaiveCanvas).measure(text);
|
|
46470
46514
|
};
|
|
46471
46515
|
|
|
46516
|
+
const DEFAULT_MEASURE_CANVAS_ID = `${PREFIX}_MEASURE_CANVAS_ID`;
|
|
46472
46517
|
const DEFAULT_DATA_INDEX = `${PREFIX}_DEFAULT_DATA_INDEX`;
|
|
46473
46518
|
const DEFAULT_DATA_KEY = `${PREFIX}_DEFAULT_DATA_KEY`;
|
|
46474
46519
|
const DEFAULT_DATA_SERIES_FIELD = `${PREFIX}_DEFAULT_DATA_SERIES_FIELD`;
|
|
@@ -47427,15 +47472,15 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
47427
47472
|
storedAttrs: "sizeAttrs"
|
|
47428
47473
|
}],
|
|
47429
47474
|
[GrammarMarkType.text]: [{
|
|
47430
|
-
channels: ["text", "limit", "autoLimit", "maxLineWidth", "textType"],
|
|
47475
|
+
channels: ["text", "limit", "autoLimit", "maxLineWidth", "textType", "_originText"],
|
|
47431
47476
|
transform: (graphicAttributes, nextAttrs, storedAttrs) => {
|
|
47432
|
-
var _a, _b;
|
|
47477
|
+
var _a, _b, _c, _d;
|
|
47433
47478
|
const limit = null !== (_a = storedAttrs.limit) && void 0 !== _a ? _a : 1 / 0,
|
|
47434
47479
|
autoLimit = null !== (_b = storedAttrs.autoLimit) && void 0 !== _b ? _b : 1 / 0,
|
|
47435
47480
|
maxWidth = Math.min(limit, autoLimit),
|
|
47436
47481
|
isTextConfig = isPlainObject$1(storedAttrs.text) && !isNil$1(storedAttrs.text.text),
|
|
47437
47482
|
text = isTextConfig ? storedAttrs.text.text : storedAttrs.text;
|
|
47438
|
-
graphicAttributes.maxLineWidth = maxWidth === 1 / 0 ? storedAttrs.maxLineWidth : maxWidth,
|
|
47483
|
+
graphicAttributes.maxLineWidth = maxWidth === 1 / 0 ? storedAttrs.maxLineWidth : maxWidth, isTextConfig || storedAttrs.textType ? "rich" === storedAttrs.text.type || "rich" === storedAttrs.textType ? graphicAttributes.textConfig = text : "html" === storedAttrs.text.type ? (graphicAttributes.html = text, graphicAttributes.text = null !== (_c = storedAttrs._originText) && void 0 !== _c ? _c : "", graphicAttributes.renderable = !1) : "react" === storedAttrs.text.type ? (graphicAttributes.react = text, graphicAttributes.text = null !== (_d = storedAttrs._originText) && void 0 !== _d ? _d : "", graphicAttributes.renderable = !1) : graphicAttributes.text = text : graphicAttributes.text = text;
|
|
47439
47484
|
},
|
|
47440
47485
|
storedAttrs: "limitAttrs"
|
|
47441
47486
|
}],
|
|
@@ -49132,7 +49177,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
49132
49177
|
ticker: viewOptions.ticker,
|
|
49133
49178
|
supportsTouchEvents: viewOptions.supportsTouchEvents,
|
|
49134
49179
|
supportsPointerEvents: viewOptions.supportsPointerEvents,
|
|
49135
|
-
ReactDOM: viewOptions.ReactDOM
|
|
49180
|
+
ReactDOM: viewOptions.ReactDOM,
|
|
49181
|
+
autoRefresh: viewOptions.autoRefresh
|
|
49136
49182
|
});
|
|
49137
49183
|
(null === (_b = viewOptions.options3d) || void 0 === _b ? void 0 : _b.enable) && stage.set3dOptions(viewOptions.options3d), stage.enableIncrementalAutoRender(), this._viewBox = viewOptions.viewBox, this._view.emit(HOOK_EVENT.AFTER_CREATE_VRENDER_STAGE), this._view.emit(HOOK_EVENT.BEFORE_CREATE_VRENDER_LAYER);
|
|
49138
49184
|
const layer = null !== (_c = viewOptions.layer) && void 0 !== _c ? _c : stage.defaultLayer;
|
|
@@ -51836,7 +51882,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
51836
51882
|
this.coordinateTransformEncode(this.items);
|
|
51837
51883
|
const graphicAttributes = this.transformElementItems(this.items, this.mark.markType),
|
|
51838
51884
|
isGraphicInit = !this.graphicItem;
|
|
51839
|
-
this.graphicItem
|
|
51885
|
+
this.graphicItem ? (this.graphicItem.clearStates(), this.graphicItem.states = {}, this.graphicItem.stateProxy = null) : this.initGraphicItem(), this.diffState === DiffState.enter || isGraphicInit ? (this.graphicItem.onBeforeAttributeUpdate = this._onGlyphAttributeUpdate(!0), this.applyGraphicAttributes(graphicAttributes), this.graphicItem.onBeforeAttributeUpdate = this._onGlyphAttributeUpdate(!1)) : this.applyGraphicAttributes(graphicAttributes), this.diffState !== DiffState.enter && this.diffState !== DiffState.update || !this.states.length || (Object.values(this.glyphGraphicItems).forEach(graphicItem => {
|
|
51840
51886
|
graphicItem.states = {};
|
|
51841
51887
|
}), this.useStates(this.states)), this.items.map(item => {
|
|
51842
51888
|
item.nextAttrs = {};
|
|
@@ -55107,7 +55153,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
55107
55153
|
this.animate = mark.animate, this.animate.mark = this;
|
|
55108
55154
|
}
|
|
55109
55155
|
updateAnimate(spec) {
|
|
55110
|
-
|
|
55156
|
+
this.animate.updateConfig(spec.animation), this.animate.updateState(spec.animationState);
|
|
55111
55157
|
}
|
|
55112
55158
|
}
|
|
55113
55159
|
const registerMarkAnimateAPI = () => {
|
|
@@ -56535,7 +56581,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
56535
56581
|
(_b = (_a = this._option) === null || _a === void 0 ? void 0 : _a.onError) === null || _b === void 0 ? void 0 : _b.call(_a, ...args);
|
|
56536
56582
|
});
|
|
56537
56583
|
}
|
|
56538
|
-
this._view = new View(Object.assign(Object.assign({ width: this._width, height: this._height, container: (_c = this._container.dom) !== null && _c !== void 0 ? _c : null, renderCanvas: (_d = this._container.canvas) !== null && _d !== void 0 ? _d : null, hooks: this._option.performanceHook }, this._option), { mode: toRenderMode(this._option.mode), autoFit: false, eventConfig: {
|
|
56584
|
+
this._view = new View(Object.assign(Object.assign({ width: this._width, height: this._height, container: (_c = this._container.dom) !== null && _c !== void 0 ? _c : null, renderCanvas: (_d = this._container.canvas) !== null && _d !== void 0 ? _d : null, hooks: this._option.performanceHook }, this._option), { autoRefresh: isValid$1(this._option.autoRefreshDpr) ? this._option.autoRefreshDpr : !isValid$1(this._option.dpr), mode: toRenderMode(this._option.mode), autoFit: false, eventConfig: {
|
|
56539
56585
|
gesture: isValid$1(this._option.gestureConfig)
|
|
56540
56586
|
? this._option.gestureConfig
|
|
56541
56587
|
: isMobileLikeMode(this._option.mode),
|
|
@@ -61880,7 +61926,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
61880
61926
|
};
|
|
61881
61927
|
registerVChartCore();
|
|
61882
61928
|
|
|
61883
|
-
const version = "1.12.
|
|
61929
|
+
const version = "1.12.14";
|
|
61884
61930
|
|
|
61885
61931
|
const addVChartProperty = (data, op) => {
|
|
61886
61932
|
const context = op.beforeCall();
|
|
@@ -70412,22 +70458,22 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
70412
70458
|
this._barMarkType = "rect";
|
|
70413
70459
|
this.transformerConstructor = BarSeriesSpecTransformer;
|
|
70414
70460
|
this._bandPosition = 0;
|
|
70415
|
-
this._getBarXStart = (datum, scale) => {
|
|
70461
|
+
this._getBarXStart = (datum, scale, useWholeRange) => {
|
|
70416
70462
|
if (this._shouldDoPreCalculate()) {
|
|
70417
70463
|
this._calculateStackRectPosition(false);
|
|
70418
70464
|
return datum[RECT_X];
|
|
70419
70465
|
}
|
|
70420
70466
|
if (this._spec.barMinHeight) {
|
|
70421
|
-
return this._calculateRectPosition(datum, false);
|
|
70467
|
+
return this._calculateRectPosition(datum, false, useWholeRange);
|
|
70422
70468
|
}
|
|
70423
|
-
return valueInScaleRange(this._dataToPosX(datum), scale);
|
|
70469
|
+
return valueInScaleRange(this._dataToPosX(datum), scale, useWholeRange);
|
|
70424
70470
|
};
|
|
70425
|
-
this._getBarXEnd = (datum, scale) => {
|
|
70471
|
+
this._getBarXEnd = (datum, scale, useWholeRange) => {
|
|
70426
70472
|
if (this._shouldDoPreCalculate()) {
|
|
70427
70473
|
this._calculateStackRectPosition(false);
|
|
70428
70474
|
return datum[RECT_X1];
|
|
70429
70475
|
}
|
|
70430
|
-
return valueInScaleRange(this._dataToPosX1(datum), scale);
|
|
70476
|
+
return valueInScaleRange(this._dataToPosX1(datum), scale, useWholeRange);
|
|
70431
70477
|
};
|
|
70432
70478
|
this._getBarYStart = (datum, scale) => {
|
|
70433
70479
|
if (this._shouldDoPreCalculate()) {
|
|
@@ -70677,7 +70723,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
70677
70723
|
}
|
|
70678
70724
|
}
|
|
70679
70725
|
}
|
|
70680
|
-
_calculateRectPosition(datum, isVertical) {
|
|
70726
|
+
_calculateRectPosition(datum, isVertical, useWholeRange) {
|
|
70681
70727
|
var _a, _b;
|
|
70682
70728
|
let startMethod;
|
|
70683
70729
|
let endMethod;
|
|
@@ -70695,8 +70741,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
70695
70741
|
const seriesScale = (_b = (_a = this[axisHelper]).getScale) === null || _b === void 0 ? void 0 : _b.call(_a, 0);
|
|
70696
70742
|
const inverse = this[axisHelper].isInverse();
|
|
70697
70743
|
const barMinHeight = this._spec.barMinHeight;
|
|
70698
|
-
const y1 = valueInScaleRange(this[startMethod](datum), seriesScale);
|
|
70699
|
-
const y = valueInScaleRange(this[endMethod](datum), seriesScale);
|
|
70744
|
+
const y1 = valueInScaleRange(this[startMethod](datum), seriesScale, useWholeRange);
|
|
70745
|
+
const y = valueInScaleRange(this[endMethod](datum), seriesScale, useWholeRange);
|
|
70700
70746
|
let height = Math.abs(y1 - y);
|
|
70701
70747
|
if (height < barMinHeight) {
|
|
70702
70748
|
height = barMinHeight;
|
|
@@ -70813,24 +70859,24 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
70813
70859
|
if (this.direction === "horizontal") {
|
|
70814
70860
|
const yChannels = isValid$1(this._fieldY2)
|
|
70815
70861
|
? {
|
|
70816
|
-
y: (datum) => valueInScaleRange(this._dataToPosY(datum), yScale),
|
|
70817
|
-
y1: (datum) => valueInScaleRange(this._dataToPosY1(datum), yScale)
|
|
70862
|
+
y: (datum) => valueInScaleRange(this._dataToPosY(datum), yScale, true),
|
|
70863
|
+
y1: (datum) => valueInScaleRange(this._dataToPosY1(datum), yScale, true)
|
|
70818
70864
|
}
|
|
70819
70865
|
: {
|
|
70820
|
-
y: (datum) => valueInScaleRange(this._dataToPosY(datum) - this._getBarWidth(this._yAxisHelper) / 2, yScale),
|
|
70866
|
+
y: (datum) => valueInScaleRange(this._dataToPosY(datum) - this._getBarWidth(this._yAxisHelper) / 2, yScale, true),
|
|
70821
70867
|
height: (datum) => this._getBarWidth(this._yAxisHelper)
|
|
70822
70868
|
};
|
|
70823
|
-
this.setMarkStyle(this._barMark, Object.assign({ x: (datum) => this._getBarXStart(datum, xScale), x1: (datum) => this._getBarXEnd(datum, xScale) }, yChannels), 'normal', AttributeLevel.Series);
|
|
70869
|
+
this.setMarkStyle(this._barMark, Object.assign({ x: (datum) => this._getBarXStart(datum, xScale, true), x1: (datum) => this._getBarXEnd(datum, xScale, true) }, yChannels), 'normal', AttributeLevel.Series);
|
|
70824
70870
|
this.setMarkStyle(this._barBackgroundMark, Object.assign({ x: () => this._getBarBackgroundXStart(xScale), x1: () => this._getBarBackgroundXEnd(xScale) }, yChannels), 'normal', AttributeLevel.Series);
|
|
70825
70871
|
}
|
|
70826
70872
|
else {
|
|
70827
70873
|
const xChannels = isValid$1(this._fieldX2)
|
|
70828
70874
|
? {
|
|
70829
|
-
x: (datum) => valueInScaleRange(this._dataToPosX(datum), xScale),
|
|
70830
|
-
x1: (datum) => valueInScaleRange(this._dataToPosX1(datum), xScale)
|
|
70875
|
+
x: (datum) => valueInScaleRange(this._dataToPosX(datum), xScale, true),
|
|
70876
|
+
x1: (datum) => valueInScaleRange(this._dataToPosX1(datum), xScale, true)
|
|
70831
70877
|
}
|
|
70832
70878
|
: {
|
|
70833
|
-
x: (datum) => valueInScaleRange(this._dataToPosX(datum) - this._getBarWidth(this._xAxisHelper) / 2, xScale),
|
|
70879
|
+
x: (datum) => valueInScaleRange(this._dataToPosX(datum) - this._getBarWidth(this._xAxisHelper) / 2, xScale, true),
|
|
70834
70880
|
width: (datum) => this._getBarWidth(this._xAxisHelper)
|
|
70835
70881
|
};
|
|
70836
70882
|
this.setMarkStyle(this._barMark, Object.assign(Object.assign({}, xChannels), { y: datum => this._getBarYStart(datum, yScale), y1: datum => this._getBarYEnd(datum, yScale) }), 'normal', AttributeLevel.Series);
|
|
@@ -78258,7 +78304,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
78258
78304
|
this.setMarkStyle(progressMark, {
|
|
78259
78305
|
x: (datum) => {
|
|
78260
78306
|
var _a, _b;
|
|
78261
|
-
return (valueInScaleRange(this.dataToPositionX(datum), (_b = (_a = this._xAxisHelper) === null || _a === void 0 ? void 0 : _a.getScale) === null || _b === void 0 ? void 0 : _b.call(_a, 0)) -
|
|
78307
|
+
return (valueInScaleRange(this.dataToPositionX(datum), (_b = (_a = this._xAxisHelper) === null || _a === void 0 ? void 0 : _a.getScale) === null || _b === void 0 ? void 0 : _b.call(_a, 0), true) -
|
|
78262
78308
|
this._spec.bandWidth / 2 +
|
|
78263
78309
|
leftPadding);
|
|
78264
78310
|
},
|
|
@@ -78277,7 +78323,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
78277
78323
|
x1: (datum) => { var _a, _b; return valueInScaleRange(this.dataToPositionX(datum), (_b = (_a = this._xAxisHelper) === null || _a === void 0 ? void 0 : _a.getScale) === null || _b === void 0 ? void 0 : _b.call(_a, 0)); },
|
|
78278
78324
|
y: (datum) => {
|
|
78279
78325
|
var _a, _b;
|
|
78280
|
-
return (valueInScaleRange(this.dataToPositionY(datum), (_b = (_a = this._yAxisHelper) === null || _a === void 0 ? void 0 : _a.getScale) === null || _b === void 0 ? void 0 : _b.call(_a, 0)) -
|
|
78326
|
+
return (valueInScaleRange(this.dataToPositionY(datum), (_b = (_a = this._yAxisHelper) === null || _a === void 0 ? void 0 : _a.getScale) === null || _b === void 0 ? void 0 : _b.call(_a, 0), true) -
|
|
78281
78327
|
this._spec.bandWidth / 2 +
|
|
78282
78328
|
topPadding);
|
|
78283
78329
|
},
|
|
@@ -78305,7 +78351,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
78305
78351
|
this.setMarkStyle(trackMark, {
|
|
78306
78352
|
x: (datum) => {
|
|
78307
78353
|
var _a, _b;
|
|
78308
|
-
return (valueInScaleRange(this.dataToPositionX(datum), (_b = (_a = this._xAxisHelper) === null || _a === void 0 ? void 0 : _a.getScale) === null || _b === void 0 ? void 0 : _b.call(_a, 0)) -
|
|
78354
|
+
return (valueInScaleRange(this.dataToPositionX(datum), (_b = (_a = this._xAxisHelper) === null || _a === void 0 ? void 0 : _a.getScale) === null || _b === void 0 ? void 0 : _b.call(_a, 0), true) -
|
|
78309
78355
|
this._spec.bandWidth / 2);
|
|
78310
78356
|
},
|
|
78311
78357
|
y: 0,
|
|
@@ -78319,7 +78365,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
78319
78365
|
x: 0,
|
|
78320
78366
|
y: (datum) => {
|
|
78321
78367
|
var _a, _b;
|
|
78322
|
-
return (valueInScaleRange(this.dataToPositionY(datum), (_b = (_a = this._yAxisHelper) === null || _a === void 0 ? void 0 : _a.getScale) === null || _b === void 0 ? void 0 : _b.call(_a, 0)) -
|
|
78368
|
+
return (valueInScaleRange(this.dataToPositionY(datum), (_b = (_a = this._yAxisHelper) === null || _a === void 0 ? void 0 : _a.getScale) === null || _b === void 0 ? void 0 : _b.call(_a, 0), true) -
|
|
78323
78369
|
this._spec.bandWidth / 2);
|
|
78324
78370
|
},
|
|
78325
78371
|
height: this._spec.bandWidth,
|
|
@@ -83531,10 +83577,12 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
83531
83577
|
return columns;
|
|
83532
83578
|
}
|
|
83533
83579
|
initializeNodeBreadths(columns) {
|
|
83534
|
-
var _a, _b;
|
|
83580
|
+
var _a, _b, _c;
|
|
83535
83581
|
const minLinkHeight = null !== (_a = this.options.minLinkHeight) && void 0 !== _a ? _a : 0;
|
|
83536
83582
|
let minNodeHeight = null !== (_b = this.options.minNodeHeight) && void 0 !== _b ? _b : 0;
|
|
83537
|
-
|
|
83583
|
+
const maxNodeHeight = null !== (_c = this.options.maxNodeHeight) && void 0 !== _c ? _c : 1 / 0;
|
|
83584
|
+
let maxLinkHeight = this.options.maxLinkHeight;
|
|
83585
|
+
(isNil$1(minNodeHeight) || minNodeHeight < minLinkHeight) && (minNodeHeight = minLinkHeight), (isNil$1(maxLinkHeight) || maxLinkHeight > maxNodeHeight) && (maxLinkHeight = maxNodeHeight);
|
|
83538
83586
|
let ky = 0,
|
|
83539
83587
|
getGapY = null,
|
|
83540
83588
|
forceNodeHeight = null;
|
|
@@ -83557,7 +83605,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
83557
83605
|
const isStartGap = "start" === this.options.gapPosition,
|
|
83558
83606
|
isMiddleGap = !isStartGap && "end" !== this.options.gapPosition,
|
|
83559
83607
|
getNodeHeight = isNumber$1(this.options.nodeHeight) ? node => this.options.nodeHeight : isFunction$1(this.options.nodeHeight) ? this.options.nodeHeight : forceNodeHeight > 0 ? node => forceNodeHeight : node => Math.max(node.value * ky, 0),
|
|
83560
|
-
getLinkHeight = isNumber$1(this.options.linkHeight) ? () => this.options.linkHeight : isFunction$1(this.options.linkHeight) ? this.options.linkHeight : (link, sourceNode, sourceNodeHeight) => Math.max(sourceNode.value ? sourceNodeHeight * linkClampe(link.value / sourceNode.value) : 0, minLinkHeight, 0);
|
|
83608
|
+
getLinkHeight = isNumber$1(this.options.linkHeight) ? () => this.options.linkHeight : isFunction$1(this.options.linkHeight) ? this.options.linkHeight : (link, sourceNode, sourceNodeHeight) => Math.min(Math.max(sourceNode.value ? sourceNodeHeight * linkClampe(link.value / sourceNode.value) : 0, minLinkHeight, 0), maxLinkHeight);
|
|
83561
83609
|
for (let i = 0, columnCount = columns.length; i < columnCount; i++) {
|
|
83562
83610
|
const nodes = columns[i];
|
|
83563
83611
|
if (!nodes || !nodes.length) continue;
|
|
@@ -83567,7 +83615,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
83567
83615
|
calculatedNodeHeight = 0;
|
|
83568
83616
|
for (let j = 0, len = nodes.length; j < len; j++) {
|
|
83569
83617
|
const node = nodes[j];
|
|
83570
|
-
gapY = getGapY(node), isStartGap && (y += gapY), calculatedNodeHeight = getNodeHeight(node), nodeHeight = Math.max(calculatedNodeHeight, minNodeHeight), node.y0 = y, node.y1 = y + nodeHeight, y = isStartGap ? node.y1 : node.y1 + gapY;
|
|
83618
|
+
gapY = getGapY(node), isStartGap && (y += gapY), calculatedNodeHeight = getNodeHeight(node), nodeHeight = Math.min(Math.max(calculatedNodeHeight, minNodeHeight), maxNodeHeight), node.y0 = y, node.y1 = y + nodeHeight, y = isStartGap ? node.y1 : node.y1 + gapY;
|
|
83571
83619
|
for (let k = 0, linkLen = node.sourceLinks.length; k < linkLen; k++) {
|
|
83572
83620
|
const link = node.sourceLinks[k];
|
|
83573
83621
|
link.thickness = getLinkHeight(link, node, calculatedNodeHeight);
|
|
@@ -83578,6 +83626,20 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
83578
83626
|
if ("start" === this.options.crossNodeAlign) ;else if ("end" === this.options.crossNodeAlign) for (let j = 0, len = nodes.length; j < len; ++j) {
|
|
83579
83627
|
const node = nodes[j];
|
|
83580
83628
|
node.y0 += deltaY, node.y1 += deltaY;
|
|
83629
|
+
} else if ("parent" === this.options.crossNodeAlign) {
|
|
83630
|
+
const sourceNodes = nodes.reduce((res, node) => (node.targetLinks && node.targetLinks.length && node.targetLinks.forEach(link => {
|
|
83631
|
+
res[link.source] = !0;
|
|
83632
|
+
}), res), {});
|
|
83633
|
+
if (Object.keys(sourceNodes).length && columns[i - 1] && columns[i - 1].length) {
|
|
83634
|
+
const prevSourceNodes = columns[i - 1].filter(node => sourceNodes[node.key]);
|
|
83635
|
+
if (prevSourceNodes && prevSourceNodes.length && prevSourceNodes[0].y0 !== nodes[0].y0) {
|
|
83636
|
+
const newDeltaY = prevSourceNodes[0].y0 - nodes[0].y0;
|
|
83637
|
+
for (let j = 0, len = nodes.length; j < len; ++j) {
|
|
83638
|
+
const node = nodes[j];
|
|
83639
|
+
node.y0 += newDeltaY, node.y1 += newDeltaY;
|
|
83640
|
+
}
|
|
83641
|
+
}
|
|
83642
|
+
}
|
|
83581
83643
|
} else {
|
|
83582
83644
|
deltaY /= nodes.length + 1;
|
|
83583
83645
|
for (let j = 0, len = nodes.length; j < len; ++j) {
|
|
@@ -84067,34 +84129,19 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
84067
84129
|
}
|
|
84068
84130
|
allLinkElements.forEach((linkEl, i) => {
|
|
84069
84131
|
const linkDatum = linkEl.getDatum();
|
|
84070
|
-
|
|
84071
|
-
if (array(linkDatum[father]).includes(nodeDatum.key)) {
|
|
84072
|
-
if (!highlightNodes.includes(linkDatum.source)) {
|
|
84073
|
-
highlightNodes.push(linkDatum.source);
|
|
84074
|
-
}
|
|
84132
|
+
if (linkDatum.source === nodeDatum.key) {
|
|
84075
84133
|
if (!highlightNodes.includes(linkDatum.target)) {
|
|
84076
84134
|
highlightNodes.push(linkDatum.target);
|
|
84077
84135
|
}
|
|
84078
|
-
let ratio;
|
|
84079
|
-
if (father === 'parents') {
|
|
84080
|
-
const originalDatum = linkDatum.datum;
|
|
84081
|
-
const val = originalDatum
|
|
84082
|
-
? originalDatum
|
|
84083
|
-
.filter((entry) => entry.parents.some((par) => par.key === nodeDatum.key))
|
|
84084
|
-
.reduce((sum, d) => {
|
|
84085
|
-
return (sum += d.value);
|
|
84086
|
-
}, 0)
|
|
84087
|
-
: 0;
|
|
84088
|
-
ratio = val / linkDatum.value;
|
|
84089
|
-
}
|
|
84090
84136
|
linkEl.removeState(STATE_VALUE_ENUM.STATE_SANKEY_EMPHASIS_REVERSE);
|
|
84091
84137
|
linkEl.addState(STATE_VALUE_ENUM.STATE_SANKEY_EMPHASIS);
|
|
84092
|
-
linkEl.addState(STATE_VALUE_ENUM.STATE_SANKEY_EMPHASIS, { ratio });
|
|
84093
84138
|
}
|
|
84094
84139
|
else if (linkDatum.target === nodeDatum.key) {
|
|
84095
84140
|
if (!highlightNodes.includes(linkDatum.source)) {
|
|
84096
84141
|
highlightNodes.push(linkDatum.source);
|
|
84097
84142
|
}
|
|
84143
|
+
linkEl.removeState(STATE_VALUE_ENUM.STATE_SANKEY_EMPHASIS_REVERSE);
|
|
84144
|
+
linkEl.addState(STATE_VALUE_ENUM.STATE_SANKEY_EMPHASIS);
|
|
84098
84145
|
}
|
|
84099
84146
|
else {
|
|
84100
84147
|
linkEl.removeState(STATE_VALUE_ENUM.STATE_SANKEY_EMPHASIS);
|
|
@@ -84271,7 +84318,6 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
84271
84318
|
}, []);
|
|
84272
84319
|
allLinkElements.forEach((linkEl, i) => {
|
|
84273
84320
|
const linkDatum = linkEl.getDatum();
|
|
84274
|
-
const father = (linkDatum === null || linkDatum === void 0 ? void 0 : linkDatum.parents) ? 'parents' : 'source';
|
|
84275
84321
|
const originalDatum = linkDatum.datum;
|
|
84276
84322
|
const selectedDatum = originalDatum
|
|
84277
84323
|
? originalDatum.filter((entry) => entry[father].some((par) => par.key === nodeDatum.key))
|
|
@@ -84289,7 +84335,6 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
84289
84335
|
}, 0);
|
|
84290
84336
|
const ratio = val / linkDatum.value;
|
|
84291
84337
|
linkEl.removeState(STATE_VALUE_ENUM.STATE_SANKEY_EMPHASIS_REVERSE);
|
|
84292
|
-
linkEl.addState(STATE_VALUE_ENUM.STATE_SANKEY_EMPHASIS);
|
|
84293
84338
|
linkEl.addState(STATE_VALUE_ENUM.STATE_SANKEY_EMPHASIS, { ratio });
|
|
84294
84339
|
return;
|
|
84295
84340
|
}
|
|
@@ -84301,7 +84346,6 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
84301
84346
|
highlightNodes.push(linkDatum.target);
|
|
84302
84347
|
}
|
|
84303
84348
|
linkEl.removeState(STATE_VALUE_ENUM.STATE_SANKEY_EMPHASIS_REVERSE);
|
|
84304
|
-
linkEl.addState(STATE_VALUE_ENUM.STATE_SANKEY_EMPHASIS);
|
|
84305
84349
|
linkEl.addState(STATE_VALUE_ENUM.STATE_SANKEY_EMPHASIS, { ratio: upSelectedLink.value / linkDatum.value });
|
|
84306
84350
|
return;
|
|
84307
84351
|
}
|
|
@@ -84398,7 +84442,6 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
84398
84442
|
}, 0);
|
|
84399
84443
|
const ratio = val / linkDatum.value;
|
|
84400
84444
|
linkEl.removeState(STATE_VALUE_ENUM.STATE_SANKEY_EMPHASIS_REVERSE);
|
|
84401
|
-
linkEl.addState(STATE_VALUE_ENUM.STATE_SANKEY_EMPHASIS);
|
|
84402
84445
|
linkEl.addState(STATE_VALUE_ENUM.STATE_SANKEY_EMPHASIS, { ratio });
|
|
84403
84446
|
return;
|
|
84404
84447
|
}
|
|
@@ -84411,7 +84454,6 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
84411
84454
|
highlightNodes.push(linkDatum.target);
|
|
84412
84455
|
}
|
|
84413
84456
|
linkEl.removeState(STATE_VALUE_ENUM.STATE_SANKEY_EMPHASIS_REVERSE);
|
|
84414
|
-
linkEl.addState(STATE_VALUE_ENUM.STATE_SANKEY_EMPHASIS);
|
|
84415
84457
|
linkEl.addState(STATE_VALUE_ENUM.STATE_SANKEY_EMPHASIS, { ratio: upSelectedLink.value / linkDatum.value });
|
|
84416
84458
|
return;
|
|
84417
84459
|
}
|
|
@@ -84482,7 +84524,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
84482
84524
|
linkWidth: this._spec.linkWidth,
|
|
84483
84525
|
minStepWidth: this._spec.minStepWidth,
|
|
84484
84526
|
minNodeHeight: (_d = this._spec.minNodeHeight) !== null && _d !== void 0 ? _d : 4,
|
|
84527
|
+
maxNodeHeight: this._spec.maxNodeHeight,
|
|
84485
84528
|
minLinkHeight: this._spec.minLinkHeight,
|
|
84529
|
+
maxLinkHeight: this._spec.maxLinkHeight,
|
|
84486
84530
|
iterations: this._spec.iterations,
|
|
84487
84531
|
nodeKey: this._spec.nodeKey,
|
|
84488
84532
|
linkSortBy: this._spec.linkSortBy,
|
|
@@ -84719,7 +84763,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
84719
84763
|
}
|
|
84720
84764
|
vGrammarElements.forEach(el => {
|
|
84721
84765
|
el.removeState([STATE_VALUE_ENUM.STATE_SANKEY_EMPHASIS_REVERSE, STATE_VALUE_ENUM.STATE_SANKEY_EMPHASIS]);
|
|
84722
|
-
if (highlightNodes.includes(el.getDatum().key))
|
|
84766
|
+
if (highlightNodes.includes(el.getDatum().key)) {
|
|
84767
|
+
el.addState(STATE_VALUE_ENUM.STATE_SANKEY_EMPHASIS);
|
|
84768
|
+
}
|
|
84723
84769
|
else {
|
|
84724
84770
|
el.addState(STATE_VALUE_ENUM.STATE_SANKEY_EMPHASIS_REVERSE);
|
|
84725
84771
|
}
|
|
@@ -89309,7 +89355,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
89309
89355
|
|
|
89310
89356
|
class SankeyChartSpecTransformer extends BaseChartSpecTransformer {
|
|
89311
89357
|
_getDefaultSeriesSpec(spec) {
|
|
89312
|
-
const series = Object.assign(Object.assign({}, super._getDefaultSeriesSpec(spec)), { categoryField: spec.categoryField, valueField: spec.valueField, sourceField: spec.sourceField, targetField: spec.targetField, direction: spec.direction, nodeAlign: spec.nodeAlign, crossNodeAlign: spec.crossNodeAlign, nodeGap: spec.nodeGap, nodeWidth: spec.nodeWidth, linkWidth: spec.linkWidth, minStepWidth: spec.minStepWidth, minNodeHeight: spec.minNodeHeight, minLinkHeight: spec.minLinkHeight, dropIsolatedNode: spec.dropIsolatedNode, nodeHeight: spec.nodeHeight, linkHeight: spec.linkHeight, equalNodeHeight: spec.equalNodeHeight, linkOverlap: spec.linkOverlap, iterations: spec.iterations, nodeKey: spec.nodeKey, linkSortBy: spec.linkSortBy, nodeSortBy: spec.nodeSortBy, setNodeLayer: spec.setNodeLayer, node: spec.node, link: spec.link, label: spec.label, emphasis: spec.emphasis, inverse: spec.inverse });
|
|
89358
|
+
const series = Object.assign(Object.assign({}, super._getDefaultSeriesSpec(spec)), { categoryField: spec.categoryField, valueField: spec.valueField, sourceField: spec.sourceField, targetField: spec.targetField, direction: spec.direction, nodeAlign: spec.nodeAlign, crossNodeAlign: spec.crossNodeAlign, nodeGap: spec.nodeGap, nodeWidth: spec.nodeWidth, linkWidth: spec.linkWidth, minStepWidth: spec.minStepWidth, minNodeHeight: spec.minNodeHeight, maxNodeHeight: spec.maxNodeHeight, minLinkHeight: spec.minLinkHeight, maxLinkHeight: spec.maxLinkHeight, dropIsolatedNode: spec.dropIsolatedNode, nodeHeight: spec.nodeHeight, linkHeight: spec.linkHeight, equalNodeHeight: spec.equalNodeHeight, linkOverlap: spec.linkOverlap, iterations: spec.iterations, nodeKey: spec.nodeKey, linkSortBy: spec.linkSortBy, nodeSortBy: spec.nodeSortBy, setNodeLayer: spec.setNodeLayer, node: spec.node, link: spec.link, label: spec.label, emphasis: spec.emphasis, inverse: spec.inverse });
|
|
89313
89359
|
const seriesType = this.seriesType;
|
|
89314
89360
|
if (seriesType) {
|
|
89315
89361
|
series.type = seriesType;
|
|
@@ -92972,6 +93018,23 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
92972
93018
|
Factory$1.registerComponent(PolarCrossHair.type, PolarCrossHair);
|
|
92973
93019
|
};
|
|
92974
93020
|
|
|
93021
|
+
const lockStatisticsFilter = (statisticsData, op) => {
|
|
93022
|
+
const { getNewDomain, isContinuous, field, originalFields } = op;
|
|
93023
|
+
const datumField = field();
|
|
93024
|
+
const newDomain = getNewDomain();
|
|
93025
|
+
if (isNil$1(newDomain) || isNil$1(datumField)) {
|
|
93026
|
+
return statisticsData;
|
|
93027
|
+
}
|
|
93028
|
+
const fields = originalFields();
|
|
93029
|
+
if (statisticsData[datumField] &&
|
|
93030
|
+
fields &&
|
|
93031
|
+
fields[datumField] &&
|
|
93032
|
+
fields[datumField].lockStatisticsByDomain &&
|
|
93033
|
+
!isContinuous()) {
|
|
93034
|
+
statisticsData[datumField].values = newDomain;
|
|
93035
|
+
}
|
|
93036
|
+
return statisticsData;
|
|
93037
|
+
};
|
|
92975
93038
|
const dataFilterWithNewDomain = (data, op) => {
|
|
92976
93039
|
const { getNewDomain, isContinuous, field } = op;
|
|
92977
93040
|
const datumField = field();
|
|
@@ -93373,7 +93436,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
93373
93436
|
const domain = this._computeDomainOfStateScale(isContinuous(this._stateScale.type));
|
|
93374
93437
|
this._stateScale.domain(domain, false);
|
|
93375
93438
|
this._handleChange(this._start, this._end, true);
|
|
93376
|
-
if (this._spec.auto) {
|
|
93439
|
+
if (this._spec.auto && !isEqual(this._domainCache, domain)) {
|
|
93440
|
+
this._domainCache = domain;
|
|
93377
93441
|
this._dataUpdating = true;
|
|
93378
93442
|
(_a = this.getChart()) === null || _a === void 0 ? void 0 : _a.setLayoutTag(true, null, false);
|
|
93379
93443
|
}
|
|
@@ -93618,7 +93682,23 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
93618
93682
|
_addTransformToSeries() {
|
|
93619
93683
|
if (!this._relatedAxisComponent || this._filterMode !== 'axis') {
|
|
93620
93684
|
registerDataSetInstanceTransform(this._option.dataSet, 'dataFilterWithNewDomain', dataFilterWithNewDomain);
|
|
93685
|
+
registerDataSetInstanceTransform(this._option.dataSet, 'lockStatisticsFilter', lockStatisticsFilter);
|
|
93621
93686
|
eachSeries(this._regions, s => {
|
|
93687
|
+
s.getViewDataStatistics().transform({
|
|
93688
|
+
type: 'lockStatisticsFilter',
|
|
93689
|
+
options: {
|
|
93690
|
+
originalFields: () => {
|
|
93691
|
+
return s.getViewDataStatistics().getFields();
|
|
93692
|
+
},
|
|
93693
|
+
getNewDomain: () => this._newDomain,
|
|
93694
|
+
field: () => {
|
|
93695
|
+
var _a;
|
|
93696
|
+
return (_a = this._field) !== null && _a !== void 0 ? _a : this._parseFieldOfSeries(s);
|
|
93697
|
+
},
|
|
93698
|
+
isContinuous: () => isContinuous(this._stateScale.type)
|
|
93699
|
+
},
|
|
93700
|
+
level: 1
|
|
93701
|
+
}, false);
|
|
93622
93702
|
s.addViewDataFilter({
|
|
93623
93703
|
type: 'dataFilterWithNewDomain',
|
|
93624
93704
|
options: {
|
|
@@ -93692,17 +93772,34 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
93692
93772
|
}
|
|
93693
93773
|
super.updateLayoutAttribute();
|
|
93694
93774
|
}
|
|
93695
|
-
|
|
93696
|
-
|
|
93697
|
-
|
|
93775
|
+
_autoVisible(isShown) {
|
|
93776
|
+
if (!this._auto) {
|
|
93777
|
+
return;
|
|
93778
|
+
}
|
|
93779
|
+
if (isShown) {
|
|
93780
|
+
this.show();
|
|
93781
|
+
}
|
|
93782
|
+
else {
|
|
93783
|
+
this.hide();
|
|
93784
|
+
}
|
|
93698
93785
|
const sizeKey = this._isHorizontal ? 'height' : 'width';
|
|
93699
93786
|
this.layout.setLayoutRect({
|
|
93700
93787
|
[sizeKey]: isShown ? this[`_${sizeKey}`] : 0
|
|
93701
93788
|
}, {
|
|
93702
93789
|
[sizeKey]: AttributeLevel.Built_In
|
|
93703
93790
|
});
|
|
93791
|
+
}
|
|
93792
|
+
onLayoutStart(layoutRect, viewRect, ctx) {
|
|
93793
|
+
super.onLayoutStart(layoutRect, viewRect, ctx);
|
|
93794
|
+
const isShown = this._autoUpdate(layoutRect);
|
|
93795
|
+
this._autoVisible(isShown);
|
|
93704
93796
|
this._dataUpdating = false;
|
|
93705
93797
|
}
|
|
93798
|
+
onLayoutEnd(ctx) {
|
|
93799
|
+
const isShown = !(this._start === 0 && this._end === 1);
|
|
93800
|
+
this._autoVisible(isShown);
|
|
93801
|
+
super.onLayoutEnd(ctx);
|
|
93802
|
+
}
|
|
93706
93803
|
getBoundsInRect(rect) {
|
|
93707
93804
|
const result = { x1: this.getLayoutStartPoint().x, y1: this.getLayoutStartPoint().y, x2: 0, y2: 0 };
|
|
93708
93805
|
if (this._isHorizontal) {
|
|
@@ -93782,12 +93879,6 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
93782
93879
|
isShown = !(start === 0 && end === 1);
|
|
93783
93880
|
}
|
|
93784
93881
|
this.setStartAndEnd(this._start, this._end);
|
|
93785
|
-
if (isShown) {
|
|
93786
|
-
this.show();
|
|
93787
|
-
}
|
|
93788
|
-
else {
|
|
93789
|
-
this.hide();
|
|
93790
|
-
}
|
|
93791
93882
|
this._cacheVisibility = isShown;
|
|
93792
93883
|
return isShown;
|
|
93793
93884
|
}
|
|
@@ -94289,6 +94380,10 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
94289
94380
|
}
|
|
94290
94381
|
}
|
|
94291
94382
|
_handleDataCollectionChange() {
|
|
94383
|
+
if (this._spec.auto) {
|
|
94384
|
+
const data = this._data.getDataView();
|
|
94385
|
+
data.reRunAllTransform();
|
|
94386
|
+
}
|
|
94292
94387
|
}
|
|
94293
94388
|
_initCommonEvent() {
|
|
94294
94389
|
super._initCommonEvent();
|
|
@@ -94854,7 +94949,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
94854
94949
|
});
|
|
94855
94950
|
return { minX, maxX, minY, maxY };
|
|
94856
94951
|
}
|
|
94857
|
-
function transformLabelAttributes(label, markerData) {
|
|
94952
|
+
function transformLabelAttributes(label, markerData, markAttributeContext) {
|
|
94858
94953
|
const { labelBackground = {}, style, shape } = label, restLabel = __rest$e(label, ["labelBackground", "style", "shape"]);
|
|
94859
94954
|
if (label.visible !== false) {
|
|
94860
94955
|
const labelAttrs = restLabel;
|
|
@@ -94867,7 +94962,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
94867
94962
|
};
|
|
94868
94963
|
}
|
|
94869
94964
|
if (labelBackground.visible !== false) {
|
|
94870
|
-
labelAttrs.panel = Object.assign({ visible: true, customShape: labelBackground.customShape }, transformStyle(transformToGraphic(labelBackground.style), markerData));
|
|
94965
|
+
labelAttrs.panel = Object.assign({ visible: true, customShape: labelBackground.customShape }, transformStyle(transformToGraphic(labelBackground.style), markerData, markAttributeContext));
|
|
94871
94966
|
if (isValid$1(labelBackground.padding)) {
|
|
94872
94967
|
labelAttrs.padding = normalizePadding$1(labelBackground.padding);
|
|
94873
94968
|
}
|
|
@@ -94879,7 +94974,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
94879
94974
|
labelAttrs.padding = 0;
|
|
94880
94975
|
}
|
|
94881
94976
|
if (style) {
|
|
94882
|
-
labelAttrs.textStyle = transformStyle(transformToGraphic(style), markerData);
|
|
94977
|
+
labelAttrs.textStyle = transformStyle(transformToGraphic(style), markerData, markAttributeContext);
|
|
94883
94978
|
}
|
|
94884
94979
|
return labelAttrs;
|
|
94885
94980
|
}
|
|
@@ -94887,17 +94982,17 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
94887
94982
|
visible: false
|
|
94888
94983
|
};
|
|
94889
94984
|
}
|
|
94890
|
-
function transformState(state, markerData) {
|
|
94985
|
+
function transformState(state, markerData, markerAttributeContext) {
|
|
94891
94986
|
for (const stateKey in state) {
|
|
94892
94987
|
if (isFunction$1(state[stateKey])) {
|
|
94893
|
-
state[stateKey] = state[stateKey](markerData);
|
|
94988
|
+
state[stateKey] = state[stateKey](markerData, markerAttributeContext);
|
|
94894
94989
|
}
|
|
94895
94990
|
}
|
|
94896
94991
|
return state;
|
|
94897
94992
|
}
|
|
94898
|
-
function transformStyle(style, markerData) {
|
|
94993
|
+
function transformStyle(style, markerData, markerAttributeContext) {
|
|
94899
94994
|
if (isFunction$1(style)) {
|
|
94900
|
-
return style(markerData);
|
|
94995
|
+
return style(markerData, markerAttributeContext);
|
|
94901
94996
|
}
|
|
94902
94997
|
return style;
|
|
94903
94998
|
}
|
|
@@ -95265,11 +95360,23 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
95265
95360
|
return s.visible !== false && this._getMarkerCoordinateType(s) === this.coordinateType;
|
|
95266
95361
|
});
|
|
95267
95362
|
}
|
|
95363
|
+
getMarkAttributeContext() {
|
|
95364
|
+
return this._markAttributeContext;
|
|
95365
|
+
}
|
|
95366
|
+
_buildMarkerAttributeContext() {
|
|
95367
|
+
this._markAttributeContext = {
|
|
95368
|
+
relativeSeries: this._relativeSeries,
|
|
95369
|
+
startRelativeSeries: this._startRelativeSeries,
|
|
95370
|
+
endRelativeSeries: this._endRelativeSeries,
|
|
95371
|
+
vchart: this._option.globalInstance
|
|
95372
|
+
};
|
|
95373
|
+
}
|
|
95268
95374
|
created() {
|
|
95269
95375
|
super.created();
|
|
95270
95376
|
this._bindSeries();
|
|
95271
95377
|
this._initDataView();
|
|
95272
95378
|
this.initEvent();
|
|
95379
|
+
this._buildMarkerAttributeContext();
|
|
95273
95380
|
}
|
|
95274
95381
|
_getAllRelativeSeries() {
|
|
95275
95382
|
return {
|
|
@@ -95461,15 +95568,15 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
95461
95568
|
radius: 0,
|
|
95462
95569
|
startAngle: 0,
|
|
95463
95570
|
endAngle: 0,
|
|
95464
|
-
lineStyle: transformStyle(transformToGraphic((_d = this._spec.line) === null || _d === void 0 ? void 0 : _d.style), this._markerData),
|
|
95571
|
+
lineStyle: transformStyle(transformToGraphic((_d = this._spec.line) === null || _d === void 0 ? void 0 : _d.style), this._markerData, this._markAttributeContext),
|
|
95465
95572
|
clipInRange: (_e = this._spec.clip) !== null && _e !== void 0 ? _e : false,
|
|
95466
|
-
label: transformLabelAttributes(label, this._markerData),
|
|
95573
|
+
label: transformLabelAttributes(label, this._markerData, this._markAttributeContext),
|
|
95467
95574
|
state: {
|
|
95468
|
-
line: transformState((_g = (_f = this._spec.line) === null || _f === void 0 ? void 0 : _f.state) !== null && _g !== void 0 ? _g : {}, this._markerData),
|
|
95469
|
-
lineStartSymbol: transformState((_j = (_h = this._spec.startSymbol) === null || _h === void 0 ? void 0 : _h.state) !== null && _j !== void 0 ? _j : {}, this._markerData),
|
|
95470
|
-
lineEndSymbol: transformState((_l = (_k = this._spec.endSymbol) === null || _k === void 0 ? void 0 : _k.state) !== null && _l !== void 0 ? _l : {}, this._markerData),
|
|
95471
|
-
label: transformState((_p = (_o = (_m = this._spec) === null || _m === void 0 ? void 0 : _m.label) === null || _o === void 0 ? void 0 : _o.state) !== null && _p !== void 0 ? _p : {}, this._markerData),
|
|
95472
|
-
labelBackground: transformState((_t = (_s = (_r = (_q = this._spec) === null || _q === void 0 ? void 0 : _q.label) === null || _r === void 0 ? void 0 : _r.labelBackground) === null || _s === void 0 ? void 0 : _s.state) !== null && _t !== void 0 ? _t : {}, this._markerData)
|
|
95575
|
+
line: transformState((_g = (_f = this._spec.line) === null || _f === void 0 ? void 0 : _f.state) !== null && _g !== void 0 ? _g : {}, this._markerData, this._markAttributeContext),
|
|
95576
|
+
lineStartSymbol: transformState((_j = (_h = this._spec.startSymbol) === null || _h === void 0 ? void 0 : _h.state) !== null && _j !== void 0 ? _j : {}, this._markerData, this._markAttributeContext),
|
|
95577
|
+
lineEndSymbol: transformState((_l = (_k = this._spec.endSymbol) === null || _k === void 0 ? void 0 : _k.state) !== null && _l !== void 0 ? _l : {}, this._markerData, this._markAttributeContext),
|
|
95578
|
+
label: transformState((_p = (_o = (_m = this._spec) === null || _m === void 0 ? void 0 : _m.label) === null || _o === void 0 ? void 0 : _o.state) !== null && _p !== void 0 ? _p : {}, this._markerData, this._markAttributeContext),
|
|
95579
|
+
labelBackground: transformState((_t = (_s = (_r = (_q = this._spec) === null || _q === void 0 ? void 0 : _q.label) === null || _r === void 0 ? void 0 : _r.labelBackground) === null || _s === void 0 ? void 0 : _s.state) !== null && _t !== void 0 ? _t : {}, this._markerData, this._markAttributeContext)
|
|
95473
95580
|
},
|
|
95474
95581
|
animation: (_u = this._spec.animation) !== null && _u !== void 0 ? _u : false,
|
|
95475
95582
|
animationEnter: this._spec.animationEnter,
|
|
@@ -95477,7 +95584,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
95477
95584
|
animationUpdate: this._spec.animationUpdate
|
|
95478
95585
|
};
|
|
95479
95586
|
if (startSymbol.visible) {
|
|
95480
|
-
markLineAttrs.startSymbol = Object.assign(Object.assign({}, startSymbol), { visible: true, style: transformToGraphic(startSymbol.style) });
|
|
95587
|
+
markLineAttrs.startSymbol = Object.assign(Object.assign({}, startSymbol), { visible: true, style: transformStyle(transformToGraphic(startSymbol.style), this._markerData, this._markAttributeContext) });
|
|
95481
95588
|
}
|
|
95482
95589
|
else {
|
|
95483
95590
|
markLineAttrs.startSymbol = {
|
|
@@ -95485,7 +95592,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
95485
95592
|
};
|
|
95486
95593
|
}
|
|
95487
95594
|
if (endSymbol.visible) {
|
|
95488
|
-
markLineAttrs.endSymbol = Object.assign(Object.assign({}, endSymbol), { visible: true, style: transformToGraphic(endSymbol.style) });
|
|
95595
|
+
markLineAttrs.endSymbol = Object.assign(Object.assign({}, endSymbol), { visible: true, style: transformStyle(transformToGraphic(endSymbol.style), this._markerData, this._markAttributeContext) });
|
|
95489
95596
|
}
|
|
95490
95597
|
else {
|
|
95491
95598
|
markLineAttrs.endSymbol = {
|
|
@@ -96070,13 +96177,13 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
96070
96177
|
outerRadius: 0,
|
|
96071
96178
|
startAngle: 0,
|
|
96072
96179
|
endAngle: 0,
|
|
96073
|
-
areaStyle: transformStyle(transformToGraphic((_e = this._spec.area) === null || _e === void 0 ? void 0 : _e.style), this._markerData),
|
|
96180
|
+
areaStyle: transformStyle(transformToGraphic((_e = this._spec.area) === null || _e === void 0 ? void 0 : _e.style), this._markerData, this._markAttributeContext),
|
|
96074
96181
|
clipInRange: (_f = this._spec.clip) !== null && _f !== void 0 ? _f : false,
|
|
96075
|
-
label: transformLabelAttributes(label, this._markerData),
|
|
96182
|
+
label: transformLabelAttributes(label, this._markerData, this._markAttributeContext),
|
|
96076
96183
|
state: {
|
|
96077
|
-
area: transformState((_g = this._spec.area) === null || _g === void 0 ? void 0 : _g.state, this._markerData),
|
|
96078
|
-
label: transformState((_h = this._spec.label) === null || _h === void 0 ? void 0 : _h.state, this._markerData),
|
|
96079
|
-
labelBackground: transformState((_l = (_k = (_j = this._spec) === null || _j === void 0 ? void 0 : _j.label) === null || _k === void 0 ? void 0 : _k.labelBackground) === null || _l === void 0 ? void 0 : _l.state, this._markerData)
|
|
96184
|
+
area: transformState((_g = this._spec.area) === null || _g === void 0 ? void 0 : _g.state, this._markerData, this._markAttributeContext),
|
|
96185
|
+
label: transformState((_h = this._spec.label) === null || _h === void 0 ? void 0 : _h.state, this._markerData, this._markAttributeContext),
|
|
96186
|
+
labelBackground: transformState((_l = (_k = (_j = this._spec) === null || _j === void 0 ? void 0 : _j.label) === null || _k === void 0 ? void 0 : _k.labelBackground) === null || _l === void 0 ? void 0 : _l.state, this._markerData, this._markAttributeContext)
|
|
96080
96187
|
},
|
|
96081
96188
|
animation: (_m = this._spec.animation) !== null && _m !== void 0 ? _m : false,
|
|
96082
96189
|
animationEnter: this._spec.animationEnter,
|
|
@@ -97231,19 +97338,19 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
97231
97338
|
offset: (_e = targetSymbol.offset) !== null && _e !== void 0 ? _e : 0,
|
|
97232
97339
|
visible: (_f = targetSymbol.visible) !== null && _f !== void 0 ? _f : false,
|
|
97233
97340
|
size: (_g = targetSymbol.size) !== null && _g !== void 0 ? _g : 20,
|
|
97234
|
-
style: transformStyle(targetSymbol.style, this._markerData)
|
|
97341
|
+
style: transformStyle(targetSymbol.style, this._markerData, this._markAttributeContext)
|
|
97235
97342
|
},
|
|
97236
97343
|
state: {
|
|
97237
|
-
line: transformState((_j = (_h = this._spec.itemLine.line) === null || _h === void 0 ? void 0 : _h.state) !== null && _j !== void 0 ? _j : {}, this._markerData),
|
|
97238
|
-
lineStartSymbol: transformState((_l = (_k = this._spec.itemLine.startSymbol) === null || _k === void 0 ? void 0 : _k.state) !== null && _l !== void 0 ? _l : {}, this._markerData),
|
|
97239
|
-
lineEndSymbol: transformState((_o = (_m = this._spec.itemLine.endSymbol) === null || _m === void 0 ? void 0 : _m.state) !== null && _o !== void 0 ? _o : {}, this._markerData),
|
|
97240
|
-
symbol: transformState((_q = (_p = this._spec.itemContent.symbol) === null || _p === void 0 ? void 0 : _p.state) !== null && _q !== void 0 ? _q : {}, this._markerData),
|
|
97241
|
-
image: transformState((_s = (_r = this._spec.itemContent.image) === null || _r === void 0 ? void 0 : _r.state) !== null && _s !== void 0 ? _s : {}, this._markerData),
|
|
97242
|
-
text: transformState((_u = (_t = this._spec.itemContent.text) === null || _t === void 0 ? void 0 : _t.state) !== null && _u !== void 0 ? _u : {}, this._markerData),
|
|
97243
|
-
textBackground: transformState((_w = (_v = this._spec.itemContent.text) === null || _v === void 0 ? void 0 : _v.labelBackground) === null || _w === void 0 ? void 0 : _w.state, this._markerData),
|
|
97244
|
-
richText: transformState((_y = (_x = this._spec.itemContent.richText) === null || _x === void 0 ? void 0 : _x.state) !== null && _y !== void 0 ? _y : {}, this._markerData),
|
|
97245
|
-
customMark: transformState((_0 = (_z = this._spec.itemContent.customMark) === null || _z === void 0 ? void 0 : _z.state) !== null && _0 !== void 0 ? _0 : {}, this._markerData),
|
|
97246
|
-
targetItem: transformState((_2 = (_1 = this._spec.targetSymbol) === null || _1 === void 0 ? void 0 : _1.state) !== null && _2 !== void 0 ? _2 : {}, this._markerData)
|
|
97344
|
+
line: transformState((_j = (_h = this._spec.itemLine.line) === null || _h === void 0 ? void 0 : _h.state) !== null && _j !== void 0 ? _j : {}, this._markerData, this._markAttributeContext),
|
|
97345
|
+
lineStartSymbol: transformState((_l = (_k = this._spec.itemLine.startSymbol) === null || _k === void 0 ? void 0 : _k.state) !== null && _l !== void 0 ? _l : {}, this._markerData, this._markAttributeContext),
|
|
97346
|
+
lineEndSymbol: transformState((_o = (_m = this._spec.itemLine.endSymbol) === null || _m === void 0 ? void 0 : _m.state) !== null && _o !== void 0 ? _o : {}, this._markerData, this._markAttributeContext),
|
|
97347
|
+
symbol: transformState((_q = (_p = this._spec.itemContent.symbol) === null || _p === void 0 ? void 0 : _p.state) !== null && _q !== void 0 ? _q : {}, this._markerData, this._markAttributeContext),
|
|
97348
|
+
image: transformState((_s = (_r = this._spec.itemContent.image) === null || _r === void 0 ? void 0 : _r.state) !== null && _s !== void 0 ? _s : {}, this._markerData, this._markAttributeContext),
|
|
97349
|
+
text: transformState((_u = (_t = this._spec.itemContent.text) === null || _t === void 0 ? void 0 : _t.state) !== null && _u !== void 0 ? _u : {}, this._markerData, this._markAttributeContext),
|
|
97350
|
+
textBackground: transformState((_w = (_v = this._spec.itemContent.text) === null || _v === void 0 ? void 0 : _v.labelBackground) === null || _w === void 0 ? void 0 : _w.state, this._markerData, this._markAttributeContext),
|
|
97351
|
+
richText: transformState((_y = (_x = this._spec.itemContent.richText) === null || _x === void 0 ? void 0 : _x.state) !== null && _y !== void 0 ? _y : {}, this._markerData, this._markAttributeContext),
|
|
97352
|
+
customMark: transformState((_0 = (_z = this._spec.itemContent.customMark) === null || _z === void 0 ? void 0 : _z.state) !== null && _0 !== void 0 ? _0 : {}, this._markerData, this._markAttributeContext),
|
|
97353
|
+
targetItem: transformState((_2 = (_1 = this._spec.targetSymbol) === null || _1 === void 0 ? void 0 : _1.state) !== null && _2 !== void 0 ? _2 : {}, this._markerData, this._markAttributeContext)
|
|
97247
97354
|
},
|
|
97248
97355
|
animation: (_3 = this._spec.animation) !== null && _3 !== void 0 ? _3 : false,
|
|
97249
97356
|
animationEnter: this._spec.animationEnter,
|
|
@@ -97251,16 +97358,16 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
97251
97358
|
animationUpdate: this._spec.animationUpdate
|
|
97252
97359
|
};
|
|
97253
97360
|
if (symbol === null || symbol === void 0 ? void 0 : symbol.style) {
|
|
97254
|
-
markPointAttrs.itemContent.symbolStyle = transformToGraphic(transformStyle(symbol.style, this._markerData));
|
|
97361
|
+
markPointAttrs.itemContent.symbolStyle = transformToGraphic(transformStyle(symbol.style, this._markerData, this._markAttributeContext));
|
|
97255
97362
|
}
|
|
97256
97363
|
if (image === null || image === void 0 ? void 0 : image.style) {
|
|
97257
|
-
markPointAttrs.itemContent.imageStyle = transformStyle(image.style, this._markerData);
|
|
97364
|
+
markPointAttrs.itemContent.imageStyle = transformStyle(image.style, this._markerData, this._markAttributeContext);
|
|
97258
97365
|
}
|
|
97259
97366
|
if (label) {
|
|
97260
|
-
markPointAttrs.itemContent.textStyle = transformLabelAttributes(label, this._markerData);
|
|
97367
|
+
markPointAttrs.itemContent.textStyle = transformLabelAttributes(label, this._markerData, this._markAttributeContext);
|
|
97261
97368
|
}
|
|
97262
97369
|
if (richText === null || richText === void 0 ? void 0 : richText.style) {
|
|
97263
|
-
markPointAttrs.itemContent.richTextStyle = transformStyle(richText.style, this._markerData);
|
|
97370
|
+
markPointAttrs.itemContent.richTextStyle = transformStyle(richText.style, this._markerData, this._markAttributeContext);
|
|
97264
97371
|
}
|
|
97265
97372
|
const { visible, line = {} } = itemLine, restItemLine = __rest$e(itemLine, ["visible", "line"]);
|
|
97266
97373
|
if (visible !== false) {
|
|
@@ -101693,6 +101800,11 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
101693
101800
|
exports.CustomMark = CustomMark;
|
|
101694
101801
|
exports.DEFAULT_CHART_HEIGHT = DEFAULT_CHART_HEIGHT;
|
|
101695
101802
|
exports.DEFAULT_CHART_WIDTH = DEFAULT_CHART_WIDTH;
|
|
101803
|
+
exports.DEFAULT_DATA_INDEX = DEFAULT_DATA_INDEX;
|
|
101804
|
+
exports.DEFAULT_DATA_KEY = DEFAULT_DATA_KEY;
|
|
101805
|
+
exports.DEFAULT_DATA_SERIES_FIELD = DEFAULT_DATA_SERIES_FIELD;
|
|
101806
|
+
exports.DEFAULT_MEASURE_CANVAS_ID = DEFAULT_MEASURE_CANVAS_ID;
|
|
101807
|
+
exports.DEFAULT_SERIES_STYLE_NAME = DEFAULT_SERIES_STYLE_NAME;
|
|
101696
101808
|
exports.DataZoom = DataZoom;
|
|
101697
101809
|
exports.DimensionClickEvent = DimensionClickEvent;
|
|
101698
101810
|
exports.DimensionHoverEvent = DimensionHoverEvent;
|
|
@@ -101730,6 +101842,10 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
101730
101842
|
exports.LinkSeries = LinkSeries;
|
|
101731
101843
|
exports.LiquidChart = LiquidChart;
|
|
101732
101844
|
exports.LiquidSeries = LiquidSeries;
|
|
101845
|
+
exports.MOSAIC_CAT_END_PERCENT = MOSAIC_CAT_END_PERCENT;
|
|
101846
|
+
exports.MOSAIC_CAT_START_PERCENT = MOSAIC_CAT_START_PERCENT;
|
|
101847
|
+
exports.MOSAIC_VALUE_END_PERCENT = MOSAIC_VALUE_END_PERCENT;
|
|
101848
|
+
exports.MOSAIC_VALUE_START_PERCENT = MOSAIC_VALUE_START_PERCENT;
|
|
101733
101849
|
exports.MapChart = MapChart;
|
|
101734
101850
|
exports.MapLabelComponent = MapLabelComponent;
|
|
101735
101851
|
exports.MapSeries = MapSeries;
|
|
@@ -101768,6 +101884,19 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
101768
101884
|
exports.RoseLikeSeries = RoseLikeSeries;
|
|
101769
101885
|
exports.RoseSeries = RoseSeries;
|
|
101770
101886
|
exports.RuleMark = RuleMark;
|
|
101887
|
+
exports.SEGMENT_FIELD_END = SEGMENT_FIELD_END;
|
|
101888
|
+
exports.SEGMENT_FIELD_START = SEGMENT_FIELD_START;
|
|
101889
|
+
exports.STACK_FIELD_END = STACK_FIELD_END;
|
|
101890
|
+
exports.STACK_FIELD_END_OffsetSilhouette = STACK_FIELD_END_OffsetSilhouette;
|
|
101891
|
+
exports.STACK_FIELD_END_PERCENT = STACK_FIELD_END_PERCENT;
|
|
101892
|
+
exports.STACK_FIELD_KEY = STACK_FIELD_KEY;
|
|
101893
|
+
exports.STACK_FIELD_START = STACK_FIELD_START;
|
|
101894
|
+
exports.STACK_FIELD_START_OffsetSilhouette = STACK_FIELD_START_OffsetSilhouette;
|
|
101895
|
+
exports.STACK_FIELD_START_PERCENT = STACK_FIELD_START_PERCENT;
|
|
101896
|
+
exports.STACK_FIELD_TOTAL = STACK_FIELD_TOTAL;
|
|
101897
|
+
exports.STACK_FIELD_TOTAL_BOTTOM = STACK_FIELD_TOTAL_BOTTOM;
|
|
101898
|
+
exports.STACK_FIELD_TOTAL_PERCENT = STACK_FIELD_TOTAL_PERCENT;
|
|
101899
|
+
exports.STACK_FIELD_TOTAL_TOP = STACK_FIELD_TOTAL_TOP;
|
|
101771
101900
|
exports.SankeyChart = SankeyChart;
|
|
101772
101901
|
exports.SankeySeries = SankeySeries;
|
|
101773
101902
|
exports.ScatterChart = ScatterChart;
|