gaesup-world 0.8.17 → 0.8.18

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.
@@ -11,7 +11,6 @@ var __assign = (this && this.__assign) || function () {
11
11
  };
12
12
  import { jsx as _jsx } from "react/jsx-runtime";
13
13
  import { vec3 } from "@react-three/rapier";
14
- import * as _ from "lodash";
15
14
  import { useContext, useEffect, useRef } from "react";
16
15
  import * as THREE from "three";
17
16
  import { useClicker } from "../hooks/useClicker";
@@ -19,7 +18,7 @@ import { GaesupWorldContext, GaesupWorldDispatchContext, } from "../world/contex
19
18
  export function GaeSupProps(_a) {
20
19
  var _b = _a.type, type = _b === void 0 ? "normal" : _b, text = _a.text, position = _a.position, children = _a.children;
21
20
  var groupRef = useRef(null);
22
- var _c = useContext(GaesupWorldContext), minimap = _c.minimap, clickerOption = _c.clickerOption;
21
+ var minimap = useContext(GaesupWorldContext).minimap;
23
22
  var dispatch = useContext(GaesupWorldDispatchContext);
24
23
  // clicker
25
24
  var moveClicker = useClicker().moveClicker;
@@ -43,8 +42,5 @@ export function GaeSupProps(_a) {
43
42
  });
44
43
  }
45
44
  }, []);
46
- var moveThrottleClicker = _.throttle(function (e) {
47
- moveClicker(e, false, type);
48
- }, clickerOption.throttle);
49
- return (_jsx("group", { ref: groupRef, position: position, onPointerDown: moveThrottleClicker, onDoubleClick: moveThrottleClicker, children: children }));
45
+ return (_jsx("group", { ref: groupRef, position: position, onPointerDown: function (e) { return moveClicker(e, false, type); }, onDoubleClick: function (e) { return moveClicker(e, true, type); }, children: children }));
50
46
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gaesup-world",
3
- "version": "0.8.17",
3
+ "version": "0.8.18",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -17,7 +17,6 @@
17
17
  "gh-pages": "^6.1.1",
18
18
  "jotai": "^2.8.0",
19
19
  "leva": "0.9.35",
20
- "lodash": "^4.17.21",
21
20
  "node-fetch": "3.3.2",
22
21
  "react": "^18.3.1",
23
22
  "react-device-detect": "^2.2.3",
@@ -28,7 +27,6 @@
28
27
  "three-stdlib": "^2.29.7"
29
28
  },
30
29
  "devDependencies": {
31
- "@types/lodash": "^4.17.0",
32
30
  "@types/react": "^18.3.1",
33
31
  "@types/react-dom": "^18.3.0",
34
32
  "@vanilla-extract/css": "^1.14.2",