@glyphcss/vue 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +81 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.cts +600 -0
- package/dist/index.d.ts +600 -0
- package/dist/index.js +1 -0
- package/package.json +63 -0
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,600 @@
|
|
|
1
|
+
import { RenderMode, Vec3, GlyphcssAnimationTarget, GlyphcssAnimationMixer, GlyphcssAnimationClip, GlyphcssAnimationAction, ParseAnimationController } from '@glyphcss/core';
|
|
2
|
+
export { ApproximateMergeOptions, ArrowPolygonsOptions, AutoRotateConfig, AutoRotateOption, AxesHelperOptions, BASE_TILE, CAMERA_BACKFACE_CULL_EPS, CameraCullNormalGroup, CameraCullRotation, CameraHandle, CameraState, CameraStyleInput, CoverPlanarPolygonsOptions, CullInteriorOptions, DEFAULT_CAMERA_STATE, DEFAULT_PROJECTION, GltfParseOptions, GlyphcssAmbientLight, GlyphcssAnimationAction, GlyphcssAnimationClip, GlyphcssAnimationMixer, GlyphcssAnimationTarget, GlyphcssDirectionalLight, LoadMeshOptions, LoopMode, LoopOnce, LoopPingPong, LoopRepeat, MtlParseResult, NormalizeResult, ObjParseOptions, OctahedronPolygonsOptions, OptimizeMeshPolygonsOptions, ParseAnimationClip, ParseAnimationController, ParseResult, ParsedColor, Polygon, PolygonFace, RingPolygonsOptions, SceneBbox, SceneContext, SceneContextBuildArgs, SceneContextBuildResult, SolidTextureSampleOptions, TextureTriangle, VOXEL_CAMERA_CULL_AXIS_EPS, VOXEL_CAMERA_CULL_NORMAL_LIMIT, Vec2, Vec3, VoxParseOptions, arrowPolygons, axesHelperPolygons, bakeSolidTextureSampledPolygons, bakeSolidTextureSamples, buildSceneContext, cameraCullNormalGroups, cameraCullNormalGroupsFromPolygons, cameraCullNormalKey, cameraCullVisibleSignature, cameraFacingDepth, clampChannel, computeSceneBbox, computeShapeLighting, coverPlanarPolygons, createGlyphcssAnimationMixer, createIsometricCamera, cullInteriorPolygons, formatColor, inverseRotateVec3, isAxisAlignedSurfaceNormal, isVoxelCameraCullableNormalGroups, loadMesh, mergePolygons, normalFacesCamera, normalizeInvertMultiplier, normalizePolygons, octahedronPolygons, optimizeMeshPolygons, parseColor, parseGltf, parseHexColor, parseMtl, parseObj, parsePureColor, parseRgbColor, parseVox, polygonCssSurfaceNormal, polygonFaces, polygonFacesCamera, ringPolygons, rotateVec3, shadeColor } from '@glyphcss/core';
|
|
3
|
+
import * as vue from 'vue';
|
|
4
|
+
import { PropType, InjectionKey, ShallowRef, Ref, ComputedRef, MaybeRef } from 'vue';
|
|
5
|
+
import { GlyphcssDirectionalLight, GlyphcssAmbientLight, GlyphcssTriangle, GlyphcssSceneHandle, GlyphcssCamera } from 'glyphcss';
|
|
6
|
+
export { injectGlyphcssBaseStyles } from 'glyphcss';
|
|
7
|
+
|
|
8
|
+
interface GlyphcssSceneProps {
|
|
9
|
+
mode?: RenderMode;
|
|
10
|
+
glyphPalette?: string;
|
|
11
|
+
useColors?: boolean;
|
|
12
|
+
cols?: number;
|
|
13
|
+
rows?: number;
|
|
14
|
+
cellAspect?: number;
|
|
15
|
+
directionalLight?: GlyphcssDirectionalLight;
|
|
16
|
+
ambientLight?: GlyphcssAmbientLight;
|
|
17
|
+
class?: string;
|
|
18
|
+
}
|
|
19
|
+
declare const GlyphcssScene: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
20
|
+
mode: {
|
|
21
|
+
type: PropType<RenderMode>;
|
|
22
|
+
default: undefined;
|
|
23
|
+
};
|
|
24
|
+
glyphPalette: {
|
|
25
|
+
type: StringConstructor;
|
|
26
|
+
default: undefined;
|
|
27
|
+
};
|
|
28
|
+
useColors: {
|
|
29
|
+
type: BooleanConstructor;
|
|
30
|
+
default: undefined;
|
|
31
|
+
};
|
|
32
|
+
cols: {
|
|
33
|
+
type: NumberConstructor;
|
|
34
|
+
default: undefined;
|
|
35
|
+
};
|
|
36
|
+
rows: {
|
|
37
|
+
type: NumberConstructor;
|
|
38
|
+
default: undefined;
|
|
39
|
+
};
|
|
40
|
+
cellAspect: {
|
|
41
|
+
type: NumberConstructor;
|
|
42
|
+
default: undefined;
|
|
43
|
+
};
|
|
44
|
+
directionalLight: {
|
|
45
|
+
type: PropType<GlyphcssDirectionalLight>;
|
|
46
|
+
default: undefined;
|
|
47
|
+
};
|
|
48
|
+
ambientLight: {
|
|
49
|
+
type: PropType<GlyphcssAmbientLight>;
|
|
50
|
+
default: undefined;
|
|
51
|
+
};
|
|
52
|
+
class: {
|
|
53
|
+
type: StringConstructor;
|
|
54
|
+
default: undefined;
|
|
55
|
+
};
|
|
56
|
+
}>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
57
|
+
[key: string]: any;
|
|
58
|
+
}>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
59
|
+
mode: {
|
|
60
|
+
type: PropType<RenderMode>;
|
|
61
|
+
default: undefined;
|
|
62
|
+
};
|
|
63
|
+
glyphPalette: {
|
|
64
|
+
type: StringConstructor;
|
|
65
|
+
default: undefined;
|
|
66
|
+
};
|
|
67
|
+
useColors: {
|
|
68
|
+
type: BooleanConstructor;
|
|
69
|
+
default: undefined;
|
|
70
|
+
};
|
|
71
|
+
cols: {
|
|
72
|
+
type: NumberConstructor;
|
|
73
|
+
default: undefined;
|
|
74
|
+
};
|
|
75
|
+
rows: {
|
|
76
|
+
type: NumberConstructor;
|
|
77
|
+
default: undefined;
|
|
78
|
+
};
|
|
79
|
+
cellAspect: {
|
|
80
|
+
type: NumberConstructor;
|
|
81
|
+
default: undefined;
|
|
82
|
+
};
|
|
83
|
+
directionalLight: {
|
|
84
|
+
type: PropType<GlyphcssDirectionalLight>;
|
|
85
|
+
default: undefined;
|
|
86
|
+
};
|
|
87
|
+
ambientLight: {
|
|
88
|
+
type: PropType<GlyphcssAmbientLight>;
|
|
89
|
+
default: undefined;
|
|
90
|
+
};
|
|
91
|
+
class: {
|
|
92
|
+
type: StringConstructor;
|
|
93
|
+
default: undefined;
|
|
94
|
+
};
|
|
95
|
+
}>> & Readonly<{}>, {
|
|
96
|
+
mode: RenderMode;
|
|
97
|
+
glyphPalette: string;
|
|
98
|
+
useColors: boolean;
|
|
99
|
+
cols: number;
|
|
100
|
+
rows: number;
|
|
101
|
+
cellAspect: number;
|
|
102
|
+
directionalLight: GlyphcssDirectionalLight;
|
|
103
|
+
ambientLight: GlyphcssAmbientLight;
|
|
104
|
+
class: string;
|
|
105
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
106
|
+
|
|
107
|
+
interface GlyphcssMeshProps {
|
|
108
|
+
id?: string;
|
|
109
|
+
triangles?: GlyphcssTriangle[];
|
|
110
|
+
position?: Vec3;
|
|
111
|
+
scale?: number | Vec3;
|
|
112
|
+
rotation?: Vec3;
|
|
113
|
+
class?: string;
|
|
114
|
+
}
|
|
115
|
+
declare const GlyphcssMesh: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
116
|
+
id: {
|
|
117
|
+
type: StringConstructor;
|
|
118
|
+
default: undefined;
|
|
119
|
+
};
|
|
120
|
+
triangles: {
|
|
121
|
+
type: PropType<GlyphcssTriangle[]>;
|
|
122
|
+
default: () => never[];
|
|
123
|
+
};
|
|
124
|
+
position: {
|
|
125
|
+
type: PropType<Vec3>;
|
|
126
|
+
default: undefined;
|
|
127
|
+
};
|
|
128
|
+
scale: {
|
|
129
|
+
type: PropType<number | Vec3>;
|
|
130
|
+
default: undefined;
|
|
131
|
+
};
|
|
132
|
+
rotation: {
|
|
133
|
+
type: PropType<Vec3>;
|
|
134
|
+
default: undefined;
|
|
135
|
+
};
|
|
136
|
+
class: {
|
|
137
|
+
type: StringConstructor;
|
|
138
|
+
default: undefined;
|
|
139
|
+
};
|
|
140
|
+
}>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
141
|
+
[key: string]: any;
|
|
142
|
+
}>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
143
|
+
id: {
|
|
144
|
+
type: StringConstructor;
|
|
145
|
+
default: undefined;
|
|
146
|
+
};
|
|
147
|
+
triangles: {
|
|
148
|
+
type: PropType<GlyphcssTriangle[]>;
|
|
149
|
+
default: () => never[];
|
|
150
|
+
};
|
|
151
|
+
position: {
|
|
152
|
+
type: PropType<Vec3>;
|
|
153
|
+
default: undefined;
|
|
154
|
+
};
|
|
155
|
+
scale: {
|
|
156
|
+
type: PropType<number | Vec3>;
|
|
157
|
+
default: undefined;
|
|
158
|
+
};
|
|
159
|
+
rotation: {
|
|
160
|
+
type: PropType<Vec3>;
|
|
161
|
+
default: undefined;
|
|
162
|
+
};
|
|
163
|
+
class: {
|
|
164
|
+
type: StringConstructor;
|
|
165
|
+
default: undefined;
|
|
166
|
+
};
|
|
167
|
+
}>> & Readonly<{}>, {
|
|
168
|
+
class: string;
|
|
169
|
+
id: string;
|
|
170
|
+
triangles: GlyphcssTriangle[];
|
|
171
|
+
position: Vec3;
|
|
172
|
+
scale: number | Vec3;
|
|
173
|
+
rotation: Vec3;
|
|
174
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
175
|
+
|
|
176
|
+
interface GlyphcssHotspotProps {
|
|
177
|
+
id: string;
|
|
178
|
+
at: Vec3;
|
|
179
|
+
size?: [number, number];
|
|
180
|
+
}
|
|
181
|
+
declare const GlyphcssHotspot: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
182
|
+
id: {
|
|
183
|
+
type: StringConstructor;
|
|
184
|
+
required: true;
|
|
185
|
+
};
|
|
186
|
+
at: {
|
|
187
|
+
type: PropType<Vec3>;
|
|
188
|
+
required: true;
|
|
189
|
+
};
|
|
190
|
+
size: {
|
|
191
|
+
type: PropType<[number, number]>;
|
|
192
|
+
default: undefined;
|
|
193
|
+
};
|
|
194
|
+
}>, () => null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, "click"[], "click", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
195
|
+
id: {
|
|
196
|
+
type: StringConstructor;
|
|
197
|
+
required: true;
|
|
198
|
+
};
|
|
199
|
+
at: {
|
|
200
|
+
type: PropType<Vec3>;
|
|
201
|
+
required: true;
|
|
202
|
+
};
|
|
203
|
+
size: {
|
|
204
|
+
type: PropType<[number, number]>;
|
|
205
|
+
default: undefined;
|
|
206
|
+
};
|
|
207
|
+
}>> & Readonly<{
|
|
208
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
209
|
+
}>, {
|
|
210
|
+
size: [number, number];
|
|
211
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
212
|
+
|
|
213
|
+
interface GlyphcssSceneContextValue {
|
|
214
|
+
sceneRef: ShallowRef<GlyphcssSceneHandle | null>;
|
|
215
|
+
}
|
|
216
|
+
declare const GlyphcssSceneContextKey: InjectionKey<GlyphcssSceneContextValue>;
|
|
217
|
+
|
|
218
|
+
declare function useGlyphcssSceneContext(): GlyphcssSceneContextValue;
|
|
219
|
+
|
|
220
|
+
interface GlyphcssPerspectiveCameraProps {
|
|
221
|
+
rotX?: number;
|
|
222
|
+
rotY?: number;
|
|
223
|
+
distance?: number;
|
|
224
|
+
scale?: number;
|
|
225
|
+
stretch?: number;
|
|
226
|
+
center?: [number, number];
|
|
227
|
+
}
|
|
228
|
+
declare const GlyphcssPerspectiveCamera: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
229
|
+
rotX: {
|
|
230
|
+
type: NumberConstructor;
|
|
231
|
+
default: undefined;
|
|
232
|
+
};
|
|
233
|
+
rotY: {
|
|
234
|
+
type: NumberConstructor;
|
|
235
|
+
default: undefined;
|
|
236
|
+
};
|
|
237
|
+
distance: {
|
|
238
|
+
type: NumberConstructor;
|
|
239
|
+
default: undefined;
|
|
240
|
+
};
|
|
241
|
+
scale: {
|
|
242
|
+
type: NumberConstructor;
|
|
243
|
+
default: undefined;
|
|
244
|
+
};
|
|
245
|
+
stretch: {
|
|
246
|
+
type: NumberConstructor;
|
|
247
|
+
default: undefined;
|
|
248
|
+
};
|
|
249
|
+
center: {
|
|
250
|
+
type: PropType<[number, number]>;
|
|
251
|
+
default: undefined;
|
|
252
|
+
};
|
|
253
|
+
}>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
254
|
+
[key: string]: any;
|
|
255
|
+
}>[] | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
256
|
+
rotX: {
|
|
257
|
+
type: NumberConstructor;
|
|
258
|
+
default: undefined;
|
|
259
|
+
};
|
|
260
|
+
rotY: {
|
|
261
|
+
type: NumberConstructor;
|
|
262
|
+
default: undefined;
|
|
263
|
+
};
|
|
264
|
+
distance: {
|
|
265
|
+
type: NumberConstructor;
|
|
266
|
+
default: undefined;
|
|
267
|
+
};
|
|
268
|
+
scale: {
|
|
269
|
+
type: NumberConstructor;
|
|
270
|
+
default: undefined;
|
|
271
|
+
};
|
|
272
|
+
stretch: {
|
|
273
|
+
type: NumberConstructor;
|
|
274
|
+
default: undefined;
|
|
275
|
+
};
|
|
276
|
+
center: {
|
|
277
|
+
type: PropType<[number, number]>;
|
|
278
|
+
default: undefined;
|
|
279
|
+
};
|
|
280
|
+
}>> & Readonly<{}>, {
|
|
281
|
+
scale: number;
|
|
282
|
+
rotX: number;
|
|
283
|
+
rotY: number;
|
|
284
|
+
distance: number;
|
|
285
|
+
stretch: number;
|
|
286
|
+
center: [number, number];
|
|
287
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
288
|
+
|
|
289
|
+
interface GlyphcssOrthographicCameraProps {
|
|
290
|
+
rotX?: number;
|
|
291
|
+
rotY?: number;
|
|
292
|
+
zoom?: number;
|
|
293
|
+
center?: [number, number];
|
|
294
|
+
}
|
|
295
|
+
declare const GlyphcssOrthographicCamera: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
296
|
+
rotX: {
|
|
297
|
+
type: NumberConstructor;
|
|
298
|
+
default: undefined;
|
|
299
|
+
};
|
|
300
|
+
rotY: {
|
|
301
|
+
type: NumberConstructor;
|
|
302
|
+
default: undefined;
|
|
303
|
+
};
|
|
304
|
+
zoom: {
|
|
305
|
+
type: NumberConstructor;
|
|
306
|
+
default: undefined;
|
|
307
|
+
};
|
|
308
|
+
center: {
|
|
309
|
+
type: PropType<[number, number]>;
|
|
310
|
+
default: undefined;
|
|
311
|
+
};
|
|
312
|
+
}>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
313
|
+
[key: string]: any;
|
|
314
|
+
}>[] | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
315
|
+
rotX: {
|
|
316
|
+
type: NumberConstructor;
|
|
317
|
+
default: undefined;
|
|
318
|
+
};
|
|
319
|
+
rotY: {
|
|
320
|
+
type: NumberConstructor;
|
|
321
|
+
default: undefined;
|
|
322
|
+
};
|
|
323
|
+
zoom: {
|
|
324
|
+
type: NumberConstructor;
|
|
325
|
+
default: undefined;
|
|
326
|
+
};
|
|
327
|
+
center: {
|
|
328
|
+
type: PropType<[number, number]>;
|
|
329
|
+
default: undefined;
|
|
330
|
+
};
|
|
331
|
+
}>> & Readonly<{}>, {
|
|
332
|
+
rotX: number;
|
|
333
|
+
rotY: number;
|
|
334
|
+
center: [number, number];
|
|
335
|
+
zoom: number;
|
|
336
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
337
|
+
|
|
338
|
+
interface GlyphcssCameraContextValue {
|
|
339
|
+
cameraRef: ShallowRef<GlyphcssCamera | null>;
|
|
340
|
+
rerender: () => void;
|
|
341
|
+
}
|
|
342
|
+
declare const GlyphcssCameraContextKey: InjectionKey<GlyphcssCameraContextValue>;
|
|
343
|
+
|
|
344
|
+
declare function useGlyphcssCamera(): GlyphcssCameraContextValue;
|
|
345
|
+
|
|
346
|
+
interface GlyphcssOrbitControlsProps {
|
|
347
|
+
drag?: boolean;
|
|
348
|
+
wheel?: boolean;
|
|
349
|
+
invert?: boolean | number;
|
|
350
|
+
animate?: false | {
|
|
351
|
+
speed?: number;
|
|
352
|
+
axis?: "x" | "y";
|
|
353
|
+
pauseOnInteraction?: boolean;
|
|
354
|
+
};
|
|
355
|
+
}
|
|
356
|
+
declare const GlyphcssOrbitControls: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
357
|
+
drag: {
|
|
358
|
+
type: BooleanConstructor;
|
|
359
|
+
default: boolean;
|
|
360
|
+
};
|
|
361
|
+
wheel: {
|
|
362
|
+
type: BooleanConstructor;
|
|
363
|
+
default: boolean;
|
|
364
|
+
};
|
|
365
|
+
invert: {
|
|
366
|
+
type: () => boolean | number;
|
|
367
|
+
default: boolean;
|
|
368
|
+
};
|
|
369
|
+
animate: {
|
|
370
|
+
type: () => false | {
|
|
371
|
+
speed?: number;
|
|
372
|
+
axis?: "x" | "y";
|
|
373
|
+
pauseOnInteraction?: boolean;
|
|
374
|
+
};
|
|
375
|
+
default: boolean;
|
|
376
|
+
};
|
|
377
|
+
}>, () => null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
378
|
+
drag: {
|
|
379
|
+
type: BooleanConstructor;
|
|
380
|
+
default: boolean;
|
|
381
|
+
};
|
|
382
|
+
wheel: {
|
|
383
|
+
type: BooleanConstructor;
|
|
384
|
+
default: boolean;
|
|
385
|
+
};
|
|
386
|
+
invert: {
|
|
387
|
+
type: () => boolean | number;
|
|
388
|
+
default: boolean;
|
|
389
|
+
};
|
|
390
|
+
animate: {
|
|
391
|
+
type: () => false | {
|
|
392
|
+
speed?: number;
|
|
393
|
+
axis?: "x" | "y";
|
|
394
|
+
pauseOnInteraction?: boolean;
|
|
395
|
+
};
|
|
396
|
+
default: boolean;
|
|
397
|
+
};
|
|
398
|
+
}>> & Readonly<{}>, {
|
|
399
|
+
drag: boolean;
|
|
400
|
+
wheel: boolean;
|
|
401
|
+
invert: number | boolean;
|
|
402
|
+
animate: false | {
|
|
403
|
+
speed?: number;
|
|
404
|
+
axis?: "x" | "y";
|
|
405
|
+
pauseOnInteraction?: boolean;
|
|
406
|
+
};
|
|
407
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
408
|
+
|
|
409
|
+
interface GlyphcssMapControlsProps {
|
|
410
|
+
drag?: boolean;
|
|
411
|
+
wheel?: boolean;
|
|
412
|
+
invert?: boolean | number;
|
|
413
|
+
animate?: false | {
|
|
414
|
+
speed?: number;
|
|
415
|
+
axis?: "x" | "y";
|
|
416
|
+
pauseOnInteraction?: boolean;
|
|
417
|
+
};
|
|
418
|
+
}
|
|
419
|
+
declare const GlyphcssMapControls: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
420
|
+
drag: {
|
|
421
|
+
type: BooleanConstructor;
|
|
422
|
+
default: boolean;
|
|
423
|
+
};
|
|
424
|
+
wheel: {
|
|
425
|
+
type: BooleanConstructor;
|
|
426
|
+
default: boolean;
|
|
427
|
+
};
|
|
428
|
+
invert: {
|
|
429
|
+
type: () => boolean | number;
|
|
430
|
+
default: boolean;
|
|
431
|
+
};
|
|
432
|
+
animate: {
|
|
433
|
+
type: () => false | {
|
|
434
|
+
speed?: number;
|
|
435
|
+
axis?: "x" | "y";
|
|
436
|
+
pauseOnInteraction?: boolean;
|
|
437
|
+
};
|
|
438
|
+
default: boolean;
|
|
439
|
+
};
|
|
440
|
+
}>, () => null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
441
|
+
drag: {
|
|
442
|
+
type: BooleanConstructor;
|
|
443
|
+
default: boolean;
|
|
444
|
+
};
|
|
445
|
+
wheel: {
|
|
446
|
+
type: BooleanConstructor;
|
|
447
|
+
default: boolean;
|
|
448
|
+
};
|
|
449
|
+
invert: {
|
|
450
|
+
type: () => boolean | number;
|
|
451
|
+
default: boolean;
|
|
452
|
+
};
|
|
453
|
+
animate: {
|
|
454
|
+
type: () => false | {
|
|
455
|
+
speed?: number;
|
|
456
|
+
axis?: "x" | "y";
|
|
457
|
+
pauseOnInteraction?: boolean;
|
|
458
|
+
};
|
|
459
|
+
default: boolean;
|
|
460
|
+
};
|
|
461
|
+
}>> & Readonly<{}>, {
|
|
462
|
+
drag: boolean;
|
|
463
|
+
wheel: boolean;
|
|
464
|
+
invert: number | boolean;
|
|
465
|
+
animate: false | {
|
|
466
|
+
speed?: number;
|
|
467
|
+
axis?: "x" | "y";
|
|
468
|
+
pauseOnInteraction?: boolean;
|
|
469
|
+
};
|
|
470
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
471
|
+
|
|
472
|
+
interface GlyphcssFirstPersonControlsProps {
|
|
473
|
+
drag?: boolean;
|
|
474
|
+
keyboard?: boolean;
|
|
475
|
+
moveSpeed?: number;
|
|
476
|
+
lookSpeed?: number;
|
|
477
|
+
invert?: boolean | number;
|
|
478
|
+
}
|
|
479
|
+
declare const GlyphcssFirstPersonControls: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
480
|
+
drag: {
|
|
481
|
+
type: BooleanConstructor;
|
|
482
|
+
default: boolean;
|
|
483
|
+
};
|
|
484
|
+
keyboard: {
|
|
485
|
+
type: BooleanConstructor;
|
|
486
|
+
default: boolean;
|
|
487
|
+
};
|
|
488
|
+
moveSpeed: {
|
|
489
|
+
type: NumberConstructor;
|
|
490
|
+
default: number;
|
|
491
|
+
};
|
|
492
|
+
lookSpeed: {
|
|
493
|
+
type: NumberConstructor;
|
|
494
|
+
default: number;
|
|
495
|
+
};
|
|
496
|
+
invert: {
|
|
497
|
+
type: () => boolean | number;
|
|
498
|
+
default: boolean;
|
|
499
|
+
};
|
|
500
|
+
}>, () => null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
501
|
+
drag: {
|
|
502
|
+
type: BooleanConstructor;
|
|
503
|
+
default: boolean;
|
|
504
|
+
};
|
|
505
|
+
keyboard: {
|
|
506
|
+
type: BooleanConstructor;
|
|
507
|
+
default: boolean;
|
|
508
|
+
};
|
|
509
|
+
moveSpeed: {
|
|
510
|
+
type: NumberConstructor;
|
|
511
|
+
default: number;
|
|
512
|
+
};
|
|
513
|
+
lookSpeed: {
|
|
514
|
+
type: NumberConstructor;
|
|
515
|
+
default: number;
|
|
516
|
+
};
|
|
517
|
+
invert: {
|
|
518
|
+
type: () => boolean | number;
|
|
519
|
+
default: boolean;
|
|
520
|
+
};
|
|
521
|
+
}>> & Readonly<{}>, {
|
|
522
|
+
drag: boolean;
|
|
523
|
+
invert: number | boolean;
|
|
524
|
+
keyboard: boolean;
|
|
525
|
+
moveSpeed: number;
|
|
526
|
+
lookSpeed: number;
|
|
527
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
528
|
+
|
|
529
|
+
interface GlyphcssAxesHelperProps {
|
|
530
|
+
size?: number;
|
|
531
|
+
}
|
|
532
|
+
declare const GlyphcssAxesHelper: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
533
|
+
size: {
|
|
534
|
+
type: NumberConstructor;
|
|
535
|
+
default: number;
|
|
536
|
+
};
|
|
537
|
+
}>, () => null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
538
|
+
size: {
|
|
539
|
+
type: NumberConstructor;
|
|
540
|
+
default: number;
|
|
541
|
+
};
|
|
542
|
+
}>> & Readonly<{}>, {
|
|
543
|
+
size: number;
|
|
544
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
545
|
+
|
|
546
|
+
interface GlyphcssDirectionalLightHelperProps {
|
|
547
|
+
position?: Vec3;
|
|
548
|
+
color?: string;
|
|
549
|
+
size?: number;
|
|
550
|
+
}
|
|
551
|
+
declare const GlyphcssDirectionalLightHelper: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
552
|
+
position: {
|
|
553
|
+
type: PropType<Vec3>;
|
|
554
|
+
default: () => number[];
|
|
555
|
+
};
|
|
556
|
+
color: {
|
|
557
|
+
type: StringConstructor;
|
|
558
|
+
default: string;
|
|
559
|
+
};
|
|
560
|
+
size: {
|
|
561
|
+
type: NumberConstructor;
|
|
562
|
+
default: number;
|
|
563
|
+
};
|
|
564
|
+
}>, () => null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
565
|
+
position: {
|
|
566
|
+
type: PropType<Vec3>;
|
|
567
|
+
default: () => number[];
|
|
568
|
+
};
|
|
569
|
+
color: {
|
|
570
|
+
type: StringConstructor;
|
|
571
|
+
default: string;
|
|
572
|
+
};
|
|
573
|
+
size: {
|
|
574
|
+
type: NumberConstructor;
|
|
575
|
+
default: number;
|
|
576
|
+
};
|
|
577
|
+
}>> & Readonly<{}>, {
|
|
578
|
+
position: Vec3;
|
|
579
|
+
size: number;
|
|
580
|
+
color: string;
|
|
581
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
582
|
+
|
|
583
|
+
interface UseGlyphcssAnimationResultVue {
|
|
584
|
+
/** Attach to a mesh handle when not passing `root` directly. */
|
|
585
|
+
ref: Ref<GlyphcssAnimationTarget | null>;
|
|
586
|
+
/** The active mixer, or null if inputs are not ready yet. */
|
|
587
|
+
mixer: ComputedRef<GlyphcssAnimationMixer | null>;
|
|
588
|
+
/** Resolved clip list. */
|
|
589
|
+
clips: ComputedRef<GlyphcssAnimationClip[]>;
|
|
590
|
+
/** Clip names in input order. */
|
|
591
|
+
names: ComputedRef<string[]>;
|
|
592
|
+
/**
|
|
593
|
+
* Lazy action proxy keyed by clip name. Accessing `actions.value["walk"]`
|
|
594
|
+
* instantiates the action via the mixer. Returns null when mixer is null.
|
|
595
|
+
*/
|
|
596
|
+
actions: ComputedRef<Record<string, GlyphcssAnimationAction | null>>;
|
|
597
|
+
}
|
|
598
|
+
declare function useGlyphcssAnimation(clips: MaybeRef<GlyphcssAnimationClip[] | undefined>, controller: MaybeRef<ParseAnimationController | undefined>, root?: MaybeRef<GlyphcssAnimationTarget | null | undefined>): UseGlyphcssAnimationResultVue;
|
|
599
|
+
|
|
600
|
+
export { GlyphcssAxesHelper, type GlyphcssAxesHelperProps, GlyphcssPerspectiveCamera as GlyphcssCamera, GlyphcssCameraContextKey, type GlyphcssCameraContextValue, type GlyphcssPerspectiveCameraProps as GlyphcssCameraProps, GlyphcssDirectionalLightHelper, type GlyphcssDirectionalLightHelperProps, GlyphcssFirstPersonControls, type GlyphcssFirstPersonControlsProps, GlyphcssHotspot, type GlyphcssHotspotProps, GlyphcssMapControls, type GlyphcssMapControlsProps, GlyphcssMesh, type GlyphcssMeshProps, GlyphcssOrbitControls, type GlyphcssOrbitControlsProps, GlyphcssOrthographicCamera, type GlyphcssOrthographicCameraProps, GlyphcssPerspectiveCamera, type GlyphcssPerspectiveCameraProps, GlyphcssScene, GlyphcssSceneContextKey, type GlyphcssSceneContextValue, type GlyphcssSceneProps, type UseGlyphcssAnimationResultVue, useGlyphcssAnimation, useGlyphcssCamera, useGlyphcssSceneContext };
|