Skip to content

Commit

Permalink
Update data-comp-anchor.md
Browse files Browse the repository at this point in the history
put the values of `type` as a child list instead of what seemingly can look like sibling sections
  • Loading branch information
lobau authored Apr 4, 2024
1 parent 1a389ba commit 3bff2d7
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions source/attributes/data-comp-anchor.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,9 @@ Anchoring is achieved using the anchoring component, `data-comp-anchor`, it has

There are currently three types of anchors:

## `fixed`

Positions the anchored element directly in front of the user whenever an XR session is started.

## `floating`

Allows the user to place the anchored element where they choose, using a look/pinch gesture. The user can place it floating in their space or on the scene mesh.

## `plane`

Anchors the element to the nearest plane that matches the specified label or orientation.
- `fixed`: Positions the anchored element directly in front of the user whenever an XR session is started.
- `floating`: Allows the user to place the anchored element where they choose, using a look/pinch gesture. The user can place it floating in their space or on the scene mesh.
- `plane`: Anchors the element to the nearest plane that matches the specified label or orientation.

If no label or orientation is specified, the element will be anchored to the nearest plane.

Expand Down

0 comments on commit 3bff2d7

Please sign in to comment.