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