Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make the tiles on a selection a struct of info, not twinned lists (#143)
Currently, selections maintain a list of tiles and a list of how many matches there are in them that are guaranteed to be the same length by code. It's better to have a list of records where each record contains *both* of these facts; we'll be using these much more to store sort information in a bit. <!-- ELLIPSIS_HIDDEN --> ---- | 🚀 | This description was created by 3c779e2 | |--------|--------| refactor: use `SelectionTile` in `DataSelection` for tile management ### Summary: Refactor `DataSelection` to use `SelectionTile` for managing tiles and match counts, simplifying data handling and preparing for future enhancements. **Key points**: - Refactor `DataSelection` to use `SelectionTile` for managing tiles and match counts. - Introduce `SelectionTile` class in `src/selection.ts`. - Replace separate `tiles` and `match_count` lists with a single list of `SelectionTile` objects. - Update methods to use `SelectionTile`, including `moveCursorToPoint()`, `add_or_remove_points()`, and `wrapWithSelectionMetadata()`. - Adjust iteration and selection logic for `SelectionTile`. - Fix typo in comment: "untile" to "until". ---- Generated with ❤️ by [ellipsis.dev](https://www.ellipsis.dev) <!-- ELLIPSIS_HIDDEN -->
- Loading branch information