roavatar-renderer 1.5.15 → 1.5.17

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/README.md CHANGED
@@ -38,7 +38,7 @@ Basic example on how to load an avatar using OutfitRenderer (to make it simpler)
38
38
  //roavatar-renderer automatically displays an error, but your own behavior can be included here (like a fallback)
39
39
  }
40
40
  //renderer customization
41
- RBXRenderer.setBackgroundColor( 0xffffff )
41
+ RBXRenderer.setBackgroundColor( 0xbbbbbb )
42
42
  RBXRenderer.setRendererSize(1000,500)
43
43
  RBXRenderer.setBackgroundTransparent(false)
44
44
  //add renderer to document
package/dist/index.d.ts CHANGED
@@ -207,7 +207,7 @@ export declare class AnimatorWrapper extends InstanceWrapper {
207
207
  updateToolAnimation(rig: Instance): void;
208
208
  updateToolConnections(): void;
209
209
  private _pickRandom;
210
- private _getTrack;
210
+ _getTrack(id: string): AnimationTrack | undefined;
211
211
  private _switchAnimation;
212
212
  stopMoodAnimation(): void;
213
213
  private _switchMoodAnimation;
@@ -896,6 +896,7 @@ declare class Cache_2<K, V> {
896
896
  has(key: K): boolean;
897
897
  delete(key: K): boolean;
898
898
  }
899
+ export { Cache_2 as Cache }
899
900
 
900
901
  /**
901
902
  * @category Mesh
@@ -1552,7 +1553,7 @@ export declare function gaussian_rbf(v0: Vec3, v1: Vec3, sigma?: number): number
1552
1553
  * console.log(result.length)
1553
1554
  * ```
1554
1555
  */
1555
- export declare function generateModelThumbnail(auth: Authentication, renderScene: RBXRendererScene, model: Instance, size?: Vec2, type?: ThumbnailType, quality?: number, gltfAutoDownload?: boolean): Promise<ThumbnailResult>;
1556
+ export declare function generateModelThumbnail(auth: Authentication, renderScene: RBXRendererScene, model: Instance, size?: Vec2, type?: ThumbnailType, quality?: number, gltfAutoDownload?: boolean, includeAnimations?: boolean): Promise<ThumbnailResult>;
1556
1557
 
1557
1558
  /**
1558
1559
  * Generates a 2d or 3d thumbnail of an outfit
@@ -1579,7 +1580,7 @@ export declare function generateModelThumbnail(auth: Authentication, renderScene
1579
1580
  * console.log(result)
1580
1581
  * ```
1581
1582
  */
1582
- export declare function generateOutfitThumbnail(auth: Authentication, outfit: Outfit, size?: Vec2, type?: ThumbnailType, quality?: number, gltfAutoDownload?: boolean): Promise<ThumbnailResult>;
1583
+ export declare function generateOutfitThumbnail(auth: Authentication, outfit: Outfit, size?: Vec2, type?: ThumbnailType, quality?: number, gltfAutoDownload?: boolean, includeAnimations?: boolean): Promise<ThumbnailResult>;
1583
1584
 
1584
1585
  export declare function generateUUIDv4(): string;
1585
1586
 
@@ -1722,6 +1723,11 @@ export declare function getWorkerOnMessage(): (event: MessageEvent) => void;
1722
1723
  */
1723
1724
  export declare function GetWrapperForInstance(instance: Instance): InstanceWrapper | undefined;
1724
1725
 
1726
+ export declare type GLTFExportOptions = {
1727
+ includeAnimations?: boolean;
1728
+ binary?: boolean;
1729
+ };
1730
+
1725
1731
  /**
1726
1732
  * @category Mesh
1727
1733
  */
@@ -1913,6 +1919,7 @@ export declare class Instance {
1913
1919
  get id(): string;
1914
1920
  set name(value: string);
1915
1921
  get name(): string;
1922
+ get Parent(): Instance | undefined;
1916
1923
  createWrapper(): InstanceWrapper | undefined;
1917
1924
  get w(): InstanceWrapper | undefined;
1918
1925
  addConnectionReference(connection: Connection): void;
@@ -3121,6 +3128,7 @@ export declare class RBXRenderer {
3121
3128
  static _createEffectComposer(renderScene?: RBXRendererScene): void;
3122
3129
  /**Removes an instance from the renderer */
3123
3130
  static removeInstance(instance: Instance, renderScene?: RBXRendererScene): void;
3131
+ static getRenderDescs(instance: Instance): RenderDesc[];
3124
3132
  private static _addRenderDesc;
3125
3133
  /**Adds an instance to the renderer or updates it */
3126
3134
  static addInstance(instance: Instance, auth: Authentication, renderScene?: RBXRendererScene): void;
@@ -3194,7 +3202,7 @@ export declare class RBXRendererScene {
3194
3202
  * @param autoDownload If resulting file should be auto downloaded
3195
3203
  * @returns The GLB (buffer) or GLTF (object)
3196
3204
  */
3197
- exportGLTF(name?: string, autoDownload?: boolean): Promise<ArrayBuffer | {
3205
+ exportGLTF(name?: string, autoDownload?: boolean, options?: GLTFExportOptions): Promise<ArrayBuffer | {
3198
3206
  [key: string]: unknown;
3199
3207
  }>;
3200
3208
  }
@@ -3385,6 +3393,7 @@ export declare class ScriptWrapper extends InstanceWrapper {
3385
3393
  created(): void;
3386
3394
  Run(): void;
3387
3395
  SoundPlayer(script: Instance): Promise<void>;
3396
+ HatScript20(script: Instance): Promise<void>;
3388
3397
  }
3389
3398
 
3390
3399
  declare class ScriptWrapperData {
@@ -3585,7 +3594,7 @@ export declare interface ThumbnailsCustomization_Payload {
3585
3594
  }
3586
3595
 
3587
3596
  /**@category ThumbnailGenerator */
3588
- export declare type ThumbnailType = "png" | "webp" | "gltf";
3597
+ export declare type ThumbnailType = "png" | "webp" | "gltf" | "glb";
3589
3598
 
3590
3599
  /**
3591
3600
  * @category InstanceWrapper