UNPKG

@atlaskit/editor-plugin-table

Version:

Table plugin for the @atlaskit/editor

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