@npcify/web 0.1.2 → 0.1.4

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
@@ -317,6 +317,7 @@ interface AssetLoadProgress {
317
317
 
318
318
  interface AnimationControllerLike {
319
319
  prepareAnimations?: (ids: string[]) => Promise<void>;
320
+ previewAnimation?: (animation: VRMAnimation) => () => void;
320
321
  hasAnimation?: (id: string) => boolean;
321
322
  playAnimation: (animationId: string, fadeDuration?: number, loopOverride?: boolean) => void;
322
323
  playIdle: (fadeDuration?: number) => void;
@@ -560,6 +561,7 @@ declare class FacialPerformanceMixer {
560
561
  getChannelNames(): string[];
561
562
  getEmotionChannelNames(): string[];
562
563
  getVisemeChannelNames(): string[];
564
+ get usesDiscreteMouths(): boolean;
563
565
  playCue(channel: FacialChannelName, options?: FacialCueOptions): void;
564
566
  setEmotion(channel: FacialChannelName, weight: number, mouthMode: FacialMouthMode): void;
565
567
  clearEmotion(mouthMode?: FacialMouthMode): void;
@@ -633,6 +635,7 @@ declare class VisemePlayer {
633
635
  private phase;
634
636
  private running;
635
637
  private timelineRevision;
638
+ private readonly heldMouths;
636
639
  constructor(facialMixer: FacialPerformanceMixer, recorder?: PerformanceRecorder | undefined);
637
640
  attachAudioElement(element: HTMLAudioElement | null): void;
638
641
  setVisemes(visemes: ConversationTimelineEntry[]): void;
@@ -642,6 +645,8 @@ declare class VisemePlayer {
642
645
  getPerformanceSnapshot(): VisemePerformanceFrameSnapshot;
643
646
  update(_delta: number): void;
644
647
  private readonly handlePlaying;
648
+ private updateHeldMouth;
649
+ private cueDuration;
645
650
  private readonly handleEnded;
646
651
  private collectDueCueIndices;
647
652
  private shouldCloseActiveCue;