mage-engine 3.24.7 → 3.24.8
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/mage.js +11 -2
- package/package.json +1 -1
package/dist/mage.js
CHANGED
|
@@ -58179,7 +58179,7 @@ function applyMiddleware() {
|
|
|
58179
58179
|
|
|
58180
58180
|
var thunk = createThunkMiddleware();
|
|
58181
58181
|
thunk.withExtraArgument = createThunkMiddleware;var name = "mage-engine";
|
|
58182
|
-
var version$1 = "3.24.
|
|
58182
|
+
var version$1 = "3.24.8";
|
|
58183
58183
|
var description = "A WebGL Javascript Game Engine, built on top of THREE.js and many other libraries.";
|
|
58184
58184
|
var main = "dist/mage.js";
|
|
58185
58185
|
var author$1 = {
|
|
@@ -92573,7 +92573,8 @@ const AVAILABLE_CONTROLS = Object.keys(CONTROLS);var controls_contants=/*#__PURE
|
|
|
92573
92573
|
const CONTROL_EVENTS = {
|
|
92574
92574
|
TRANSFORM: {
|
|
92575
92575
|
CHANGE: `${CONTROLS.TRANSFORM}:CHANGE`,
|
|
92576
|
-
DRAGGING_CHANGE: `${CONTROLS.TRANSFORM}:DRAGGING_CHANGE
|
|
92576
|
+
DRAGGING_CHANGE: `${CONTROLS.TRANSFORM}:DRAGGING_CHANGE`,
|
|
92577
|
+
DRAG_END: `${CONTROLS.TRANSFORM}:DRAG_END`
|
|
92577
92578
|
}
|
|
92578
92579
|
};
|
|
92579
92580
|
let Controls = /*#__PURE__*/function (_EventDispatcher) {
|
|
@@ -92678,6 +92679,14 @@ let Controls = /*#__PURE__*/function (_EventDispatcher) {
|
|
|
92678
92679
|
this.controls[CONTROLS.ORBIT].enabled = !event.value;
|
|
92679
92680
|
}
|
|
92680
92681
|
});
|
|
92682
|
+
|
|
92683
|
+
// Dispatch a dedicated drag-end event when the transform interaction finishes
|
|
92684
|
+
control.addEventListener("mouseUp", () => {
|
|
92685
|
+
this.dispatchEvent({
|
|
92686
|
+
type: CONTROL_EVENTS.TRANSFORM.DRAG_END,
|
|
92687
|
+
element: Universe$1.find(control.object)
|
|
92688
|
+
});
|
|
92689
|
+
});
|
|
92681
92690
|
this.controls[CONTROLS.TRANSFORM] = control;
|
|
92682
92691
|
return this.controls[CONTROLS.TRANSFORM];
|
|
92683
92692
|
}
|