@visactor/vchart 1.12.4 → 1.12.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/es5/index.js +1 -1
- package/build/index.js +196 -453
- package/build/index.min.js +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/cjs/chart/base/base-chart-transformer.js +4 -4
- package/cjs/chart/base/base-chart-transformer.js.map +1 -1
- package/cjs/compile/mark/compilable-mark.d.ts +0 -3
- package/cjs/compile/mark/compilable-mark.js +2 -9
- package/cjs/compile/mark/compilable-mark.js.map +1 -1
- package/cjs/compile/mark/interface.d.ts +0 -2
- package/cjs/compile/mark/interface.js.map +1 -1
- package/cjs/component/axis/cartesian/axis.d.ts +1 -0
- package/cjs/component/axis/cartesian/axis.js +28 -1
- package/cjs/component/axis/cartesian/axis.js.map +1 -1
- package/cjs/component/axis/polar/axis.js +3 -17
- package/cjs/component/axis/polar/axis.js.map +1 -1
- package/cjs/component/axis/polar/util/common.js +1 -1
- package/cjs/component/axis/polar/util/common.js.map +1 -1
- package/cjs/component/brush/brush.js +2 -8
- package/cjs/component/brush/brush.js.map +1 -1
- package/cjs/component/crosshair/cartesian.js +2 -18
- package/cjs/component/crosshair/cartesian.js.map +1 -1
- package/cjs/component/crosshair/polar.js +2 -18
- package/cjs/component/crosshair/polar.js.map +1 -1
- package/cjs/component/custom-mark/custom-mark.d.ts +1 -3
- package/cjs/component/custom-mark/custom-mark.js +2 -16
- package/cjs/component/custom-mark/custom-mark.js.map +1 -1
- package/cjs/component/data-zoom/data-zoom/data-zoom.d.ts +0 -3
- package/cjs/component/data-zoom/data-zoom/data-zoom.js +0 -19
- package/cjs/component/data-zoom/data-zoom/data-zoom.js.map +1 -1
- package/cjs/component/data-zoom/scroll-bar/scroll-bar.d.ts +0 -3
- package/cjs/component/data-zoom/scroll-bar/scroll-bar.js +0 -19
- package/cjs/component/data-zoom/scroll-bar/scroll-bar.js.map +1 -1
- package/cjs/component/indicator/indicator.js +2 -18
- package/cjs/component/indicator/indicator.js.map +1 -1
- package/cjs/component/interface/common.d.ts +1 -1
- package/cjs/component/interface/common.js.map +1 -1
- package/cjs/component/label/interface.d.ts +2 -2
- package/cjs/component/label/interface.js.map +1 -1
- package/cjs/component/legend/continuous/legend.js +6 -18
- package/cjs/component/legend/continuous/legend.js.map +1 -1
- package/cjs/component/legend/discrete/legend.js +1 -17
- package/cjs/component/legend/discrete/legend.js.map +1 -1
- package/cjs/component/map-label/component.js +3 -8
- package/cjs/component/map-label/component.js.map +1 -1
- package/cjs/component/marker/base-marker.js +2 -18
- package/cjs/component/marker/base-marker.js.map +1 -1
- package/cjs/component/player/player.d.ts +1 -3
- package/cjs/component/player/player.js +0 -9
- package/cjs/component/player/player.js.map +1 -1
- package/cjs/component/title/title.js +2 -18
- package/cjs/component/title/title.js.map +1 -1
- package/cjs/component/tooltip/tooltip.d.ts +1 -3
- package/cjs/component/tooltip/tooltip.js +0 -19
- package/cjs/component/tooltip/tooltip.js.map +1 -1
- package/cjs/component/util.d.ts +3 -0
- package/cjs/component/util.js +16 -1
- package/cjs/component/util.js.map +1 -1
- package/cjs/core/index.d.ts +1 -1
- package/cjs/core/index.js +1 -1
- package/cjs/core/index.js.map +1 -1
- package/cjs/event/event-dispatcher.js +1 -9
- package/cjs/event/event-dispatcher.js.map +1 -1
- package/cjs/series/base/base-series-transformer.js +7 -4
- package/cjs/series/base/base-series-transformer.js.map +1 -1
- package/cjs/series/base/base-series.js +3 -5
- package/cjs/series/base/base-series.js.map +1 -1
- package/cjs/series/dot/dot.d.ts +0 -1
- package/cjs/series/dot/dot.js +0 -5
- package/cjs/series/dot/dot.js.map +1 -1
- package/cjs/series/polar/animation.d.ts +1 -0
- package/cjs/series/polar/animation.js +15 -17
- package/cjs/series/polar/animation.js.map +1 -1
- package/cjs/series/polar/polar.js +9 -2
- package/cjs/series/polar/polar.js.map +1 -1
- package/cjs/series/radar/radar.js +1 -0
- package/cjs/series/radar/radar.js.map +1 -1
- package/cjs/series/word-cloud/base.js +21 -10
- package/cjs/series/word-cloud/base.js.map +1 -1
- package/cjs/theme/builtin/common/mark.js +2 -0
- package/cjs/theme/builtin/common/mark.js.map +1 -1
- package/cjs/typings/spec/common.d.ts +1 -0
- package/cjs/typings/spec/common.js.map +1 -1
- package/cjs/util/math.d.ts +1 -0
- package/cjs/util/math.js +7 -2
- package/cjs/util/math.js.map +1 -1
- package/esm/chart/base/base-chart-transformer.js +5 -3
- package/esm/chart/base/base-chart-transformer.js.map +1 -1
- package/esm/compile/mark/compilable-mark.d.ts +0 -3
- package/esm/compile/mark/compilable-mark.js +2 -9
- package/esm/compile/mark/compilable-mark.js.map +1 -1
- package/esm/compile/mark/interface.d.ts +0 -2
- package/esm/compile/mark/interface.js.map +1 -1
- package/esm/component/axis/cartesian/axis.d.ts +1 -0
- package/esm/component/axis/cartesian/axis.js +28 -1
- package/esm/component/axis/cartesian/axis.js.map +1 -1
- package/esm/component/axis/polar/axis.js +3 -16
- package/esm/component/axis/polar/axis.js.map +1 -1
- package/esm/component/axis/polar/util/common.js +2 -2
- package/esm/component/axis/polar/util/common.js.map +1 -1
- package/esm/component/brush/brush.js +4 -8
- package/esm/component/brush/brush.js.map +1 -1
- package/esm/component/crosshair/cartesian.js +4 -18
- package/esm/component/crosshair/cartesian.js.map +1 -1
- package/esm/component/crosshair/polar.js +4 -18
- package/esm/component/crosshair/polar.js.map +1 -1
- package/esm/component/custom-mark/custom-mark.d.ts +1 -3
- package/esm/component/custom-mark/custom-mark.js +3 -17
- package/esm/component/custom-mark/custom-mark.js.map +1 -1
- package/esm/component/data-zoom/data-zoom/data-zoom.d.ts +0 -3
- package/esm/component/data-zoom/data-zoom/data-zoom.js +1 -20
- package/esm/component/data-zoom/data-zoom/data-zoom.js.map +1 -1
- package/esm/component/data-zoom/scroll-bar/scroll-bar.d.ts +0 -3
- package/esm/component/data-zoom/scroll-bar/scroll-bar.js +1 -20
- package/esm/component/data-zoom/scroll-bar/scroll-bar.js.map +1 -1
- package/esm/component/indicator/indicator.js +4 -18
- package/esm/component/indicator/indicator.js.map +1 -1
- package/esm/component/interface/common.d.ts +1 -1
- package/esm/component/interface/common.js.map +1 -1
- package/esm/component/label/interface.d.ts +2 -2
- package/esm/component/label/interface.js.map +1 -1
- package/esm/component/legend/continuous/legend.js +7 -18
- package/esm/component/legend/continuous/legend.js.map +1 -1
- package/esm/component/legend/discrete/legend.js +3 -19
- package/esm/component/legend/discrete/legend.js.map +1 -1
- package/esm/component/map-label/component.js +3 -7
- package/esm/component/map-label/component.js.map +1 -1
- package/esm/component/marker/base-marker.js +4 -18
- package/esm/component/marker/base-marker.js.map +1 -1
- package/esm/component/player/player.d.ts +1 -3
- package/esm/component/player/player.js +1 -10
- package/esm/component/player/player.js.map +1 -1
- package/esm/component/title/title.js +4 -18
- package/esm/component/title/title.js.map +1 -1
- package/esm/component/tooltip/tooltip.d.ts +1 -3
- package/esm/component/tooltip/tooltip.js +1 -20
- package/esm/component/tooltip/tooltip.js.map +1 -1
- package/esm/component/util.d.ts +3 -0
- package/esm/component/util.js +14 -1
- package/esm/component/util.js.map +1 -1
- package/esm/core/index.d.ts +1 -1
- package/esm/core/index.js +1 -1
- package/esm/core/index.js.map +1 -1
- package/esm/event/event-dispatcher.js +1 -9
- package/esm/event/event-dispatcher.js.map +1 -1
- package/esm/series/base/base-series-transformer.js +7 -4
- package/esm/series/base/base-series-transformer.js.map +1 -1
- package/esm/series/base/base-series.js +3 -5
- package/esm/series/base/base-series.js.map +1 -1
- package/esm/series/dot/dot.d.ts +0 -1
- package/esm/series/dot/dot.js +0 -5
- package/esm/series/dot/dot.js.map +1 -1
- package/esm/series/polar/animation.d.ts +1 -0
- package/esm/series/polar/animation.js +15 -16
- package/esm/series/polar/animation.js.map +1 -1
- package/esm/series/polar/polar.js +9 -1
- package/esm/series/polar/polar.js.map +1 -1
- package/esm/series/radar/radar.js +1 -0
- package/esm/series/radar/radar.js.map +1 -1
- package/esm/series/word-cloud/base.js +20 -10
- package/esm/series/word-cloud/base.js.map +1 -1
- package/esm/theme/builtin/common/mark.js +2 -0
- package/esm/theme/builtin/common/mark.js.map +1 -1
- package/esm/typings/spec/common.d.ts +1 -0
- package/esm/typings/spec/common.js.map +1 -1
- package/esm/util/math.d.ts +1 -0
- package/esm/util/math.js +4 -0
- package/esm/util/math.js.map +1 -1
- package/package.json +15 -15
package/build/index.js
CHANGED
|
@@ -20829,7 +20829,13 @@
|
|
|
20829
20829
|
const RICHTEXT_UPDATE_TAG_KEY = ["width", "height", "ellipsis", "wordBreak", "verticalDirection", "maxHeight", "maxWidth", "textAlign", "textBaseline", "textConfig", "layoutDirection", "fill", "stroke", "fontSize", ...GRAPHIC_UPDATE_TAG_KEY];
|
|
20830
20830
|
class RichText extends Graphic {
|
|
20831
20831
|
constructor(params) {
|
|
20832
|
-
super(params), this.type = "richtext", this._currentHoverIcon = null, this.numberType = RICHTEXT_NUMBER_TYPE
|
|
20832
|
+
super(params), this.type = "richtext", this._currentHoverIcon = null, this.numberType = RICHTEXT_NUMBER_TYPE, this.onBeforeAttributeUpdate = (val, attributes, key) => {
|
|
20833
|
+
for (const key in val) if ("hoverIconId" === key) {
|
|
20834
|
+
if (val[key] === attributes[key]) continue;
|
|
20835
|
+
const icon = this._frameCache.icons.get(val[key]);
|
|
20836
|
+
this.updateHoverIconState(icon);
|
|
20837
|
+
}
|
|
20838
|
+
};
|
|
20833
20839
|
}
|
|
20834
20840
|
get width() {
|
|
20835
20841
|
var _a;
|
|
@@ -21000,8 +21006,9 @@
|
|
|
21000
21006
|
paragraphs = [],
|
|
21001
21007
|
textConfig = null != tc ? tc : _tc;
|
|
21002
21008
|
for (let i = 0; i < textConfig.length; i++) if ("image" in textConfig[i]) {
|
|
21003
|
-
const config = this.combinedStyleToCharacter(textConfig[i])
|
|
21004
|
-
|
|
21009
|
+
const config = this.combinedStyleToCharacter(textConfig[i]);
|
|
21010
|
+
config.lineWidth = void 0;
|
|
21011
|
+
const iconCache = config.id && this._frameCache && this._frameCache.icons && this._frameCache.icons.get(config.id);
|
|
21005
21012
|
if (iconCache) paragraphs.push(iconCache);else {
|
|
21006
21013
|
const icon = new RichTextIcon(config);
|
|
21007
21014
|
icon.successCallback = () => {
|
|
@@ -21051,14 +21058,16 @@
|
|
|
21051
21058
|
}
|
|
21052
21059
|
bindIconEvent() {
|
|
21053
21060
|
this.addEventListener("pointermove", e => {
|
|
21054
|
-
var _a, _b, _c, _d, _e;
|
|
21055
21061
|
const pickedIcon = this.pickIcon(e.global);
|
|
21056
|
-
pickedIcon && pickedIcon === this._currentHoverIcon || (pickedIcon ?
|
|
21062
|
+
pickedIcon && pickedIcon === this._currentHoverIcon || (pickedIcon ? this.setAttribute("hoverIconId", pickedIcon.richtextId) : !pickedIcon && this._currentHoverIcon && this.setAttribute("hoverIconId", void 0));
|
|
21057
21063
|
}), this.addEventListener("pointerleave", e => {
|
|
21058
|
-
|
|
21059
|
-
this._currentHoverIcon && (this._currentHoverIcon.setHoverState(!1), this._currentHoverIcon = null, null === (_a = this.stage) || void 0 === _a || _a.setCursor(), null === (_b = this.stage) || void 0 === _b || _b.renderNextFrame());
|
|
21064
|
+
this._currentHoverIcon && this.setAttribute("hoverIconId", void 0);
|
|
21060
21065
|
});
|
|
21061
21066
|
}
|
|
21067
|
+
updateHoverIconState(pickedIcon) {
|
|
21068
|
+
var _a, _b, _c, _d, _e;
|
|
21069
|
+
pickedIcon ? (null === (_a = this._currentHoverIcon) || void 0 === _a || _a.setHoverState(!1), this._currentHoverIcon = pickedIcon, this._currentHoverIcon.setHoverState(!0), null === (_b = this.stage) || void 0 === _b || _b.setCursor(pickedIcon.attribute.cursor), null === (_c = this.stage) || void 0 === _c || _c.renderNextFrame()) : (this._currentHoverIcon.setHoverState(!1), this._currentHoverIcon = null, null === (_d = this.stage) || void 0 === _d || _d.setCursor(), null === (_e = this.stage) || void 0 === _e || _e.renderNextFrame());
|
|
21070
|
+
}
|
|
21062
21071
|
pickIcon(point) {
|
|
21063
21072
|
const frameCache = this.getFrameCache(),
|
|
21064
21073
|
{
|
|
@@ -21066,7 +21075,7 @@
|
|
|
21066
21075
|
f: y
|
|
21067
21076
|
} = this.globalTransMatrix;
|
|
21068
21077
|
let pickIcon;
|
|
21069
|
-
return frameCache.icons.forEach(icon => {
|
|
21078
|
+
return frameCache.icons.forEach((icon, key) => {
|
|
21070
21079
|
var _a, _b;
|
|
21071
21080
|
const bounds = icon.AABBBounds.clone();
|
|
21072
21081
|
bounds.translate(icon._marginArray[3], icon._marginArray[0]), bounds.containsPoint({
|
|
@@ -22712,7 +22721,8 @@
|
|
|
22712
22721
|
});
|
|
22713
22722
|
}
|
|
22714
22723
|
pauseRender() {
|
|
22715
|
-
|
|
22724
|
+
let sr = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : -1;
|
|
22725
|
+
this._skipRender = sr;
|
|
22716
22726
|
}
|
|
22717
22727
|
resumeRender() {
|
|
22718
22728
|
this._skipRender = 0;
|
|
@@ -23019,8 +23029,7 @@
|
|
|
23019
23029
|
}
|
|
23020
23030
|
pick(x, y) {
|
|
23021
23031
|
if ("released" === this.releaseStatus) return;
|
|
23022
|
-
this.
|
|
23023
|
-
const result = this.pickerService.pick(this.children, new Point(x, y), {
|
|
23032
|
+
const result = this.getPickerService().pick(this.children, new Point(x, y), {
|
|
23024
23033
|
bounds: this.AABBBounds
|
|
23025
23034
|
});
|
|
23026
23035
|
return !(!(null == result ? void 0 : result.graphic) && !(null == result ? void 0 : result.group)) && result;
|
|
@@ -23105,6 +23114,9 @@
|
|
|
23105
23114
|
resumeTriggerEvent() {
|
|
23106
23115
|
this._eventSystem && this._eventSystem.resumeTriggerEvent();
|
|
23107
23116
|
}
|
|
23117
|
+
getPickerService() {
|
|
23118
|
+
return this.pickerService || (this.pickerService = container.get(PickerService)), this.pickerService;
|
|
23119
|
+
}
|
|
23108
23120
|
}
|
|
23109
23121
|
|
|
23110
23122
|
function createStage(params) {
|
|
@@ -32252,7 +32264,7 @@
|
|
|
32252
32264
|
default:
|
|
32253
32265
|
if (this._isCollectionBase) {
|
|
32254
32266
|
const point = this._idToPoint.get(text.attribute.id);
|
|
32255
|
-
!point || text.animates && text.animates.has("label-animate") || !relatedGraphic.containsPoint(point.x, point.y, IContainPointMode.LOCAL, null === (_c = this.stage) || void 0 === _c ? void 0 : _c.
|
|
32267
|
+
!point || text.animates && text.animates.has("label-animate") || !relatedGraphic.containsPoint(point.x, point.y, IContainPointMode.LOCAL, null === (_c = this.stage) || void 0 === _c ? void 0 : _c.getPickerService()) || (text.animate({
|
|
32256
32268
|
onStart: onStart
|
|
32257
32269
|
}).wait(delay).to(to, duration, easing), labelLine && labelLine.animate().wait(delay).to(to, duration, easing));
|
|
32258
32270
|
} else detail.animationState.isFirstFrameOfStep && (text.animate({
|
|
@@ -42844,6 +42856,9 @@
|
|
|
42844
42856
|
}
|
|
42845
42857
|
return seats.map(entry => entry / digits);
|
|
42846
42858
|
}
|
|
42859
|
+
function isValidPoint(p) {
|
|
42860
|
+
return isValidNumber$1(p.x) && isValidNumber$1(p.y);
|
|
42861
|
+
}
|
|
42847
42862
|
|
|
42848
42863
|
function eachSeries(regions, callback, filter) {
|
|
42849
42864
|
let flag = false;
|
|
@@ -44212,11 +44227,13 @@
|
|
|
44212
44227
|
},
|
|
44213
44228
|
word: {
|
|
44214
44229
|
style: {
|
|
44230
|
+
fontWeight: null,
|
|
44215
44231
|
fontSize: null
|
|
44216
44232
|
}
|
|
44217
44233
|
},
|
|
44218
44234
|
fillingWord: {
|
|
44219
44235
|
style: {
|
|
44236
|
+
fontWeight: null,
|
|
44220
44237
|
fontSize: null
|
|
44221
44238
|
}
|
|
44222
44239
|
},
|
|
@@ -50793,7 +50810,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
50793
50810
|
if (this._progressiveMarks && this._progressiveMarks.some(mark => mark.isDoingProgressive())) {
|
|
50794
50811
|
const raf = vglobal.getRequestAnimationFrame();
|
|
50795
50812
|
this._progressiveRafId = raf(this.handleProgressiveFrame);
|
|
50796
|
-
} else this._progressiveMarks && this._progressiveMarks.every(mark => mark.canAnimateAfterProgressive()) ? this.animate.animate() : this._progressiveMarks && (this._progressiveMarks = null);
|
|
50813
|
+
} else this._progressiveMarks && this.animate && this._progressiveMarks.every(mark => mark.canAnimateAfterProgressive()) ? this.animate.animate() : this._progressiveMarks && (this._progressiveMarks = null);
|
|
50797
50814
|
}
|
|
50798
50815
|
clearProgressive() {
|
|
50799
50816
|
if (this._progressiveRafId) {
|
|
@@ -55108,15 +55125,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
55108
55125
|
discreteLegend: 'legend',
|
|
55109
55126
|
continuousLegend: 'legend',
|
|
55110
55127
|
colorLegend: 'legend',
|
|
55111
|
-
sizeLegend: 'legend'
|
|
55112
|
-
label: 'label',
|
|
55113
|
-
markLine: 'markLine',
|
|
55114
|
-
markArea: 'markArea',
|
|
55115
|
-
markPoint: 'markPoint',
|
|
55116
|
-
polarMarkLine: 'polarMarkLine',
|
|
55117
|
-
polarMarkArea: 'polarMarkArea',
|
|
55118
|
-
polarMarkPoint: 'polarMarkPoint',
|
|
55119
|
-
geoMarkPoint: 'geoMarkPoint'
|
|
55128
|
+
sizeLegend: 'legend'
|
|
55120
55129
|
};
|
|
55121
55130
|
class EventDispatcher {
|
|
55122
55131
|
constructor(vchart, compiler) {
|
|
@@ -58862,12 +58871,6 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
58862
58871
|
setSupport3d(support3d) {
|
|
58863
58872
|
this._support3d = support3d;
|
|
58864
58873
|
}
|
|
58865
|
-
getFacet() {
|
|
58866
|
-
return this._facet;
|
|
58867
|
-
}
|
|
58868
|
-
setFacet(facet) {
|
|
58869
|
-
this._facet = facet;
|
|
58870
|
-
}
|
|
58871
58874
|
getInteractive() {
|
|
58872
58875
|
return this._interactive;
|
|
58873
58876
|
}
|
|
@@ -59047,14 +59050,13 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
59047
59050
|
return `${this.name}_${this.id}`;
|
|
59048
59051
|
}
|
|
59049
59052
|
compileData() {
|
|
59050
|
-
var _a;
|
|
59051
59053
|
if (isNil$1(this._data)) {
|
|
59052
59054
|
return;
|
|
59053
59055
|
}
|
|
59054
59056
|
this._data.compile();
|
|
59055
59057
|
const dataProduct = this._data.getProduct();
|
|
59056
59058
|
if (isValid$1(this._product) && isValid$1(dataProduct)) {
|
|
59057
|
-
this._product.join(dataProduct, this.key, undefined,
|
|
59059
|
+
this._product.join(dataProduct, this.key, undefined, this.getGroupKey());
|
|
59058
59060
|
}
|
|
59059
59061
|
}
|
|
59060
59062
|
updateStaticEncode() {
|
|
@@ -59073,7 +59075,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
59073
59075
|
if (this._unCompileChannel[key]) {
|
|
59074
59076
|
return;
|
|
59075
59077
|
}
|
|
59076
|
-
if (this._option.noSeparateStyle || isStateAttrChangeable(key, normalStyle, this.
|
|
59078
|
+
if (this._option.noSeparateStyle || isStateAttrChangeable(key, normalStyle, this.getGroupKey())) {
|
|
59077
59079
|
updateStyles[key] = {
|
|
59078
59080
|
callback: this.compileCommonAttributeCallback(key, 'normal'),
|
|
59079
59081
|
dependency: [this.stateKeyToSignalName('markUpdateRank')]
|
|
@@ -61143,7 +61145,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
61143
61145
|
};
|
|
61144
61146
|
registerVChartCore();
|
|
61145
61147
|
|
|
61146
|
-
const version = "1.12.
|
|
61148
|
+
const version = "1.12.5";
|
|
61147
61149
|
|
|
61148
61150
|
const addVChartProperty = (data, op) => {
|
|
61149
61151
|
const context = op.beforeCall();
|
|
@@ -62004,16 +62006,19 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
62004
62006
|
this.stack = true;
|
|
62005
62007
|
}
|
|
62006
62008
|
}
|
|
62007
|
-
_addMarkLabelSpec(spec, markName, labelSpecKey = 'label', styleHandlerName = 'initLabelMarkStyle', hasAnimation, head) {
|
|
62009
|
+
_addMarkLabelSpec(spec, markName, labelSpecKey = 'label', styleHandlerName = 'initLabelMarkStyle', hasAnimation = true, head) {
|
|
62008
62010
|
if (!spec) {
|
|
62009
62011
|
return;
|
|
62010
62012
|
}
|
|
62011
62013
|
const labels = array(spec[labelSpecKey]);
|
|
62012
62014
|
labels.forEach(labelSpec => {
|
|
62013
|
-
var _a, _b, _c
|
|
62015
|
+
var _a, _b, _c;
|
|
62014
62016
|
if (labelSpec && labelSpec.visible) {
|
|
62015
|
-
const
|
|
62016
|
-
|
|
62017
|
+
const { animation = true, animationUpdate: labelAnimationUpdate = true, animationEnter: labelAnimationEnter = true, animationExit: labelAnimationExit = true } = labelSpec;
|
|
62018
|
+
const { animationUpdate = true, animationEnter = true, animationExit = true } = spec;
|
|
62019
|
+
const animationEnabled = (_c = (_b = (_a = this._option) === null || _a === void 0 ? void 0 : _a.animation) !== null && _b !== void 0 ? _b : spec.animation) !== null && _c !== void 0 ? _c : labelSpec.animation;
|
|
62020
|
+
const labelAnimationEnabled = !!animationEnabled && !!hasAnimation;
|
|
62021
|
+
this.addLabelSpec(markName, Object.assign(Object.assign({}, labelSpec), { animation: labelAnimationEnabled ? animation : false, animationUpdate: labelAnimationEnabled && animationUpdate && labelAnimationUpdate ? animationUpdate : false, animationEnter: labelAnimationEnabled && animationEnter && labelAnimationEnter ? animationEnter : false, animationExit: labelAnimationEnabled && animationEnter && labelAnimationExit ? animationExit : false, getStyleHandler: (series) => { var _a; return (_a = series[styleHandlerName]) === null || _a === void 0 ? void 0 : _a.bind(series); } }), head);
|
|
62017
62022
|
}
|
|
62018
62023
|
});
|
|
62019
62024
|
}
|
|
@@ -62128,13 +62133,6 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
62128
62133
|
setSeriesField(field) {
|
|
62129
62134
|
if (isValid$1(field)) {
|
|
62130
62135
|
this._seriesField = field;
|
|
62131
|
-
this.getMarks()
|
|
62132
|
-
.filter(m => {
|
|
62133
|
-
return m.getDataView() === this.getViewData();
|
|
62134
|
-
})
|
|
62135
|
-
.forEach(m => {
|
|
62136
|
-
m.setFacet(this._seriesField);
|
|
62137
|
-
});
|
|
62138
62136
|
}
|
|
62139
62137
|
}
|
|
62140
62138
|
getGroups() {
|
|
@@ -62533,7 +62531,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
62533
62531
|
}
|
|
62534
62532
|
_createExtensionMark(spec, parentMark, namePrefix, index, options) {
|
|
62535
62533
|
var _a;
|
|
62536
|
-
const mark = this._createMark({ type: spec.type, name: `${namePrefix}_${index}` }, {
|
|
62534
|
+
const mark = this._createMark({ type: spec.type, name: isValid$1(spec.name) ? `${spec.name}` : `${namePrefix}_${index}` }, {
|
|
62537
62535
|
skipBeforeLayouted: true,
|
|
62538
62536
|
markSpec: spec,
|
|
62539
62537
|
parent: parentMark,
|
|
@@ -62546,6 +62544,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
62546
62544
|
if (!mark) {
|
|
62547
62545
|
return;
|
|
62548
62546
|
}
|
|
62547
|
+
if (isValid$1(spec.id)) {
|
|
62548
|
+
mark.setUserId(spec.id);
|
|
62549
|
+
}
|
|
62549
62550
|
if (options.hasAnimation) {
|
|
62550
62551
|
const config = animationConfig({}, userAnimationConfig(spec.type, spec, this._markAttributeContext));
|
|
62551
62552
|
mark.setAnimationConfig(config);
|
|
@@ -64343,6 +64344,25 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
64343
64344
|
}
|
|
64344
64345
|
return {};
|
|
64345
64346
|
}
|
|
64347
|
+
const getSpecInfo = (chartSpec, specKey, compType, filter) => {
|
|
64348
|
+
if (isNil$1(chartSpec[specKey])) {
|
|
64349
|
+
return undefined;
|
|
64350
|
+
}
|
|
64351
|
+
const isArraySpec = isArray$1(chartSpec[specKey]);
|
|
64352
|
+
const spec = isArraySpec ? chartSpec[specKey] : [chartSpec[specKey]];
|
|
64353
|
+
const specInfos = [];
|
|
64354
|
+
spec.forEach((s, i) => {
|
|
64355
|
+
if (s && (!filter || filter(s))) {
|
|
64356
|
+
specInfos.push({
|
|
64357
|
+
spec: s,
|
|
64358
|
+
specPath: isArraySpec ? [specKey, i] : [specKey],
|
|
64359
|
+
specInfoPath: ['component', specKey, i],
|
|
64360
|
+
type: compType
|
|
64361
|
+
});
|
|
64362
|
+
}
|
|
64363
|
+
});
|
|
64364
|
+
return specInfos;
|
|
64365
|
+
};
|
|
64346
64366
|
|
|
64347
64367
|
const DEFAULT_TITLE_STYLE = {
|
|
64348
64368
|
left: {
|
|
@@ -65846,7 +65866,10 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
65846
65866
|
},
|
|
65847
65867
|
items,
|
|
65848
65868
|
verticalLimitSize: this._verticalLimitSize,
|
|
65849
|
-
verticalMinSize
|
|
65869
|
+
verticalMinSize,
|
|
65870
|
+
label: {
|
|
65871
|
+
overflowLimitLength: this._getLabelOverflowLimit(isX)
|
|
65872
|
+
}
|
|
65850
65873
|
};
|
|
65851
65874
|
if (!ignoreGrid) {
|
|
65852
65875
|
attrs.grid = {
|
|
@@ -65990,6 +66013,35 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
65990
66013
|
_getNeedClearVRenderComponents() {
|
|
65991
66014
|
return this._unitText ? [this._unitText] : [];
|
|
65992
66015
|
}
|
|
66016
|
+
_getLabelOverflowLimit(isX) {
|
|
66017
|
+
var _a, _b;
|
|
66018
|
+
if (isX && ((_a = this._spec.label) === null || _a === void 0 ? void 0 : _a.visible) !== false && ((_b = this._spec.label) === null || _b === void 0 ? void 0 : _b.autoLimit) === true) {
|
|
66019
|
+
const axesComponents = this._option.getComponentsByKey('axes');
|
|
66020
|
+
const relativeRegions = this.getRegions();
|
|
66021
|
+
const relativeAxes = axesComponents.filter(item => {
|
|
66022
|
+
const orient = item.getOrient();
|
|
66023
|
+
return ((orient === 'left' || orient === 'right') &&
|
|
66024
|
+
item.getRegions().some(region => relativeRegions.includes(region)));
|
|
66025
|
+
});
|
|
66026
|
+
let leftLimitLength = 0;
|
|
66027
|
+
let rightLimitLength = 0;
|
|
66028
|
+
const startX = this.getLayoutStartPoint().x;
|
|
66029
|
+
const endX = startX + this.getLayoutRect().width;
|
|
66030
|
+
relativeAxes.forEach(axis => {
|
|
66031
|
+
const relativeStartX = axis.getLayoutStartPoint().x;
|
|
66032
|
+
if (axis.getOrient() === 'left' && relativeStartX === startX) {
|
|
66033
|
+
const leftAxisWidth = axis.getLayoutRect().width;
|
|
66034
|
+
leftLimitLength = Math.max(leftLimitLength, leftAxisWidth);
|
|
66035
|
+
}
|
|
66036
|
+
else if (relativeStartX === endX) {
|
|
66037
|
+
const rightAxisWidth = axis.getLayoutRect().width;
|
|
66038
|
+
rightLimitLength = Math.max(rightLimitLength, rightAxisWidth);
|
|
66039
|
+
}
|
|
66040
|
+
});
|
|
66041
|
+
return { left: leftLimitLength, right: rightLimitLength };
|
|
66042
|
+
}
|
|
66043
|
+
return undefined;
|
|
66044
|
+
}
|
|
65993
66045
|
}
|
|
65994
66046
|
CartesianAxis.type = ComponentTypeEnum.cartesianAxis;
|
|
65995
66047
|
CartesianAxis.specKey = 'axes';
|
|
@@ -68574,13 +68626,15 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
68574
68626
|
}
|
|
68575
68627
|
otherComponents.forEach(C => {
|
|
68576
68628
|
var _a;
|
|
68577
|
-
(_a = C.getSpecInfo(chartSpec, chartSpecInfo)) === null || _a === void 0 ? void 0 : _a.forEach(info => {
|
|
68629
|
+
(_a = (C.getSpecInfo ? C.getSpecInfo(chartSpec, chartSpecInfo) : getSpecInfo(chartSpec, C.specKey, C.type))) === null || _a === void 0 ? void 0 : _a.forEach(info => {
|
|
68578
68630
|
results.push(callbackfn(C, info, chartSpecInfo));
|
|
68579
68631
|
});
|
|
68580
68632
|
});
|
|
68581
|
-
(
|
|
68582
|
-
|
|
68583
|
-
|
|
68633
|
+
if (tooltip) {
|
|
68634
|
+
(_c = getSpecInfo(chartSpec, tooltip.specKey, tooltip.type)) === null || _c === void 0 ? void 0 : _c.forEach(info => {
|
|
68635
|
+
results.push(callbackfn(tooltip, info, chartSpecInfo));
|
|
68636
|
+
});
|
|
68637
|
+
}
|
|
68584
68638
|
return results;
|
|
68585
68639
|
}
|
|
68586
68640
|
transformSeriesSpec(spec) {
|
|
@@ -73929,8 +73983,16 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
73929
73983
|
if (isNil$1(angleValue) || isNil$1(radiusValue) || !this.angleAxisHelper || !this.radiusAxisHelper) {
|
|
73930
73984
|
return { x: Number.NaN, y: Number.NaN };
|
|
73931
73985
|
}
|
|
73932
|
-
const angle = this.angleAxisHelper.dataToPosition(array(angleValue));
|
|
73933
73986
|
const radius = this.radiusAxisHelper.dataToPosition(array(radiusValue));
|
|
73987
|
+
if (radius < 0) {
|
|
73988
|
+
if (this._invalidType === 'break' || this._invalidType === 'link') {
|
|
73989
|
+
return { x: Number.NaN, y: Number.NaN };
|
|
73990
|
+
}
|
|
73991
|
+
else if (this._invalidType === 'zero') {
|
|
73992
|
+
return this.angleAxisHelper.center();
|
|
73993
|
+
}
|
|
73994
|
+
}
|
|
73995
|
+
const angle = this.angleAxisHelper.dataToPosition(array(angleValue));
|
|
73934
73996
|
return this.angleAxisHelper.coordToPoint({ angle, radius });
|
|
73935
73997
|
}
|
|
73936
73998
|
dataToPosition(datum, checkInViewData) {
|
|
@@ -74403,7 +74465,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
74403
74465
|
y: chartSpec === null || chartSpec === void 0 ? void 0 : chartSpec.centerY
|
|
74404
74466
|
}
|
|
74405
74467
|
: undefined,
|
|
74406
|
-
outerRadius: (_f = (_e = (_d = spec.
|
|
74468
|
+
outerRadius: (_f = (_e = (_d = spec.outerRadius) !== null && _d !== void 0 ? _d : spec.radius) !== null && _e !== void 0 ? _e : chartSpec.outerRadius) !== null && _f !== void 0 ? _f : chartSpec.radius,
|
|
74407
74469
|
layoutRadius: chartSpec.layoutRadius
|
|
74408
74470
|
};
|
|
74409
74471
|
};
|
|
@@ -74982,30 +75044,11 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
74982
75044
|
return this._groupScales;
|
|
74983
75045
|
}
|
|
74984
75046
|
static getSpecInfo(chartSpec) {
|
|
74985
|
-
|
|
74986
|
-
if (!axesSpec) {
|
|
75047
|
+
if (!chartSpec[this.specKey]) {
|
|
74987
75048
|
return null;
|
|
74988
75049
|
}
|
|
74989
|
-
|
|
74990
|
-
|
|
74991
|
-
return null;
|
|
74992
|
-
}
|
|
74993
|
-
const { axisType, componentName, startAngle, endAngle, center, outerRadius, layoutRadius } = getPolarAxisInfo(axesSpec, chartSpec);
|
|
74994
|
-
axesSpec.center = center;
|
|
74995
|
-
axesSpec.startAngle = startAngle;
|
|
74996
|
-
axesSpec.endAngle = endAngle;
|
|
74997
|
-
axesSpec.outerRadius = outerRadius;
|
|
74998
|
-
axesSpec.type = axisType;
|
|
74999
|
-
axesSpec.layoutRadius = layoutRadius;
|
|
75000
|
-
return [
|
|
75001
|
-
{
|
|
75002
|
-
spec: axesSpec,
|
|
75003
|
-
specPath: [this.specKey],
|
|
75004
|
-
specInfoPath: ['component', this.specKey, 0],
|
|
75005
|
-
type: componentName
|
|
75006
|
-
}
|
|
75007
|
-
];
|
|
75008
|
-
}
|
|
75050
|
+
const isArraySpec = isArray$1(chartSpec[this.specKey]);
|
|
75051
|
+
const axesSpec = isArraySpec ? chartSpec[this.specKey] : [chartSpec[this.specKey]];
|
|
75009
75052
|
const specInfos = [];
|
|
75010
75053
|
let angleAxisIndex;
|
|
75011
75054
|
let radiusAxisIndex;
|
|
@@ -75024,7 +75067,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
75024
75067
|
s.layoutRadius = layoutRadius;
|
|
75025
75068
|
const info = {
|
|
75026
75069
|
spec: s,
|
|
75027
|
-
specPath: [this.specKey, i],
|
|
75070
|
+
specPath: isArraySpec ? [this.specKey, i] : [this.specKey],
|
|
75028
75071
|
specInfoPath: ['component', this.specKey, i],
|
|
75029
75072
|
type: componentName
|
|
75030
75073
|
};
|
|
@@ -75670,33 +75713,33 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
75670
75713
|
});
|
|
75671
75714
|
out.points = this.points;
|
|
75672
75715
|
}
|
|
75716
|
+
_interpolationSinglePoint(pointA, pointB, ratio) {
|
|
75717
|
+
if (!isValidPoint(pointA) && !isValidPoint(pointB)) {
|
|
75718
|
+
return pointB;
|
|
75719
|
+
}
|
|
75720
|
+
const polarPointA = this._pointToCoord(pointA);
|
|
75721
|
+
const polarPointB = this._pointToCoord(pointB);
|
|
75722
|
+
let angleA = normalizeAngle(polarPointA.angle);
|
|
75723
|
+
let angleB = normalizeAngle(polarPointB.angle);
|
|
75724
|
+
if (!isValidNumber$1(angleA) && isValidNumber$1(angleB)) {
|
|
75725
|
+
angleA = angleB;
|
|
75726
|
+
}
|
|
75727
|
+
if (isValidNumber$1(angleA) && !isValidNumber$1(angleB)) {
|
|
75728
|
+
angleB = angleA;
|
|
75729
|
+
}
|
|
75730
|
+
const angle = angleA + (angleB - angleA) * ratio;
|
|
75731
|
+
const radius = polarPointA.radius + (polarPointB.radius - polarPointA.radius) * ratio;
|
|
75732
|
+
return this._coordToPoint({ angle, radius });
|
|
75733
|
+
}
|
|
75673
75734
|
polarPointInterpolation(pointA, pointB, ratio) {
|
|
75674
|
-
const
|
|
75675
|
-
const
|
|
75676
|
-
|
|
75677
|
-
|
|
75678
|
-
|
|
75679
|
-
|
|
75680
|
-
|
|
75681
|
-
|
|
75682
|
-
if (!isValidNumber$1(angleA0) && isValidNumber$1(angleB0)) {
|
|
75683
|
-
angleA0 = angleB0;
|
|
75684
|
-
}
|
|
75685
|
-
if (isValidNumber$1(angleA0) && !isValidNumber$1(angleB0)) {
|
|
75686
|
-
angleB0 = angleA0;
|
|
75687
|
-
}
|
|
75688
|
-
if (!isValidNumber$1(angleA1) && isValidNumber$1(angleB1)) {
|
|
75689
|
-
angleA1 = angleB1;
|
|
75690
|
-
}
|
|
75691
|
-
if (isValidNumber$1(angleA1) && !isValidNumber$1(angleB1)) {
|
|
75692
|
-
angleB1 = angleA1;
|
|
75693
|
-
}
|
|
75694
|
-
const angle0 = angleA0 + (angleB0 - angleA0) * ratio;
|
|
75695
|
-
const radius0 = polarPointA0.radius + (polarPointB0.radius - polarPointA0.radius) * ratio;
|
|
75696
|
-
const angle1 = angleA1 + (angleB1 - angleA1) * ratio;
|
|
75697
|
-
const radius1 = polarPointA1.radius + (polarPointB1.radius - polarPointA1.radius) * ratio;
|
|
75698
|
-
const { x, y } = this._coordToPoint({ angle: angle0, radius: radius0 });
|
|
75699
|
-
const { x: x1, y: y1 } = this._coordToPoint({ angle: angle1, radius: radius1 });
|
|
75735
|
+
const { x, y } = this._interpolationSinglePoint(pointA, pointB, ratio);
|
|
75736
|
+
const { x: x1, y: y1 } = this._interpolationSinglePoint({
|
|
75737
|
+
x: pointA.x1,
|
|
75738
|
+
y: pointA.y1
|
|
75739
|
+
}, {
|
|
75740
|
+
x: pointB.x1,
|
|
75741
|
+
y: pointB.y1
|
|
75742
|
+
}, ratio);
|
|
75700
75743
|
const point = new Point(x, y, x1, y1);
|
|
75701
75744
|
point.defined = pointB.defined;
|
|
75702
75745
|
return point;
|
|
@@ -75853,6 +75896,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
75853
75896
|
initAreaMark(progressive, isSeriesMark) {
|
|
75854
75897
|
var _a, _b;
|
|
75855
75898
|
this._areaMark = this._createMark(RadarSeries.mark.area, {
|
|
75899
|
+
groupKey: this._seriesField,
|
|
75856
75900
|
progressive,
|
|
75857
75901
|
isSeriesMark,
|
|
75858
75902
|
customShape: (_a = this._spec.area) === null || _a === void 0 ? void 0 : _a.customShape,
|
|
@@ -76124,14 +76168,6 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
76124
76168
|
level: TransformLevel.dotObjFlat
|
|
76125
76169
|
}, false);
|
|
76126
76170
|
}
|
|
76127
|
-
setSeriesField(field) {
|
|
76128
|
-
if (isValid$1(field)) {
|
|
76129
|
-
this._seriesField = field;
|
|
76130
|
-
this.getMarksInType(["line", "area"]).forEach(m => {
|
|
76131
|
-
m.setFacet(this._seriesField);
|
|
76132
|
-
});
|
|
76133
|
-
}
|
|
76134
|
-
}
|
|
76135
76171
|
getStatisticFields() {
|
|
76136
76172
|
return [{ key: this._fieldY[0], operations: ['values'], customize: this._xDimensionStatisticsDomain }];
|
|
76137
76173
|
}
|
|
@@ -77617,7 +77653,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
77617
77653
|
this._wordMark.getProduct().transform(wordCloudTransforms);
|
|
77618
77654
|
}
|
|
77619
77655
|
_getCommonTransformOptions() {
|
|
77620
|
-
var _a, _b, _c, _d, _e, _f
|
|
77656
|
+
var _a, _b, _c, _d, _e, _f;
|
|
77621
77657
|
const { width, height } = this._region.getLayoutRect();
|
|
77622
77658
|
const wordSpec = (_a = this._spec.word) !== null && _a !== void 0 ? _a : {};
|
|
77623
77659
|
const wordStyleSpec = (_b = wordSpec.style) !== null && _b !== void 0 ? _b : {};
|
|
@@ -77637,13 +77673,17 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
77637
77673
|
fontSize: this._valueField ? { field: this._valueField } : this._fontSizeRange[0],
|
|
77638
77674
|
fontSizeRange: this._fontSizeRange === 'auto' ? null : this._fontSizeRange,
|
|
77639
77675
|
padding: (_e = (_d = this._spec.word) === null || _d === void 0 ? void 0 : _d.padding) !== null && _e !== void 0 ? _e : DEFAULT_FONT_PADDING,
|
|
77640
|
-
fontFamily: (
|
|
77641
|
-
|
|
77676
|
+
fontFamily: isValid$1(this._spec.fontFamilyField)
|
|
77677
|
+
? { field: this._spec.fontFamilyField }
|
|
77678
|
+
: (_f = wordStyleSpec.fontFamily) !== null && _f !== void 0 ? _f : this._defaultFontFamily,
|
|
77679
|
+
fontWeight: isValid$1(this._spec.fontWeightField)
|
|
77642
77680
|
? { field: this._spec.fontWeightField }
|
|
77643
|
-
:
|
|
77644
|
-
?
|
|
77645
|
-
:
|
|
77646
|
-
|
|
77681
|
+
: isValid$1(wordStyleSpec.fontWeight)
|
|
77682
|
+
? wordStyleSpec.fontWeight
|
|
77683
|
+
: isValid$1(this._valueField)
|
|
77684
|
+
? this._calculateFontWeight
|
|
77685
|
+
: 'normal',
|
|
77686
|
+
fontStyle: isValid$1(this._spec.fontStyleField) ? { field: this._spec.fontStyleField } : wordStyleSpec.fontStyle
|
|
77647
77687
|
};
|
|
77648
77688
|
}
|
|
77649
77689
|
_wordCloudTransformOption() {
|
|
@@ -77651,10 +77691,18 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
77651
77691
|
return Object.assign(Object.assign({}, this._getCommonTransformOptions()), { layoutType: this._wordCloudConfig.layoutMode, rotate: this._rotateAngles, randomVisible: (_a = this._spec.random) !== null && _a !== void 0 ? _a : DEFAULT_RANDOM, clip: this._wordCloudConfig.drawOutOfBound === 'clip', shrink: this._wordCloudConfig.zoomToFit.shrink, enlarge: this._wordCloudConfig.zoomToFit.enlarge, minFontSize: this._wordCloudConfig.zoomToFit.fontSizeLimitMin, progressiveTime: this._wordCloudConfig.progressiveTime, progressiveStep: this._wordCloudConfig.progressiveStep, repeatFill: this._wordCloudConfig.zoomToFit.repeat });
|
|
77652
77692
|
}
|
|
77653
77693
|
_wordCloudShapeTransformOption() {
|
|
77654
|
-
var _a, _b, _c, _d, _e, _f
|
|
77694
|
+
var _a, _b, _c, _d, _e, _f;
|
|
77655
77695
|
const fillingWordStyleSpec = (_b = (_a = this._spec.fillingWord) === null || _a === void 0 ? void 0 : _a.style) !== null && _b !== void 0 ? _b : {};
|
|
77656
77696
|
const wordCloudShapeConfig = (_c = this._wordCloudShapeConfig) !== null && _c !== void 0 ? _c : {};
|
|
77657
|
-
return Object.assign(Object.assign(Object.assign({}, wordCloudShapeConfig), this._getCommonTransformOptions()), { rotateList: this._rotateAngles, fillingRotateList: wordCloudShapeConfig.fillingRotateAngles, fillingFontFamily: (
|
|
77697
|
+
return Object.assign(Object.assign(Object.assign({}, wordCloudShapeConfig), this._getCommonTransformOptions()), { rotateList: this._rotateAngles, fillingRotateList: wordCloudShapeConfig.fillingRotateAngles, fillingFontFamily: isValid$1(wordCloudShapeConfig.fillingFontFamilyField)
|
|
77698
|
+
? { field: wordCloudShapeConfig.fillingFontFamilyField }
|
|
77699
|
+
: (_d = fillingWordStyleSpec.fontFamily) !== null && _d !== void 0 ? _d : this._defaultFontFamily, fillingPadding: (_f = (_e = this._spec.fillingWord) === null || _e === void 0 ? void 0 : _e.padding) !== null && _f !== void 0 ? _f : DEFAULT_FONT_PADDING, fillingFontStyle: isValid$1(wordCloudShapeConfig.fillingFontStyleField)
|
|
77700
|
+
? { field: wordCloudShapeConfig.fillingFontStyleField }
|
|
77701
|
+
: fillingWordStyleSpec.fontStyle, fillingFontWeight: isValid$1(wordCloudShapeConfig.fillingFontWeightField)
|
|
77702
|
+
? {
|
|
77703
|
+
field: wordCloudShapeConfig.fillingFontWeightField
|
|
77704
|
+
}
|
|
77705
|
+
: fillingWordStyleSpec.fontWeight });
|
|
77658
77706
|
}
|
|
77659
77707
|
getStatisticFields() {
|
|
77660
77708
|
const fields = [];
|
|
@@ -77820,7 +77868,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
77820
77868
|
maxFailCount = Math.min(this.options.maxFailCount, this.originalData.length);
|
|
77821
77869
|
for (; i < this.data.length && this.failCount < maxFailCount;) {
|
|
77822
77870
|
const drawn = this.layoutWord(i);
|
|
77823
|
-
if (curWordTryCount++, (drawn || curWordTryCount
|
|
77871
|
+
if (curWordTryCount++, (drawn || curWordTryCount > maxSingleWordTryCount) && (i++, curWordTryCount = 0, this.failCount = drawn ? 0 : this.failCount + 1), this.progressiveIndex = i, this.exceedTime()) break;
|
|
77824
77872
|
i === this.data.length && this.failCount < maxFailCount && this.options.repeatFill && this.canRepeat() && (this.data = [...this.data, ...this.originalData.map(entry => Object.assign(Object.assign({}, entry), {
|
|
77825
77873
|
isFill: !0
|
|
77826
77874
|
}))], this.isTryRepeatFill = !0);
|
|
@@ -88891,35 +88939,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
88891
88939
|
this.name = ComponentTypeEnum.discreteLegend;
|
|
88892
88940
|
}
|
|
88893
88941
|
static getSpecInfo(chartSpec) {
|
|
88894
|
-
|
|
88895
|
-
|
|
88896
|
-
return undefined;
|
|
88897
|
-
}
|
|
88898
|
-
if (!isArray$1(legendSpec)) {
|
|
88899
|
-
if (!legendSpec.type || legendSpec.type === 'discrete') {
|
|
88900
|
-
return [
|
|
88901
|
-
{
|
|
88902
|
-
spec: legendSpec,
|
|
88903
|
-
specPath: [this.specKey],
|
|
88904
|
-
specInfoPath: ['component', this.specKey, 0],
|
|
88905
|
-
type: ComponentTypeEnum.discreteLegend
|
|
88906
|
-
}
|
|
88907
|
-
];
|
|
88908
|
-
}
|
|
88909
|
-
return undefined;
|
|
88910
|
-
}
|
|
88911
|
-
const specInfos = [];
|
|
88912
|
-
legendSpec.forEach((s, i) => {
|
|
88913
|
-
if (!s.type || s.type === 'discrete') {
|
|
88914
|
-
specInfos.push({
|
|
88915
|
-
spec: s,
|
|
88916
|
-
specPath: [this.specKey, i],
|
|
88917
|
-
specInfoPath: ['component', this.specKey, i],
|
|
88918
|
-
type: ComponentTypeEnum.discreteLegend
|
|
88919
|
-
});
|
|
88920
|
-
}
|
|
88942
|
+
return getSpecInfo(chartSpec, this.specKey, this.type, (s) => {
|
|
88943
|
+
return !s.type || s.type === 'discrete';
|
|
88921
88944
|
});
|
|
88922
|
-
return specInfos;
|
|
88923
88945
|
}
|
|
88924
88946
|
init(option) {
|
|
88925
88947
|
super.init(option);
|
|
@@ -89220,35 +89242,15 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
89220
89242
|
const SIZE = [2, 10];
|
|
89221
89243
|
class ContinuousLegend extends BaseLegend {
|
|
89222
89244
|
static getSpecInfo(chartSpec) {
|
|
89223
|
-
const
|
|
89224
|
-
|
|
89225
|
-
return undefined;
|
|
89226
|
-
}
|
|
89227
|
-
if (!isArray$1(legendSpec)) {
|
|
89228
|
-
if (isContinuousLegend(legendSpec.type)) {
|
|
89229
|
-
return [
|
|
89230
|
-
{
|
|
89231
|
-
spec: legendSpec,
|
|
89232
|
-
specPath: [this.specKey],
|
|
89233
|
-
specInfoPath: ['component', this.specKey, 0],
|
|
89234
|
-
type: legendSpec.type === 'color' ? ComponentTypeEnum.colorLegend : ComponentTypeEnum.sizeLegend
|
|
89235
|
-
}
|
|
89236
|
-
];
|
|
89237
|
-
}
|
|
89238
|
-
return undefined;
|
|
89239
|
-
}
|
|
89240
|
-
const specInfos = [];
|
|
89241
|
-
legendSpec.forEach((s, i) => {
|
|
89242
|
-
if (isContinuousLegend(s.type)) {
|
|
89243
|
-
specInfos.push({
|
|
89244
|
-
spec: s,
|
|
89245
|
-
specPath: [this.specKey, i],
|
|
89246
|
-
specInfoPath: ['component', this.specKey, i],
|
|
89247
|
-
type: s.type === 'color' ? ComponentTypeEnum.colorLegend : ComponentTypeEnum.sizeLegend
|
|
89248
|
-
});
|
|
89249
|
-
}
|
|
89245
|
+
const infos = getSpecInfo(chartSpec, this.specKey, this.type, (s) => {
|
|
89246
|
+
return isContinuousLegend(s.type);
|
|
89250
89247
|
});
|
|
89251
|
-
|
|
89248
|
+
if (infos) {
|
|
89249
|
+
infos.forEach(info => {
|
|
89250
|
+
info.type = info.spec.type === 'color' ? ComponentTypeEnum.colorLegend : ComponentTypeEnum.sizeLegend;
|
|
89251
|
+
});
|
|
89252
|
+
}
|
|
89253
|
+
return infos;
|
|
89252
89254
|
}
|
|
89253
89255
|
constructor(spec, options) {
|
|
89254
89256
|
super(spec, options);
|
|
@@ -90649,32 +90651,6 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
90649
90651
|
return 1;
|
|
90650
90652
|
};
|
|
90651
90653
|
}
|
|
90652
|
-
static getSpecInfo(chartSpec) {
|
|
90653
|
-
const tooltipSpec = chartSpec[this.specKey];
|
|
90654
|
-
if (!tooltipSpec) {
|
|
90655
|
-
return null;
|
|
90656
|
-
}
|
|
90657
|
-
if (!isArray$1(tooltipSpec)) {
|
|
90658
|
-
return [
|
|
90659
|
-
{
|
|
90660
|
-
spec: tooltipSpec,
|
|
90661
|
-
specPath: [this.specKey],
|
|
90662
|
-
specInfoPath: ['component', this.specKey, 0],
|
|
90663
|
-
type: ComponentTypeEnum.tooltip
|
|
90664
|
-
}
|
|
90665
|
-
];
|
|
90666
|
-
}
|
|
90667
|
-
const specInfos = [];
|
|
90668
|
-
tooltipSpec.forEach((s, i) => {
|
|
90669
|
-
specInfos.push({
|
|
90670
|
-
spec: s,
|
|
90671
|
-
specPath: [this.specKey, i],
|
|
90672
|
-
specInfoPath: ['component', this.specKey, i],
|
|
90673
|
-
type: ComponentTypeEnum.tooltip
|
|
90674
|
-
});
|
|
90675
|
-
});
|
|
90676
|
-
return specInfos;
|
|
90677
|
-
}
|
|
90678
90654
|
isTooltipShown() {
|
|
90679
90655
|
return this._isTooltipShown;
|
|
90680
90656
|
}
|
|
@@ -91611,36 +91587,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
91611
91587
|
|
|
91612
91588
|
class CartesianCrossHair extends BaseCrossHair {
|
|
91613
91589
|
static getSpecInfo(chartSpec) {
|
|
91614
|
-
|
|
91615
|
-
|
|
91616
|
-
return undefined;
|
|
91617
|
-
}
|
|
91618
|
-
if (!isArray$1(crosshairSpec)) {
|
|
91619
|
-
if ((crosshairSpec.xField && crosshairSpec.xField.visible !== false) ||
|
|
91620
|
-
(crosshairSpec.yField && crosshairSpec.yField.visible !== false)) {
|
|
91621
|
-
return [
|
|
91622
|
-
{
|
|
91623
|
-
spec: crosshairSpec,
|
|
91624
|
-
specPath: [this.specKey],
|
|
91625
|
-
specInfoPath: ['component', this.specKey, 0],
|
|
91626
|
-
type: ComponentTypeEnum.cartesianCrosshair
|
|
91627
|
-
}
|
|
91628
|
-
];
|
|
91629
|
-
}
|
|
91630
|
-
return undefined;
|
|
91631
|
-
}
|
|
91632
|
-
const specInfos = [];
|
|
91633
|
-
crosshairSpec.forEach((s, i) => {
|
|
91634
|
-
if ((s.xField && s.xField.visible !== false) || (s.yField && s.yField.visible !== false)) {
|
|
91635
|
-
specInfos.push({
|
|
91636
|
-
spec: s,
|
|
91637
|
-
specPath: [this.specKey, i],
|
|
91638
|
-
specInfoPath: ['component', this.specKey, i],
|
|
91639
|
-
type: ComponentTypeEnum.cartesianCrosshair
|
|
91640
|
-
});
|
|
91641
|
-
}
|
|
91590
|
+
return getSpecInfo(chartSpec, this.specKey, this.type, (s) => {
|
|
91591
|
+
return (s.xField && s.xField.visible !== false) || (s.yField && s.yField.visible !== false);
|
|
91642
91592
|
});
|
|
91643
|
-
return specInfos;
|
|
91644
91593
|
}
|
|
91645
91594
|
constructor(spec, options) {
|
|
91646
91595
|
super(spec, options);
|
|
@@ -92107,36 +92056,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
92107
92056
|
|
|
92108
92057
|
class PolarCrossHair extends BaseCrossHair {
|
|
92109
92058
|
static getSpecInfo(chartSpec) {
|
|
92110
|
-
|
|
92111
|
-
|
|
92112
|
-
return undefined;
|
|
92113
|
-
}
|
|
92114
|
-
if (!isArray$1(crosshairSpec)) {
|
|
92115
|
-
if ((crosshairSpec.categoryField && crosshairSpec.categoryField.visible !== false) ||
|
|
92116
|
-
(crosshairSpec.valueField && crosshairSpec.valueField.visible !== false)) {
|
|
92117
|
-
return [
|
|
92118
|
-
{
|
|
92119
|
-
spec: crosshairSpec,
|
|
92120
|
-
specPath: [this.specKey],
|
|
92121
|
-
specInfoPath: ['component', this.specKey, 0],
|
|
92122
|
-
type: ComponentTypeEnum.polarCrosshair
|
|
92123
|
-
}
|
|
92124
|
-
];
|
|
92125
|
-
}
|
|
92126
|
-
return undefined;
|
|
92127
|
-
}
|
|
92128
|
-
const specInfos = [];
|
|
92129
|
-
crosshairSpec.forEach((s, i) => {
|
|
92130
|
-
if ((s.categoryField && s.categoryField.visible !== false) || (s.valueField && s.valueField.visible !== false)) {
|
|
92131
|
-
specInfos.push({
|
|
92132
|
-
spec: s,
|
|
92133
|
-
specPath: [this.specKey, i],
|
|
92134
|
-
specInfoPath: ['component', this.specKey, i],
|
|
92135
|
-
type: ComponentTypeEnum.polarCrosshair
|
|
92136
|
-
});
|
|
92137
|
-
}
|
|
92059
|
+
return getSpecInfo(chartSpec, this.specKey, this.type, (s) => {
|
|
92060
|
+
return (s.categoryField && s.categoryField.visible !== false) || (s.valueField && s.valueField.visible !== false);
|
|
92138
92061
|
});
|
|
92139
|
-
return specInfos;
|
|
92140
92062
|
}
|
|
92141
92063
|
constructor(spec, options) {
|
|
92142
92064
|
super(spec, options);
|
|
@@ -93248,32 +93170,6 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
93248
93170
|
}
|
|
93249
93171
|
|
|
93250
93172
|
class DataZoom extends DataFilterBaseComponent {
|
|
93251
|
-
static getSpecInfo(chartSpec) {
|
|
93252
|
-
const compSpec = chartSpec[this.specKey];
|
|
93253
|
-
if (isNil$1(compSpec)) {
|
|
93254
|
-
return undefined;
|
|
93255
|
-
}
|
|
93256
|
-
if (!isArray$1(compSpec)) {
|
|
93257
|
-
return [
|
|
93258
|
-
{
|
|
93259
|
-
spec: compSpec,
|
|
93260
|
-
specPath: [this.specKey],
|
|
93261
|
-
specInfoPath: ['component', this.specKey, 0],
|
|
93262
|
-
type: ComponentTypeEnum.dataZoom
|
|
93263
|
-
}
|
|
93264
|
-
];
|
|
93265
|
-
}
|
|
93266
|
-
const specInfos = [];
|
|
93267
|
-
compSpec.forEach((s, i) => {
|
|
93268
|
-
specInfos.push({
|
|
93269
|
-
spec: s,
|
|
93270
|
-
specPath: [this.specKey, i],
|
|
93271
|
-
specInfoPath: ['component', this.specKey, i],
|
|
93272
|
-
type: ComponentTypeEnum.dataZoom
|
|
93273
|
-
});
|
|
93274
|
-
});
|
|
93275
|
-
return specInfos;
|
|
93276
|
-
}
|
|
93277
93173
|
constructor(spec, options) {
|
|
93278
93174
|
var _a;
|
|
93279
93175
|
super(spec, options);
|
|
@@ -93625,32 +93521,6 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
93625
93521
|
};
|
|
93626
93522
|
|
|
93627
93523
|
class ScrollBar extends DataFilterBaseComponent {
|
|
93628
|
-
static getSpecInfo(chartSpec) {
|
|
93629
|
-
const compSpec = chartSpec[this.specKey];
|
|
93630
|
-
if (isNil$1(compSpec)) {
|
|
93631
|
-
return undefined;
|
|
93632
|
-
}
|
|
93633
|
-
if (!isArray$1(compSpec)) {
|
|
93634
|
-
return [
|
|
93635
|
-
{
|
|
93636
|
-
spec: compSpec,
|
|
93637
|
-
specPath: [this.specKey],
|
|
93638
|
-
specInfoPath: ['component', this.specKey, 0],
|
|
93639
|
-
type: ComponentTypeEnum.scrollBar
|
|
93640
|
-
}
|
|
93641
|
-
];
|
|
93642
|
-
}
|
|
93643
|
-
const specInfos = [];
|
|
93644
|
-
compSpec.forEach((s, i) => {
|
|
93645
|
-
specInfos.push({
|
|
93646
|
-
spec: s,
|
|
93647
|
-
specPath: [this.specKey, i],
|
|
93648
|
-
specInfoPath: ['component', this.specKey, i],
|
|
93649
|
-
type: ComponentTypeEnum.scrollBar
|
|
93650
|
-
});
|
|
93651
|
-
});
|
|
93652
|
-
return specInfos;
|
|
93653
|
-
}
|
|
93654
93524
|
constructor(spec, options) {
|
|
93655
93525
|
var _a;
|
|
93656
93526
|
super(spec, options);
|
|
@@ -93829,35 +93699,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
93829
93699
|
this._activeDatum = null;
|
|
93830
93700
|
}
|
|
93831
93701
|
static getSpecInfo(chartSpec) {
|
|
93832
|
-
|
|
93833
|
-
return
|
|
93834
|
-
}
|
|
93835
|
-
const indicatorSpec = chartSpec[this.specKey];
|
|
93836
|
-
if (!isArray$1(indicatorSpec)) {
|
|
93837
|
-
if (indicatorSpec.visible === false) {
|
|
93838
|
-
return [];
|
|
93839
|
-
}
|
|
93840
|
-
return [
|
|
93841
|
-
{
|
|
93842
|
-
spec: indicatorSpec,
|
|
93843
|
-
specPath: [this.specKey],
|
|
93844
|
-
specInfoPath: ['component', this.specKey, 0],
|
|
93845
|
-
type: ComponentTypeEnum.indicator
|
|
93846
|
-
}
|
|
93847
|
-
];
|
|
93848
|
-
}
|
|
93849
|
-
const specInfos = [];
|
|
93850
|
-
indicatorSpec.forEach((s, i) => {
|
|
93851
|
-
if (s && s.visible !== false) {
|
|
93852
|
-
specInfos.push({
|
|
93853
|
-
spec: s,
|
|
93854
|
-
specPath: [this.specKey, i],
|
|
93855
|
-
specInfoPath: ['component', this.specKey, i],
|
|
93856
|
-
type: ComponentTypeEnum.indicator
|
|
93857
|
-
});
|
|
93858
|
-
}
|
|
93702
|
+
return getSpecInfo(chartSpec, this.specKey, this.type, (s) => {
|
|
93703
|
+
return s && s.visible !== false;
|
|
93859
93704
|
});
|
|
93860
|
-
return specInfos;
|
|
93861
93705
|
}
|
|
93862
93706
|
created() {
|
|
93863
93707
|
super.created();
|
|
@@ -94754,34 +94598,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
94754
94598
|
return 'cartesian';
|
|
94755
94599
|
}
|
|
94756
94600
|
static getSpecInfo(chartSpec) {
|
|
94757
|
-
|
|
94758
|
-
|
|
94759
|
-
return undefined;
|
|
94760
|
-
}
|
|
94761
|
-
if (!isArray$1(markerSpec) &&
|
|
94762
|
-
markerSpec.visible !== false &&
|
|
94763
|
-
this._getMarkerCoordinateType(markerSpec) === this.coordinateType) {
|
|
94764
|
-
return [
|
|
94765
|
-
{
|
|
94766
|
-
spec: markerSpec,
|
|
94767
|
-
specPath: [this.specKey],
|
|
94768
|
-
specInfoPath: ['component', this.specKey, 0],
|
|
94769
|
-
type: this.type
|
|
94770
|
-
}
|
|
94771
|
-
];
|
|
94772
|
-
}
|
|
94773
|
-
const specInfos = [];
|
|
94774
|
-
array(markerSpec).forEach((m, i) => {
|
|
94775
|
-
if (m.visible !== false && this._getMarkerCoordinateType(m) === this.coordinateType) {
|
|
94776
|
-
specInfos.push({
|
|
94777
|
-
spec: m,
|
|
94778
|
-
specPath: [this.specKey, i],
|
|
94779
|
-
specInfoPath: ['component', this.specKey, i],
|
|
94780
|
-
type: this.type
|
|
94781
|
-
});
|
|
94782
|
-
}
|
|
94601
|
+
return getSpecInfo(chartSpec, this.specKey, this.type, (s) => {
|
|
94602
|
+
return s.visible !== false && this._getMarkerCoordinateType(s) === this.coordinateType;
|
|
94783
94603
|
});
|
|
94784
|
-
return specInfos;
|
|
94785
94604
|
}
|
|
94786
94605
|
created() {
|
|
94787
94606
|
super.created();
|
|
@@ -95449,32 +95268,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
95449
95268
|
this._layout && (this._layout.layoutOrient = this._orient);
|
|
95450
95269
|
}
|
|
95451
95270
|
static getSpecInfo(chartSpec) {
|
|
95452
|
-
|
|
95453
|
-
|
|
95454
|
-
return null;
|
|
95455
|
-
}
|
|
95456
|
-
if (!isArray$1(titleSpec)) {
|
|
95457
|
-
return [
|
|
95458
|
-
{
|
|
95459
|
-
spec: titleSpec,
|
|
95460
|
-
specPath: [this.specKey],
|
|
95461
|
-
specInfoPath: ['component', this.specKey, 0],
|
|
95462
|
-
type: ComponentTypeEnum.title
|
|
95463
|
-
}
|
|
95464
|
-
];
|
|
95465
|
-
}
|
|
95466
|
-
const specInfos = [];
|
|
95467
|
-
titleSpec.forEach((s, i) => {
|
|
95468
|
-
if (s.visible !== false) {
|
|
95469
|
-
specInfos.push({
|
|
95470
|
-
spec: s,
|
|
95471
|
-
specPath: [this.specKey, i],
|
|
95472
|
-
specInfoPath: ['component', this.specKey, i],
|
|
95473
|
-
type: ComponentTypeEnum.title
|
|
95474
|
-
});
|
|
95475
|
-
}
|
|
95271
|
+
return getSpecInfo(chartSpec, this.specKey, ComponentTypeEnum.title, (s) => {
|
|
95272
|
+
return s.visible !== false;
|
|
95476
95273
|
});
|
|
95477
|
-
return specInfos;
|
|
95478
95274
|
}
|
|
95479
95275
|
onRender(ctx) {
|
|
95480
95276
|
}
|
|
@@ -96084,20 +95880,6 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
96084
95880
|
set layoutOrient(v) {
|
|
96085
95881
|
this._orient = v;
|
|
96086
95882
|
}
|
|
96087
|
-
static getSpecInfo(chartSpec) {
|
|
96088
|
-
const playerSpec = chartSpec[this.specKey];
|
|
96089
|
-
if (isNil$1(playerSpec)) {
|
|
96090
|
-
return null;
|
|
96091
|
-
}
|
|
96092
|
-
return [
|
|
96093
|
-
{
|
|
96094
|
-
spec: playerSpec,
|
|
96095
|
-
specPath: [this.specKey],
|
|
96096
|
-
specInfoPath: ['component', this.specKey, 0],
|
|
96097
|
-
type: ComponentTypeEnum.player
|
|
96098
|
-
}
|
|
96099
|
-
];
|
|
96100
|
-
}
|
|
96101
95883
|
setAttrFromSpec() {
|
|
96102
95884
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
96103
95885
|
super.setAttrFromSpec();
|
|
@@ -97076,18 +96858,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
97076
96858
|
});
|
|
97077
96859
|
}
|
|
97078
96860
|
static getSpecInfo(chartSpec) {
|
|
97079
|
-
|
|
97080
|
-
|
|
97081
|
-
|
|
97082
|
-
}
|
|
97083
|
-
return [
|
|
97084
|
-
{
|
|
97085
|
-
spec: brushSpec,
|
|
97086
|
-
specPath: [this.specKey],
|
|
97087
|
-
specInfoPath: ['component', this.specKey, 0],
|
|
97088
|
-
type: ComponentTypeEnum.brush
|
|
97089
|
-
}
|
|
97090
|
-
];
|
|
96861
|
+
return getSpecInfo(chartSpec, this.specKey, this.type, (s) => {
|
|
96862
|
+
return s.visible !== false;
|
|
96863
|
+
});
|
|
97091
96864
|
}
|
|
97092
96865
|
created() {
|
|
97093
96866
|
super.created();
|
|
@@ -97606,30 +97379,6 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
97606
97379
|
this.layoutZIndex = LayoutZIndex.CustomMark;
|
|
97607
97380
|
this.layoutLevel = LayoutLevel.CustomMark;
|
|
97608
97381
|
}
|
|
97609
|
-
static getSpecInfo(chartSpec) {
|
|
97610
|
-
const spec = chartSpec[this.specKey];
|
|
97611
|
-
if (!spec) {
|
|
97612
|
-
return null;
|
|
97613
|
-
}
|
|
97614
|
-
if (!isArray$1(spec)) {
|
|
97615
|
-
return [
|
|
97616
|
-
{
|
|
97617
|
-
spec,
|
|
97618
|
-
specPath: [this.specKey],
|
|
97619
|
-
specInfoPath: ['component', this.specKey, 0],
|
|
97620
|
-
type: ComponentTypeEnum.customMark
|
|
97621
|
-
}
|
|
97622
|
-
];
|
|
97623
|
-
}
|
|
97624
|
-
return spec.map((specItem, i) => {
|
|
97625
|
-
return {
|
|
97626
|
-
spec: specItem,
|
|
97627
|
-
specPath: [this.specKey, i],
|
|
97628
|
-
specInfoPath: ['component', this.specKey, i],
|
|
97629
|
-
type: ComponentTypeEnum.customMark
|
|
97630
|
-
};
|
|
97631
|
-
});
|
|
97632
|
-
}
|
|
97633
97382
|
created() {
|
|
97634
97383
|
super.created();
|
|
97635
97384
|
this.initMarks();
|
|
@@ -97673,7 +97422,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
97673
97422
|
var _a;
|
|
97674
97423
|
const mark = this._createMark({
|
|
97675
97424
|
type: spec.type,
|
|
97676
|
-
name: `${namePrefix}_${index}`
|
|
97425
|
+
name: isValid$1(spec.name) ? `${spec.name}` : `${namePrefix}_${index}`
|
|
97677
97426
|
}, {
|
|
97678
97427
|
skipBeforeLayouted: true,
|
|
97679
97428
|
attributeContext: this._getMarkAttributeContext(),
|
|
@@ -97683,6 +97432,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
97683
97432
|
if (!mark) {
|
|
97684
97433
|
return;
|
|
97685
97434
|
}
|
|
97435
|
+
if (isValid$1(spec.id)) {
|
|
97436
|
+
mark.setUserId(spec.id);
|
|
97437
|
+
}
|
|
97686
97438
|
if (options.hasAnimation && spec.animation) {
|
|
97687
97439
|
const config = animationConfig({}, userAnimationConfig(spec.type, spec, this._markAttributeContext));
|
|
97688
97440
|
mark.setAnimationConfig(config);
|
|
@@ -97973,18 +97725,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
97973
97725
|
this._activeDatum = [];
|
|
97974
97726
|
}
|
|
97975
97727
|
static getSpecInfo(chartSpec) {
|
|
97976
|
-
|
|
97977
|
-
|
|
97978
|
-
|
|
97979
|
-
}
|
|
97980
|
-
return [
|
|
97981
|
-
{
|
|
97982
|
-
spec: labelSpec,
|
|
97983
|
-
specPath: [this.specKey],
|
|
97984
|
-
specInfoPath: ['component', this.specKey, 0],
|
|
97985
|
-
type: ComponentTypeEnum.mapLabel
|
|
97986
|
-
}
|
|
97987
|
-
];
|
|
97728
|
+
return getSpecInfo(chartSpec, this.specKey, this.type, (s) => {
|
|
97729
|
+
return s.visible && isValid$1(s.seriesId);
|
|
97730
|
+
});
|
|
97988
97731
|
}
|
|
97989
97732
|
setAttrFromSpec() {
|
|
97990
97733
|
var _a, _b, _c, _d;
|