@quinninc/pixi-transformer 0.0.9 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Transformer.js +13 -5
- package/package.json +1 -1
package/dist/Transformer.js
CHANGED
|
@@ -149,10 +149,18 @@ export class Transformer extends Pixi.Container {
|
|
|
149
149
|
if (!that.target)
|
|
150
150
|
return;
|
|
151
151
|
const eventPoint = that.convertToLocal(ev.global);
|
|
152
|
-
console.log("Prev anchor - ", that._anchor);
|
|
153
|
-
console.log("ev.position - ", eventPoint.x, eventPoint.y);
|
|
154
|
-
console.log(
|
|
155
|
-
|
|
152
|
+
// console.log("Prev anchor - ", that._anchor);
|
|
153
|
+
// console.log("ev.position - ", eventPoint.x, eventPoint.y);
|
|
154
|
+
// console.log(
|
|
155
|
+
// "that.target.position - ",
|
|
156
|
+
// that.target.position.x,
|
|
157
|
+
// that.target.position.y,
|
|
158
|
+
// );
|
|
159
|
+
// console.log(
|
|
160
|
+
// "that.target.pivot - ",
|
|
161
|
+
// that.target.pivot.x,
|
|
162
|
+
// that.target.pivot.y,
|
|
163
|
+
// );
|
|
156
164
|
let dx, dy;
|
|
157
165
|
// calc new pivot point
|
|
158
166
|
// step 1 - translate to origin
|
|
@@ -547,7 +555,7 @@ export class Transformer extends Pixi.Container {
|
|
|
547
555
|
}
|
|
548
556
|
update() {
|
|
549
557
|
if (!this.target) {
|
|
550
|
-
console.log("no target, returning...");
|
|
558
|
+
// console.log("no target, returning...");
|
|
551
559
|
return;
|
|
552
560
|
}
|
|
553
561
|
// copy object translation/transformation
|