Files
AFFiNE/blocksuite
DarkSky 91d9e00dd9 feat(editor): drag table rows and columns by their axis pills
Port the BlockSuite rowDrag and columnDrag gestures to the Simple Table
axis pills, in Page mode and in an edited Edgeless note.

- A click on a pill opens the axis menu as before. Like the BlockSuite
  pill click, the press and the release must be on the same pill, and
  the pointer must not move more than 10 px along the axis.
- A longer drag closes the menu and hides the pills and add bars. It
  tints the dragged row or column and shows a preview of its cells that
  follows the pointer. A 5 px indicator marks the target gap. The gap
  rule is the same as getTargetIndexByDraggingOffset.
- The release writes one fractional order key through the new
  PageDocSession::move_table_axis_to, in one undo step. Cell text,
  colors and column widths stay with the row or column.
- A release at the start gap writes nothing. Escape stops the drag and
  writes nothing.
- move_table_axis now uses move_table_axis_to.
2026-12-04 17:17:01 +09:00
..
2026-10-10 23:28:25 +08:00