@visactor/vchart-extension 2.1.3-alpha.5 → 2.1.4-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/index.js +43 -32
- package/build/index.min.js +1 -1
- package/cjs/charts/axis-3d/band-axis.js +1 -2
- package/cjs/charts/axis-3d/index.js +2 -1
- package/cjs/charts/candlestick/candlestick-transformer.js +1 -1
- package/cjs/charts/candlestick/candlestick.js +1 -1
- package/cjs/charts/candlestick/index.js +1 -1
- package/cjs/charts/candlestick/interface.js +1 -1
- package/cjs/charts/candlestick/util.js +1 -1
- package/cjs/charts/conversion-funnel/arrow-data-transform.js +1 -1
- package/cjs/charts/conversion-funnel/constants.js +1 -1
- package/cjs/charts/conversion-funnel/conversion-funnel-transformer.js +16 -14
- package/cjs/charts/conversion-funnel/conversion-funnel-transformer.js.map +1 -1
- package/cjs/charts/conversion-funnel/conversion-funnel.js +1 -1
- package/cjs/charts/conversion-funnel/index.js +1 -1
- package/cjs/charts/conversion-funnel/interface.js +1 -1
- package/cjs/charts/conversion-funnel/util.js +1 -1
- package/cjs/charts/funnel-3d/chart.js +1 -1
- package/cjs/charts/funnel-3d/constant.js +1 -1
- package/cjs/charts/funnel-3d/index.js +1 -1
- package/cjs/charts/funnel-3d/interface.js +1 -1
- package/cjs/charts/funnel-3d/series-spec-transformer.js +2 -1
- package/cjs/charts/funnel-3d/series.js +1 -1
- package/cjs/charts/funnel-3d/theme.js +1 -1
- package/cjs/charts/image-cloud/image-cloud-transformer.js +1 -1
- package/cjs/charts/image-cloud/image-cloud.js +1 -1
- package/cjs/charts/image-cloud/index.js +1 -1
- package/cjs/charts/image-cloud/interface.js +1 -1
- package/cjs/charts/pictogram/element-highlight-by-graphic-name.js +1 -1
- package/cjs/charts/pictogram/element-select-by-graphic-name.js +1 -1
- package/cjs/charts/pictogram/index.js +2 -1
- package/cjs/charts/pictogram/interface.js +1 -1
- package/cjs/charts/pictogram/pictogram-transformer.js +1 -1
- package/cjs/charts/pictogram/pictogram.js +1 -1
- package/cjs/charts/pie-3d/animation.js +1 -1
- package/cjs/charts/pie-3d/chart-spec-transformer.js +1 -1
- package/cjs/charts/pie-3d/chart.js +1 -1
- package/cjs/charts/pie-3d/constant.js +1 -1
- package/cjs/components/bar-link/bar-link.js +1 -1
- package/cjs/components/bar-link/constant.js +1 -1
- package/cjs/components/bar-link/index.js +1 -1
- package/cjs/components/bar-link/type.js +1 -1
- package/cjs/components/bar-link/util.js +1 -1
- package/cjs/components/bar-regression-line/index.js +1 -1
- package/cjs/components/bar-regression-line/type.js +1 -1
- package/cjs/components/extension-mark-sync-state/extension-mark-sync-state.js +1 -1
- package/cjs/components/extension-mark-sync-state/index.js +1 -1
- package/cjs/components/extension-mark-sync-state/type.js +1 -1
- package/cjs/components/histogram-regression-line/index.js +1 -1
- package/cjs/components/histogram-regression-line/type.js +1 -2
- package/cjs/components/map-label/index.js +1 -1
- package/cjs/components/map-label/layout.js +1 -1
- package/cjs/components/map-label/map-label-transformer.js +1 -1
- package/cjs/components/map-label/map-label.js +1 -1
- package/cjs/components/map-label/theme.js +1 -1
- package/cjs/components/map-label/type.js +1 -1
- package/cjs/components/regression-line/index.js +1 -1
- package/cjs/components/regression-line/regression-line.js +1 -1
- package/cjs/components/regression-line/type.js +1 -1
- package/cjs/components/scatter-regression-line/index.js +1 -1
- package/cjs/components/scatter-regression-line/type.js +1 -1
- package/cjs/components/series-break/constant.js +1 -1
- package/cjs/components/series-break/index.js +1 -1
- package/cjs/components/series-break/series-break.js +1 -1
- package/cjs/components/series-break/type.js +1 -1
- package/cjs/components/series-break/util.js +1 -2
- package/cjs/components/series-label/constant.js +1 -1
- package/cjs/components/series-label/index.js +1 -1
- package/cjs/components/series-label/series-label.js +1 -1
- package/cjs/components/series-label/type.js +1 -1
- package/cjs/components/series-label/util.js +1 -1
- package/esm/charts/axis-3d/band-axis.js +1 -2
- package/esm/charts/axis-3d/index.js +2 -1
- package/esm/charts/candlestick/candlestick-transformer.js +1 -1
- package/esm/charts/candlestick/candlestick.js +1 -1
- package/esm/charts/candlestick/index.js +1 -1
- package/esm/charts/candlestick/interface.js +1 -1
- package/esm/charts/candlestick/util.js +1 -1
- package/esm/charts/conversion-funnel/arrow-data-transform.js +1 -1
- package/esm/charts/conversion-funnel/constants.js +1 -1
- package/esm/charts/conversion-funnel/conversion-funnel-transformer.js +16 -14
- package/esm/charts/conversion-funnel/conversion-funnel-transformer.js.map +1 -1
- package/esm/charts/conversion-funnel/conversion-funnel.js +1 -1
- package/esm/charts/conversion-funnel/index.js +1 -1
- package/esm/charts/conversion-funnel/interface.js +1 -1
- package/esm/charts/conversion-funnel/util.js +1 -1
- package/esm/charts/funnel-3d/chart.js +1 -1
- package/esm/charts/funnel-3d/constant.js +1 -1
- package/esm/charts/funnel-3d/index.js +1 -1
- package/esm/charts/funnel-3d/interface.js +1 -1
- package/esm/charts/funnel-3d/series-spec-transformer.js +2 -1
- package/esm/charts/funnel-3d/series.js +1 -1
- package/esm/charts/funnel-3d/theme.js +1 -1
- package/esm/charts/image-cloud/image-cloud-transformer.js +1 -1
- package/esm/charts/image-cloud/image-cloud.js +1 -1
- package/esm/charts/image-cloud/index.js +1 -1
- package/esm/charts/image-cloud/interface.js +1 -1
- package/esm/charts/pictogram/element-highlight-by-graphic-name.js +1 -1
- package/esm/charts/pictogram/element-select-by-graphic-name.js +1 -1
- package/esm/charts/pictogram/index.js +2 -1
- package/esm/charts/pictogram/interface.js +1 -1
- package/esm/charts/pictogram/pictogram-transformer.js +1 -1
- package/esm/charts/pictogram/pictogram.js +1 -1
- package/esm/charts/pie-3d/animation.js +1 -1
- package/esm/charts/pie-3d/chart-spec-transformer.js +1 -1
- package/esm/charts/pie-3d/chart.js +1 -1
- package/esm/charts/pie-3d/constant.js +1 -1
- package/esm/components/bar-link/bar-link.js +1 -1
- package/esm/components/bar-link/constant.js +1 -1
- package/esm/components/bar-link/index.js +1 -1
- package/esm/components/bar-link/type.js +1 -1
- package/esm/components/bar-link/util.js +1 -1
- package/esm/components/bar-regression-line/index.js +1 -1
- package/esm/components/bar-regression-line/type.js +1 -1
- package/esm/components/extension-mark-sync-state/extension-mark-sync-state.js +1 -1
- package/esm/components/extension-mark-sync-state/index.js +1 -1
- package/esm/components/extension-mark-sync-state/type.js +1 -1
- package/esm/components/histogram-regression-line/index.js +1 -1
- package/esm/components/histogram-regression-line/type.js +1 -2
- package/esm/components/map-label/index.js +1 -1
- package/esm/components/map-label/layout.js +1 -1
- package/esm/components/map-label/map-label-transformer.js +1 -1
- package/esm/components/map-label/map-label.js +1 -1
- package/esm/components/map-label/theme.js +1 -1
- package/esm/components/map-label/type.js +1 -1
- package/esm/components/regression-line/index.js +1 -1
- package/esm/components/regression-line/regression-line.js +1 -1
- package/esm/components/regression-line/type.js +1 -1
- package/esm/components/scatter-regression-line/index.js +1 -1
- package/esm/components/scatter-regression-line/type.js +1 -1
- package/esm/components/series-break/constant.js +1 -1
- package/esm/components/series-break/index.js +1 -1
- package/esm/components/series-break/series-break.js +1 -1
- package/esm/components/series-break/type.js +1 -1
- package/esm/components/series-break/util.js +1 -2
- package/esm/components/series-label/constant.js +1 -1
- package/esm/components/series-label/index.js +1 -1
- package/esm/components/series-label/series-label.js +1 -1
- package/esm/components/series-label/type.js +1 -1
- package/esm/components/series-label/util.js +1 -1
- package/package.json +8 -8
package/build/index.js
CHANGED
|
@@ -1070,9 +1070,11 @@
|
|
|
1070
1070
|
|
|
1071
1071
|
class ConversionFunnelChartSpecTransformer extends vchart.FunnelChartSpecTransformer {
|
|
1072
1072
|
transformSpec(spec) {
|
|
1073
|
+
var _a, _b, _c;
|
|
1073
1074
|
const { conversionArrow, extensionMark = [], funnelBackground } = spec;
|
|
1074
1075
|
if (conversionArrow && conversionArrow.arrows && conversionArrow.arrows.length) {
|
|
1075
|
-
const
|
|
1076
|
+
const arrowTheme = (_c = (_b = (_a = this._option) === null || _a === void 0 ? void 0 : _a.getTheme) === null || _b === void 0 ? void 0 : _b.call(_a, 'series', 'funnel')) === null || _c === void 0 ? void 0 : _c.conversionArrow;
|
|
1077
|
+
const marks = addArrowMark(conversionArrow, arrowTheme);
|
|
1076
1078
|
if (marks && marks.length) {
|
|
1077
1079
|
extensionMark.push(...marks);
|
|
1078
1080
|
}
|
|
@@ -1093,12 +1095,12 @@
|
|
|
1093
1095
|
return seriesSpec;
|
|
1094
1096
|
}
|
|
1095
1097
|
}
|
|
1096
|
-
function addArrowMark(arrowSpec) {
|
|
1098
|
+
function addArrowMark(arrowSpec, theme) {
|
|
1097
1099
|
const { arrows } = arrowSpec, style = __rest$4(arrowSpec, ["arrows"]);
|
|
1098
1100
|
const leftArrows = arrows.filter(arrow => arrow.position === 'left');
|
|
1099
1101
|
const rightArrows = arrows.filter(arrow => arrow.position === 'right');
|
|
1100
|
-
const rightGroup = computeArrows$1(rightArrows, style);
|
|
1101
|
-
const leftGroup = computeArrows$1(leftArrows, style);
|
|
1102
|
+
const rightGroup = computeArrows$1(rightArrows, style, theme);
|
|
1103
|
+
const leftGroup = computeArrows$1(leftArrows, style, theme);
|
|
1102
1104
|
const result = [];
|
|
1103
1105
|
if (rightGroup) {
|
|
1104
1106
|
rightGroup.name = 'arrowRight';
|
|
@@ -1110,7 +1112,8 @@
|
|
|
1110
1112
|
}
|
|
1111
1113
|
return result;
|
|
1112
1114
|
}
|
|
1113
|
-
function computeArrows$1(arrows, style) {
|
|
1115
|
+
function computeArrows$1(arrows, style, theme) {
|
|
1116
|
+
var _a, _b, _c;
|
|
1114
1117
|
if ((arrows === null || arrows === void 0 ? void 0 : arrows.length) === 0) {
|
|
1115
1118
|
return null;
|
|
1116
1119
|
}
|
|
@@ -1121,22 +1124,22 @@
|
|
|
1121
1124
|
zIndex: vchart.LayoutZIndex.Mark + 1,
|
|
1122
1125
|
children: []
|
|
1123
1126
|
};
|
|
1124
|
-
const lineMark = generateArrowLineSpec(line, margin);
|
|
1127
|
+
const lineMark = generateArrowLineSpec(line, margin, (_a = theme === null || theme === void 0 ? void 0 : theme.line) === null || _a === void 0 ? void 0 : _a.style);
|
|
1125
1128
|
if (lineMark) {
|
|
1126
1129
|
result.push(lineMark);
|
|
1127
1130
|
}
|
|
1128
|
-
const arrowMark = generateArrowSymbolSpec(symbol, margin);
|
|
1131
|
+
const arrowMark = generateArrowSymbolSpec(symbol, margin, (_b = theme === null || theme === void 0 ? void 0 : theme.symbol) === null || _b === void 0 ? void 0 : _b.style);
|
|
1129
1132
|
if (arrowMark) {
|
|
1130
1133
|
result.push(arrowMark);
|
|
1131
1134
|
}
|
|
1132
|
-
const textMark = generateArrowTextSpec(text, margin);
|
|
1135
|
+
const textMark = generateArrowTextSpec(text, margin, (_c = theme === null || theme === void 0 ? void 0 : theme.text) === null || _c === void 0 ? void 0 : _c.style);
|
|
1133
1136
|
if (textMark) {
|
|
1134
1137
|
result.push(textMark);
|
|
1135
1138
|
}
|
|
1136
1139
|
rootGroup.children = result;
|
|
1137
1140
|
return rootGroup;
|
|
1138
1141
|
}
|
|
1139
|
-
function generateArrowLineSpec(line = {}, margin) {
|
|
1142
|
+
function generateArrowLineSpec(line = {}, margin, themeStyle = {}) {
|
|
1140
1143
|
const { style = {} } = line, rest = __rest$4(line, ["style"]);
|
|
1141
1144
|
const renderable = (arrow, ctx) => {
|
|
1142
1145
|
var _a, _b;
|
|
@@ -1148,7 +1151,7 @@
|
|
|
1148
1151
|
}
|
|
1149
1152
|
return true;
|
|
1150
1153
|
};
|
|
1151
|
-
return Object.assign(Object.assign({ type: 'polygon', interactive: false }, rest), { dataKey: arrow => `${arrow.id}`, style: Object.assign(Object.assign(Object.assign({}, DEFAULT_ARROW_MARK_STYLE), style), { renderable, points: (arrow, ctx) => {
|
|
1154
|
+
return Object.assign(Object.assign({ type: 'polygon', interactive: false }, rest), { dataKey: arrow => `${arrow.id}`, style: Object.assign(Object.assign(Object.assign(Object.assign({}, DEFAULT_ARROW_MARK_STYLE), themeStyle), style), { renderable, points: (arrow, ctx) => {
|
|
1152
1155
|
if (!renderable(arrow, ctx)) {
|
|
1153
1156
|
return [];
|
|
1154
1157
|
}
|
|
@@ -1157,9 +1160,9 @@
|
|
|
1157
1160
|
return points;
|
|
1158
1161
|
} }) });
|
|
1159
1162
|
}
|
|
1160
|
-
function generateArrowSymbolSpec(symbol = {}, margin) {
|
|
1163
|
+
function generateArrowSymbolSpec(symbol = {}, margin, themeStyle = {}) {
|
|
1161
1164
|
const { style = {} } = symbol, rest = __rest$4(symbol, ["style"]);
|
|
1162
|
-
return Object.assign(Object.assign({ type: 'symbol', interactive: false, dataKey: arrow => `${arrow.id}` }, rest), { style: Object.assign(Object.assign(Object.assign({}, DEFAULT_ARROW_SYMBOL_MARK_STYLE), style), { x: (arrow, ctx) => {
|
|
1165
|
+
return Object.assign(Object.assign({ type: 'symbol', interactive: false, dataKey: arrow => `${arrow.id}` }, rest), { style: Object.assign(Object.assign(Object.assign(Object.assign({}, DEFAULT_ARROW_SYMBOL_MARK_STYLE), themeStyle), style), { x: (arrow, ctx) => {
|
|
1163
1166
|
var _a, _b;
|
|
1164
1167
|
let points = arrow.layout.points;
|
|
1165
1168
|
points = prepareArrowPoints(arrow, ctx, margin);
|
|
@@ -1171,9 +1174,9 @@
|
|
|
1171
1174
|
return (_b = (_a = points[(points === null || points === void 0 ? void 0 : points.length) - 1]) === null || _a === void 0 ? void 0 : _a.y) !== null && _b !== void 0 ? _b : NaN;
|
|
1172
1175
|
}, angle: (arrow) => (arrow.position === 'left' ? 90 : -90) }) });
|
|
1173
1176
|
}
|
|
1174
|
-
function generateArrowTextSpec(text = {}, margin) {
|
|
1177
|
+
function generateArrowTextSpec(text = {}, margin, themeStyle = {}) {
|
|
1175
1178
|
const { style = {}, formatMethod, textMargin = 4 } = text, rest = __rest$4(text, ["style", "formatMethod", "textMargin"]);
|
|
1176
|
-
return Object.assign(Object.assign({ type: 'text', dataKey: arrow => `${arrow.id}`, interactive: false, animation: false }, rest), { style: Object.assign(Object.assign(Object.assign({}, DEFAULT_ARROW_TEXT_MARK_STYLE), { text: (arrow, ctx) => {
|
|
1179
|
+
return Object.assign(Object.assign({ type: 'text', dataKey: arrow => `${arrow.id}`, interactive: false, animation: false }, rest), { style: Object.assign(Object.assign(Object.assign(Object.assign({}, DEFAULT_ARROW_TEXT_MARK_STYLE), themeStyle), { text: (arrow, ctx) => {
|
|
1177
1180
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
1178
1181
|
const { text: textContent } = arrow;
|
|
1179
1182
|
let displayTextContent = textContent;
|
|
@@ -10313,7 +10316,7 @@
|
|
|
10313
10316
|
}
|
|
10314
10317
|
|
|
10315
10318
|
var _a;
|
|
10316
|
-
const factoryRegistryKey = Symbol.for("@visactor/vchart/factory-registry@2.1.
|
|
10319
|
+
const factoryRegistryKey = Symbol.for("@visactor/vchart/factory-registry@2.1.3"),
|
|
10317
10320
|
globalFactoryRegistry = globalThis;
|
|
10318
10321
|
const factoryRegistry = null !== (_a = globalFactoryRegistry[factoryRegistryKey]) && void 0 !== _a ? _a : globalFactoryRegistry[factoryRegistryKey] = {
|
|
10319
10322
|
charts: {},
|
|
@@ -10343,6 +10346,7 @@
|
|
|
10343
10346
|
interactionTriggers: {},
|
|
10344
10347
|
composedEventMap: {},
|
|
10345
10348
|
tooltipProcessors: {},
|
|
10349
|
+
runtimePluginInstallers: {},
|
|
10346
10350
|
formatter: void 0
|
|
10347
10351
|
};
|
|
10348
10352
|
|
|
@@ -10522,7 +10526,9 @@
|
|
|
10522
10526
|
}, Factory.createTooltipProcessor = (type, tooltip) => {
|
|
10523
10527
|
const Cror = Factory._tooltipProcessors[type];
|
|
10524
10528
|
return Cror ? new Cror(tooltip) : null;
|
|
10525
|
-
}
|
|
10529
|
+
}, Factory._runtimePluginInstallers = factoryRegistry.runtimePluginInstallers, Factory.registerRuntimePluginInstaller = (type, installer) => {
|
|
10530
|
+
Factory._runtimePluginInstallers[type] = installer;
|
|
10531
|
+
}, Factory.getRuntimePluginInstaller = type => Factory._runtimePluginInstallers[type];
|
|
10526
10532
|
|
|
10527
10533
|
const registerChartPlugin = plugin => {
|
|
10528
10534
|
Factory.registerChartPlugin(plugin.type, plugin);
|
|
@@ -21819,41 +21825,46 @@
|
|
|
21819
21825
|
getStatedGraphics(trigger) {
|
|
21820
21826
|
return this._stateGraphicsByTrigger.get(trigger);
|
|
21821
21827
|
}
|
|
21828
|
+
_getMarkById(trigger) {
|
|
21829
|
+
const markById = new Map();
|
|
21830
|
+
return trigger.getMarks().forEach(mark => {
|
|
21831
|
+
mark && markById.set(mark.id, mark);
|
|
21832
|
+
}), markById;
|
|
21833
|
+
}
|
|
21834
|
+
_hasAnimationByGraphicState(graphic, markById) {
|
|
21835
|
+
var _a, _b, _c;
|
|
21836
|
+
const mark = null !== (_b = null === (_a = graphic.parent) || void 0 === _a ? void 0 : _a.mark) && void 0 !== _b ? _b : markById.get(graphic.context.markId);
|
|
21837
|
+
return !!(null === (_c = null == mark ? void 0 : mark.hasAnimationByState) || void 0 === _c ? void 0 : _c.call(mark, "state"));
|
|
21838
|
+
}
|
|
21822
21839
|
updateStates(trigger, newStatedGraphics, prevStatedGraphics, state, reverseState) {
|
|
21823
|
-
return this._disableTriggerEvent ? [] : newStatedGraphics && newStatedGraphics.length ? (state && reverseState ? prevStatedGraphics && prevStatedGraphics.length ? (this.toggleReverseStateOfGraphics(trigger, newStatedGraphics, prevStatedGraphics, reverseState), this.toggleStateOfGraphics(trigger, newStatedGraphics, prevStatedGraphics, state)) : this.addBothStateOfGraphics(trigger, newStatedGraphics, state, reverseState) : state && (prevStatedGraphics && prevStatedGraphics.length ? this.toggleStateOfGraphics(trigger, newStatedGraphics, prevStatedGraphics, state) : this.addStateOfGraphics(trigger, newStatedGraphics, state)), newStatedGraphics) : [];
|
|
21840
|
+
return this._disableTriggerEvent ? [] : newStatedGraphics && newStatedGraphics.length ? (state && reverseState ? prevStatedGraphics && prevStatedGraphics.length ? (this.toggleReverseStateOfGraphics(trigger, newStatedGraphics, prevStatedGraphics, reverseState), this.toggleStateOfGraphics(trigger, newStatedGraphics, prevStatedGraphics, state)) : this.addBothStateOfGraphics(trigger, newStatedGraphics, state, reverseState) : state && (prevStatedGraphics && prevStatedGraphics.length ? this.toggleStateOfGraphics(trigger, newStatedGraphics, prevStatedGraphics, state) : this.addStateOfGraphics(trigger, newStatedGraphics, state)), newStatedGraphics) : (prevStatedGraphics && prevStatedGraphics.length && this.clearAllStatesOfTrigger(trigger, state, reverseState), []);
|
|
21824
21841
|
}
|
|
21825
21842
|
toggleReverseStateOfGraphics(trigger, newStatedGraphics, prevStatedGraphics, reverseState) {
|
|
21826
|
-
const markIdByState = trigger.getMarkIdByState()
|
|
21843
|
+
const markIdByState = trigger.getMarkIdByState(),
|
|
21844
|
+
markById = this._getMarkById(trigger);
|
|
21827
21845
|
prevStatedGraphics.forEach(g => {
|
|
21828
|
-
var _a;
|
|
21829
21846
|
if (reverseState && markIdByState[reverseState] && markIdByState[reverseState].includes(g.context.markId)) {
|
|
21830
|
-
const
|
|
21831
|
-
hasAnimation = m.hasAnimationByState && m.hasAnimationByState("state");
|
|
21847
|
+
const hasAnimation = this._hasAnimationByGraphicState(g, markById);
|
|
21832
21848
|
addGraphicState(g, reverseState, !0, hasAnimation);
|
|
21833
21849
|
}
|
|
21834
21850
|
}), newStatedGraphics.forEach(g => {
|
|
21835
|
-
var _a;
|
|
21836
21851
|
if (reverseState && markIdByState[reverseState] && markIdByState[reverseState].includes(g.context.markId)) {
|
|
21837
|
-
const
|
|
21838
|
-
hasAnimation = m.hasAnimationByState && m.hasAnimationByState("state");
|
|
21852
|
+
const hasAnimation = this._hasAnimationByGraphicState(g, markById);
|
|
21839
21853
|
removeGraphicState(g, reverseState, hasAnimation);
|
|
21840
21854
|
}
|
|
21841
21855
|
});
|
|
21842
21856
|
}
|
|
21843
21857
|
toggleStateOfGraphics(trigger, newStatedGraphics, prevStatedGraphics, state) {
|
|
21844
|
-
const markIdByState = trigger.getMarkIdByState()
|
|
21858
|
+
const markIdByState = trigger.getMarkIdByState(),
|
|
21859
|
+
markById = this._getMarkById(trigger);
|
|
21845
21860
|
prevStatedGraphics.forEach(g => {
|
|
21846
|
-
var _a;
|
|
21847
21861
|
if (state && markIdByState[state] && markIdByState[state].includes(g.context.markId)) {
|
|
21848
|
-
const
|
|
21849
|
-
hasAnimation = m.hasAnimationByState && m.hasAnimationByState("state");
|
|
21862
|
+
const hasAnimation = this._hasAnimationByGraphicState(g, markById);
|
|
21850
21863
|
removeGraphicState(g, state, hasAnimation);
|
|
21851
21864
|
}
|
|
21852
21865
|
}), newStatedGraphics.forEach(g => {
|
|
21853
|
-
var _a;
|
|
21854
21866
|
if (state && markIdByState[state] && markIdByState[state].includes(g.context.markId)) {
|
|
21855
|
-
const
|
|
21856
|
-
hasAnimation = m.hasAnimationByState && m.hasAnimationByState("state");
|
|
21867
|
+
const hasAnimation = this._hasAnimationByGraphicState(g, markById);
|
|
21857
21868
|
addGraphicState(g, state, !0, hasAnimation);
|
|
21858
21869
|
}
|
|
21859
21870
|
});
|
|
@@ -24587,7 +24598,7 @@
|
|
|
24587
24598
|
const marks = this.getMarksWithoutRoot();
|
|
24588
24599
|
marks.forEach(mark => {
|
|
24589
24600
|
mark.clearBeforeReInit(), this._spec[mark.name] && this.initMarkStyleWithSpec(mark, this._spec[mark.name]);
|
|
24590
|
-
}), this.initMarkStyle(), marks.forEach(mark => {
|
|
24601
|
+
}), this.initMarkStyle(), this.initMarkState(), marks.forEach(mark => {
|
|
24591
24602
|
mark.commit(!1);
|
|
24592
24603
|
}), this._updateExtensionMarkSpec(), this._updateSpecData(), this._tooltipHelper && this._tooltipHelper.updateTooltipSpec();
|
|
24593
24604
|
isAnimationEnabledForSeries(this) && this.initAnimation();
|