MCPcopy Create free account
hub / github.com/bobiscool/wxDraw / matrixToarray

Function matrixToarray

wxDraw/src/util/utils.js:134–141  ·  view source on GitHub ↗
(a)

Source from the content-addressed store, hash-verified

132
133
134export 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

Callers 9

genPointsFunction · 0.90
rect.jsFile · 0.90
cshape.jsFile · 0.90
text.jsFile · 0.90
img.jsFile · 0.90
circle.jsFile · 0.90
roundRect.jsFile · 0.90
polygon.jsFile · 0.90
ellipse.jsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected