mirror of
https://github.com/BlueMap-Minecraft/BlueMapWeb.git
synced 2025-02-19 19:31:41 +01:00
Fix Hammer lib usage and some package.json values
This commit is contained in:
parent
da08361097
commit
107ec32568
@ -1,10 +1,10 @@
|
||||
{
|
||||
"name": "bluemap",
|
||||
"version": "0.0.0",
|
||||
"version": "0.1.0",
|
||||
"description": "A library to load and display Minecraft maps generated by BlueMap.",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/BlueMap-Minecraft/BlueMap.git"
|
||||
"url": "https://github.com/BlueMap-Minecraft/BlueMapWeb.git"
|
||||
},
|
||||
"keywords": [
|
||||
"minecraft",
|
||||
|
@ -24,7 +24,8 @@
|
||||
*/
|
||||
|
||||
import {MathUtils, Vector2} from "three";
|
||||
import {animate, EasingFunctions, softMin} from "../../util/Utils";
|
||||
import {Manager} from "hammerjs";
|
||||
import {animate, EasingFunctions} from "../../util/Utils";
|
||||
import {KeyMoveControls} from "./keyboard/KeyMoveControls";
|
||||
import {MouseRotateControls} from "./mouse/MouseRotateControls";
|
||||
import {MouseAngleControls} from "./mouse/MouseAngleControls";
|
||||
@ -40,7 +41,7 @@ export class FreeFlightControls {
|
||||
this.target = target;
|
||||
this.manager = null;
|
||||
|
||||
this.hammer = new Hammer.Manager(this.target);
|
||||
this.hammer = new Manager(this.target);
|
||||
this.initializeHammer();
|
||||
|
||||
this.keyMove = new KeyMoveControls(this.target, 0.5, 0.1);
|
||||
|
@ -30,7 +30,7 @@ export class TouchPanControls {
|
||||
static tempVec2_1 = new Vector2();
|
||||
|
||||
/**
|
||||
* @param hammer {Hammer.Manager}
|
||||
* @param hammer {Manager}
|
||||
* @param speed {number}
|
||||
* @param stiffness {number}
|
||||
*/
|
||||
|
@ -28,6 +28,7 @@ import {MouseZoomControls} from "./mouse/MouseZoomControls";
|
||||
import {MouseRotateControls} from "./mouse/MouseRotateControls";
|
||||
import {MouseAngleControls} from "./mouse/MouseAngleControls";
|
||||
import {MathUtils, Vector2} from "three";
|
||||
import {Manager} from "hammerjs";
|
||||
import {animate, EasingFunctions, softClamp} from "../../util/Utils";
|
||||
import {MapHeightControls} from "./MapHeightControls";
|
||||
import {KeyMoveControls} from "./keyboard/KeyMoveControls";
|
||||
@ -54,7 +55,7 @@ export class MapControls {
|
||||
|
||||
this.started = false;
|
||||
|
||||
this.hammer = new Hammer.Manager(this.rootElement);
|
||||
this.hammer = new Manager(this.rootElement);
|
||||
this.initializeHammer();
|
||||
|
||||
//controls
|
||||
|
@ -28,7 +28,7 @@ import {MathUtils} from "three";
|
||||
export class TouchAngleControls {
|
||||
|
||||
/**
|
||||
* @param hammer {Hammer.Manager}
|
||||
* @param hammer {Manager}
|
||||
* @param speed {number}
|
||||
* @param stiffness {number}
|
||||
*/
|
||||
|
@ -31,7 +31,7 @@ export class TouchMoveControls {
|
||||
static tempVec2_1 = new Vector2();
|
||||
|
||||
/**
|
||||
* @param hammer {Hammer.Manager}
|
||||
* @param hammer {Manager}
|
||||
* @param speed {number}
|
||||
* @param stiffness {number}
|
||||
*/
|
||||
|
@ -28,7 +28,7 @@ import {MathUtils} from "three";
|
||||
export class TouchRotateControls {
|
||||
|
||||
/**
|
||||
* @param hammer {Hammer.Manager}
|
||||
* @param hammer {Manager}
|
||||
* @param speed {number}
|
||||
* @param stiffness {number}
|
||||
*/
|
||||
|
@ -26,7 +26,7 @@
|
||||
export class TouchZoomControls {
|
||||
|
||||
/**
|
||||
* @param hammer {Hammer.Manager}
|
||||
* @param hammer {Manager}
|
||||
*/
|
||||
constructor(hammer) {
|
||||
this.hammer = hammer;
|
||||
|
Loading…
Reference in New Issue
Block a user