mbt-3d 0.4.9 → 0.4.10

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
@@ -458,7 +458,7 @@ declare interface MaterialTextures_2 {
458
458
  * />
459
459
  * ```
460
460
  */
461
- export declare function Model({ url, position, rotation, scale, meshVisibility, materialColors, materialTextures, materialTextureLogging, onLoad, onError: _onError, }: ModelProps): JSX_2.Element;
461
+ export declare function Model({ url, position, rotation, scale, meshVisibility, materialColors, materialTextures, materialTextureLogging, onLoad, onTexturesLoaded, onError: _onError, }: ModelProps): JSX_2.Element;
462
462
 
463
463
  export declare namespace Model {
464
464
  var preload: (url: string) => void;
@@ -512,6 +512,8 @@ export declare interface ModelProps {
512
512
  onLoad?: (info: ModelInfo) => void;
513
513
  /** Callback when model fails to load */
514
514
  onError?: (error: Error) => void;
515
+ /** Callback when textures have finished loading and applying */
516
+ onTexturesLoaded?: () => void;
515
517
  }
516
518
 
517
519
  /**
@@ -973,6 +975,10 @@ declare interface UseMaterialTextureOptions {
973
975
  * Enable verbose texture lifecycle logs (disabled by default).
974
976
  */
975
977
  enableLogging?: boolean;
978
+ /**
979
+ * Callback fired when all textures for the material have finished downloading and applying.
980
+ */
981
+ onTexturesLoaded?: () => void;
976
982
  }
977
983
 
978
984
  /**