Socket
Socket
Sign inDemoInstall

three.texttexture

Package Overview
Dependencies
1
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 19.0.0 to 20.0.0

index.js

10

package.json
{
"name": "three.texttexture",
"version": "19.0.0",
"version": "20.0.0",
"description": "A texture for the text writing.",

@@ -20,3 +20,3 @@ "keywords": [

"author": "Sergej Sintschilin <seregpie@gmail.com>",
"main": "THREE.TextTexture.js",
"main": "index.js",
"repository": "https://github.com/SeregPie/THREE.TextTexture.git",

@@ -29,9 +29,9 @@ "scripts": {

"devDependencies": {
"rollup": "^1.1.0",
"rollup": "^1.10.1",
"rollup-plugin-buble": "^0.19.6",
"rollup-plugin-terser": "^4.0.2"
"rollup-plugin-terser": "^4.0.4"
},
"peerDependencies": {
"three": "^0.100.0"
"three": "^0.104.0"
}
}

@@ -36,6 +36,9 @@ # THREE.TextTexture

### constructor
```
.constructor({
new THREE.TextTexture({
align,
anisotropy,
createCanvas,
fillStyle,

@@ -48,3 +51,4 @@ fontFamily,

format,
lineSpacing,
lineGap,
loadFontFace,
magFilter,

@@ -84,3 +88,3 @@ mapping,

---
### properties

@@ -97,3 +101,3 @@ `.text = ''`

The lines of text.
The lines of the text.

@@ -104,3 +108,3 @@ ---

The font family of the text.
The family of the font.

@@ -111,3 +115,3 @@ ---

The font size of the text in pixels.
The size of the font in pixels.

@@ -118,3 +122,3 @@ ---

The font weight of the text. Possible values are `'normal'`, `'bold'`, `'bolder'`, `'lighter'` and `'100'` to `'900'`.
The weight of the font. Possible values are `'normal'`, `'bold'`, `'bolder'`, `'lighter'` and `'100'` to `'900'`.

@@ -125,3 +129,3 @@ ---

The font variant of the text. Possible values are `'normal'` and `'small-caps'`.
The variant of the font. Possible values are `'normal'` and `'small-caps'`.

@@ -132,3 +136,3 @@ ---

The font style of the text. Possible values are `'normal'`, `'italic'` and `'oblique'`.
The style of the font. Possible values are `'normal'`, `'italic'` and `'oblique'`.

@@ -141,3 +145,3 @@ ---

The combined font properties.
The combined properties of the font.

@@ -148,3 +152,3 @@ ---

The color or the style of the text.
The fill color or the style of the characters of the text.

@@ -155,3 +159,3 @@ ---

The thickness of the stroke effect. The pixels are calculated relative to the font size.
The stroke width of the characters of the text. The pixels are calculated relative to the font size.

@@ -162,3 +166,3 @@ ---

The color or the style of the stroke effect.
The stroke color or the style of the characters of the text.

@@ -173,5 +177,5 @@ ---

`.lineSpacing = 0.15`
`.lineGap = 0.15`
The vertical distance between the lines of text. The pixels are calculated relative to the font size.
The vertical distance between the lines of the text. The pixels are calculated relative to the font size.

@@ -182,6 +186,28 @@ ---

The space around the text. The pixels are calculated relative to the font size.
The space around the content. The pixels are calculated relative to the font size.
---
`.createCanvas()`
Creates a new `Canvas` instance.
---
`.loadFontFace(family, style, variant, weight)`
Forces a font face to be loaded.
---
Provide custom `loadFontFace` function to support older browsers.
```javascript
loadFontFace(family, style, variant, weight) {
return (new FontFaceObserver(family, {style, weight})).load();
}
```
## see also
- [THREE.TextSprite](https://github.com/SeregPie/THREE.TextSprite)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc