Pull pending cell edits into the model, then apply a structural * transform and commit — all without an intermediate dispatch, so our DOM * stays attached for the single `commitTable` write.
(
fn: (model: MarkdownTable) => MarkdownTable,
focus?: CellAddress
)
| 181 | * transform and commit — all without an intermediate dispatch, so our DOM |
| 182 | * stays attached for the single `commitTable` write. */ |
| 183 | private applyTransform( |
| 184 | fn: (model: MarkdownTable) => MarkdownTable, |
| 185 | focus?: CellAddress |
| 186 | ): void { |
| 187 | this.syncFromDom() |
| 188 | this.applyModel(fn(this.model), focus) |
| 189 | } |
| 190 | |
| 191 | private focusCellAt(addr: CellAddress): void { |
| 192 | const view = this.view |
no test coverage detected