(fn: (prev: Point) => [patches: Diff, next: Delta])
| 1796 | } |
| 1797 | |
| 1798 | txn(fn: (prev: Point) => [patches: Diff, next: Delta]): void { |
| 1799 | const [patches, next] = fn(this.cursor) |
| 1800 | for (const patch of patches) { |
| 1801 | this.diff.push(patch) |
| 1802 | } |
| 1803 | this.cursor.x += next.dx |
| 1804 | this.cursor.y += next.dy |
| 1805 | } |
| 1806 | } |
no outgoing calls
no test coverage detected