Skip to content

Commit

Permalink
Create API layer between hooks and cannon web worker
Browse files Browse the repository at this point in the history
Motivation: This is a step towards moving worker logic into a separate package
  • Loading branch information
isaac-mason committed Feb 12, 2022
1 parent 6f069bd commit 7278af0
Show file tree
Hide file tree
Showing 10 changed files with 973 additions and 403 deletions.
36 changes: 35 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,41 @@
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/member-ordering": [
"error",
{ "default": { "order": "alphabetically-case-insensitive" } }
{
"default": {
"order": "alphabetically-case-insensitive"
},
"classes": {
"order": "alphabetically-case-insensitive",
"memberTypes": [
"public-static-field",
"protected-static-field",
"private-static-field",
"public-instance-field",
"public-decorated-field",
"public-abstract-field",
"protected-instance-field",
"protected-decorated-field",
"protected-abstract-field",
"private-instance-field",
"private-decorated-field",
"private-abstract-field",
"static-field",
"public-field",
"instance-field",
"protected-field",
"private-field",
"abstract-field",
"constructor",
"public-static-method",
"protected-static-method",
"private-static-method",
"public-method",
"protected-method",
"private-method"
]
}
}
],
"@typescript-eslint/no-namespace": ["error", { "allowDeclarations": true }],
"@typescript-eslint/no-non-null-assertion": "off",
Expand Down
8 changes: 7 additions & 1 deletion examples/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -350,10 +350,11 @@
integrity sha512-W/YMJMX35XgGGzX0gKORBTwnvQ+1loDOFN3XlZkW5fgpEY+7VkRUpPyqPWXQr3n6lHrsLmHIGdpznqZi54ACTQ==

"@react-three/cannon@file:..":
version "4.4.0"
version "4.6.1"
dependencies:
cannon-es "^0.18.0"
cannon-es-debugger "^1.0.0"
events "^3.3.0"

"@react-three/drei@^8.3.1":
version "8.3.1"
Expand Down Expand Up @@ -854,6 +855,11 @@ estree-walker@^2.0.1:
resolved "https://registry.yarnpkg.com/estree-walker/-/estree-walker-2.0.2.tgz#52f010178c2a4c117a7757cfe942adb7d2da4cac"
integrity sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==

events@^3.3.0:
version "3.3.0"
resolved "https://registry.yarnpkg.com/events/-/events-3.3.0.tgz#31a95ad0a924e2d2c419a813aeb2c4e878ea7400"
integrity sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==

fast-deep-equal@^3.1.3:
version "3.1.3"
resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz#3a7d56b559d6cbc3eb512325244e619a65c6c525"
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
},
"dependencies": {
"cannon-es": "^0.18.0",
"cannon-es-debugger": "^1.0.0"
"cannon-es-debugger": "^1.0.0",
"events": "^3.3.0"
},
"devDependencies": {
"@babel/core": "^7.16.5",
Expand Down
Loading

0 comments on commit 7278af0

Please sign in to comment.