-
Notifications
You must be signed in to change notification settings - Fork 0
/
troika-three-text.d.ts
231 lines (124 loc) · 5.89 KB
/
troika-three-text.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
/* eslint-disable @typescript-eslint/no-unused-vars */
/** Declaration file generated by dts-gen */
import { Mesh } from 'three'
export class GlyphsGeometry {
constructor(...args: unknown[]);
applyClipRect(...args: unknown[]): void;
computeBoundingBox(...args: unknown[]): void;
computeBoundingSphere(...args: unknown[]): void;
setSide(...args: unknown[]): void;
updateGlyphs(...args: unknown[]): void;
}
export type anchorY = 'middle' | 'top' | 'bottom'
export type anchorX = 'center' | 'left' | 'right'
export class Text extends THREE.Object3D {
text: string
fontSize: number
fillOpacity: number
outlineOpacity: number
font: string
anchorY: anchorY
anchorX: anchorX
color: string | number
maxWidth: number
outlineWidth: number
constructor(...args: unknown[]);
clone(...args: unknown[]): Text;
copy(...args: unknown[]): Text;
dispose(...args: unknown[]): void;
localPositionToTextCoords(...args: unknown[]): void;
onAfterRender(...args: unknown[]): void;
onBeforeRender(...args: unknown[]): void;
raycast(...args: unknown[]): void;
sync(...args: unknown[]): void;
worldPositionToTextCoords(...args: unknown[]): void;
static DefaultMatrixAutoUpdate: boolean
static DefaultMatrixWorldAutoUpdate: boolean
}
export function configureTextBuilder(config: unknown): void;
export function createTextDerivedMaterial(baseMaterial: unknown): unknown;
export function dumpSDFTextures(): void;
export function getCaretAtPoint(textRenderInfo: unknown, x: unknown, y: unknown): unknown;
export function getSelectionRects(textRenderInfo: unknown, start: unknown, end: unknown): unknown;
export function preloadFont({ font, characters, sdfGlyphSize }: unknown, callback: unknown): void;
export function typesetterWorkerModule(...args: unknown[]): unknown;
export namespace Text {
namespace DefaultUp {
const isVector3: boolean
const x: number
const y: number
const z: number
function add(...args: unknown[]): void;
function addScalar(...args: unknown[]): void;
function addScaledVector(...args: unknown[]): void;
function addVectors(...args: unknown[]): void;
function angleTo(...args: unknown[]): void;
function applyAxisAngle(...args: unknown[]): void;
function applyEuler(...args: unknown[]): void;
function applyMatrix3(...args: unknown[]): void;
function applyMatrix4(...args: unknown[]): void;
function applyNormalMatrix(...args: unknown[]): void;
function applyQuaternion(...args: unknown[]): void;
function ceil(...args: unknown[]): void;
function clamp(...args: unknown[]): void;
function clampLength(...args: unknown[]): void;
function clampScalar(...args: unknown[]): void;
function clone(...args: unknown[]): void;
function copy(...args: unknown[]): void;
function cross(...args: unknown[]): void;
function crossVectors(...args: unknown[]): void;
function distanceTo(...args: unknown[]): void;
function distanceToSquared(...args: unknown[]): void;
function divide(...args: unknown[]): void;
function divideScalar(...args: unknown[]): void;
function dot(...args: unknown[]): void;
function equals(...args: unknown[]): void;
function floor(...args: unknown[]): void;
function fromArray(...args: unknown[]): void;
function fromBufferAttribute(...args: unknown[]): void;
function getComponent(...args: unknown[]): void;
function length(...args: unknown[]): void;
function lengthSq(...args: unknown[]): void;
function lerp(...args: unknown[]): void;
function lerpVectors(...args: unknown[]): void;
function manhattanDistanceTo(...args: unknown[]): void;
function manhattanLength(...args: unknown[]): void;
function max(...args: unknown[]): void;
function min(...args: unknown[]): void;
function multiply(...args: unknown[]): void;
function multiplyScalar(...args: unknown[]): void;
function multiplyVectors(...args: unknown[]): void;
function negate(...args: unknown[]): void;
function normalize(...args: unknown[]): void;
function project(...args: unknown[]): void;
function projectOnPlane(...args: unknown[]): void;
function projectOnVector(...args: unknown[]): void;
function random(...args: unknown[]): void;
function randomDirection(...args: unknown[]): void;
function reflect(...args: unknown[]): void;
function round(...args: unknown[]): void;
function roundToZero(...args: unknown[]): void;
function set(...args: unknown[]): void;
function setComponent(...args: unknown[]): void;
function setFromCylindrical(...args: unknown[]): void;
function setFromCylindricalCoords(...args: unknown[]): void;
function setFromEuler(...args: unknown[]): void;
function setFromMatrix3Column(...args: unknown[]): void;
function setFromMatrixColumn(...args: unknown[]): void;
function setFromMatrixPosition(...args: unknown[]): void;
function setFromMatrixScale(...args: unknown[]): void;
function setFromSpherical(...args: unknown[]): void;
function setFromSphericalCoords(...args: unknown[]): void;
function setLength(...args: unknown[]): void;
function setScalar(...args: unknown[]): void;
function setX(...args: unknown[]): void;
function setY(...args: unknown[]): void;
function setZ(...args: unknown[]): void;
function sub(...args: unknown[]): void;
function subScalar(...args: unknown[]): void;
function subVectors(...args: unknown[]): void;
function toArray(...args: unknown[]): void;
function transformDirection(...args: unknown[]): void;
function unproject(...args: unknown[]): void;
}
}