three-bmfont-text
Advanced tools
Comparing version 1.1.1 to 1.2.0
@@ -56,2 +56,5 @@ var createLayout = require('layout-bmfont-text') | ||
}) | ||
//provide visible glyphs for convenience | ||
this.visibleGlyphs = glyphs; | ||
@@ -58,0 +61,0 @@ //get vec2 quad positions |
{ | ||
"name": "three-bmfont-text", | ||
"version": "1.1.1", | ||
"version": "1.2.0", | ||
"description": "renders BMFont files in ThreeJS with word-wrapping", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -82,2 +82,8 @@ # three-bmfont-text | ||
#### `geometry.visibleGlyphs` | ||
A filtered set from `geometry.layout.glyphs` intended to align with the vertex data being used by the underlying BufferAttributes. | ||
This is an array of `{ line, position, index, data }` objects, [see here](https://github.com/Jam3/layout-bmfont-text#layoutglyphs). For example, this could be used to add a new BufferAttribuet for `line` offset. | ||
## Demos | ||
@@ -84,0 +90,0 @@ |
16904
296
135