mbt-3d 0.4.8 → 0.4.9

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
@@ -255,6 +255,12 @@ export declare interface AnimatedModelProps extends Omit<ModelProps, 'onLoad'> {
255
255
  materialTextures?: Record<string, MaterialTextures | string>;
256
256
  /** Enable verbose material texture logs for this model instance. Default: false */
257
257
  materialTextureLogging?: boolean;
258
+ /**
259
+ * Names of eye bone objects to animate with mouse-follow behavior.
260
+ * When provided, the model's eyes will track the mouse cursor.
261
+ * @example eyeNames={['Eye_L', 'Eye_R']}
262
+ */
263
+ eyeNames?: string[];
258
264
  /** Callback when model loads with extended metadata including animations */
259
265
  onLoad?: (info: AnimatedModelInfo) => void;
260
266
  }
@@ -918,6 +924,19 @@ declare interface UseClonedModelOptions {
918
924
  onError?: (error: Error) => void;
919
925
  }
920
926
 
927
+ /**
928
+ * Animates eye bones to follow the mouse cursor.
929
+ *
930
+ * @param scene - The THREE.Group scene containing the eye bones
931
+ * @param eyeNames - Names of eye bone objects to animate. Pass an empty array to disable.
932
+ *
933
+ * @example
934
+ * ```tsx
935
+ * useEyeAnimation(scene, ['Eye_L', 'Eye_R']);
936
+ * ```
937
+ */
938
+ export declare const useEyeAnimation: (scene: THREE.Object3D, eyeNames?: readonly string[]) => void;
939
+
921
940
  /**
922
941
  * Hook for managing material colors in a 3D scene
923
942
  *