introduce editorconfig

This commit is contained in:
6543
2024-08-21 12:47:46 +02:00
parent 9de993624c
commit 81de4ef148
24 changed files with 83 additions and 58 deletions

18
.editorconfig Normal file
View File

@@ -0,0 +1,18 @@
root = true
[*]
indent_style = space
indent_size = 2
tab_width = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[*.md]
trim_trailing_whitespace = false
indent_size = 1
[*.{css,js,json}]
indent_style = tab

View File

@@ -11,12 +11,12 @@ Every message uses [flatbuffers](https://google.github.io/flatbuffers/) and [fle
namespace StardustXR; namespace StardustXR;
table Message { table Message {
type: ubyte; type: ubyte;
id: uint; id: uint;
object: string; object: string;
method: string; method: string;
error: string; error: string;
data:[ubyte] (flexbuffer); data:[ubyte] (flexbuffer);
} }
root_type Message; root_type Message;

View File

@@ -1,4 +1,5 @@
# HandInput # HandInput
### Derived from [InputMethod](../InputMethod) ### Derived from [InputMethod](../InputMethod)
A full 27-bone hand+forearm input with useful abstractions provided through the datamap. A full 27-bone hand+forearm input with useful abstractions provided through the datamap.
@@ -6,6 +7,7 @@ A full 27-bone hand+forearm input with useful abstractions provided through the
The local space of a hand is where +Z is away from the palm, +Y is from the palm to the fingers, and +X is orthogonal and to the right. The local space of a hand is where +Z is away from the palm, +Y is from the palm to the fingers, and +X is orthogonal and to the right.
## Serialization ## Serialization
| Key | Value Type | | Key | Value Type |
|-----------|--------------| |-----------|--------------|
| origin | `Vector3` | | origin | `Vector3` |
@@ -15,36 +17,39 @@ The local space of a hand is where +Z is away from the palm, +Y is from the palm
```js ```js
[ [
thumb metacarpal, thumb metacarpal,
thumb proximal, thumb proximal,
thumb distal, thumb distal,
thumb tip, thumb tip,
index metacarpal, index metacarpal,
index proximal, index proximal,
index intermediate, index intermediate,
index distal, index distal,
index tip, index tip,
middle metacarpal, middle metacarpal,
middle proximal, middle proximal,
middle intermediate, middle intermediate,
middle distal, middle distal,
middle tip, middle tip,
ring metacarpal, ring metacarpal,
ring proximal, ring proximal,
ring intermediate, ring intermediate,
ring distal, ring distal,
ring tip, ring tip,
little metacarpal, little metacarpal,
little proximal, little proximal,
little intermediate, little intermediate,
little distal, little distal,
little tip little tip
] ]
``` ```
(This section is WIP) (This section is WIP)
## Datamap ## Datamap
### Required ### Required
| Key | Value Type | Description | | Key | Value Type | Description |
|-----------------|-----------------------------|--------------------------------------------------------------------| |-----------------|-----------------------------|--------------------------------------------------------------------|
| confidence | `float` (range `0.0`-`1.0`) | How confident the hand tracker is of the pose of the hand | | confidence | `float` (range `0.0`-`1.0`) | How confident the hand tracker is of the pose of the hand |
@@ -54,4 +59,5 @@ The local space of a hand is where +Z is away from the palm, +Y is from the palm
| grabStrength | `float` (range `0.0`-`1.0`) | How much the hand is making a fist | | grabStrength | `float` (range `0.0`-`1.0`) | How much the hand is making a fist |
## Methods ## Methods
**TODO**: Properly secured field distance calculation accessible to clients **TODO**: Properly secured field distance calculation accessible to clients

View File

@@ -33,7 +33,7 @@ module.exports = {
}, },
{ {
type: 'doc', type: 'doc',
docId: 'getting-started/overview', docId: 'overview',
position: 'left', position: 'left',
label: 'Docs', label: 'Docs',
}, },

View File

@@ -1,12 +1,13 @@
/** /**
* Creating a sidebar enables you to: Creating a sidebar enables you to:
- create an ordered group of docs - create an ordered group of docs
- render a sidebar for each doc of that group - render a sidebar for each doc of that group
- provide next/previous navigation - provide next/previous navigation
The sidebars can be generated from the filesystem, or explicitly defined here.
Create as many sidebars as you want. The sidebars can be generated from the filesystem, or explicitly defined here.
Create as many sidebars as you want.
*/ */
module.exports = { module.exports = {