Skip to content

Commit

Permalink
more formatting for readthedocs
Browse files Browse the repository at this point in the history
  • Loading branch information
disasteroftheuniverse committed Dec 30, 2019
1 parent 749c359 commit f03df32
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions docs/aframe-extra-collection.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,72 +4,72 @@

A collection of miscellaneous components with varying degrees of usefulness.

# **rounded**
## **rounded**

<hr>

Creates a flat 2D rectangle with rounded corners. The appearance can be modified with [A-Frame 'material' component](https://aframe.io/docs/master/components/material.html).

##### Example
### Example

```html
<a-entity rounded="radius: 0.05; width: 1; height: 2;" material="color: blue;"></a-entity>
```

##### Properties
### Properties

| Property | Property Type | Default Value | Description |
|---|---|---|---|
| radius | _number_ | 0.0125 | The radius of the rounded corners in meters. Note: this is in _addition_ to the width & height. |
| width | _number_ | 1 | The width of the rectangle. |
| height | _number_ | 1 | The height of the rectangle. |

# **clamp**
## **clamp**

<hr>

Restricts the movement of an object to a volume specified by minimum and maximum values in world space; Objects with the _clamp_ component cannot move beyond the limits defined by the min and max values.

##### Example
### Example

```html
<a-entity position="0 1 -1" clamp="min: -2 -4 -1; max: 2 5 3"></a-entity>
```

##### Properties
### Properties

| Property | Property Type | Default Value | Description |
|---|---|---|---|
| min | _Vector3_ | {x:-1,y:-1,z:-1} | The minimum allowed world position by axis. |
| max | _Vector3_ | {x:1,y:1,z:1} | The maximum allowed world position by axis. |

# **log-object3D**
## **log-object3D**

<hr>

Calls `console.log` after a mesh is loaded;

##### Example
### Example

```html
<a-entity log-object3D></a-entity>
<!-- returns 'Object3D: { .. etc ... }'-->
```

# **billboard**
## **billboard**

<hr>

Aligns the Z-axis of an entity to always face towards a specified entity;

##### Example
### Example

```html
<a-entity id="foo" ></a-entity>
<a-entity billboard="src: #foo;"></a-entity>
```

##### Properties
### Properties

| Property | Property Type | Default Value | Description |
|---|---|---|---|
Expand Down

0 comments on commit f03df32

Please sign in to comment.