Methods
(async, static) append(theme) → {boolean}
向集合中添加专题图
Parameters:
| Name | Type | Description |
|---|---|---|
theme |
Object | 专题图 (Object--Theme) |
Returns:
true-成功 ;false-失败
- Type
- boolean
(async, static) clear() → {boolean}
清空集合中所有的专题图
Returns:
true-成功 ;false-失败
- Type
- boolean
(async, static) createObj() → {Promise.<Themes>}
创建一个新的Themes对象
Returns:
- Type
- Promise.<Themes>
(async, static) getCount() → {int}
获得专题图个数
Returns:
专题图个数
- Type
- int
(async, static) getThemeByIndex(index) → {Promise.<Theme>}
获得指定位置的专题图
Parameters:
| Name | Type | Description |
|---|---|---|
index |
int | 专题图索引 |
Returns:
成功返回指定位置的专题图
- Type
- Promise.<Theme>
(async, static) getThemeByName(name, index) → {Promise.<Theme>}
根据名称和索引获得专题图
Parameters:
| Name | Type | Description |
|---|---|---|
name |
String | 专题图名称 |
index |
int | 专题图索引 |
Returns:
成功返回指定位置的专题图
- Type
- Promise.<Theme>
(async, static) getVisibleBaseTheme() → {Promise.<Theme>}
获得可见的单值或统计专题图
Returns:
- Type
- Promise.<Theme>
(async, static) getVisibleSurfaceTheme() → {Promise.<Theme>}
获得可见的专题图
Returns:
- Type
- Promise.<Theme>
(async, static) remove(index) → {boolean}
移除指定位置处的专题图
Parameters:
| Name | Type | Description |
|---|---|---|
index |
int | 专题图位置 |
Returns:
true-成功 ;false-失败
- Type
- boolean