Skip to content

Commit

Permalink
Merge pull request #17750 from mountainash/fix/unkown-spelling
Browse files Browse the repository at this point in the history
chore: fix spelling mistake 'unkown' to 'unknown'
  • Loading branch information
plainheart authored Oct 11, 2022
2 parents a840d46 + e79b4d4 commit 672c724
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/chart/lines/LinesSeries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ class LinesSeriesModel extends SeriesModel<LinesSeriesOption> {
if (__DEV__) {
const CoordSys = CoordinateSystem.get(option.coordinateSystem);
if (!CoordSys) {
throw new Error('Unkown coordinate system ' + option.coordinateSystem);
throw new Error('Unknown coordinate system ' + option.coordinateSystem);
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/model/Global.ts
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ import { ${seriesImportName} } from 'echarts/charts';
echarts.use([${seriesImportName}]);`);
}
else {
error(`Unkown series ${subType}`);
error(`Unknown series ${subType}`);
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/visual/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function getStyleMapper(seriesModel: SeriesModel, stylePath: string) {
const styleMapper = seriesModel.visualStyleMapper
|| defaultStyleMappers[stylePath as 'itemStyle' | 'lineStyle'];
if (!styleMapper) {
console.warn(`Unkown style type '${stylePath}'.`);
console.warn(`Unknown style type '${stylePath}'.`);
return defaultStyleMappers.itemStyle;
}
return styleMapper;
Expand All @@ -55,7 +55,7 @@ function getDefaultColorKey(seriesModel: SeriesModel, stylePath: string): 'strok
|| defaultColorKey[stylePath as 'itemStyle' | 'lineStyle'];

if (!colorKey) {
console.warn(`Unkown style type '${stylePath}'.`);
console.warn(`Unknown style type '${stylePath}'.`);
return 'fill';
}

Expand Down

0 comments on commit 672c724

Please sign in to comment.