(fn: (prev: Point) => [patches: Diff, next: Delta])
| 763 | } |
| 764 | |
| 765 | txn(fn: (prev: Point) => [patches: Diff, next: Delta]): void { |
| 766 | const [patches, next] = fn(this.cursor) |
| 767 | for (const patch of patches) { |
| 768 | this.diff.push(patch) |
| 769 | } |
| 770 | this.cursor.x += next.dx |
| 771 | this.cursor.y += next.dy |
| 772 | } |
| 773 | } |
| 774 |
no test coverage detected