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

CTextMeasurer to AscCommon

parent 05a7ed11
......@@ -310,6 +310,7 @@
//--------------------------------------------------------export----------------------------------------------------
window['AscCommon'] = window['AscCommon'] || {};
window['AscCommon'].CTextMeasurer = CTextMeasurer;
window['AscCommon'].g_oTextMeasurer = g_oTextMeasurer;
})(window);
......@@ -47,7 +47,7 @@ var FOCUS_OBJECT_NOTES = 2;
var COMMENT_WIDTH = 18;
var COMMENT_HEIGHT = 16;
CTextMeasurer.prototype.GetAscender = function()
AscCommon.CTextMeasurer.prototype.GetAscender = function()
{
var UnitsPerEm = this.m_oManager.m_lUnits_Per_Em;
//var Ascender = this.m_oManager.m_lAscender;
......@@ -55,7 +55,7 @@ CTextMeasurer.prototype.GetAscender = function()
return Ascender * this.m_oLastFont.SetUpSize / UnitsPerEm * g_dKoef_pt_to_mm;
};
CTextMeasurer.prototype.GetDescender = function()
AscCommon.CTextMeasurer.prototype.GetDescender = function()
{
var UnitsPerEm = this.m_oManager.m_lUnits_Per_Em;
//var Descender = this.m_oManager.m_lDescender;
......@@ -63,7 +63,7 @@ CTextMeasurer.prototype.GetDescender = function()
return Descender * this.m_oLastFont.SetUpSize / UnitsPerEm * g_dKoef_pt_to_mm;
};
CTextMeasurer.prototype.GetHeight = function()
AscCommon.CTextMeasurer.prototype.GetHeight = function()
{
var UnitsPerEm = this.m_oManager.m_lUnits_Per_Em;
//var Height = this.m_oManager.m_lLineHeight;
......
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