aframe-text-plane
v1.1.1
Published
A wrapper for THREE.TextPlane.
Downloads
25
Readme
aframe-text-plane
A wrapper for THREE.TextPlane
.
demo
setup
npm
npm i aframe-text-plane
import AFRAME from 'aframe';
import 'aframe-text-plane';
browser
<script src="https://unpkg.com/aframe"></script>
<script src="https://unpkg.com/aframe-text-plane"></script>
properties
| name | type | default |
| ---: | :--- | :--- |
| alignment
| 'string'
| 'center'
|
| backgroundColor
| 'color'
| 'rgba(0,0,0,0)'
|
| color
| 'color'
| '#fff'
|
| fog
| 'boolean'
| false
|
| fontFamily
| 'string'
| 'sans-serif'
|
| fontSize
| 'number'
| 1
|
| fontStyle
| 'string'
| 'normal'
|
| fontVariant
| 'string'
| 'normal'
|
| fontWeight
| 'string'
| 'normal'
|
| lineGap
| 'number'
| 0.25
|
| opacity
| 'number'
| 1
|
| padding
| 'number'
| 0.5
|
| strokeColor
| 'color'
| '#fff'
|
| strokeWidth
| 'number'
| 0
|
| text
| 'string'
| ''
|
| transparent
| 'boolean'
| true
|