* Returns the top-most group in that position * @param x The x coordinate in canvas space * @param y The y coordinate in canvas space * @returns The group or null
(x: number, y: number)
| 1054 | * @returns The group or null |
| 1055 | */ |
| 1056 | getGroupOnPos(x: number, y: number): LGraphGroup | undefined { |
| 1057 | return this._groups.toReversed().find(g => g.isPointInside(x, y)) |
| 1058 | } |
| 1059 | |
| 1060 | /** |
| 1061 | * Returns the top-most group with a titlebar in the provided position. |
no test coverage detected