@almadar/ui 5.99.0 → 5.101.0
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.
|
@@ -2352,7 +2352,7 @@ var GameCanvas3D = React8.forwardRef(
|
|
|
2352
2352
|
);
|
|
2353
2353
|
const cx = (gridBounds.minX + gridBounds.maxX) / 2;
|
|
2354
2354
|
const cz = (gridBounds.minZ + gridBounds.maxZ) / 2;
|
|
2355
|
-
const d = size * 1
|
|
2355
|
+
const d = size * 1;
|
|
2356
2356
|
switch (cameraMode) {
|
|
2357
2357
|
case "isometric":
|
|
2358
2358
|
return {
|
|
@@ -2361,7 +2361,7 @@ var GameCanvas3D = React8.forwardRef(
|
|
|
2361
2361
|
};
|
|
2362
2362
|
case "top-down":
|
|
2363
2363
|
return {
|
|
2364
|
-
position: [cx, d * 2, cz],
|
|
2364
|
+
position: [cx, d * 2, cz + d * 0.35],
|
|
2365
2365
|
fov: 45
|
|
2366
2366
|
};
|
|
2367
2367
|
case "follow":
|
|
@@ -2331,7 +2331,7 @@ var GameCanvas3D = forwardRef(
|
|
|
2331
2331
|
);
|
|
2332
2332
|
const cx = (gridBounds.minX + gridBounds.maxX) / 2;
|
|
2333
2333
|
const cz = (gridBounds.minZ + gridBounds.maxZ) / 2;
|
|
2334
|
-
const d = size * 1
|
|
2334
|
+
const d = size * 1;
|
|
2335
2335
|
switch (cameraMode) {
|
|
2336
2336
|
case "isometric":
|
|
2337
2337
|
return {
|
|
@@ -2340,7 +2340,7 @@ var GameCanvas3D = forwardRef(
|
|
|
2340
2340
|
};
|
|
2341
2341
|
case "top-down":
|
|
2342
2342
|
return {
|
|
2343
|
-
position: [cx, d * 2, cz],
|
|
2343
|
+
position: [cx, d * 2, cz + d * 0.35],
|
|
2344
2344
|
fov: 45
|
|
2345
2345
|
};
|
|
2346
2346
|
case "follow":
|