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

MATRIX_ORDER_PREPEND -> AscCommon.MATRIX_ORDER_PREPEND

parent 20ea07cb
......@@ -110,13 +110,6 @@
function rad2deg(rad){
return rad * 180.0 / Math.PI;
}
/** @const */
var MATRIX_ORDER_PREPEND = AscCommon.MATRIX_ORDER_PREPEND;
var MATRIX_ORDER_APPEND = AscCommon.MATRIX_ORDER_APPEND;
/**
* @constructor
*/
......@@ -168,9 +161,9 @@
};
Matrix.prototype.multiply = function (matrix, order) {
if (MATRIX_ORDER_PREPEND === order) {
if (AscCommon.MATRIX_ORDER_PREPEND === order) {
var m = matrix.clone();
m.multiply(this, MATRIX_ORDER_APPEND);
m.multiply(this, AscCommon.MATRIX_ORDER_APPEND);
this.copyFrom(m);
} else {
var t0 = this.sx * matrix.sx + this.shy * matrix.shx;
......@@ -1290,12 +1283,12 @@
DrawingContext.prototype._calcMFT = function () {
this._mft = this._mct.clone();
this._mft.multiply(this._mbt, MATRIX_ORDER_PREPEND);
this._mft.multiply(this._mt, MATRIX_ORDER_PREPEND);
this._mft.multiply(this._mbt, AscCommon.MATRIX_ORDER_PREPEND);
this._mft.multiply(this._mt, AscCommon.MATRIX_ORDER_PREPEND);
this._mift = this._mt.clone();
this._mift.invert();
this._mift.multiply(this._mft, MATRIX_ORDER_PREPEND);
this._mift.multiply(this._mft, AscCommon.MATRIX_ORDER_PREPEND);
};
/**
......
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