• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

antvis / L7Plot / 9478568050

12 Jun 2024 07:33AM UTC coverage: 56.968% (-2.6%) from 59.55%
9478568050

push

github

web-flow
chore: type mis (#356)

* chore: type mis

* chore: compiler options target

960 of 2222 branches covered (43.2%)

Branch coverage included in aggregate %.

2 of 2 new or added lines in 1 file covered. (100.0%)

916 existing lines in 53 files now uncovered.

2768 of 4322 relevant lines covered (64.04%)

234.63 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

73.33
/packages/l7plot/src/theme/index.ts
1
import { get, lowerCase } from '@antv/util';
2

124✔
3
import { createDarkTheme, createTheme } from './util';
124✔
4

124✔
5
const defaultTheme = createTheme({});
124✔
6
const darkTheme = createDarkTheme({});
124✔
7

124✔
8
// 所有已经存在的主题
9
const Themes: Record<string, Record<string, any>> = {
124✔
10
  default: defaultTheme,
11
  light: defaultTheme,
12
  dark: darkTheme,
13
};
14

15
/**
16
 * 获取主题配置信息。
17
 */
336✔
18
export function getTheme(theme = 'default'): Record<string, any> {
336✔
19
  return get(Themes, lowerCase(theme), Themes['default']);
20
}
124✔
21

22
/**
23
 * 注册新的主题配置信息。
24
 */
×
UNCOV
25
export function registerTheme(theme: string, value: Record<string, any>, type: 'light' | 'dark' = 'light') {
×
26
  Themes[lowerCase(theme)] = type === 'light' ? createTheme(value) : createDarkTheme(value);
27
}
124✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc