@glyphcss/vue 0.0.1 → 0.0.2

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/dist/index.d.ts CHANGED
@@ -1,22 +1,23 @@
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';
1
+ import { RenderMode, Polygon, GlyphGeometryName, Vec3, GlyphAnimationTarget, GlyphAnimationMixer, GlyphAnimationClip, GlyphAnimationAction, 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, GlyphAmbientLight, GlyphAnimationAction, GlyphAnimationClip, GlyphAnimationMixer, GlyphAnimationTarget, GlyphDirectionalLight, GlyphGeometryName, GlyphGeometryOptions, 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, antiprismPolygons, arrowPolygons, axesHelperPolygons, bakeSolidTextureSampledPolygons, bakeSolidTextureSamples, bipyramidPolygons, buildSceneContext, cameraCullNormalGroups, cameraCullNormalGroupsFromPolygons, cameraCullNormalKey, cameraCullVisibleSignature, cameraFacingDepth, clampChannel, computeSceneBbox, computeShapeLighting, conePolygons, coverPlanarPolygons, createGlyphAnimationMixer, createIsometricCamera, cubePolygons, cuboctahedronPolygons, cullInteriorPolygons, cylinderPolygons, deltoidalHexecontahedronPolygons, deltoidalIcositetrahedronPolygons, disdyakisDodecahedronPolygons, disdyakisTriacontahedronPolygons, dodecahedronPolygons, formatColor, greatDodecahedronPolygons, greatIcosahedronPolygons, greatStellatedDodecahedronPolygons, icosahedronPolygons, icosidodecahedronPolygons, inverseRotateVec3, isAxisAlignedSurfaceNormal, isVoxelCameraCullableNormalGroups, loadMesh, mergePolygons, normalFacesCamera, normalizeInvertMultiplier, normalizePolygons, octahedronPolygons, optimizeMeshPolygons, parseColor, parseGltf, parseHexColor, parseMtl, parseObj, parsePureColor, parseRgbColor, parseVox, pentagonalHexecontahedronPolygons, pentagonalIcositetrahedronPolygons, pentakisDodecahedronPolygons, planePolygons, polygonCssSurfaceNormal, polygonFaces, polygonFacesCamera, prismPolygons, pyramidPolygons, resolveGeometry, rhombicDodecahedronPolygons, rhombicTriacontahedronPolygons, rhombicosidodecahedronPolygons, rhombicuboctahedronPolygons, ringPolygons, ringQuadPolygons, rotateVec3, shadeColor, smallStellatedDodecahedronPolygons, snubCubePolygons, snubDodecahedronPolygons, spherePolygons, tetrahedronPolygons, tetrakisHexahedronPolygons, torusPolygons, trapezohedronPolygons, triakisIcosahedronPolygons, triakisOctahedronPolygons, triakisTetrahedronPolygons, truncatedCubePolygons, truncatedCuboctahedronPolygons, truncatedDodecahedronPolygons, truncatedIcosahedronPolygons, truncatedIcosidodecahedronPolygons, truncatedOctahedronPolygons, truncatedTetrahedronPolygons } from '@glyphcss/core';
3
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';
4
+ import { PropType, InjectionKey, ShallowRef, CSSProperties, Ref, ComputedRef, MaybeRef } from 'vue';
5
+ import { GlyphDirectionalLight, GlyphAmbientLight, GlyphPointerEvent, GlyphMouseEvent, GlyphWheelEvent, GlyphSceneHandle, GlyphCamera } from 'glyphcss';
6
+ export { GlyphEventHandler, GlyphMeshHandle, GlyphMouseEvent, GlyphPointerEvent, GlyphWheelEvent, findGlyphMeshHandle, findMeshUnderPoint, injectGlyphBaseStyles, pointInMeshElement } from 'glyphcss';
7
7
 
