Commit 74aac471 authored by Oleg.Korshul's avatar Oleg.Korshul

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@60680 954022d7-b5bf-4e40-9824-e11837661b57
parent fefe4e38
...@@ -1470,7 +1470,7 @@ CDrawingDocument.prototype = ...@@ -1470,7 +1470,7 @@ CDrawingDocument.prototype =
{ {
// проверям на попадание в графические объекты (грубо говоря - треки) // проверям на попадание в графические объекты (грубо говоря - треки)
global_mouseEvent.KoefPixToMM = 5; global_mouseEvent.KoefPixToMM = 5;
var _isDrawings = this.LogicDocument.DrawingObjects.isPointInDrawingObjects2(pos.X, pos.Y, pos.Page); var _isDrawings = this.LogicDocument.DrawingObjects.isPointInDrawingObjects2(pos.X, pos.Y, pos.Page, true);
if (_isDrawings) if (_isDrawings)
{ {
......
...@@ -3273,6 +3273,19 @@ function CThumbnailsManager() ...@@ -3273,6 +3273,19 @@ function CThumbnailsManager()
} }
} }
this.GetThumbnailPagePosition = function(pageIndex)
{
if (pageIndex < 0 || pageIndex >= this.m_arrPages.length)
return null;
var drawRect = this.m_arrPages[pageIndex];
var _ret = { X : this.m_oWordControl.X + drawRect.left,
Y : this.m_oWordControl.X + drawRect.top,
W : drawRect.right - drawRect.left + 1,
H : drawRect.bottom - drawRect.top + 1};
return _ret;
}
this.ConvertCoords = function(x, y, isPage, isFixed) this.ConvertCoords = function(x, y, isPage, isFixed)
{ {
var Pos = {X : x, Y : y}; var Pos = {X : x, Y : y};
......
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