Skip to content

Commit

Permalink
Merge pull request #152 from musehq/dev
Browse files Browse the repository at this point in the history
v2.8.4
  • Loading branch information
spacesvr authored Dec 24, 2022
2 parents 2b5e436 + deab5c1 commit 469e7a7
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 33 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "spacesvr",
"version": "2.8.3",
"version": "2.8.4",
"private": true,
"description": "A standardized reality for future of the 3D Web",
"keywords": [
Expand Down Expand Up @@ -60,7 +60,7 @@
"@react-spring/three": "^9.4.5",
"@react-three/cannon": "6.4.0",
"@react-three/drei": "9.11.3",
"@react-three/fiber": "^8.0.22",
"@react-three/fiber": "^8.9.1",
"@react-three/xr": "^4.0.1",
"culori": "^0.18.2",
"nipplejs": "0.8.1",
Expand Down
24 changes: 6 additions & 18 deletions src/ideas/primitives/RoundedBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,14 @@ import { NamedArrayTuple } from "@react-three/drei/helpers/ts-utils";
import { useMemo, useState } from "react";
import { RoundedBoxGeometry } from "three/examples/jsm/geometries/RoundedBoxGeometry";
import { Vector3 } from "three";
import { MeshProps } from "@react-three/fiber";
import { GroupProps, MeshProps } from "@react-three/fiber";

type RoundedBox = {
args?: NamedArrayTuple<
(width?: number, height?: number, depth?: number) => void
>;
} & Omit<MeshProps, "args"> & {
"scale-x"?: number;
"scale-y"?: number;
"scale-z"?: number;
};
} & Pick<MeshProps, "material"> &
Omit<GroupProps, "args">;

