(polygonsIn, isOpenMode)
| 1052 | } |
| 1053 | |
| 1054 | function convertPoly(polygonsIn, isOpenMode) { // add M and L command to draft positions |
| 1055 | var polygonsOut = []; |
| 1056 | for(var i = 0; i < polygonsIn.length; i++) { |
| 1057 | polygonsOut[i] = []; |
| 1058 | for(var j = 0; j < polygonsIn[i].length; j++) { |
| 1059 | polygonsOut[i][j] = []; |
| 1060 | polygonsOut[i][j][0] = j ? 'L' : 'M'; |
| 1061 | for(var k = 0; k < polygonsIn[i][j].length; k++) { |
| 1062 | polygonsOut[i][j].push( |
| 1063 | polygonsIn[i][j][k] |
| 1064 | ); |
| 1065 | } |
| 1066 | } |
| 1067 | |
| 1068 | if(!isOpenMode) { |
| 1069 | polygonsOut[i].push([ |
| 1070 | 'Z', |
| 1071 | polygonsOut[i][0][1], // initial x |
| 1072 | polygonsOut[i][0][2] // initial y |
| 1073 | ]); |
| 1074 | } |
| 1075 | } |
| 1076 | |
| 1077 | return polygonsOut; |
| 1078 | } |
| 1079 | |
| 1080 | function _doSelect(selectionTesters, searchTraces) { |
| 1081 | var allSelections = []; |
no outgoing calls
no test coverage detected
searching dependent graphs…