UNPKG

@atlaskit/editor-plugin-table

Version:

Table plugin for the @atlaskit/editor

14 lines 411 B
export const getSelectedColumnIndexes = selectionRect => { const columnIndexes = []; for (let i = selectionRect.left; i < selectionRect.right; i++) { columnIndexes.push(i); } return columnIndexes; }; export const getSelectedRowIndexes = selectionRect => { const rowIndexes = []; for (let i = selectionRect.top; i < selectionRect.bottom; i++) { rowIndexes.push(i); } return rowIndexes; };