(a)
| 132 | |
| 133 | |
| 134 | export const matrixToarray = function (a) { |
| 135 | let _points = []; //将矩阵洗成 点位数组 |
| 136 | a.forEach(function (item) { |
| 137 | _points.push([item[0][0], item[1][0]]) |
| 138 | }); |
| 139 | |
| 140 | return _points; |
| 141 | } |
| 142 | |
| 143 | |
| 144 | // 将 16进制 颜色 转成 rgb 用于渐变 https://stackoverflow.com/questions/5623838/rgb-to-hex-and-hex-to-rgb |
no outgoing calls
no test coverage detected