Commit eca9db3e authored by Alexander.Trofimov's avatar Alexander.Trofimov

add method GetSelectionRectsBounds

parent de601d6c
......@@ -2999,6 +2999,13 @@
WorkbookView.prototype.Is_SelectionUse = function () {
return !this.getWorksheet().getSelectionShape();
};
WorkbookView.prototype.GetSelectionRectsBounds = function () {
var ws = this.getWorksheet();
var range = ws.getSelectedRange();
var p1 = this.getCellCoord(range.c1, range.r1);
var p2 = this.getCellCoord(range.c2, range.r2);
return {X : p1._x, Y : p1._y, W : p2._x - p1._x + p2._width., H : p2._y - p1._y + p2._height};
};
//------------------------------------------------------------export---------------------------------------------------
window['AscCommonExcel'] = window['AscCommonExcel'] || {};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment