Commit 4721a3fa authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

spreadsheet_api перевел на prototype

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@57805 954022d7-b5bf-4e40-9824-e11837661b57
parent f9b46a1d
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -437,17 +437,17 @@
/**
* Returns width of drawing context in current units
* @param {Number} units Единицы измерения (0=px, 1=pt, 2=in, 3=mm) в которых будет возвращена ширина
* @param {Number} [units] Единицы измерения (0=px, 1=pt, 2=in, 3=mm) в которых будет возвращена ширина
* @return {Number}
*/
DrawingContext.prototype.getWidth = function (units) {
var i = units >= 0 && units <=3 ? units : this.units;
return this.canvas.width * getCvtRatio(0/*px*/, i, this.ppiX);
};
DrawingContext.prototype.getWidth = function (units) {
var i = units >= 0 && units <=3 ? units : this.units;
return this.canvas.width * getCvtRatio(0/*px*/, i, this.ppiX);
};
/**
* Returns height of drawing context in current units
* @param {Number} units Единицы измерения (0=px, 1=pt, 2=in, 3=mm) в которых будет возвращена высота
* @param {Number} [units] Единицы измерения (0=px, 1=pt, 2=in, 3=mm) в которых будет возвращена высота
* @return {Number}
*/
DrawingContext.prototype.getHeight = function (units) {
......
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