Skip to content

Commit

Permalink
fix: g2plot 大小写问题修复; 并升级g2的依赖为4.1.30
Browse files Browse the repository at this point in the history
  • Loading branch information
Leannechn committed Oct 8, 2021
1 parent aa3b368 commit d1e6b85
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 14 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bizcharts",
"version": "4.1.12",
"version": "4.1.13",
"description": "bizcharts",
"keywords": [
"bizcharts",
Expand Down
4 changes: 2 additions & 2 deletions src/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import * as SVGEngine from '@antv/g-svg/lib';
import { registerEngine } from '@antv/g2/lib/core';
// 导出自定义比例尺的能力
export { registerScale, getScale, registerTickMethod } from '@antv/scale';
export { setGlobal, GLOBAL } from '@antv/g2Plot/lib/core/global';
export { setGlobal, GLOBAL } from '@antv/g2plot/lib/core/global';
import './extend/scale/scale';

// 动画
Expand All @@ -17,7 +17,7 @@ registerEngine('svg', SVGEngine);

// @ts-ignore
export * from '@antv/g2/lib/core';
export const VERSION = '4.1.12';
export const VERSION = '4.1.13';



Expand Down
6 changes: 3 additions & 3 deletions src/createPlot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ import { debounce, isArray, isFunction, isNil } from '@antv/util';
import warn from 'warning';

// 国际化处理
import { registerLocale } from '@antv/g2Plot/lib/core/locale';
import { EN_US_LOCALE } from '@antv/g2Plot/lib/locales/en_US';
import { ZH_CN_LOCALE } from '@antv/g2Plot/lib/locales/zh_CN';
import { registerLocale } from '@antv/g2plot/lib/core/locale';
import { EN_US_LOCALE } from '@antv/g2plot/lib/locales/en_US';
import { ZH_CN_LOCALE } from '@antv/g2plot/lib/locales/zh_CN';
/** default locale register */
registerLocale('en-US', EN_US_LOCALE);
registerLocale('zh-CN', ZH_CN_LOCALE);
Expand Down
8 changes: 0 additions & 8 deletions src/theme/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,6 @@ import { registerTheme } from '@antv/g2/lib/theme';

export { createThemeByStyleSheet, antvLight, antvDark };

// fixme: 临时解Roboto 字体问题,根本解决需要同antv 设计师讨论
antvDark.fontFamily = `"-apple-system", "Segoe UI", "Helvetica Neue", Arial,
"Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",
"Noto Color Emoji", Roboto`;
antvLight.fontFamily = `"-apple-system", "Segoe UI", "Helvetica Neue", Arial,
"Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",
"Noto Color Emoji", Roboto`;

registerTheme('dark', createThemeByStyleSheet(antvDark));
registerTheme('default', createThemeByStyleSheet(antvLight));
registerTheme('light', createThemeByStyleSheet(antvLight));

0 comments on commit d1e6b85

Please sign in to comment.