@visactor/vchart 1.4.1 → 1.4.2-alpha.0
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 +96 -32
- package/build/index.min.js +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/cjs/chart/base-chart.js +3 -1
- package/cjs/chart/base-chart.js.map +1 -1
- package/cjs/compile/compiler.js +9 -3
- package/cjs/compile/compiler.js.map +1 -1
- package/cjs/compile/mark/compilable-mark.d.ts +1 -0
- package/cjs/compile/mark/compilable-mark.js +3 -0
- package/cjs/compile/mark/compilable-mark.js.map +1 -1
- package/cjs/compile/mark/interface.d.ts +1 -0
- package/cjs/compile/mark/interface.js.map +1 -1
- package/cjs/component/axis/base-axis.d.ts +2 -0
- package/cjs/component/axis/base-axis.js +7 -5
- package/cjs/component/axis/base-axis.js.map +1 -1
- package/cjs/component/tooltip/interface/common.d.ts +3 -2
- package/cjs/component/tooltip/interface/common.js.map +1 -1
- package/cjs/component/tooltip/tooltip.d.ts +1 -0
- package/cjs/component/tooltip/tooltip.js +7 -4
- package/cjs/component/tooltip/tooltip.js.map +1 -1
- package/cjs/constant/event.d.ts +3 -1
- package/cjs/constant/event.js +2 -1
- package/cjs/constant/event.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/core/util.d.ts +3 -0
- package/cjs/core/util.js +12 -0
- package/cjs/core/util.js.map +1 -0
- package/cjs/core/vchart.d.ts +3 -0
- package/cjs/core/vchart.js +10 -9
- package/cjs/core/vchart.js.map +1 -1
- package/cjs/interaction/trigger.js +1 -2
- package/cjs/layout/base-layout.js +2 -1
- package/cjs/mark/box-plot.js +1 -1
- package/cjs/series/gauge/gauge.d.ts +1 -0
- package/cjs/series/gauge/gauge.js +9 -2
- package/cjs/series/gauge/gauge.js.map +1 -1
- package/cjs/series/gauge/interface.d.ts +4 -0
- package/cjs/series/gauge/interface.js.map +1 -1
- package/cjs/series/polar/polar.js +1 -1
- package/cjs/series/polar/polar.js.map +1 -1
- package/cjs/series/sankey/sankey.js +14 -7
- package/cjs/series/sankey/sankey.js.map +1 -1
- package/cjs/util/text.d.ts +3 -3
- package/cjs/util/text.js +5 -1
- package/cjs/util/text.js.map +1 -1
- package/esm/chart/base-chart.js +3 -1
- package/esm/chart/base-chart.js.map +1 -1
- package/esm/compile/compiler.js +10 -2
- package/esm/compile/compiler.js.map +1 -1
- package/esm/compile/mark/compilable-mark.d.ts +1 -0
- package/esm/compile/mark/compilable-mark.js +4 -1
- package/esm/compile/mark/compilable-mark.js.map +1 -1
- package/esm/compile/mark/interface.d.ts +1 -0
- package/esm/compile/mark/interface.js.map +1 -1
- package/esm/component/axis/base-axis.d.ts +2 -0
- package/esm/component/axis/base-axis.js +7 -5
- package/esm/component/axis/base-axis.js.map +1 -1
- package/esm/component/tooltip/interface/common.d.ts +3 -2
- package/esm/component/tooltip/interface/common.js.map +1 -1
- package/esm/component/tooltip/tooltip.d.ts +1 -0
- package/esm/component/tooltip/tooltip.js +7 -4
- package/esm/component/tooltip/tooltip.js.map +1 -1
- package/esm/constant/event.d.ts +3 -1
- package/esm/constant/event.js +2 -1
- package/esm/constant/event.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/core/util.d.ts +3 -0
- package/esm/core/util.js +6 -0
- package/esm/core/util.js.map +1 -0
- package/esm/core/vchart.d.ts +3 -0
- package/esm/core/vchart.js +11 -8
- package/esm/core/vchart.js.map +1 -1
- package/esm/interaction/trigger.js +1 -2
- package/esm/layout/base-layout.js +2 -1
- package/esm/mark/box-plot.js +1 -1
- package/esm/series/gauge/gauge.d.ts +1 -0
- package/esm/series/gauge/gauge.js +10 -3
- package/esm/series/gauge/gauge.js.map +1 -1
- package/esm/series/gauge/interface.d.ts +4 -0
- package/esm/series/gauge/interface.js.map +1 -1
- package/esm/series/polar/polar.js +1 -1
- package/esm/series/polar/polar.js.map +1 -1
- package/esm/series/sankey/sankey.js +12 -5
- package/esm/series/sankey/sankey.js.map +1 -1
- package/esm/util/text.d.ts +3 -3
- package/esm/util/text.js +2 -0
- package/esm/util/text.js.map +1 -1
- package/package.json +4 -4
package/build/index.js
CHANGED
|
@@ -47471,13 +47471,25 @@
|
|
|
47471
47471
|
const leftArcs = Array.from(this._arcLeft.values()),
|
|
47472
47472
|
rightArcs = Array.from(this._arcRight.values()),
|
|
47473
47473
|
arcs = [];
|
|
47474
|
-
|
|
47474
|
+
switch (position) {
|
|
47475
|
+
case "inside":
|
|
47476
|
+
case "inside-inner":
|
|
47477
|
+
case "inside-outer":
|
|
47478
|
+
arcs.push(...this._layoutInsideLabels(rightArcs, attribute, currentMarks)), arcs.push(...this._layoutInsideLabels(leftArcs, attribute, currentMarks));
|
|
47479
|
+
break;
|
|
47480
|
+
default:
|
|
47481
|
+
arcs.push(...this._layoutOutsideLabels(rightArcs, attribute, currentMarks)), arcs.push(...this._layoutOutsideLabels(leftArcs, attribute, currentMarks));
|
|
47482
|
+
}
|
|
47483
|
+
return arcs;
|
|
47475
47484
|
}
|
|
47476
47485
|
_layoutInsideLabels(arcs, attribute, currentMarks) {
|
|
47486
|
+
var _a, _b;
|
|
47477
47487
|
const labelConfig = attribute,
|
|
47478
|
-
spaceWidth = labelConfig.spaceWidth
|
|
47488
|
+
spaceWidth = labelConfig.spaceWidth,
|
|
47489
|
+
position = null !== (_a = null == labelConfig ? void 0 : labelConfig.position) && void 0 !== _a ? _a : "inside",
|
|
47490
|
+
offsetRadius = null !== (_b = null == labelConfig ? void 0 : labelConfig.offsetRadius) && void 0 !== _b ? _b : -spaceWidth;
|
|
47479
47491
|
return arcs.forEach(arc => {
|
|
47480
|
-
var _a, _b;
|
|
47492
|
+
var _a, _b, _c;
|
|
47481
47493
|
const {
|
|
47482
47494
|
labelSize: labelSize,
|
|
47483
47495
|
radian: radian
|
|
@@ -47493,9 +47505,12 @@
|
|
|
47493
47505
|
const text = this._getFormatLabelText(arc.refDatum, limit);
|
|
47494
47506
|
arc.labelText = text;
|
|
47495
47507
|
const labelWidth = Math.min(limit, arc.labelSize.width),
|
|
47496
|
-
align = this._computeAlign(arc, attribute)
|
|
47497
|
-
|
|
47498
|
-
|
|
47508
|
+
align = this._computeAlign(arc, attribute);
|
|
47509
|
+
let labelRadius,
|
|
47510
|
+
alignOffset = 0;
|
|
47511
|
+
"inside" === position && (alignOffset = "left" === align ? labelWidth : "right" === align ? 0 : labelWidth / 2), labelRadius = "inside-inner" === position ? innerRadius - offsetRadius + alignOffset : outerRadius + offsetRadius - alignOffset, arc.labelPosition = circlePoint(arc.circleCenter.x, arc.circleCenter.y, labelRadius, arc.middleAngle), arc.labelLimit = labelWidth, isGreater(labelWidth, 0) || (arc.labelVisible = !1), arc.angle = null !== (_b = null === (_a = null == attribute ? void 0 : attribute.textStyle) || void 0 === _a ? void 0 : _a.angle) && void 0 !== _b ? _b : arc.middleAngle;
|
|
47512
|
+
let offsetAngle = null !== (_c = null == labelConfig ? void 0 : labelConfig.offsetAngle) && void 0 !== _c ? _c : 0;
|
|
47513
|
+
["inside-inner", "inside-outer"].includes(position) && (offsetAngle += Math.PI / 2), arc.angle += offsetAngle;
|
|
47499
47514
|
}), arcs;
|
|
47500
47515
|
}
|
|
47501
47516
|
_layoutOutsideLabels(arcs, attribute, currentMarks) {
|
|
@@ -47549,7 +47564,7 @@
|
|
|
47549
47564
|
const width = 2 * center_x;
|
|
47550
47565
|
return arcs.forEach(arc => {
|
|
47551
47566
|
var _a, _b;
|
|
47552
|
-
arc.labelVisible && (isLess(arc.pointB.x, line2MinLength + spaceWidth) || isGreater(arc.pointB.x, width - line2MinLength - spaceWidth)) && (arc.labelVisible = !1), arc.angle = null !== (_b = null === (_a = null == attribute ? void 0 : attribute.textStyle) || void 0 === _a ? void 0 : _a.angle) && void 0 !== _b ? _b : 0, arc.labelLine = Object.assign({}, null == attribute ? void 0 : attribute.line);
|
|
47567
|
+
arc.labelVisible && (isLess(arc.pointB.x, line2MinLength + spaceWidth) || isGreater(arc.pointB.x, width - line2MinLength - spaceWidth)) && (arc.labelVisible = !1), arc.angle = null !== (_b = null === (_a = null == attribute ? void 0 : attribute.textStyle) || void 0 === _a ? void 0 : _a.angle) && void 0 !== _b ? _b : 0, (null == attribute ? void 0 : attribute.offsetAngle) && (arc.angle += attribute.offsetAngle), arc.labelLine = Object.assign({}, null == attribute ? void 0 : attribute.line);
|
|
47553
47568
|
}), arcs;
|
|
47554
47569
|
}
|
|
47555
47570
|
_computeX(arc, attribute, currentMarks) {
|
|
@@ -55276,6 +55291,8 @@
|
|
|
55276
55291
|
ChartEvent["tooltipShow"] = "tooltipShow";
|
|
55277
55292
|
ChartEvent["tooltipHide"] = "tooltipHide";
|
|
55278
55293
|
ChartEvent["tooltipRelease"] = "tooltipRelease";
|
|
55294
|
+
ChartEvent["afterResize"] = "afterResize";
|
|
55295
|
+
ChartEvent["afterRender"] = "afterRender";
|
|
55279
55296
|
})(ChartEvent || (ChartEvent = {}));
|
|
55280
55297
|
var Event_Source_Type;
|
|
55281
55298
|
(function (Event_Source_Type) {
|
|
@@ -57251,6 +57268,9 @@
|
|
|
57251
57268
|
fontSize: THEME_CONSTANTS.defaultFontSize
|
|
57252
57269
|
});
|
|
57253
57270
|
};
|
|
57271
|
+
const measureText = (text, textSpec, option, useNaiveCanvas) => {
|
|
57272
|
+
return initTextMeasure(textSpec, option, useNaiveCanvas).measure(text);
|
|
57273
|
+
};
|
|
57254
57274
|
|
|
57255
57275
|
function mergeFields(targetFields, mergeFields) {
|
|
57256
57276
|
for (let i = 0; i < mergeFields.length; i++) {
|
|
@@ -58925,7 +58945,8 @@
|
|
|
58925
58945
|
const logger = new Logger((_a = this._option.logLevel) !== null && _a !== void 0 ? _a : LoggerLevel.Error);
|
|
58926
58946
|
if ((_b = this._option) === null || _b === void 0 ? void 0 : _b.onError) {
|
|
58927
58947
|
logger.addErrorHandler((...args) => {
|
|
58928
|
-
|
|
58948
|
+
var _a, _b;
|
|
58949
|
+
(_b = (_a = this._option) === null || _a === void 0 ? void 0 : _a.onError) === null || _b === void 0 ? void 0 : _b.call(_a, ...args);
|
|
58929
58950
|
});
|
|
58930
58951
|
}
|
|
58931
58952
|
this._view = new View(Object.assign(Object.assign({ width: this._width, height: this._height, hover: false, select: false, 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, cursor: false }, this._option), { mode: toRenderMode(this._option.mode), autoFit: false, eventConfig: {
|
|
@@ -58936,6 +58957,10 @@
|
|
|
58936
58957
|
(_a = this._compileChart) === null || _a === void 0 ? void 0 : _a.onLayout(this._view);
|
|
58937
58958
|
}, logger: logger, logLevel: logger.level() }));
|
|
58938
58959
|
this._setCanvasStyle();
|
|
58960
|
+
this.getStage().hooks.afterRender.tap('chart-event', () => {
|
|
58961
|
+
var _a, _b;
|
|
58962
|
+
(_b = (_a = this._compileChart) === null || _a === void 0 ? void 0 : _a.getEvent()) === null || _b === void 0 ? void 0 : _b.emit(ChartEvent.afterRender, { chart: this._compileChart });
|
|
58963
|
+
});
|
|
58939
58964
|
const interactive = this._option.interactive;
|
|
58940
58965
|
if (interactive !== false) {
|
|
58941
58966
|
this._viewListeners.forEach(listener => {
|
|
@@ -59307,6 +59332,10 @@
|
|
|
59307
59332
|
return resultA;
|
|
59308
59333
|
}
|
|
59309
59334
|
|
|
59335
|
+
const VCHART_UTILS = {
|
|
59336
|
+
measureText
|
|
59337
|
+
};
|
|
59338
|
+
|
|
59310
59339
|
class VChart {
|
|
59311
59340
|
static useChart(charts) {
|
|
59312
59341
|
charts.forEach(c => Factory.registerChart(c.type, c));
|
|
@@ -59361,8 +59390,8 @@
|
|
|
59361
59390
|
this._onResize = debounce((...args) => {
|
|
59362
59391
|
const { width, height } = this._getCurSize();
|
|
59363
59392
|
if (this._curSize.width !== width || this._curSize.height !== height) {
|
|
59364
|
-
this.resize(width, height);
|
|
59365
59393
|
this._curSize = { width, height };
|
|
59394
|
+
this.resize(width, height);
|
|
59366
59395
|
}
|
|
59367
59396
|
}, 100);
|
|
59368
59397
|
this._option = merge$1(this._option, options);
|
|
@@ -59886,6 +59915,7 @@
|
|
|
59886
59915
|
this._chart.onResize(width, height);
|
|
59887
59916
|
(_d = (_c = this._option.performanceHook) === null || _c === void 0 ? void 0 : _c.afterResizeWithUpdate) === null || _d === void 0 ? void 0 : _d.call(_c);
|
|
59888
59917
|
yield ((_f = (_e = this._compiler).resize) === null || _f === void 0 ? void 0 : _f.call(_e, width, height));
|
|
59918
|
+
this._event.emit(ChartEvent.afterResize, { chart: this._chart });
|
|
59889
59919
|
return this;
|
|
59890
59920
|
});
|
|
59891
59921
|
}
|
|
@@ -59905,7 +59935,11 @@
|
|
|
59905
59935
|
}
|
|
59906
59936
|
on(eType, query, handler) {
|
|
59907
59937
|
var _a;
|
|
59908
|
-
this._userEvents.push({
|
|
59938
|
+
this._userEvents.push({
|
|
59939
|
+
eType,
|
|
59940
|
+
query: typeof query === 'function' ? null : query,
|
|
59941
|
+
handler: typeof query === 'function' ? query : handler
|
|
59942
|
+
});
|
|
59909
59943
|
(_a = this._event) === null || _a === void 0 ? void 0 : _a.on(eType, query, handler);
|
|
59910
59944
|
}
|
|
59911
59945
|
off(eType, handler) {
|
|
@@ -60291,6 +60325,7 @@
|
|
|
60291
60325
|
VChart.globalConfig = {
|
|
60292
60326
|
uniqueTooltip: true
|
|
60293
60327
|
};
|
|
60328
|
+
VChart.Utils = VCHART_UTILS;
|
|
60294
60329
|
|
|
60295
60330
|
var STATE_VALUE_ENUM;
|
|
60296
60331
|
(function (STATE_VALUE_ENUM) {
|
|
@@ -62753,6 +62788,9 @@
|
|
|
62753
62788
|
getLabelSpec() {
|
|
62754
62789
|
return this._label;
|
|
62755
62790
|
}
|
|
62791
|
+
setLabelSpec(label) {
|
|
62792
|
+
this._label = array(label);
|
|
62793
|
+
}
|
|
62756
62794
|
addLabelSpec(label) {
|
|
62757
62795
|
if (!this._label) {
|
|
62758
62796
|
this._label = [];
|
|
@@ -63432,7 +63470,7 @@
|
|
|
63432
63470
|
VChart.useMark([ComponentMark, GroupMark, ImageMark]);
|
|
63433
63471
|
Factory.registerRegion('region', Region);
|
|
63434
63472
|
Factory.registerLayout('base', Layout);
|
|
63435
|
-
const version = "1.4.
|
|
63473
|
+
const version = "1.4.2-alpha.0";
|
|
63436
63474
|
Logger.getInstance(LoggerLevel.Error);
|
|
63437
63475
|
|
|
63438
63476
|
const WordCloud3dAnimation = (params) => {
|
|
@@ -68393,6 +68431,11 @@
|
|
|
68393
68431
|
(_d = (_c = this._option.performanceHook) === null || _c === void 0 ? void 0 : _c.afterComponentCompile) === null || _d === void 0 ? void 0 : _d.call(_c);
|
|
68394
68432
|
}
|
|
68395
68433
|
release() {
|
|
68434
|
+
this.getComponents().forEach(component => {
|
|
68435
|
+
if (component.type === ComponentTypeEnum.tooltip) {
|
|
68436
|
+
component.triggerReleaseEvent();
|
|
68437
|
+
}
|
|
68438
|
+
});
|
|
68396
68439
|
super.release();
|
|
68397
68440
|
this.clear();
|
|
68398
68441
|
[...this._components, ...this._regions, ...this._series].forEach(m => {
|
|
@@ -71933,9 +71976,8 @@
|
|
|
71933
71976
|
_buildMarkAttributeContext() {
|
|
71934
71977
|
super._buildMarkAttributeContext();
|
|
71935
71978
|
this._markAttributeContext.valueToPosition = this.valueToPosition.bind(this);
|
|
71936
|
-
this._markAttributeContext.getCenter = () =>
|
|
71937
|
-
|
|
71938
|
-
};
|
|
71979
|
+
this._markAttributeContext.getCenter = () => this.angleAxisHelper.center();
|
|
71980
|
+
this._markAttributeContext.getLayoutRadius = () => this._computeLayoutRadius();
|
|
71939
71981
|
}
|
|
71940
71982
|
valueToPosition(angleValue, radiusValue) {
|
|
71941
71983
|
if (isNil$1(angleValue) || isNil$1(radiusValue) || !this.angleAxisHelper || !this.radiusAxisHelper) {
|
|
@@ -72552,7 +72594,8 @@
|
|
|
72552
72594
|
});
|
|
72553
72595
|
this._segmentMark = this._createMark(GaugeSeries.mark.segment, {
|
|
72554
72596
|
parent: this._arcGroupMark,
|
|
72555
|
-
isSeriesMark: true
|
|
72597
|
+
isSeriesMark: true,
|
|
72598
|
+
label: this._preprocessLabelSpec()
|
|
72556
72599
|
});
|
|
72557
72600
|
}
|
|
72558
72601
|
initMarkStyle() {
|
|
@@ -72578,6 +72621,7 @@
|
|
|
72578
72621
|
zIndex: 200,
|
|
72579
72622
|
forceShowCap: true
|
|
72580
72623
|
});
|
|
72624
|
+
segmentMark.setLabelSpec(this._preprocessLabelSpec());
|
|
72581
72625
|
this._trigger.registerMark(segmentMark);
|
|
72582
72626
|
(_b = this._tooltipHelper) === null || _b === void 0 ? void 0 : _b.activeTriggerSet.mark.add(segmentMark);
|
|
72583
72627
|
}
|
|
@@ -72608,6 +72652,10 @@
|
|
|
72608
72652
|
const angle = this.angleAxisHelper.dataToPosition([datum[SEGMENT_FIELD_END]]);
|
|
72609
72653
|
return angle - ((_a = this._spec.padAngle) !== null && _a !== void 0 ? _a : 0) / 2;
|
|
72610
72654
|
}
|
|
72655
|
+
_preprocessLabelSpec() {
|
|
72656
|
+
const labelSpec = mergeSpec({ animation: this._spec.animation }, this._spec.label);
|
|
72657
|
+
return labelSpec;
|
|
72658
|
+
}
|
|
72611
72659
|
initAnimation() {
|
|
72612
72660
|
var _a, _b;
|
|
72613
72661
|
const appearPreset = (_b = (_a = this._spec) === null || _a === void 0 ? void 0 : _a.animationAppear) === null || _b === void 0 ? void 0 : _b.preset;
|
|
@@ -77468,19 +77516,31 @@
|
|
|
77468
77516
|
this._tooltipHelper = new SankeySeriesTooltipHelper(this);
|
|
77469
77517
|
}
|
|
77470
77518
|
getNodeOrdinalColorScale(item) {
|
|
77471
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
77472
|
-
|
|
77519
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
77520
|
+
if (!isNil$1((_c = (_b = (_a = this._option) === null || _a === void 0 ? void 0 : _a.globalScale) === null || _b === void 0 ? void 0 : _b.getScale('color')) === null || _c === void 0 ? void 0 : _c._specified)) {
|
|
77521
|
+
const specified = this._option.globalScale.getScale('color')._specified;
|
|
77522
|
+
const colorDomain = [];
|
|
77523
|
+
const colorRange = [];
|
|
77524
|
+
for (const key in specified) {
|
|
77525
|
+
colorDomain.push(key);
|
|
77526
|
+
colorRange.push(specified[key]);
|
|
77527
|
+
}
|
|
77528
|
+
const ordinalScale = new ColorOrdinalScale();
|
|
77529
|
+
(_e = (_d = ordinalScale.domain(colorDomain)).range) === null || _e === void 0 ? void 0 : _e.call(_d, colorRange);
|
|
77530
|
+
return ordinalScale.scale(item);
|
|
77531
|
+
}
|
|
77532
|
+
const colorDomain = !isNil$1((_g = (_f = this._option.globalScale.getScale('color')) === null || _f === void 0 ? void 0 : _f.domain()) === null || _g === void 0 ? void 0 : _g[0])
|
|
77473
77533
|
? this._option.globalScale.getScale('color').domain()
|
|
77474
77534
|
: this.getNodeList();
|
|
77475
|
-
let colorRange = (
|
|
77476
|
-
if (((
|
|
77535
|
+
let colorRange = (_j = (_h = this._option.globalScale.getScale('color')) === null || _h === void 0 ? void 0 : _h.range()) !== null && _j !== void 0 ? _j : getDataScheme(this._option.getTheme().colorScheme, this.type);
|
|
77536
|
+
if (((_k = this._option.globalScale.getScale('color')) === null || _k === void 0 ? void 0 : _k.domain().length) === 0 ||
|
|
77477
77537
|
isNil$1(this._option.globalScale.getScale('color').domain()[0])) {
|
|
77478
77538
|
if (colorDomain.length > 10) {
|
|
77479
|
-
colorRange = (
|
|
77539
|
+
colorRange = (_l = getDataScheme(this._option.getTheme().colorScheme, this.type)[1]) === null || _l === void 0 ? void 0 : _l.scheme;
|
|
77480
77540
|
}
|
|
77481
77541
|
}
|
|
77482
77542
|
const ordinalScale = new ColorOrdinalScale();
|
|
77483
|
-
(
|
|
77543
|
+
(_o = (_m = ordinalScale.domain(colorDomain)).range) === null || _o === void 0 ? void 0 : _o.call(_m, colorRange);
|
|
77484
77544
|
return ordinalScale.scale(item);
|
|
77485
77545
|
}
|
|
77486
77546
|
getNodeList() {
|
|
@@ -85964,7 +86024,7 @@
|
|
|
85964
86024
|
component.addEventListener('*', ((event, type) => this._delegateEvent(component, event, type)));
|
|
85965
86025
|
}
|
|
85966
86026
|
_getAxisAttributes() {
|
|
85967
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
86027
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
85968
86028
|
const spec = this._spec;
|
|
85969
86029
|
let titleAngle = spec.title.angle;
|
|
85970
86030
|
let titleTextStyle;
|
|
@@ -86041,12 +86101,14 @@
|
|
|
86041
86101
|
text: transformStateStyle(spec.title.state),
|
|
86042
86102
|
shape: transformStateStyle((_g = spec.title.shape) === null || _g === void 0 ? void 0 : _g.state),
|
|
86043
86103
|
background: transformStateStyle((_h = spec.title.background) === null || _h === void 0 ? void 0 : _h.state)
|
|
86044
|
-
}
|
|
86104
|
+
},
|
|
86105
|
+
pickable: ((_j = spec.title.style) === null || _j === void 0 ? void 0 : _j.pickable) !== false,
|
|
86106
|
+
childrenPickable: ((_k = spec.title.style) === null || _k === void 0 ? void 0 : _k.pickable) !== false
|
|
86045
86107
|
},
|
|
86046
86108
|
panel: {
|
|
86047
|
-
visible: (
|
|
86048
|
-
style: transformToGraphic((
|
|
86049
|
-
state: transformStateStyle((
|
|
86109
|
+
visible: (_l = spec.background) === null || _l === void 0 ? void 0 : _l.visible,
|
|
86110
|
+
style: transformToGraphic((_m = spec.background) === null || _m === void 0 ? void 0 : _m.style),
|
|
86111
|
+
state: transformStateStyle((_o = spec.background) === null || _o === void 0 ? void 0 : _o.state)
|
|
86050
86112
|
}
|
|
86051
86113
|
};
|
|
86052
86114
|
}
|
|
@@ -93856,12 +93918,6 @@
|
|
|
93856
93918
|
}
|
|
93857
93919
|
release() {
|
|
93858
93920
|
var _a, _b;
|
|
93859
|
-
this.event.emit(ChartEvent.tooltipHide, {
|
|
93860
|
-
tooltip: this
|
|
93861
|
-
});
|
|
93862
|
-
this.event.emit(ChartEvent.tooltipRelease, {
|
|
93863
|
-
tooltip: this
|
|
93864
|
-
});
|
|
93865
93921
|
super.release();
|
|
93866
93922
|
this._eventList.forEach(({ eventType, handler }) => {
|
|
93867
93923
|
this.event.off(eventType, handler);
|
|
@@ -93870,6 +93926,14 @@
|
|
|
93870
93926
|
(_b = (_a = this.tooltipHandler) === null || _a === void 0 ? void 0 : _a.release) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
93871
93927
|
this._isTooltipShown = false;
|
|
93872
93928
|
}
|
|
93929
|
+
triggerReleaseEvent() {
|
|
93930
|
+
this.event.emit(ChartEvent.tooltipHide, {
|
|
93931
|
+
tooltip: this
|
|
93932
|
+
});
|
|
93933
|
+
this.event.emit(ChartEvent.tooltipRelease, {
|
|
93934
|
+
tooltip: this
|
|
93935
|
+
});
|
|
93936
|
+
}
|
|
93873
93937
|
_initHandler() {
|
|
93874
93938
|
var _a, _b, _c;
|
|
93875
93939
|
const renderMode = (_a = this._spec.renderMode) !== null && _a !== void 0 ? _a : 'html';
|