0.50.2 • Published 9 months ago

troika-3d-text v0.50.2

Weekly downloads
1,426
License
MIT
Repository
github
Last release
9 months ago

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.

0.50.2

9 months ago

0.50.1

9 months ago

0.50.0

9 months ago

0.49.1

1 year ago

0.49.0

2 years ago

0.48.1

2 years ago

0.48.0-unicode.4

2 years ago

0.48.0-unicode.3

2 years ago

0.48.0-unicode.2

2 years ago

0.48.0-unicode.1

2 years ago

0.48.0

2 years ago

0.47.2

2 years ago

0.47.1

3 years ago

0.47.0

3 years ago

0.46.4

3 years ago

0.46.3

3 years ago

0.46.2

3 years ago

0.46.0

3 years ago

0.46.1

3 years ago

0.45.1

3 years ago

0.45.0

4 years ago

0.44.0

4 years ago

0.43.1-alpha.0

4 years ago

0.43.0

4 years ago

0.41.1

4 years ago

0.41.2

4 years ago

0.41.0

4 years ago

0.42.0

4 years ago

0.40.0

4 years ago

0.39.1

4 years ago

0.39.2

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

5 years ago

0.36.0

5 years ago

0.35.0

5 years ago

0.34.2

5 years ago

0.34.1

5 years ago

0.34.0

5 years ago

0.33.1

5 years ago

0.32.0

5 years ago

0.31.0

5 years ago

0.30.2

5 years ago

0.30.1

5 years ago

0.30.0

5 years ago

0.29.0

5 years ago

0.28.1

5 years ago

0.28.0

5 years ago

0.27.1

5 years ago

0.27.0

5 years ago

0.26.1

5 years ago

0.26.0

5 years ago

0.25.0

5 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

6 years ago

0.15.7

6 years ago

0.15.6

6 years ago

0.15.5

6 years ago

0.15.4

6 years ago

0.15.3

6 years ago

0.15.2

6 years ago

0.15.1

6 years ago

0.15.0

6 years ago

0.14.0

6 years ago

0.13.1

6 years ago

0.13.0

6 years ago