@seregpie/three.text-texture
Advanced tools
Comparing version 3.1.0 to 3.1.1
@@ -8,16 +8,16 @@ import { | ||
export default class extends Texture { | ||
export default class TextTexture extends Texture { | ||
constructor(options?: { | ||
alignment?: string = 'center'; | ||
color?: string = '#fff'; | ||
fontFamily?: string = 'sans-serif'; | ||
fontSize?: number = 16; | ||
fontStyle?: string = 'normal'; | ||
fontVariant?: string = 'normal'; | ||
fontWeight?: string = 'normal'; | ||
lineGap?: number = 1/4; | ||
padding?: number = 1/2; | ||
strokeColor?: string = '#fff'; | ||
strokeWidth?: number = 0; | ||
text?: string = ''; | ||
alignment?: string; | ||
color?: string; | ||
fontFamily?: string; | ||
fontSize?: number; | ||
fontStyle?: string; | ||
fontVariant?: string; | ||
fontWeight?: string; | ||
lineGap?: number; | ||
padding?: number; | ||
strokeColor?: string; | ||
strokeWidth?: number; | ||
text?: string; | ||
}); | ||
@@ -59,3 +59,3 @@ | ||
pixelRatio: number = 1; | ||
pixelRatio: number; | ||
@@ -73,2 +73,2 @@ redraw(): void; | ||
loadFontFace(): Promise<void>; | ||
}; | ||
} |
{ | ||
"name": "@seregpie/three.text-texture", | ||
"version": "3.1.0", | ||
"version": "3.1.1", | ||
"description": "A texture with the drawn text.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -79,3 +79,3 @@ # THREE.TextTexture | ||
fontFamily: 'sans-serif', | ||
fontSize: 1, | ||
fontSize: 16, | ||
fontStyle: 'normal', | ||
@@ -82,0 +82,0 @@ fontVariant: 'normal', |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9967