MCPcopy Create free account
hub / github.com/editablejs/editable / removeRow

Function removeRow

packages/models/src/transforms/delete.ts:68–76  ·  view source on GitHub ↗
(path: Path, start = true)

Source from the content-addressed store, hash-verified

66 Transforms.collapse(editor, { edge: 'anchor' })
67 } else {
68 const removeRow = (path: Path, start = true) => {
69 const grid = Grid.above(editor, path)
70 if (grid) {
71 const [row] = GridCell.toPoint(path)
72 for (let r = start ? grid[0].children.length - 1 : row; r >= (start ? row : 0); r--) {
73 Grid.removeRow(editor, grid[1], r)
74 }
75 }
76 }
77 // 开始位置选中在grid内
78 if (start) {
79 removeRow(start[1])

Callers 1

_deleteFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…