gaesup-world 0.0.73 → 0.0.75

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.
@@ -116,9 +116,9 @@ export default function playCharacterActions(_a) {
116
116
  // }
117
117
  // }
118
118
  // }
119
- // if (groundRay.hit === null && activeState.velocity.y < 0) {
120
- // playFall();
121
- // }
119
+ if (groundRay.hit === null && activeState.velocity.y < 0) {
120
+ playFall();
121
+ }
122
122
  }
123
123
  }
124
124
  });
@@ -63,9 +63,9 @@ export default function Camera(_a) {
63
63
  else if (cameraMode.cameraType === "orthographic") {
64
64
  mapControl(cameraProp);
65
65
  }
66
- var distV3 = camera.position.clone().sub(activeState.position);
67
- cameraRay.origin.copy(camera.position);
68
- cameraRay.dir.copy(distV3.negate().normalize());
66
+ // const distV3 = camera.position.clone().sub(activeState.position);
67
+ // cameraRay.origin.copy(camera.position);
68
+ // cameraRay.dir.copy(distV3.negate().normalize());
69
69
  // detector(cameraProp);
70
70
  });
71
71
  return (_jsxs(_Fragment, { children: [cameraMode.cameraType === "perspective" && (_jsxs(_Fragment, { children: [_jsx(OrbitControls, { target: activeState.position }), _jsx(PerspectiveCamera, __assign({ makeDefault: true }, perspectiveCamera))] })), cameraMode.cameraType === "orthographic" && (_jsxs(_Fragment, { children: [_jsx(MapControls, { target: activeState.position }), _jsx(OrthographicCamera, __assign({ makeDefault: true }, orthographicCamera))] }))] }));
@@ -36,7 +36,9 @@ export function MiniMap(props) {
36
36
  upscale();
37
37
  else
38
38
  downscale();
39
- }, style: assignInlineVars(minimapStyle), children: [_jsx("div", { className: style.minimapOuter, style: assignInlineVars(objectStyle) }), _jsxs("div", { className: style.minimapInner, style: assignInlineVars(__assign({ transform: "translate(-50%, -50%) rotate(".concat((activeState.euler.y * 180) / Math.PI, "deg) ") }, innerStyle)), children: [_jsx("div", { className: style.direction({
39
+ }, style: assignInlineVars(minimapStyle), children: [_jsx("div", { className: style.minimapOuter, style: assignInlineVars(objectStyle) }), _jsxs("div", { className: style.minimapInner, style: assignInlineVars(__assign({ transform: props.blockRotate
40
+ ? "translate(-50%, -50%)"
41
+ : "translate(-50%, -50%) rotate(".concat((activeState.euler.y * 180) / Math.PI, "deg) ") }, innerStyle)), children: [_jsx("div", { className: style.direction({
40
42
  east: true,
41
43
  }), style: assignInlineVars(directionStyle), children: "E" }), _jsx("div", { className: style.direction({
42
44
  west: true,
@@ -54,7 +56,7 @@ export function MiniMap(props) {
54
56
  transform: "translate(-50%, -50%) translate(".concat(-X, "rem, ").concat(-Z, "rem)"),
55
57
  transformOrigin: "50% 50%",
56
58
  }), children: _jsx("div", { className: style.text, style: assignInlineVars(textStyle), children: text }) }, key));
57
- }), _jsx("div", { className: style.avatar, style: assignInlineVars(avatarStyle) })] }), _jsxs("div", { className: style.scale, style: assignInlineVars(scaleStyle), children: [_jsx("div", { className: style.plusMinus, style: assignInlineVars(plusMinusStyle), onClick: function () {
59
+ }), _jsx("div", { className: style.avatar, style: assignInlineVars(avatarStyle) })] }), props.blockScaleControl && (_jsxs("div", { className: style.scale, style: assignInlineVars(scaleStyle), children: [_jsx("div", { className: style.plusMinus, style: assignInlineVars(plusMinusStyle), onClick: function () {
58
60
  if (props.blockScale)
59
61
  return;
60
62
  downscale();
@@ -62,5 +64,5 @@ export function MiniMap(props) {
62
64
  if (props.blockScale)
63
65
  return;
64
66
  upscale();
65
- }, children: "-" })] })] }));
67
+ }, children: "-" })] }))] }));
66
68
  }
@@ -17,4 +17,6 @@ export type minimapType = {
17
17
  maxScale?: number;
18
18
  blockScale?: boolean;
19
19
  scale?: number;
20
+ blockRotate?: boolean;
21
+ blockScaleControl?: boolean;
20
22
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gaesup-world",
3
- "version": "0.0.73",
3
+ "version": "0.0.75",
4
4
  "type": "commonjs",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",