/** * vue-vrm * * @description Vrm viewer component for Vue 3 / WebComponents. * @author Logue * @license MIT * @version 0.4.0 * @see {@link https://github.com/logue/vue-vrm} */ import type { VRMExpressionPresetName } from '@pixiv/three-vrm'; /** * Expression weights keyed by name (0–1). * Preset names are auto-completed; custom expression names defined in the VRM are accepted too. */ export type VrmExpressions = Partial> & Record; /** Expression names available on the loaded model. */ export type VrmExpressionNames = { /** Preset expressions the model defines (e.g. `happy`, `aa`, `blink`). */ preset: VRMExpressionPresetName[]; /** Custom expressions the model defines, in file order. */ custom: string[]; }; /** Options for automatic blinking. Omitted fields use their defaults. */ export type VrmAutoBlinkOptions = { /** Random wait between blinks, as `[min, max]` seconds (default: `[2, 6]`). */ interval?: [number, number]; /** Duration of one blink (close and open) in seconds (default: `0.15`). */ duration?: number; };