diff options
author | Monika Hedman <monika_hedman@brown.edu> | 2019-02-23 19:06:02 -0500 |
---|---|---|
committer | Monika Hedman <monika_hedman@brown.edu> | 2019-02-23 19:06:02 -0500 |
commit | 0d593c4425627bae622122102a0e558a7b1b9ec4 (patch) | |
tree | db618c2b2e25e07173c4ceb343ca71e918f5a38d /src/client/util/Transform.ts | |
parent | f2bdae28c9fcd5306b0d14e1bbfafc2bb232aed8 (diff) |
working on centering
Diffstat (limited to 'src/client/util/Transform.ts')
-rw-r--r-- | src/client/util/Transform.ts | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/client/util/Transform.ts b/src/client/util/Transform.ts index 9a66727a2..fe047a49f 100644 --- a/src/client/util/Transform.ts +++ b/src/client/util/Transform.ts @@ -55,10 +55,12 @@ export class Transform { return this; } - //MONIKA + //TODO center = (x: number, y: number): Transform => { - this._translateX = x - this._translateY = y + console.log("old x: " + this._translateX + " old y: " + this._translateY) + console.log("x: " + x + " y: " + y) + this._translateX += x + this._translateY += y return this; } |