8
- interface GlyphcssSceneProps {
8
+ interface GlyphSceneProps {
9
9
  mode?: RenderMode;
10
10
  glyphPalette?: string;
11
11
  useColors?: boolean;
12
12
  cols?: number;
13
13
  rows?: number;
14
14
  cellAspect?: number;
15
- directionalLight?: GlyphcssDirectionalLight;
16
- ambientLight?: GlyphcssAmbientLight;
15
+ directionalLight?: GlyphDirectionalLight;
16
+ ambientLight?: GlyphAmbientLight;
17
+ autoSize?: boolean;
17
18
  class?: string;
18
19
  }
19
- declare const GlyphcssScene: vue.DefineComponent<vue.ExtractPropTypes<{
20
+ declare const GlyphScene: vue.DefineComponent<vue.ExtractPropTypes<{
20
21
  mode: {
21
22
  type: PropType<RenderMode>;
22
23
  default: undefined;
@@ -42,11 +43,15 @@ declare const GlyphcssScene: vue.DefineComponent<vue.ExtractPropTypes<{
42
43
  default: undefined;
43
44
  };
44
45
  directionalLight: {
45
- type: PropType<GlyphcssDirectionalLight>;
46
+ type: PropType<GlyphDirectionalLight>;
46
47
  default: undefined;
47
48
  };
48
49
  ambientLight: {
49
- type: PropType<GlyphcssAmbientLight>;
50
+ type: PropType<GlyphAmbientLight>;
51
+ default: undefined;
52
+ };
53
+ autoSize: {
54
+ type: BooleanConstructor;
50
55
  default: undefined;
51
56
  };
52
57
  class: {
@@ -81,11 +86,15 @@ declare const GlyphcssScene: vue.DefineComponent<vue.ExtractPropTypes<{
81
86
  default: undefined;
82
87
  };
83
88
  directionalLight: {
84
- type: PropType<GlyphcssDirectionalLight>;
89
+ type: PropType<GlyphDirectionalLight>;
85
90
  default: undefined;
86
91
  };
87
92
  ambientLight: {
88
- type: PropType<GlyphcssAmbientLight>;
93
+ type: PropType<GlyphAmbientLight>;
94
+ default: undefined;
95
+ };
96
+ autoSize: {
97
+ type: BooleanConstructor;
89
98
  default: undefined;
90
99
  };
91
100
  class: {
@@ -99,27 +108,58 @@ declare const GlyphcssScene: vue.DefineComponent<vue.ExtractPropTypes<{
99
108
  cols: number;
100
109
  rows: number;
101
110
  cellAspect: number;
102
- directionalLight: GlyphcssDirectionalLight;
103
- ambientLight: GlyphcssAmbientLight;
111
+ directionalLight: GlyphDirectionalLight;
112
+ ambientLight: GlyphAmbientLight;
113
+ autoSize: boolean;
104
114
  class: string;
105
115
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
106
116
 
107
- interface GlyphcssMeshProps {
117
+ interface GlyphMeshProps {
108
118
  id?: string;
109
- triangles?: GlyphcssTriangle[];
119
+ polygons?: Polygon[];
120
+ /**
121
+ * Built-in geometry name. Resolved via `resolveGeometry` when neither
122
+ * `polygons` nor `src` is provided.
123
+ *
124
+ * Precedence: explicit `polygons` > `geometry`.
125
+ */
126
+ geometry?: GlyphGeometryName;
127
+ /** Uniform size passed to `resolveGeometry` when `geometry` is set. Defaults to 1. */
128
+ size?: number;
129
+ /** Fill color passed to `resolveGeometry` when `geometry` is set. */
130
+ color?: string;
110
131
  position?: Vec3;
111
132
  scale?: number | Vec3;
112
133
  rotation?: Vec3;
113
134
  class?: string;
135
+ onPointerDown?: (event: GlyphPointerEvent) => void;
136
+ onPointerUp?: (event: GlyphPointerEvent) => void;
137
+ onPointerMove?: (event: GlyphPointerEvent) => void;
138
+ onPointerEnter?: (event: GlyphPointerEvent) => void;
139
+ onPointerLeave?: (event: GlyphPointerEvent) => void;
140
+ onClick?: (event: GlyphMouseEvent) => void;
141
+ onWheel?: (event: GlyphWheelEvent) => void;
114
142
  }
115
- declare const GlyphcssMesh: vue.DefineComponent<vue.ExtractPropTypes<{
143
+ declare const GlyphMesh: vue.DefineComponent<vue.ExtractPropTypes<{
116
144
  id: {
117
145
  type: StringConstructor;
118
146
  default: undefined;
119
147
  };
120
- triangles: {
121
- type: PropType<GlyphcssTriangle[]>;
122
- default: () => never[];
148
+ polygons: {
149
+ type: PropType<Polygon[]>;
150
+ default: undefined;
151
+ };
152
+ geometry: {
153
+ type: PropType<GlyphGeometryName>;
154
+ default: undefined;
155
+ };
156
+ size: {
157
+ type: NumberConstructor;
158
+ default: number;
159
+ };
160
+ color: {
161
+ type: StringConstructor;
162
+ default: undefined;
123
163
  };
124
164
  position: {
125
165
  type: PropType<Vec3>;
@@ -137,6 +177,34 @@ declare const GlyphcssMesh: vue.DefineComponent<vue.ExtractPropTypes<{
137
177
  type: StringConstructor;
138
178
  default: undefined;
139
179
  };
180
+ onPointerDown: {
181
+ type: PropType<(e: GlyphPointerEvent) => void>;
182
+ default: undefined;
183
+ };
184
+ onPointerUp: {
185
+ type: PropType<(e: GlyphPointerEvent) => void>;
186
+ default: undefined;
187
+ };
188
+ onPointerMove: {
189
+ type: PropType<(e: GlyphPointerEvent) => void>;
190
+ default: undefined;
191
+ };
192
+ onPointerEnter: {
193
+ type: PropType<(e: GlyphPointerEvent) => void>;
194
+ default: undefined;
195
+ };
196
+ onPointerLeave: {
197
+ type: PropType<(e: GlyphPointerEvent) => void>;
198
+ default: undefined;
199
+ };
200
+ onClick: {
201
+ type: PropType<(e: GlyphMouseEvent) => void>;
202
+ default: undefined;
203
+ };
204
+ onWheel: {
205
+ type: PropType<(e: GlyphWheelEvent) => void>;
206
+ default: undefined;
207
+ };
140
208
  }>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
141
209
  [key: string]: any;
142
210
  }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
@@ -144,9 +212,21 @@ declare const GlyphcssMesh: vue.DefineComponent<vue.ExtractPropTypes<{
144
212
  type: StringConstructor;
145
213
  default: undefined;
146
214
  };
147
- triangles: {
148
- type: PropType<GlyphcssTriangle[]>;
149
- default: () => never[];
215
+ polygons: {
216
+ type: PropType<Polygon[]>;
217
+ default: undefined;
218
+ };
219
+ geometry: {
220
+ type: PropType<GlyphGeometryName>;
221
+ default: undefined;
222
+ };
223
+ size: {
224
+ type: NumberConstructor;
225
+ default: number;
226
+ };
227
+ color: {
228
+ type: StringConstructor;
229
+ default: undefined;
150
230
  };
151
231
  position: {
152
232
  type: PropType<Vec3>;
@@ -164,21 +244,133 @@ declare const GlyphcssMesh: vue.DefineComponent<vue.ExtractPropTypes<{
164
244
  type: StringConstructor;
165
245
  default: undefined;
166
246
  };
247
+ onPointerDown: {
248
+ type: PropType<(e: GlyphPointerEvent) => void>;
249
+ default: undefined;
250
+ };
251
+ onPointerUp: {
252
+ type: PropType<(e: GlyphPointerEvent) => void>;
253
+ default: undefined;
254
+ };
255
+ onPointerMove: {
256
+ type: PropType<(e: GlyphPointerEvent) => void>;
257
+ default: undefined;
258
+ };
259
+ onPointerEnter: {
260
+ type: PropType<(e: GlyphPointerEvent) => void>;
261
+ default: undefined;
262
+ };
263
+ onPointerLeave: {
264
+ type: PropType<(e: GlyphPointerEvent) => void>;
265
+ default: undefined;
266
+ };
267
+ onClick: {
268
+ type: PropType<(e: GlyphMouseEvent) => void>;
269
+ default: undefined;
270
+ };
271
+ onWheel: {
272
+ type: PropType<(e: GlyphWheelEvent) => void>;
273
+ default: undefined;
274
+ };
167
275
  }>> & Readonly<{}>, {
168
276
  class: string;
277
+ onClick: (e: GlyphMouseEvent) => void;
278
+ onWheel: (e: GlyphWheelEvent) => void;
169
279
  id: string;
170
- triangles: GlyphcssTriangle[];
280
+ polygons: Polygon[];
281
+ geometry: GlyphGeometryName;
282
+ size: number;
283
+ color: string;
171
284
  position: Vec3;
172
285
  scale: number | Vec3;
173
286
  rotation: Vec3;
287
+ onPointerDown: (e: GlyphPointerEvent) => void;
288
+ onPointerUp: (e: GlyphPointerEvent) => void;
289
+ onPointerMove: (e: GlyphPointerEvent) => void;
290
+ onPointerEnter: (e: GlyphPointerEvent) => void;
291
+ onPointerLeave: (e: GlyphPointerEvent) => void;
174
292
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
175
293
 
176
- interface GlyphcssHotspotProps {
294
+ interface GlyphGroundProps {
295
+ /** Half-extent of the ground plane in world units. Default 5. */
296
+ size?: number;
297
+ /** Fill color. Default "#444444". */
298
+ color?: string;
299
+ /** World-space position. Default [0, -0.5, 0]. */
300
+ position?: Vec3;
301
+ /** World-space rotation in radians (Euler XYZ). */
302
+ rotation?: Vec3;
303
+ /** String id forwarded to the underlying mesh handle. */
304
+ id?: string;
305
+ class?: string;
306
+ }
307
+ declare const GlyphGround: vue.DefineComponent<vue.ExtractPropTypes<{
308
+ size: {
309
+ type: NumberConstructor;
310
+ default: number;
311
+ };
312
+ color: {
313
+ type: StringConstructor;
314
+ default: string;
315
+ };
316
+ position: {
317
+ type: PropType<Vec3>;
318
+ default: () => Vec3;
319
+ };
320
+ rotation: {
321
+ type: PropType<Vec3>;
322
+ default: undefined;
323
+ };
324
+ id: {
325
+ type: StringConstructor;
326
+ default: undefined;
327
+ };
328
+ class: {
329
+ type: StringConstructor;
330
+ default: undefined;
331
+ };
332
+ }>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
333
+ [key: string]: any;
334
+ }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
335
+ size: {
336
+ type: NumberConstructor;
337
+ default: number;
338
+ };
339
+ color: {
340
+ type: StringConstructor;
341
+ default: string;
342
+ };
343
+ position: {
344
+ type: PropType<Vec3>;
345
+ default: () => Vec3;
346
+ };
347
+ rotation: {
348
+ type: PropType<Vec3>;
349
+ default: undefined;
350
+ };
351
+ id: {
352
+ type: StringConstructor;
353
+ default: undefined;
354
+ };
355
+ class: {
356
+ type: StringConstructor;
357
+ default: undefined;
358
+ };
359
+ }>> & Readonly<{}>, {
360
+ class: string;
361
+ id: string;
362
+ size: number;
363
+ color: string;
364
+ position: Vec3;
365
+ rotation: Vec3;
366
+ }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
367
+
368
+ interface GlyphHotspotProps {
177
369
  id: string;
178
370
  at: Vec3;
179
371
  size?: [number, number];
180
372
  }
181
- declare const GlyphcssHotspot: vue.DefineComponent<vue.ExtractPropTypes<{
373
+ declare const GlyphHotspot: vue.DefineComponent<vue.ExtractPropTypes<{
182
374
  id: {
183
375
  type: StringConstructor;
184
376
  required: true;
@@ -191,7 +383,9 @@ declare const GlyphcssHotspot: vue.DefineComponent<vue.ExtractPropTypes<{
191
383
  type: PropType<[number, number]>;
192
384
  default: undefined;
193
385
  };
194
- }>, () => null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, "click"[], "click", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
386
+ }>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
387
+ [key: string]: any;
388
+ }> | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, "click"[], "click", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
195
389
  id: {
196
390
  type: StringConstructor;
197
391
  required: true;
@@ -210,22 +404,22 @@ declare const GlyphcssHotspot: vue.DefineComponent<vue.ExtractPropTypes<{
210
404
  size: [number, number];
211
405
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
212
406
 
213
- interface GlyphcssSceneContextValue {
214
- sceneRef: ShallowRef<GlyphcssSceneHandle | null>;
407
+ interface GlyphSceneContextValue {
408
+ sceneRef: ShallowRef<GlyphSceneHandle | null>;
215
409
  }
216
- declare const GlyphcssSceneContextKey: InjectionKey<GlyphcssSceneContextValue>;
410
+ declare const GlyphSceneContextKey: InjectionKey<GlyphSceneContextValue>;
217
411
 
218
- declare function useGlyphcssSceneContext(): GlyphcssSceneContextValue;
412
+ declare function useGlyphSceneContext(): GlyphSceneContextValue;
219
413
 
220
- interface GlyphcssPerspectiveCameraProps {
414
+ interface GlyphOrthographicCameraProps {
221
415
  rotX?: number;
222
416
  rotY?: number;
223
- distance?: number;
224
- scale?: number;
225
- stretch?: number;
417
+ zoom?: number;
226
418
  center?: [number, number];
419
+ class?: string;
420
+ style?: CSSProperties | string;
227
421
  }
228
- declare const GlyphcssPerspectiveCamera: vue.DefineComponent<vue.ExtractPropTypes<{
422
+ declare const GlyphOrthographicCamera: vue.DefineComponent<vue.ExtractPropTypes<{
229
423
  rotX: {
230
424
  type: NumberConstructor;
231
425
  default: undefined;
@@ -234,25 +428,25 @@ declare const GlyphcssPerspectiveCamera: vue.DefineComponent<vue.ExtractPropType
234
428
  type: NumberConstructor;
235
429
  default: undefined;
236
430
  };
237
- distance: {
431
+ zoom: {
238
432
  type: NumberConstructor;
239
433
  default: undefined;
240
434
  };
241
- scale: {
242
- type: NumberConstructor;
435
+ center: {
436
+ type: PropType<[number, number]>;
243
437
  default: undefined;
244
438
  };
245
- stretch: {
246
- type: NumberConstructor;
439
+ class: {
440
+ type: StringConstructor;
247
441
  default: undefined;
248
442
  };
249
- center: {
250
- type: PropType<[number, number]>;
443
+ style: {
444
+ type: PropType<CSSProperties | string>;
251
445
  default: undefined;
252
446
  };
253
447
  }>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
254
448
  [key: string]: any;
255
- }>[] | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
449
+ }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
256
450
  rotX: {
257
451
  type: NumberConstructor;
258
452
  default: undefined;
@@ -261,38 +455,42 @@ declare const GlyphcssPerspectiveCamera: vue.DefineComponent<vue.ExtractPropType
261
455
  type: NumberConstructor;
262
456
  default: undefined;
263
457
  };
264
- distance: {
458
+ zoom: {
265
459
  type: NumberConstructor;
266
460
  default: undefined;
267
461
  };
268
- scale: {
269
- type: NumberConstructor;
462
+ center: {
463
+ type: PropType<[number, number]>;
270
464
  default: undefined;
271
465
  };
272
- stretch: {
273
- type: NumberConstructor;
466
+ class: {
467
+ type: StringConstructor;
274
468
  default: undefined;
275
469
  };
276
- center: {
277
- type: PropType<[number, number]>;
470
+ style: {
471
+ type: PropType<CSSProperties | string>;
278
472
  default: undefined;
279
473
  };
280
474
  }>> & Readonly<{}>, {
281
- scale: number;
475
+ class: string;
476
+ style: string | CSSProperties;
282
477
  rotX: number;
283
478
  rotY: number;
284
- distance: number;
285
- stretch: number;
479
+ zoom: number;
286
480
  center: [number, number];
287
481
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
288
482
 
289
- interface GlyphcssOrthographicCameraProps {
483
+ interface GlyphPerspectiveCameraProps {
290
484
  rotX?: number;
291
485
  rotY?: number;
486
+ distance?: number;
292
487
  zoom?: number;
488
+ stretch?: number;
293
489
  center?: [number, number];
490
+ class?: string;
491
+ style?: CSSProperties | string;
294
492
  }
295
- declare const GlyphcssOrthographicCamera: vue.DefineComponent<vue.ExtractPropTypes<{
493
+ declare const GlyphPerspectiveCamera: vue.DefineComponent<vue.ExtractPropTypes<{
296
494
  rotX: {
297
495
  type: NumberConstructor;
298
496
  default: undefined;
@@ -301,17 +499,33 @@ declare const GlyphcssOrthographicCamera: vue.DefineComponent<vue.ExtractPropTyp
301
499
  type: NumberConstructor;
302
500
  default: undefined;
303
501
  };
502
+ distance: {
503
+ type: NumberConstructor;
504
+ default: undefined;
505
+ };
304
506
  zoom: {
305
507
  type: NumberConstructor;
306
508
  default: undefined;
307
509
  };
510
+ stretch: {
511
+ type: NumberConstructor;
512
+ default: undefined;
513
+ };
308
514
  center: {
309
515
  type: PropType<[number, number]>;
310
516
  default: undefined;
311
517
  };
518
+ class: {
519
+ type: StringConstructor;
520
+ default: undefined;
521
+ };
522
+ style: {
523
+ type: PropType<CSSProperties | string>;
524
+ default: undefined;
525
+ };
312
526
  }>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
313
527
  [key: string]: any;
314
- }>[] | null, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
528
+ }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
315
529
  rotX: {
316
530
  type: NumberConstructor;
317
531
  default: undefined;
@@ -320,30 +534,55 @@ declare const GlyphcssOrthographicCamera: vue.DefineComponent<vue.ExtractPropTyp
320
534
  type: NumberConstructor;
321
535
  default: undefined;
322
536
  };
537
+ distance: {
538
+ type: NumberConstructor;
539
+ default: undefined;
540
+ };
323
541
  zoom: {
324
542
  type: NumberConstructor;
325
543
  default: undefined;
326
544
  };
545
+ stretch: {
546
+ type: NumberConstructor;
547
+ default: undefined;
548
+ };
327
549
  center: {
328
550
  type: PropType<[number, number]>;
329
551
  default: undefined;
330
552
  };
553
+ class: {
554
+ type: StringConstructor;
555
+ default: undefined;
556
+ };
557
+ style: {
558
+ type: PropType<CSSProperties | string>;
559
+ default: undefined;
560
+ };
331
561
  }>> & Readonly<{}>, {
562
+ class: string;
563
+ style: string | CSSProperties;
332
564
  rotX: number;
333
565
  rotY: number;
334
- center: [number, number];
335
566
  zoom: number;
567
+ center: [number, number];
568
+ distance: number;
569
+ stretch: number;
336
570
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
337
571
 
338
- interface GlyphcssCameraContextValue {
339
- cameraRef: ShallowRef<GlyphcssCamera | null>;
572
+ interface GlyphCameraContextValue {
573
+ cameraRef: ShallowRef<GlyphCamera | null>;
340
574
  rerender: () => void;
575
+ /**
576
+ * Set by the child GlyphScene so the camera can trigger rerenders when
577
+ * props change after the scene is mounted.
578
+ */
579
+ sceneRerenderRef: ShallowRef<(() => void) | null>;
341
580
  }
342
- declare const GlyphcssCameraContextKey: InjectionKey<GlyphcssCameraContextValue>;
581
+ declare const GlyphCameraContextKey: InjectionKey<GlyphCameraContextValue>;
343
582
 
344
- declare function useGlyphcssCamera(): GlyphcssCameraContextValue;
583
+ declare function useGlyphCamera(): GlyphCameraContextValue;
345
584
 
346
- interface GlyphcssOrbitControlsProps {
585
+ interface GlyphOrbitControlsProps {
347
586
  drag?: boolean;
348
587
  wheel?: boolean;
349
588
  invert?: boolean | number;
@@ -353,7 +592,7 @@ interface GlyphcssOrbitControlsProps {
353
592
  pauseOnInteraction?: boolean;
354
593
  };
355
594
  }
356
- declare const GlyphcssOrbitControls: vue.DefineComponent<vue.ExtractPropTypes<{
595
+ declare const GlyphOrbitControls: vue.DefineComponent<vue.ExtractPropTypes<{
357
596
  drag: {
358
597
  type: BooleanConstructor;
359
598
  default: boolean;
@@ -406,7 +645,7 @@ declare const GlyphcssOrbitControls: vue.DefineComponent<vue.ExtractPropTypes<{
406
645
  };
407
646
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
408
647
 
409
- interface GlyphcssMapControlsProps {
648
+ interface GlyphMapControlsProps {
410
649
  drag?: boolean;
411
650
  wheel?: boolean;
412
651
  invert?: boolean | number;
@@ -416,7 +655,7 @@ interface GlyphcssMapControlsProps {
416
655
  pauseOnInteraction?: boolean;
417
656
  };
418
657
  }
419
- declare const GlyphcssMapControls: vue.DefineComponent<vue.ExtractPropTypes<{
658
+ declare const GlyphMapControls: vue.DefineComponent<vue.ExtractPropTypes<{
420
659
  drag: {
421
660
  type: BooleanConstructor;
422
661
  default: boolean;
@@ -469,14 +708,14 @@ declare const GlyphcssMapControls: vue.DefineComponent<vue.ExtractPropTypes<{
469
708
  };
470
709
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
471
710
 
472
- interface GlyphcssFirstPersonControlsProps {
711
+ interface GlyphFirstPersonControlsProps {
473
712
  drag?: boolean;
474
713
  keyboard?: boolean;
475
714
  moveSpeed?: number;
476
715
  lookSpeed?: number;
477
716
  invert?: boolean | number;
478
717
  }
479
- declare const GlyphcssFirstPersonControls: vue.DefineComponent<vue.ExtractPropTypes<{
718
+ declare const GlyphFirstPersonControls: vue.DefineComponent<vue.ExtractPropTypes<{
480
719
  drag: {
481
720
  type: BooleanConstructor;
482
721
  default: boolean;
@@ -526,10 +765,10 @@ declare const GlyphcssFirstPersonControls: vue.DefineComponent<vue.ExtractPropTy
526
765
  lookSpeed: number;
527
766
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
528
767
 
529
- interface GlyphcssAxesHelperProps {
768
+ interface GlyphAxesHelperProps {
530
769
  size?: number;
531
770
  }
532
- declare const GlyphcssAxesHelper: vue.DefineComponent<vue.ExtractPropTypes<{
771
+ declare const GlyphAxesHelper: vue.DefineComponent<vue.ExtractPropTypes<{
533
772
  size: {
534
773
  type: NumberConstructor;
535
774
  default: number;
@@ -543,12 +782,12 @@ declare const GlyphcssAxesHelper: vue.DefineComponent<vue.ExtractPropTypes<{
543
782
  size: number;
544
783
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
545
784
 
546
- interface GlyphcssDirectionalLightHelperProps {
785
+ interface GlyphDirectionalLightHelperProps {
547
786
  position?: Vec3;
548
787
  color?: string;
549
788
  size?: number;
550
789
  }
551
- declare const GlyphcssDirectionalLightHelper: vue.DefineComponent<vue.ExtractPropTypes<{
790
+ declare const GlyphDirectionalLightHelper: vue.DefineComponent<vue.ExtractPropTypes<{
552
791
  position: {
553
792
  type: PropType<Vec3>;
554
793
  default: () => number[];
@@ -575,26 +814,26 @@ declare const GlyphcssDirectionalLightHelper: vue.DefineComponent<vue.ExtractPro
575
814
  default: number;
576
815
  };
577
816
  }>> & Readonly<{}>, {
578
- position: Vec3;
579
817
  size: number;
580
818
  color: string;
819
+ position: Vec3;
581
820
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
582
821
 
583
- interface UseGlyphcssAnimationResultVue {
822
+ interface UseGlyphAnimationResultVue {
584
823
  /** Attach to a mesh handle when not passing `root` directly. */
585
- ref: Ref<GlyphcssAnimationTarget | null>;
824
+ ref: Ref<GlyphAnimationTarget | null>;
586
825
  /** The active mixer, or null if inputs are not ready yet. */
587
- mixer: ComputedRef<GlyphcssAnimationMixer | null>;
826
+ mixer: ComputedRef<GlyphAnimationMixer | null>;
588
827
  /** Resolved clip list. */
589
- clips: ComputedRef<GlyphcssAnimationClip[]>;
828
+ clips: ComputedRef<GlyphAnimationClip[]>;
590
829
  /** Clip names in input order. */
591
830
  names: ComputedRef<string[]>;
592
831
  /**
593
832
  * Lazy action proxy keyed by clip name. Accessing `actions.value["walk"]`
594
833
  * instantiates the action via the mixer. Returns null when mixer is null.
595
834
  */
596
- actions: ComputedRef<Record<string, GlyphcssAnimationAction | null>>;
835
+ actions: ComputedRef<Record<string, GlyphAnimationAction | null>>;
597
836
  }
598
- declare function useGlyphcssAnimation(clips: MaybeRef<GlyphcssAnimationClip[] | undefined>, controller: MaybeRef<ParseAnimationController | undefined>, root?: MaybeRef<GlyphcssAnimationTarget | null | undefined>): UseGlyphcssAnimationResultVue;
837
+ declare function useGlyphAnimation(clips: MaybeRef<GlyphAnimationClip[] | undefined>, controller: MaybeRef<ParseAnimationController | undefined>, root?: MaybeRef<GlyphAnimationTarget | null | undefined>): UseGlyphAnimationResultVue;
599
838
 
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 };
839
+ export { GlyphAxesHelper, type GlyphAxesHelperProps, GlyphOrthographicCamera as GlyphCamera, GlyphCameraContextKey, type GlyphCameraContextValue, type GlyphOrthographicCameraProps as GlyphCameraProps, GlyphDirectionalLightHelper, type GlyphDirectionalLightHelperProps, GlyphFirstPersonControls, type GlyphFirstPersonControlsProps, GlyphGround, type GlyphGroundProps, GlyphHotspot, type GlyphHotspotProps, GlyphMapControls, type GlyphMapControlsProps, GlyphMesh, type GlyphMeshProps, GlyphOrbitControls, type GlyphOrbitControlsProps, GlyphOrthographicCamera, type GlyphOrthographicCameraProps, GlyphPerspectiveCamera, type GlyphPerspectiveCameraProps, GlyphScene, GlyphSceneContextKey, type GlyphSceneContextValue, type GlyphSceneProps, type UseGlyphAnimationResultVue, useGlyphAnimation, useGlyphCamera, useGlyphSceneContext };