type CachedBox = {
key: string;
Expand All @@ -27,11 +24,8 @@ const local_cache: CachedBox[] = [];
export function RoundedBox(props: RoundedBox) {
const {
args: [width = 1, height = 1, depth = 0.25] = [],
material,
children,
scale,
"scale-x": scaleX,
"scale-y": scaleY,
"scale-z": scaleZ,
...rest
} = props;

Expand Down Expand Up @@ -77,14 +71,8 @@ export function RoundedBox(props: RoundedBox) {
}, [width, height, depth]);

return (
<group
name="spacesvr-rounded-box"
scale={scale}
scale-x={scaleX}
scale-y={scaleY}
scale-z={scaleZ}
>
<mesh {...rest} scale={locScale} geometry={geo}>
<group name="spacesvr-rounded-box" {...rest}>
<mesh scale={locScale} material={material} geometry={geo}>
{children}
</mesh>
</group>
Expand Down
2 changes: 1 addition & 1 deletion src/layers/Environment/ui/PauseMenu/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export default function PauseMenu(props: PauseMenuProps) {
const PAUSE_ITEMS: PauseItem[] = [
...pauseMenuItems,
{
text: "v2.8.3",
text: "v2.8.4",
link: "https://www.npmjs.com/package/spacesvr",
},
...menuItems,
Expand Down
55 changes: 43 additions & 12 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -960,7 +960,7 @@
core-js-pure "^3.20.2"
regenerator-runtime "^0.13.4"

"@babel/runtime@^7.10.2", "@babel/runtime@^7.11.2", "@babel/runtime@^7.13.10", "@babel/runtime@^7.16.3", "@babel/runtime@^7.16.7", "@babel/runtime@^7.17.8", "@babel/runtime@^7.7.2", "@babel/runtime@^7.8.4":
"@babel/runtime@^7.10.2", "@babel/runtime@^7.11.2", "@babel/runtime@^7.13.10", "@babel/runtime@^7.16.3", "@babel/runtime@^7.16.7", "@babel/runtime@^7.7.2", "@babel/runtime@^7.8.4":
version "7.18.3"
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.18.3.tgz#c7b654b57f6f63cf7f8b418ac9ca04408c4579f4"
integrity sha512-38Y8f7YUhce/K7RMwTp7m0uCumpv9hZkitCbBClqQIow1qSbCvGkcegKOXpEWCQLfWmevgRiWokZ1GkpfhbZug==
Expand All @@ -974,6 +974,13 @@
dependencies:
regenerator-runtime "^0.13.10"

"@babel/runtime@^7.17.8":
version "7.20.7"
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.20.7.tgz#fcb41a5a70550e04a7b708037c7c32f7f356d8fd"
integrity sha512-UF0tvkUtxwAgZ5W/KrkHf0Rn0fdnLDU9ScxBrEVNUprE/MzirjK4MJUX1/BVDv00Sv8cljtukVK1aky++X1SjQ==
dependencies:
regenerator-runtime "^0.13.11"

"@babel/template@^7.16.7":
version "7.16.7"
resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.16.7.tgz#8d126c8701fde4d66b264b3eba3d96f07666d155"
Expand Down Expand Up @@ -1321,12 +1328,13 @@
zustand "^3.5.13"

"@react-three/fiber@^8.0.22":
version "8.0.22"
resolved "https://registry.yarnpkg.com/@react-three/fiber/-/fiber-8.0.22.tgz#68c69ba7c0c4f5354562c5acfd5f0c9c64b9a64d"
integrity sha512-HkQR+SKm0Bi4qq9sxCV2rv2aXxEhWPcj52bLOCiW3WpF8sGJtmdc/pP4ih5gXwN7I5NMTa2eDeoSYkIPOwt1/g==
version "8.9.1"
resolved "https://registry.yarnpkg.com/@react-three/fiber/-/fiber-8.9.1.tgz#54e278148ae1c301a4b516936bfce0d9240a7292"
integrity sha512-xRMO9RGp0DkxSFu5BmmkjCxJ4r0dEpLobtxXdZwI0h2rZZaCnkPM5zThRN8xaZNbZhzRSVICeNOFaZltr9xFyQ==
dependencies:
"@babel/runtime" "^7.17.8"
"@types/react-reconciler" "^0.26.7"
its-fine "^1.0.6"
react-reconciler "^0.27.0"
react-use-measure "^2.1.1"
scheduler "^0.21.0"
Expand Down Expand Up @@ -1447,7 +1455,23 @@
dependencies:
"@types/react" "*"

"@types/react@*", "@types/react@^18.0.12":
"@types/react-reconciler@^0.28.0":
version "0.28.0"
resolved "https://registry.yarnpkg.com/@types/react-reconciler/-/react-reconciler-0.28.0.tgz#513acbed173140e958c909041ca14eb40412077f"
integrity sha512-5cjk9ottZAj7eaTsqzPUIlrVbh3hBAO2YaEL1rkjHKB3xNAId7oU8GhzvAX+gfmlfoxTwJnBjPxEHyxkEA1Ffg==
dependencies:
"@types/react" "*"

"@types/react@*":
version "18.0.26"
resolved "https://registry.yarnpkg.com/@types/react/-/react-18.0.26.tgz#8ad59fc01fef8eaf5c74f4ea392621749f0b7917"
integrity sha512-hCR3PJQsAIXyxhTNSiDFY//LhnMZWpNNr5etoCqx/iUfGc5gXWtQR2Phl908jVR6uPXacojQWTg4qRpkxTuGug==
dependencies:
"@types/prop-types" "*"
"@types/scheduler" "*"
csstype "^3.0.2"

"@types/react@^18.0.12":
version "18.0.12"
resolved "https://registry.yarnpkg.com/@types/react/-/react-18.0.12.tgz#cdaa209d0a542b3fcf69cf31a03976ec4cdd8840"
integrity sha512-duF1OTASSBQtcigUvhuiTB1Ya3OvSy+xORCiEf20H0P0lzx+/KeVsA99U5UjLXSbyo1DRJDlLKqTeM1ngosqtg==
Expand Down Expand Up @@ -2062,9 +2086,9 @@ cross-spawn@^7.0.0, cross-spawn@^7.0.2:
which "^2.0.1"

csstype@^3.0.2:
version "3.1.0"
resolved "https://registry.yarnpkg.com/csstype/-/csstype-3.1.0.tgz#4ddcac3718d787cf9df0d1b7d15033925c8f29f2"
integrity sha512-uX1KG+x9h5hIJsaKR9xHUeUraxf8IODOwq9JLNPq6BwB04a/xgpq3rcx47l5BZu5zBPlgD342tdke3Hom/nJRA==
version "3.1.1"
resolved "https://registry.yarnpkg.com/csstype/-/csstype-3.1.1.tgz#841b532c45c758ee546a11d5bd7b7b473c8c30b9"
integrity sha512-DJR/VvkAvSZW9bTouZue2sSxDwdTN92uHjqeKVm+0dAqdfNykRzQ95tay8aXMBAAPpUiq4Qcug2L7neoRh2Egw==

culori@^0.18.2:
version "0.18.2"
Expand Down Expand Up @@ -3042,6 +3066,13 @@ isexe@^2.0.0:
resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10"
integrity sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==

its-fine@^1.0.6:
version "1.0.8"
resolved "https://registry.yarnpkg.com/its-fine/-/its-fine-1.0.8.tgz#de55d8e5ed8e03f53de3e6fdb3147577bc86b077"
integrity sha512-MagTA9/J6kN3aEQsQu6by3nyrttCm0whCOYo4SfiNzOfYgcr1cb29mJ3zgluaJboaWOL/lHzJeMXi/QGSCfX1Q==
dependencies:
"@types/react-reconciler" "^0.28.0"

"js-tokens@^3.0.0 || ^4.0.0", js-tokens@^4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499"
Expand Down Expand Up @@ -3810,10 +3841,10 @@ regenerator-runtime@^0.13.10:
resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.10.tgz#ed07b19616bcbec5da6274ebc75ae95634bfc2ee"
integrity sha512-KepLsg4dU12hryUO7bp/axHAKvwGOCV0sGloQtpagJ12ai+ojVDqkeGSiRX1zlq+kjIMZ1t7gpze+26QqtdGqw==

regenerator-runtime@^0.13.4:
version "0.13.9"
resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.9.tgz#8925742a98ffd90814988d7566ad30ca3b263b52"
integrity sha512-p3VT+cOEgxFsRRA9X4lkI1E+k2/CtnKtU4gcxyaCUreilL/vqI6CdZ3wxVUx3UOUg+gnUOQQcRI7BmSI656MYA==
regenerator-runtime@^0.13.11, regenerator-runtime@^0.13.4:
version "0.13.11"
resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz#f6dca3e7ceec20590d07ada785636a90cdca17f9"
integrity sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg==

regenerator-transform@^0.15.0:
version "0.15.0"
Expand Down

1 comment on commit 469e7a7

@vercel
Copy link

@vercel vercel bot commented on 469e7a7 Dec 24, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.