gaesup-world 0.6.83 → 0.6.86
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.
|
@@ -45,11 +45,11 @@ export function MiniMap(props) {
|
|
|
45
45
|
? "translate(-50%, 50%) rotate(180deg) "
|
|
46
46
|
: "translate(-50%, 50%) rotate(-".concat((activeState.euler.y * 180) / Math.PI + 180, "deg) ") }, directionStyle), children: "S" }), _jsx("div", { className: "north direction", style: __assign({ transform: props.blockRotate || mode.control === "normal"
|
|
47
47
|
? "translate(-50%, -50%) rotate(180deg) "
|
|
48
|
-
: "translate(-50%, -50%) rotate(-".concat((activeState.euler.y * 180) / Math.PI + 180, "deg) ") }, directionStyle), children: "N" }),
|
|
48
|
+
: "translate(-50%, -50%) rotate(-".concat((activeState.euler.y * 180) / Math.PI + 180, "deg) ") }, directionStyle), children: "N" }), "\u00E7", Object.values(minimap.props).map(function (_a, key) {
|
|
49
49
|
var center = _a.center, size = _a.size, text = _a.text;
|
|
50
50
|
var X = (center.x - activeState.position.x) * scale;
|
|
51
51
|
var Z = (center.z - activeState.position.z) * scale;
|
|
52
|
-
return (_jsxs("div", { children: [_jsx("div", { className: "minimapObject", style: __assign({ width: "".concat(size.x * scale, "rem"), height: "".concat(size.z * scale, "rem"), top: "50%", left: "50%", transform: "translate(-50.1%, -50.1%) translate(".concat(-X, "rem, ").concat(-Z, "rem)"), transformOrigin: "50% 50%", zIndex: 1 + key }, objectStyle) }, key), _jsx("div", { className: "textObject", style: {
|
|
52
|
+
return (_jsxs("div", { children: [_jsx("div", { className: "minimapObject", style: __assign({ width: "".concat(size.x * scale, "rem"), height: "".concat(size.z * scale, "rem"), top: "50%", left: "50%", transform: "translate(-50.1%, -50.1%) translate(".concat(-X, "rem, ").concat(-Z, "rem)"), transformOrigin: "50% 50%", zIndex: 1 + key }, objectStyle) }, key), _jsx("div", { className: "imageObject", style: __assign({ width: "".concat(props.imageWidth * scale, "rem"), height: "".concat(props.imageHeight * scale, "rem"), top: "50%", left: "50%", transform: "translate(-50.1%, -50.1%) translate(".concat(-X, "rem, ").concat(-Z, "rem)"), transformOrigin: "50% 50%", zIndex: 1000 + key }, imageStyle) }, key + 10), _jsx("div", { className: "textObject", style: {
|
|
53
53
|
width: "".concat(size.x * scale, "rem"),
|
|
54
54
|
height: "".concat(size.z * scale, "rem"),
|
|
55
55
|
top: "50.1%",
|
|
@@ -191,6 +191,18 @@
|
|
|
191
191
|
/* border: 2px solid rgba(88, 88, 88, 0.5); */
|
|
192
192
|
}
|
|
193
193
|
|
|
194
|
+
/* minimapObject style */
|
|
195
|
+
.imageObject {
|
|
196
|
+
position: absolute;
|
|
197
|
+
display: flex;
|
|
198
|
+
align-items: center;
|
|
199
|
+
justify-content: center;
|
|
200
|
+
text-align: center;
|
|
201
|
+
border-radius: 2px;
|
|
202
|
+
background: rgba(0, 0, 0, 0.3);
|
|
203
|
+
/* border: 2px solid rgba(88, 88, 88, 0.5); */
|
|
204
|
+
}
|
|
205
|
+
|
|
194
206
|
.textObject {
|
|
195
207
|
position: absolute;
|
|
196
208
|
display: flex;
|