roavatar-renderer 1.5.15 → 1.5.16
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 +1 -1
- package/dist/index.d.ts +11 -5
- package/dist/index.js +1308 -27
- package/package.json +1 -1
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(
|
|
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
|
-
|
|
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
|
*/
|
|
@@ -3194,7 +3200,7 @@ export declare class RBXRendererScene {
|
|
|
3194
3200
|
* @param autoDownload If resulting file should be auto downloaded
|
|
3195
3201
|
* @returns The GLB (buffer) or GLTF (object)
|
|
3196
3202
|
*/
|
|
3197
|
-
exportGLTF(name?: string, autoDownload?: boolean): Promise<ArrayBuffer | {
|
|
3203
|
+
exportGLTF(name?: string, autoDownload?: boolean, options?: GLTFExportOptions): Promise<ArrayBuffer | {
|
|
3198
3204
|
[key: string]: unknown;
|
|
3199
3205
|
}>;
|
|
3200
3206
|
}
|
|
@@ -3585,7 +3591,7 @@ export declare interface ThumbnailsCustomization_Payload {
|
|
|
3585
3591
|
}
|
|
3586
3592
|
|
|
3587
3593
|
/**@category ThumbnailGenerator */
|
|
3588
|
-
export declare type ThumbnailType = "png" | "webp" | "gltf";
|
|
3594
|
+
export declare type ThumbnailType = "png" | "webp" | "gltf" | "glb";
|
|
3589
3595
|
|
|
3590
3596
|
/**
|
|
3591
3597
|
* @category InstanceWrapper
|