Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
avvy
Web App Avvy Core
Commits
9c8d71a9
Commit
9c8d71a9
authored
2 years ago
by
stanislav
Browse files
Options
Download
Email Patches
Plain Diff
focusuot
parent
e5bad561
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
build/avvy-core.js
+17
-2
build/avvy-core.js
package.json
+1
-1
package.json
src/cameras/CameraControllerOrbit.js
+15
-0
src/cameras/CameraControllerOrbit.js
with
33 additions
and
3 deletions
+33
-3
build/avvy-core.js
View file @
9c8d71a9
// [Core] Version: 1.0.2
8
-
11:07
:5
1
PM
// [Core] Version: 1.0.2
9
-
5:16
:5
2
PM
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
...
...
@@ -1489,6 +1489,19 @@ function CameraControllerOrbit(object, domElement) {
};
this.focusOut = function() {
this.moveForward = false;
this.moveLeft = false;
this.moveBackward = false;
this.moveRight = false;
this.moveUp = false;
this.moveDown = false;
this.rotatingLeft = false;
this.rotatingRight = false;
this.rotatingUp = false;
this.rotatingBottom = false;
}
this.update = function(delta) {
if (scope.isMovement) {
this._update(delta);
...
...
@@ -2395,6 +2408,7 @@ function CameraControllerOrbit(object, domElement) {
__WEBPACK_IMPORTED_MODULE_0__base_EventDispatcher_js__["a" /* EventDispatcher */].unbind("keyboard.keyup." + scope.keys.ARROW_RIGHT, this.onKeyUpRotateRight);
__WEBPACK_IMPORTED_MODULE_0__base_EventDispatcher_js__["a" /* EventDispatcher */].unbind("CameraControllerOrbit.setTarget", this.setTarget);
__WEBPACK_IMPORTED_MODULE_0__base_EventDispatcher_js__["a" /* EventDispatcher */].unbind("CameraControllerOrbit.focusOut", this.focusOut);
}
};
...
...
@@ -2435,6 +2449,7 @@ function CameraControllerOrbit(object, domElement) {
__WEBPACK_IMPORTED_MODULE_0__base_EventDispatcher_js__["a" /* EventDispatcher */].bind("keyboard.keyup." + scope.keys.ARROW_RIGHT, this, this.onKeyUpRotateRight);
__WEBPACK_IMPORTED_MODULE_0__base_EventDispatcher_js__["a" /* EventDispatcher */].bind("CameraControllerOrbit.setTarget", this, this.setTarget);
__WEBPACK_IMPORTED_MODULE_0__base_EventDispatcher_js__["a" /* EventDispatcher */].bind("CameraControllerOrbit.focusOut", this, this.focusOut);
}
}
...
...
@@ -2648,7 +2663,7 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_29__postprocessing_CopyShader___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_29__postprocessing_CopyShader__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_30__postprocessing_FXAAShader__ = __webpack_require__(37);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_30__postprocessing_FXAAShader___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_30__postprocessing_FXAAShader__);
const version = '1.0.2
8
';
const version = '1.0.2
9
';
/* harmony export (immutable) */ __webpack_exports__["version"] = version;
...
...
This diff is collapsed.
Click to expand it.
package.json
View file @
9c8d71a9
{
"name"
:
"avvyland-web-core"
,
"version"
:
"1.0.2
8
"
,
"version"
:
"1.0.2
9
"
,
"description"
:
"avvyland-web-core"
,
"main"
:
"core.js"
,
"scripts"
:
{
...
...
This diff is collapsed.
Click to expand it.
src/cameras/CameraControllerOrbit.js
View file @
9c8d71a9
...
...
@@ -131,6 +131,19 @@ function CameraControllerOrbit(object, domElement) {
};
this
.
focusOut
=
function
()
{
this
.
moveForward
=
false
;
this
.
moveLeft
=
false
;
this
.
moveBackward
=
false
;
this
.
moveRight
=
false
;
this
.
moveUp
=
false
;
this
.
moveDown
=
false
;
this
.
rotatingLeft
=
false
;
this
.
rotatingRight
=
false
;
this
.
rotatingUp
=
false
;
this
.
rotatingBottom
=
false
;
}
this
.
update
=
function
(
delta
)
{
if
(
scope
.
isMovement
)
{
this
.
_update
(
delta
);
...
...
@@ -1037,6 +1050,7 @@ function CameraControllerOrbit(object, domElement) {
EventDispatcher
.
unbind
(
"
keyboard.keyup.
"
+
scope
.
keys
.
ARROW_RIGHT
,
this
.
onKeyUpRotateRight
);
EventDispatcher
.
unbind
(
"
CameraControllerOrbit.setTarget
"
,
this
.
setTarget
);
EventDispatcher
.
unbind
(
"
CameraControllerOrbit.focusOut
"
,
this
.
focusOut
);
}
};
...
...
@@ -1077,6 +1091,7 @@ function CameraControllerOrbit(object, domElement) {
EventDispatcher
.
bind
(
"
keyboard.keyup.
"
+
scope
.
keys
.
ARROW_RIGHT
,
this
,
this
.
onKeyUpRotateRight
);
EventDispatcher
.
bind
(
"
CameraControllerOrbit.setTarget
"
,
this
,
this
.
setTarget
);
EventDispatcher
.
bind
(
"
CameraControllerOrbit.focusOut
"
,
this
,
this
.
focusOut
);
}
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help