Commit 18d5bd2b authored by Alexander.Trofimov's avatar Alexander.Trofimov

delete usMobileVersion from browser

delete unused setMobileVersion
parent a367c720
......@@ -546,11 +546,6 @@ var editor;
return this.wb.getTablePictures(props);
};
spreadsheet_api.prototype.asc_setMobileVersion = function(isMobile) {
this.isMobileVersion = isMobile;
AscCommon.AscBrowser.isMobileVersion = isMobile;
};
spreadsheet_api.prototype.getViewMode = function() {
return this.isViewMode;
};
......@@ -3325,10 +3320,6 @@ var editor;
spreadsheet_api.prototype._onEndLoadSdk = function () {
History = AscCommon.History;
if (this.isMobileVersion) {
this.asc_setMobileVersion(true);
}
AscCommon.baseEditorsApi.prototype._onEndLoadSdk.call(this);
this.controller = new AscCommonExcel.asc_CEventsController();
......@@ -3386,7 +3377,6 @@ var editor;
prot["asc_setAutoSaveGap"] = prot.asc_setAutoSaveGap;
prot["asc_setMobileVersion"] = prot.asc_setMobileVersion;
prot["asc_setViewMode"] = prot.asc_setViewMode;
prot["asc_setAdvancedOptions"] = prot.asc_setAdvancedOptions;
prot["asc_setPageOptions"] = prot.asc_setPageOptions;
......
......@@ -983,33 +983,8 @@
var _g = this.fillColor.g;
var _b = this.fillColor.b;
if (AscCommon.AscBrowser.isMobileVersion) {
// Special for iPad (5.1)
if (!_r && !_g && !_b) {
this.ctx.drawImage(pGlyph.oBitmap.oGlyphData.m_oCanvas, 0, 0, nW, nH, nX, nY, nW, nH);
} else {
var canvD = $("<canvas width='"+nW+"' height='"+nH+"'/>")[0];
var ctxD = canvD.getContext("2d");
var pixDst = ctxD.getImageData(0, 0, nW, nH);
var dstP = pixDst.data;
var data = pGlyph.oBitmap.oGlyphData.m_oContext.getImageData(0, 0, nW, nH);
var dataPx = data.data;
var cur = 0;
var cnt = 4 * nW * nH;
for (var i = 3; i < cnt; i += 4) {
dstP[cur++] = _r;
dstP[cur++] = _g;
dstP[cur++] = _b;
dstP[cur++] = dataPx[i];
}
ctxD.putImageData(pixDst, 0, 0, 0, 0, nW, nH);
this.ctx.drawImage(canvD, 0, 0, nW, nH, nX, nY, nW, nH);
}
} else {
pGlyph.oBitmap.oGlyphData.checkColor(_r, _g, _b, nW, nH);
pGlyph.oBitmap.draw(this.ctx, nX, nY);
}
};
DrawingContext.prototype.fillText = function (text, x, y, maxWidth, charWidths, angle) {
......
......@@ -45,7 +45,6 @@ var AscBrowser = {
isAppleDevices : false,
isAndroid : false,
isMobile : false,
isMobileVersion : false,
isGecko : false,
isChrome : false,
isOpera : false,
......
......@@ -5073,18 +5073,6 @@ background-repeat: no-repeat;\
}
};
asc_docs_api.prototype.SetMobileVersion = function(val)
{
this.isMobileVersion = val;
if (/*this.isMobileVersion*/false)
{
this.WordControl.bIsRetinaSupport = false; // ipad имеет проблемы с большими картинками
this.WordControl.bIsRetinaNoSupportAttack = true;
this.WordControl.m_bIsRuler = false;
this.ShowParaMarks = false;
}
};
asc_docs_api.prototype.GoToHeader = function(pageNumber)
{
if (this.WordControl.m_oDrawingDocument.IsFreezePage(pageNumber))
......@@ -6190,9 +6178,6 @@ background-repeat: no-repeat;\
}
}
if (this.isMobileVersion)
this.SetMobileVersion(true);
this.asc_setViewMode(this.isViewMode);
AscCommon.baseEditorsApi.prototype._onEndLoadSdk.call(this);
......@@ -6941,7 +6926,6 @@ background-repeat: no-repeat;\
asc_docs_api.prototype['asc_SetViewRulersChange'] = asc_docs_api.prototype.asc_SetViewRulersChange;
asc_docs_api.prototype['asc_GetViewRulers'] = asc_docs_api.prototype.asc_GetViewRulers;
asc_docs_api.prototype['asc_SetDocumentUnits'] = asc_docs_api.prototype.asc_SetDocumentUnits;
asc_docs_api.prototype['SetMobileVersion'] = asc_docs_api.prototype.SetMobileVersion;
asc_docs_api.prototype['GoToHeader'] = asc_docs_api.prototype.GoToHeader;
asc_docs_api.prototype['changeSlideSize'] = asc_docs_api.prototype.changeSlideSize;
asc_docs_api.prototype['AddSlide'] = asc_docs_api.prototype.AddSlide;
......
......@@ -6083,20 +6083,6 @@ background-repeat: no-repeat;\
}
};
asc_docs_api.prototype.SetMobileVersion = function(val)
{
this.isMobileVersion = val;
if (/*this.isMobileVersion*/false)
{
this.WordControl.bIsRetinaSupport = false; // ipad имеет проблемы с большими картинками
this.WordControl.bIsRetinaNoSupportAttack = true;
this.WordControl.m_bIsRuler = false;
this.ShowParaMarks = false;
this.SetFontRenderingMode(1);
}
};
asc_docs_api.prototype.GoToHeader = function(pageNumber)
{
if (this.WordControl.m_oDrawingDocument.IsFreezePage(pageNumber))
......@@ -6919,9 +6905,6 @@ background-repeat: no-repeat;\
}
}
if (this.isMobileVersion)
this.SetMobileVersion(true);
this.asc_setViewMode(this.isViewMode);
this.asc_setDrawCollaborationMarks(this.tmpCoMarksDraw);
......@@ -7959,7 +7942,6 @@ background-repeat: no-repeat;\
asc_docs_api.prototype['asc_SetViewRulersChange'] = asc_docs_api.prototype.asc_SetViewRulersChange;
asc_docs_api.prototype['asc_GetViewRulers'] = asc_docs_api.prototype.asc_GetViewRulers;
asc_docs_api.prototype['asc_SetDocumentUnits'] = asc_docs_api.prototype.asc_SetDocumentUnits;
asc_docs_api.prototype['SetMobileVersion'] = asc_docs_api.prototype.SetMobileVersion;
asc_docs_api.prototype['GoToHeader'] = asc_docs_api.prototype.GoToHeader;
asc_docs_api.prototype['GoToFooter'] = asc_docs_api.prototype.GoToFooter;
asc_docs_api.prototype['ExitHeader_Footer'] = asc_docs_api.prototype.ExitHeader_Footer;
......
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