lythreeframe 1.1.1 → 1.1.3
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
CHANGED
|
@@ -3030,7 +3030,7 @@ class TransformGizmo extends Pawn {
|
|
|
3030
3030
|
this.targetMatrixMap = new Map();
|
|
3031
3031
|
this.onDraggingChangedEvent = (param) => { this.onDraggingChanged(param); };
|
|
3032
3032
|
this.onObjectChangeEvent = () => { this.onObjectChanged(); };
|
|
3033
|
-
|
|
3033
|
+
//protected onChangeEvent: () => void = () => { this.onChange() };
|
|
3034
3034
|
this.onUpdateFunction = null;
|
|
3035
3035
|
this.onDraggingFunction = null;
|
|
3036
3036
|
let canvas = controller.viewPort.canvas;
|
|
@@ -3047,13 +3047,13 @@ class TransformGizmo extends Pawn {
|
|
|
3047
3047
|
var _a;
|
|
3048
3048
|
(_a = this.controller.world.scene) === null || _a === void 0 ? void 0 : _a.add(this.helperObject);
|
|
3049
3049
|
this.control.attach(this.helperObject);
|
|
3050
|
-
this.control.addEventListener('change', this.onChangeEvent);
|
|
3050
|
+
//this.control.addEventListener('change', this.onChangeEvent);
|
|
3051
3051
|
this.control.addEventListener('dragging-changed', this.onDraggingChangedEvent);
|
|
3052
3052
|
this.control.addEventListener('objectChange', this.onObjectChangeEvent);
|
|
3053
3053
|
}
|
|
3054
3054
|
unpossess() {
|
|
3055
3055
|
var _a;
|
|
3056
|
-
this.control.removeEventListener('change', this.onChangeEvent);
|
|
3056
|
+
//this.control.removeEventListener('change', this.onChangeEvent);
|
|
3057
3057
|
this.control.removeEventListener('dragging-changed', this.onDraggingChangedEvent);
|
|
3058
3058
|
this.control.removeEventListener('objectChange', this.onObjectChangeEvent);
|
|
3059
3059
|
this.control.detach();
|
|
@@ -3079,7 +3079,6 @@ class TransformGizmo extends Pawn {
|
|
|
3079
3079
|
});
|
|
3080
3080
|
}
|
|
3081
3081
|
onChange() {
|
|
3082
|
-
this.controller.viewPort.markRenderStateDirty();
|
|
3083
3082
|
}
|
|
3084
3083
|
onDraggingChanged(event) {
|
|
3085
3084
|
if (this.primaryTarget) {
|
|
@@ -3091,6 +3090,7 @@ class TransformGizmo extends Pawn {
|
|
|
3091
3090
|
}
|
|
3092
3091
|
}
|
|
3093
3092
|
onObjectChanged() {
|
|
3093
|
+
console.log("onObjectChanged");
|
|
3094
3094
|
if (this.primaryTarget) {
|
|
3095
3095
|
//const TA1 = this.primaryTarget.getMatrixInWorld();
|
|
3096
3096
|
this.helperObject.updateMatrixWorld(true);
|
|
@@ -3111,6 +3111,7 @@ class TransformGizmo extends Pawn {
|
|
|
3111
3111
|
if (this.onUpdateFunction) {
|
|
3112
3112
|
this.onUpdateFunction();
|
|
3113
3113
|
}
|
|
3114
|
+
this.controller.viewPort.markRenderStateDirty();
|
|
3114
3115
|
}
|
|
3115
3116
|
set enable(newEnable) {
|
|
3116
3117
|
this.control.enabled = newEnable;
|
package/dist/bundle.esm.js
CHANGED
|
@@ -3028,7 +3028,7 @@ class TransformGizmo extends Pawn {
|
|
|
3028
3028
|
this.targetMatrixMap = new Map();
|
|
3029
3029
|
this.onDraggingChangedEvent = (param) => { this.onDraggingChanged(param); };
|
|
3030
3030
|
this.onObjectChangeEvent = () => { this.onObjectChanged(); };
|
|
3031
|
-
|
|
3031
|
+
//protected onChangeEvent: () => void = () => { this.onChange() };
|
|
3032
3032
|
this.onUpdateFunction = null;
|
|
3033
3033
|
this.onDraggingFunction = null;
|
|
3034
3034
|
let canvas = controller.viewPort.canvas;
|
|
@@ -3045,13 +3045,13 @@ class TransformGizmo extends Pawn {
|
|
|
3045
3045
|
var _a;
|
|
3046
3046
|
(_a = this.controller.world.scene) === null || _a === void 0 ? void 0 : _a.add(this.helperObject);
|
|
3047
3047
|
this.control.attach(this.helperObject);
|
|
3048
|
-
this.control.addEventListener('change', this.onChangeEvent);
|
|
3048
|
+
//this.control.addEventListener('change', this.onChangeEvent);
|
|
3049
3049
|
this.control.addEventListener('dragging-changed', this.onDraggingChangedEvent);
|
|
3050
3050
|
this.control.addEventListener('objectChange', this.onObjectChangeEvent);
|
|
3051
3051
|
}
|
|
3052
3052
|
unpossess() {
|
|
3053
3053
|
var _a;
|
|
3054
|
-
this.control.removeEventListener('change', this.onChangeEvent);
|
|
3054
|
+
//this.control.removeEventListener('change', this.onChangeEvent);
|
|
3055
3055
|
this.control.removeEventListener('dragging-changed', this.onDraggingChangedEvent);
|
|
3056
3056
|
this.control.removeEventListener('objectChange', this.onObjectChangeEvent);
|
|
3057
3057
|
this.control.detach();
|
|
@@ -3077,7 +3077,6 @@ class TransformGizmo extends Pawn {
|
|
|
3077
3077
|
});
|
|
3078
3078
|
}
|
|
3079
3079
|
onChange() {
|
|
3080
|
-
this.controller.viewPort.markRenderStateDirty();
|
|
3081
3080
|
}
|
|
3082
3081
|
onDraggingChanged(event) {
|
|
3083
3082
|
if (this.primaryTarget) {
|
|
@@ -3089,6 +3088,7 @@ class TransformGizmo extends Pawn {
|
|
|
3089
3088
|
}
|
|
3090
3089
|
}
|
|
3091
3090
|
onObjectChanged() {
|
|
3091
|
+
console.log("onObjectChanged");
|
|
3092
3092
|
if (this.primaryTarget) {
|
|
3093
3093
|
//const TA1 = this.primaryTarget.getMatrixInWorld();
|
|
3094
3094
|
this.helperObject.updateMatrixWorld(true);
|
|
@@ -3109,6 +3109,7 @@ class TransformGizmo extends Pawn {
|
|
|
3109
3109
|
if (this.onUpdateFunction) {
|
|
3110
3110
|
this.onUpdateFunction();
|
|
3111
3111
|
}
|
|
3112
|
+
this.controller.viewPort.markRenderStateDirty();
|
|
3112
3113
|
}
|
|
3113
3114
|
set enable(newEnable) {
|
|
3114
3115
|
this.control.enabled = newEnable;
|
|
@@ -24,7 +24,6 @@ export declare class TransformGizmo extends Pawn {
|
|
|
24
24
|
value: unknown;
|
|
25
25
|
}) => void;
|
|
26
26
|
protected onObjectChangeEvent: () => void;
|
|
27
|
-
protected onChangeEvent: () => void;
|
|
28
27
|
protected onUpdateFunction: (() => void) | null;
|
|
29
28
|
protected onDraggingFunction: ((event: any) => void) | null;
|
|
30
29
|
constructor(controller: Controller);
|