* 将字符串颜色值转换成rgba对象 * @param color
(color)
| 1513 | * @param color |
| 1514 | */ |
| 1515 | function string2RGBAData(color) { |
| 1516 | const data = Color.getData(Color.toRGBA(color)); |
| 1517 | const [r, g, b, a] = data; |
| 1518 | return { r, g, b, a }; |
| 1519 | } |
| 1520 | |
| 1521 | async function getChangedImageUrl(url, iconStyle) { |
| 1522 | const img = await loadImage(url); |
no test coverage detected