(errors)
| 104 | } |
| 105 | |
| 106 | function calculateErrorParams(errors) { |
| 107 | var capSize = [0.0, 0.0, 0.0]; |
| 108 | var color = [ |
| 109 | [0, 0, 0], |
| 110 | [0, 0, 0], |
| 111 | [0, 0, 0] |
| 112 | ]; |
| 113 | var lineWidth = [1.0, 1.0, 1.0]; |
| 114 | |
| 115 | for (var i = 0; i < 3; i++) { |
| 116 | var e = errors[i]; |
| 117 | |
| 118 | if (e && e.copy_zstyle !== false && errors[2].visible !== false) e = errors[2]; |
| 119 | if (!e || !e.visible) continue; |
| 120 | |
| 121 | capSize[i] = e.width / 2; // ballpark rescaling |
| 122 | color[i] = str2RgbaArray(e.color); |
| 123 | lineWidth[i] = e.thickness; |
| 124 | } |
| 125 | |
| 126 | return { capSize: capSize, color: color, lineWidth: lineWidth }; |
| 127 | } |
| 128 | |
| 129 | function parseAlignmentX(a) { |
| 130 | if (a === null || a === undefined) return 0; |
no test coverage detected
searching dependent graphs…