# Class: Themes

## Themes()

#### new Themes()

专题图集合

Source:
  - Themes.js, line 12

### Methods

#### (async, static) append(theme) → {boolean}

向集合中添加专题图

##### Parameters:

Name | Type | Description
--- | --- | ---
`theme` | Object | 专题图 (Object--Theme)

Source:
  - Themes.js, line 104

##### Returns:

true-成功 ；false-失败

Type
  boolean

#### (async, static) clear() → {boolean}

清空集合中所有的专题图

Source:
  - Themes.js, line 135

##### Returns:

true-成功 ；false-失败

Type
  boolean

#### (async, static) createObj() → {Promise.<Themes>}

创建一个新的Themes对象

Source:
  - Themes.js, line 23

##### Returns:

Type
  Promise.<Themes>

#### (async, static) getCount() → {int}

获得专题图个数

Source:
  - Themes.js, line 40

##### Returns:

专题图个数

Type
  int

#### (async, static) getThemeByIndex(index) → {Promise.<Theme>}

获得指定位置的专题图

##### Parameters:

Name | Type | Description
--- | --- | ---
`index` | int | 专题图索引

Source:
  - Themes.js, line 151

##### Returns:

成功返回指定位置的专题图

Type
  Promise.<Theme>

#### (async, static) getThemeByName(name, index) → {Promise.<Theme>}

根据名称和索引获得专题图

##### Parameters:

Name | Type | Description
--- | --- | ---
`name` | String | 专题图名称
`index` | int | 专题图索引

Source:
  - Themes.js, line 173

##### Returns:

成功返回指定位置的专题图

Type
  Promise.<Theme>

#### (async, static) getVisibleBaseTheme() → {Promise.<Theme>}

获得可见的单值或统计专题图

Source:
  - Themes.js, line 55

##### Returns:

Type
  Promise.<Theme>

#### (async, static) getVisibleSurfaceTheme() → {Promise.<Theme>}

获得可见的专题图

Source:
  - Themes.js, line 79

##### Returns:

Type
  Promise.<Theme>

#### (async, static) remove(index) → {boolean}

移除指定位置处的专题图

##### Parameters:

Name | Type | Description
--- | --- | ---
`index` | int | 专题图位置

Source:
  - Themes.js, line 120

##### Returns:

true-成功 ；false-失败

Type
  boolean