Skip to content

Commit

Permalink
Merge pull request #18862 from captainhaddock18/master
Browse files Browse the repository at this point in the history
chore: fix a typo in `core/echarts.ts`
  • Loading branch information
plainheart authored Jul 7, 2023
2 parents a92b0df + fd58e52 commit 173fac6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/echarts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2087,12 +2087,12 @@ class ECharts extends Eventful<ECEventDefinition> {
};
const componentZLevels: ZLevelItem[] = [];
const seriesZLevels: ZLevelItem[] = [];
let hasSeperateZLevel = false;
let hasSeparateZLevel = false;
ecModel.eachComponent(function (componentType, componentModel) {
const zlevel = componentModel.get('zlevel') || 0;
const z = componentModel.get('z') || 0;
const zlevelKey = componentModel.getZLevelKey();
hasSeperateZLevel = hasSeperateZLevel || !!zlevelKey;
hasSeparateZLevel = hasSeparateZLevel || !!zlevelKey;
(componentType === 'series' ? seriesZLevels : componentZLevels).push({
zlevel,
z,
Expand All @@ -2102,7 +2102,7 @@ class ECharts extends Eventful<ECEventDefinition> {
});
});

if (hasSeperateZLevel) {
if (hasSeparateZLevel) {
// Series after component
const zLevels: ZLevelItem[] = componentZLevels.concat(seriesZLevels);
let lastSeriesZLevel: number;
Expand Down

0 comments on commit 173fac6

Please sign in to comment.