Methods
(async, static) createObj() → {Promise.<FillStyle>}
构造一个新的FillStyle对象,包含无参构造和有参构造两种方式。
有参构造参数为:颜色(String, eg:'rgba(128, 128, 128, 128)')、线样式(LineStyle类型的Object)。
- Source:
Returns:
- Type
- Promise.<FillStyle>
(async, static) getColor() → {String}
获取区样式填充色
- Source:
Returns:
填充色
- Type
- String
(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) setLineStyle(lineStyle) → {Promise.<Void>}
设置轮廓样式
Parameters:
| Name | Type | Description |
|---|---|---|
lineStyle |
Object | 轮廓样式(实线含颜色和宽度) |
- Source:
Returns:
- Type
- Promise.<Void>