Methods
(async, static) createObj() → {Promise.<PointStyle>}
构造一个新的PointStyle对象,可通过无参或有参构造。
有参构造的参数为:颜色(string,eg:'rgba(128, 128, 128, 128)'),大小(float类型的Number)
- Source:
Returns:
- Type
- Promise.<PointStyle>
(async, static) getColor() → {String}
获取点样式的颜色
- Source:
Returns:
颜色
- Type
- String
(async, static) getSize() → {Number}
获取点的大小
- Source:
Returns:
点的大小 (float类型的Number)
- Type
- Number
(async, static) setColor(color) → {Promise.<Void>}
设置点样式的颜色
Parameters:
| Name | Type | Description |
|---|---|---|
color |
String | 颜色 eg:'rgba(128, 128, 128, 128)' |
- Source:
Returns:
- Type
- Promise.<Void>
(async, static) setSize(size) → {Promise.<Void>}
设置点的大小
Parameters:
| Name | Type | Description |
|---|---|---|
size |
Number | 点的大小 (float类型的Number) |
- Source:
Returns:
- Type
- Promise.<Void>