( layout: Layout, id: string )
| 41 | * @returns The layout item, or undefined if not found |
| 42 | */ |
| 43 | export function getLayoutItem( |
| 44 | layout: Layout, |
| 45 | id: string |
| 46 | ): LayoutItem | undefined { |
| 47 | for (let i = 0; i < layout.length; i++) { |
| 48 | const item = layout[i]; |
| 49 | if (item !== undefined && item.i === id) { |
| 50 | return item; |
| 51 | } |
| 52 | } |
| 53 | return undefined; |
| 54 | } |
| 55 | |
| 56 | /** |
| 57 | * Get all static items from the layout. |
no outgoing calls
no test coverage detected
searching dependent graphs…