tentone 6 years ago
parent
commit
ff723f7d46
3 changed files with 4 additions and 4 deletions
  1. 2 2
      build/escher.js
  2. 0 0
      build/escher.min.js
  3. 2 2
      build/escher.module.js

+ 2 - 2
build/escher.js

@@ -1656,7 +1656,7 @@
 	{
 		if(this.matrixNeedsUpdate)
 		{
-			this.matrix.m = [1, 0, 0, 1, -this.position.x, -this.position.y];
+			this.matrix.m = [1, 0, 0, 1, this.position.x, this.position.y];
 
 			if(this.rotation !== 0)
 			{		
@@ -1670,7 +1670,7 @@
 				this.matrix.scale(this.scale, this.scale);
 			}
 
-			this.matrix.multiply(new Matrix([1, 0, 0, 1, this.position.x - this.canvas.width / 2 * this.scale,  this.position.y - this.canvas.height / 2 * this.scale]));
+			//this.matrix.multiply(new Matrix([1, 0, 0, 1, this.position.x - this.canvas.width / 2 * this.scale,  this.position.y - this.canvas.height / 2 * this.scale]));
 
 			this.inverseMatrix = this.matrix.getInverse();
 			this.matrixNeedsUpdate = false;

File diff suppressed because it is too large
+ 0 - 0
build/escher.min.js


+ 2 - 2
build/escher.module.js

@@ -1650,7 +1650,7 @@ Viewport.prototype.updateMatrix = function()
 {
 	if(this.matrixNeedsUpdate)
 	{
-		this.matrix.m = [1, 0, 0, 1, -this.position.x, -this.position.y];
+		this.matrix.m = [1, 0, 0, 1, this.position.x, this.position.y];
 
 		if(this.rotation !== 0)
 		{		
@@ -1664,7 +1664,7 @@ Viewport.prototype.updateMatrix = function()
 			this.matrix.scale(this.scale, this.scale);
 		}
 
-		this.matrix.multiply(new Matrix([1, 0, 0, 1, this.position.x - this.canvas.width / 2 * this.scale,  this.position.y - this.canvas.height / 2 * this.scale]));
+		//this.matrix.multiply(new Matrix([1, 0, 0, 1, this.position.x - this.canvas.width / 2 * this.scale,  this.position.y - this.canvas.height / 2 * this.scale]));
 
 		this.inverseMatrix = this.matrix.getInverse();
 		this.matrixNeedsUpdate = false;

Some files were not shown because too many files changed in this diff