lythreeframe 1.2.9 → 1.2.11
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/bundle.cjs.js +10 -1
- package/dist/bundle.esm.js +10 -1
- package/package.json +1 -1
package/dist/bundle.cjs.js
CHANGED
|
@@ -3259,6 +3259,11 @@ class TransformGizmo extends Pawn {
|
|
|
3259
3259
|
//const TA1 = this.primaryTarget.getMatrixInWorld();
|
|
3260
3260
|
this.helperObject.updateMatrixWorld(true);
|
|
3261
3261
|
const TA2 = this.helperObject.matrixWorld.clone();
|
|
3262
|
+
let p1 = new webgpu.Vector3();
|
|
3263
|
+
let q1 = new webgpu.Quaternion();
|
|
3264
|
+
let s1 = new webgpu.Vector3();
|
|
3265
|
+
TA2.decompose(p1, q1, s1);
|
|
3266
|
+
this.getMode();
|
|
3262
3267
|
this.primaryTarget.onTransforming(TA2);
|
|
3263
3268
|
// const TA1Inverse = TA1.clone().invert();
|
|
3264
3269
|
//const transformMatrix = new Matrix4().multiplyMatrices(TA2, TA1Inverse);
|
|
@@ -3266,7 +3271,11 @@ class TransformGizmo extends Pawn {
|
|
|
3266
3271
|
if (tar !== this.primaryTarget) {
|
|
3267
3272
|
let t = this.targetMatrixMap.get(tar);
|
|
3268
3273
|
if (t) {
|
|
3274
|
+
let p2 = new webgpu.Vector3();
|
|
3275
|
+
let q2 = new webgpu.Quaternion();
|
|
3276
|
+
let s2 = new webgpu.Vector3();
|
|
3269
3277
|
let TB2 = new webgpu.Matrix4().multiplyMatrices(TA2, t); // B
|
|
3278
|
+
TB2.decompose(p2, q2, s2);
|
|
3270
3279
|
tar.onTransforming(TB2);
|
|
3271
3280
|
}
|
|
3272
3281
|
}
|
|
@@ -3275,7 +3284,7 @@ class TransformGizmo extends Pawn {
|
|
|
3275
3284
|
if (this.onUpdateFunction) {
|
|
3276
3285
|
this.onUpdateFunction();
|
|
3277
3286
|
}
|
|
3278
|
-
},
|
|
3287
|
+
}, 50);
|
|
3279
3288
|
de();
|
|
3280
3289
|
}
|
|
3281
3290
|
set enable(newEnable) {
|
package/dist/bundle.esm.js
CHANGED
|
@@ -3257,6 +3257,11 @@ class TransformGizmo extends Pawn {
|
|
|
3257
3257
|
//const TA1 = this.primaryTarget.getMatrixInWorld();
|
|
3258
3258
|
this.helperObject.updateMatrixWorld(true);
|
|
3259
3259
|
const TA2 = this.helperObject.matrixWorld.clone();
|
|
3260
|
+
let p1 = new Vector3();
|
|
3261
|
+
let q1 = new Quaternion();
|
|
3262
|
+
let s1 = new Vector3();
|
|
3263
|
+
TA2.decompose(p1, q1, s1);
|
|
3264
|
+
this.getMode();
|
|
3260
3265
|
this.primaryTarget.onTransforming(TA2);
|
|
3261
3266
|
// const TA1Inverse = TA1.clone().invert();
|
|
3262
3267
|
//const transformMatrix = new Matrix4().multiplyMatrices(TA2, TA1Inverse);
|
|
@@ -3264,7 +3269,11 @@ class TransformGizmo extends Pawn {
|
|
|
3264
3269
|
if (tar !== this.primaryTarget) {
|
|
3265
3270
|
let t = this.targetMatrixMap.get(tar);
|
|
3266
3271
|
if (t) {
|
|
3272
|
+
let p2 = new Vector3();
|
|
3273
|
+
let q2 = new Quaternion();
|
|
3274
|
+
let s2 = new Vector3();
|
|
3267
3275
|
let TB2 = new Matrix4().multiplyMatrices(TA2, t); // B
|
|
3276
|
+
TB2.decompose(p2, q2, s2);
|
|
3268
3277
|
tar.onTransforming(TB2);
|
|
3269
3278
|
}
|
|
3270
3279
|
}
|
|
@@ -3273,7 +3282,7 @@ class TransformGizmo extends Pawn {
|
|
|
3273
3282
|
if (this.onUpdateFunction) {
|
|
3274
3283
|
this.onUpdateFunction();
|
|
3275
3284
|
}
|
|
3276
|
-
},
|
|
3285
|
+
}, 50);
|
|
3277
3286
|
de();
|
|
3278
3287
|
}
|
|
3279
3288
|
set enable(newEnable) {
|