(document: PseudocodeDocument)
| 167 | * would be Prev/Next walking through the furniture. |
| 168 | */ |
| 169 | export function flowSteps(document: PseudocodeDocument): FlowStep[] { |
| 170 | const out: FlowStep[] = []; |
| 171 | document.lines.forEach((line, lineIndex) => { |
| 172 | if (line.order !== undefined) { |
| 173 | out.push({ lineIndex, line }); |
| 174 | } |
| 175 | }); |
| 176 | return out; |
| 177 | } |
| 178 | |
| 179 | /** What one step lights up in the drawing. */ |
| 180 | export interface FlowHighlight { |
no test coverage detected