troika-3d-text
Troika 3D Text
Last updated 5 years ago by lojjic .
MIT · Original npm · Tarball · package.json
$ npm install troika-3d-text 
SYNC missed versions from official npm registry.

troika-3d-text

PLEASE NOTE: The standalone TextMesh for Three.js, which used to be accessible from this package in a custom dist/textmesh-standalone.umd.js file, has been promoted to its own package, troika-three-text. You can now just import Text from that package directly:

import { Text } from 'troika-three-text'

let myText = new Text()

This package provides high quality text rendering in the Troika scene management framework, using signed distance fields (SDF) and antialiasing using standard derivatives. It is based on troika-three-text.

Demo

Here's an online demo.

Installation

Get it from NPM:

npm install troika-3d-text

You will also need to install a compatible version of Three.js; see the notes in the Troika 3D Readme for details.

Usage

Import the Text3DFacade class:

import { Text3DFacade } from 'troika-3d-text'

...then use it within your scene descriptor to configure it:

{
  key: 'my-text',
  facade: Text3DFacade,
  text: 'Hello world!',
  fontSize: 0.2,
  color: 0x9966FF,
  z: -2
  // ...etc.
}

Supported properties

Text3DFacade supports all properties supported by the Text mesh from troika-three-text; see the documentation there for details.

Current Tags

  • 0.49.1                                ...           latest (7 months ago)
  • 0.34.0-textoutline.8                                ...           next (4 years ago)
  • 0.48.0-unicode.4                                ...           unicode (a year ago)

80 Versions

  • 0.49.1                                ...           7 months ago
  • 0.49.0                                ...           a year ago
  • 0.48.1                                ...           a year ago
  • 0.48.0                                ...           a year ago
  • 0.48.0-unicode.4                                ...           a year ago
  • 0.48.0-unicode.3                                ...           a year ago
  • 0.48.0-unicode.2                                ...           a year ago
  • 0.48.0-unicode.1                                ...           a year ago
  • 0.47.2                                ...           2 years ago
  • 0.47.1                                ...           2 years ago
  • 0.47.0                                ...           2 years ago
  • 0.46.4                                ...           3 years ago
  • 0.46.3                                ...           3 years ago
  • 0.45.1                                ...           3 years ago
  • 0.46.2                                ...           3 years ago
  • 0.46.1                                ...           3 years ago
  • 0.46.0                                ...           3 years ago
  • 0.45.0                                ...           3 years ago
  • 0.44.0                                ...           3 years ago
  • 0.43.1-alpha.0                                ...           3 years ago
  • 0.43.0                                ...           3 years ago
  • 0.42.0                                ...           3 years ago
  • 0.41.2                                ...           4 years ago
  • 0.41.1                                ...           4 years ago
  • 0.41.0                                ...           4 years ago
  • 0.40.0                                ...           4 years ago
  • 0.39.2                                ...           4 years ago
  • 0.39.1                                ...           4 years ago
  • 0.39.0                                ...           4 years ago
  • 0.38.1                                ...           4 years ago
  • 0.38.0                                ...           4 years ago
  • 0.37.0                                ...           4 years ago
  • 0.36.1                                ...           4 years ago
  • 0.36.0                                ...           4 years ago
  • 0.35.0                                ...           4 years ago
  • 0.34.2                                ...           4 years ago
  • 0.34.1                                ...           4 years ago
  • 0.34.0                                ...           4 years ago
  • 0.34.0-textoutline.8                                ...           4 years ago
  • 0.34.0-textoutline.6                                ...           4 years ago
  • 0.34.0-textoutline.5                                ...           4 years ago
  • 0.34.0-textoutline.4                                ...           4 years ago
  • 0.34.0-textoutline.3                                ...           4 years ago
  • 0.33.1                                ...           4 years ago
  • 0.32.0                                ...           4 years ago
  • 0.31.0                                ...           4 years ago
  • 0.30.2                                ...           4 years ago
  • 0.30.1                                ...           4 years ago
  • 0.30.0                                ...           4 years ago
  • 0.29.0                                ...           4 years ago
  • 0.28.1                                ...           4 years ago
  • 0.28.0                                ...           4 years ago
  • 0.27.1                                ...           4 years ago
  • 0.27.0                                ...           4 years ago
  • 0.26.1                                ...           4 years ago
  • 0.26.0                                ...           4 years ago
  • 0.25.0                                ...           4 years ago
  • 0.24.1                                ...           5 years ago
  • 0.24.0                                ...           5 years ago
  • 0.23.0                                ...           5 years ago
  • 0.22.0                                ...           5 years ago
  • 0.21.0                                ...           5 years ago
  • 0.20.0                                ...           5 years ago
  • 0.19.0                                ...           5 years ago
  • 0.19.0-alpha.0                                ...           5 years ago
  • 0.18.0                                ...           5 years ago
  • 0.17.1                                ...           5 years ago
  • 0.17.0                                ...           5 years ago
  • 0.16.0                                ...           5 years ago
  • 0.15.7                                ...           5 years ago
  • 0.15.6                                ...           5 years ago
  • 0.15.5                                ...           5 years ago
  • 0.15.4                                ...           5 years ago
  • 0.15.3                                ...           5 years ago
  • 0.15.2                                ...           5 years ago
  • 0.15.1                                ...           5 years ago
  • 0.15.0                                ...           5 years ago
  • 0.14.0                                ...           5 years ago
  • 0.13.1                                ...           5 years ago
  • 0.13.0                                ...           5 years ago
Maintainers (1)
Downloads
Total 0
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (3)
Dev Dependencies (1)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE