lythreeframe 1.1.2 → 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,8 +3079,6 @@ class TransformGizmo extends Pawn {
|
|
|
3079
3079
|
});
|
|
3080
3080
|
}
|
|
3081
3081
|
onChange() {
|
|
3082
|
-
console.log("onChange");
|
|
3083
|
-
this.controller.viewPort.markRenderStateDirty();
|
|
3084
3082
|
}
|
|
3085
3083
|
onDraggingChanged(event) {
|
|
3086
3084
|
if (this.primaryTarget) {
|
|
@@ -3113,6 +3111,7 @@ class TransformGizmo extends Pawn {
|
|
|
3113
3111
|
if (this.onUpdateFunction) {
|
|
3114
3112
|
this.onUpdateFunction();
|
|
3115
3113
|
}
|
|
3114
|
+
this.controller.viewPort.markRenderStateDirty();
|
|
3116
3115
|
}
|
|
3117
3116
|
set enable(newEnable) {
|
|
3118
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,8 +3077,6 @@ class TransformGizmo extends Pawn {
|
|
|
3077
3077
|
});
|
|
3078
3078
|
}
|
|
3079
3079
|
onChange() {
|
|
3080
|
-
console.log("onChange");
|
|
3081
|
-
this.controller.viewPort.markRenderStateDirty();
|
|
3082
3080
|
}
|
|
3083
3081
|
onDraggingChanged(event) {
|
|
3084
3082
|
if (this.primaryTarget) {
|
|
@@ -3111,6 +3109,7 @@ class TransformGizmo extends Pawn {
|
|
|
3111
3109
|
if (this.onUpdateFunction) {
|
|
3112
3110
|
this.onUpdateFunction();
|
|
3113
3111
|
}
|
|
3112
|
+
this.controller.viewPort.markRenderStateDirty();
|
|
3114
3113
|
}
|
|
3115
3114
|
set enable(newEnable) {
|
|
3116
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);
|