Improve rects grouping.
Screencast of changes: https://screencast.googleplex.com/cast/NjU0MzExNTYxODg3NzQ0MHxkZDE5OTQwZS04OA
SF: User can track by display or by stack id.
WM: User tracks by display id.
Labelled grouping buttons with more meaningful display names than stack ids. Appended duplicate names with (Mirror).
Offscreen Display layer rects handled for SF.
Handled invalid MAX_UNSIGNED_INT stack ids correctly.
Reorganised input change handlers in RectsComponent to ensure drawLargeRectsAndLabels() is not called twice when rects and displays are both set, to improve performance.
Ordered buttons alphabetically for greater consistency (ordering by stackId, for example, may cause them to jump around).
Bug: b/304311233
Test: npm run test:unit:ci
Change-Id: Ic7c5c02c427835a59331a8c0d76b25ff5666515c
23 files changed