Commit 28a3e115 authored by Oleg.Korshul's avatar Oleg.Korshul Committed by Alexander.Trofimov

retina math & excluded types

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@59373 954022d7-b5bf-4e40-9824-e11837661b57
parent 1fe99b1d
This diff is collapsed.
......@@ -1011,7 +1011,7 @@ ParaMath.prototype.NeedCompiledCtrPr = function()
{
this.Root.NeedCompiledCtrPr();
};
ParaMath.prototype.MathToImageConverter = function(bCopy, _canvasInput, _widthPx, _heightPx)
ParaMath.prototype.MathToImageConverter = function(bCopy, _canvasInput, _widthPx, _heightPx, raster_koef)
{
var bTurnOnId = false, bTurnOnHistory = false;
if (false === g_oTableId.m_bTurnOff)
......@@ -1081,6 +1081,17 @@ ParaMath.prototype.MathToImageConverter = function(bCopy, _canvasInput, _widthPx
var w_px = (w_mm * dKoef) >> 0;
var h_px = (h_mm * dKoef) >> 0;
if (undefined !== raster_koef)
{
w_px *= raster_koef;
h_px *= raster_koef;
if (undefined !== _widthPx)
_widthPx *= raster_koef;
if (undefined !== _heightPx)
_heightPx *= raster_koef;
}
var _canvas = (_canvasInput === undefined) ? document.createElement('canvas') : _canvasInput;
_canvas.width = (undefined == _widthPx) ? w_px : _widthPx;
......
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