0.49.1 • Published 1 month ago

troika-3d-text v0.49.1

Weekly downloads
1,426
License
MIT
Repository
github
Last release
1 month 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.49.1

1 month ago

0.49.0

7 months ago

0.48.1

7 months ago

0.48.0-unicode.4

8 months ago

0.48.0-unicode.3

10 months ago

0.48.0-unicode.2

10 months ago

0.48.0-unicode.1

11 months ago

0.48.0

8 months ago

0.47.2

12 months ago

0.47.1

1 year ago

0.47.0

1 year ago

0.46.4

2 years ago

0.46.3

2 years ago

0.46.2

2 years ago

0.46.0

2 years ago

0.46.1

2 years ago

0.45.1

2 years ago

0.45.0

2 years ago

0.44.0

2 years ago

0.43.1-alpha.0

3 years ago

0.43.0

3 years ago

0.41.1

3 years ago

0.41.2

3 years ago

0.41.0

3 years ago

0.42.0

3 years ago

0.40.0

3 years ago

0.39.1

3 years ago

0.39.2

3 years ago

0.39.0

3 years ago

0.38.1

3 years ago

0.38.0

3 years ago

0.37.0

3 years ago

0.36.1

3 years ago

0.36.0

3 years ago

0.35.0

3 years ago

0.34.2

4 years ago

0.34.1

4 years ago

0.34.0

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

4 years ago

0.24.0

4 years ago

0.23.0

4 years ago

0.22.0

4 years ago

0.21.0

4 years ago

0.20.0

4 years ago

0.19.0

4 years ago

0.19.0-alpha.0

4 years ago

0.18.0

4 years ago

0.17.1

4 years ago

0.17.0

4 years ago

0.16.0

4 years ago

0.15.7

4 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