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

@@ -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` |
@@ -41,10 +43,13 @@ The local space of a hand is where +Z is away from the palm, +Y is from the palm
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,9 +1,10 @@
/** /**
* 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. The sidebars can be generated from the filesystem, or explicitly defined here.
Create as many sidebars as you want. Create as many sidebars as you want.