@openglobus/openglobus-react 0.4.4 → 0.4.5
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/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +1 -1
- package/dist/index.umd.cjs.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -12214,8 +12214,8 @@ Object.freeze(Object.defineProperty({ __proto__: null, AtmosphereConfig: class e
|
|
|
12214
12214
|
let i = 0.5 / t.eye.distance(this._lookPos) * G;
|
|
12215
12215
|
i > 7e-3 ? i = 7e-3 : i < 3e-3 && (i = 3e-3), t.rotateHorizontal(i * (e.x - e.prev_x), !1, this._lookPos, this._up), t.rotateVertical(i * (e.y - e.prev_y), this._lookPos), t.update();
|
|
12216
12216
|
}
|
|
12217
|
-
}, this._onRDown =
|
|
12218
|
-
if (this.renderer) if (this.stop(), this._lookPos = void 0, this._lookPos =
|
|
12217
|
+
}, this._onRDown = (e) => {
|
|
12218
|
+
if (this.renderer) if (this.stop(), this._lookPos = void 0, this._lookPos = this.renderer.getCartesianFromPixel(e.pos), this._lookPos) this._up = m.UP;
|
|
12219
12219
|
else {
|
|
12220
12220
|
const t = this.renderer.activeCamera;
|
|
12221
12221
|
let i = new we(m.ZERO, m.UP), r = new H(t.eye, e.direction);
|