roavatar-renderer 1.6.4 → 1.6.6

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
@@ -17,7 +17,7 @@ Basic example on how to load an avatar using OutfitRenderer (to make it simpler)
17
17
  **TYPESCRIPT:**
18
18
  ```ts
19
19
  //setup flags that are compatible with you environment
20
- FLAGS.FETCH_FUNC = undefined //undefined is the default fetch() function, this flag can be used to intercept requests
20
+ FLAGS.FETCH_FUNC = undefined //undefined is the default fetch() function, this flag can be used to intercept requests (though make sure to keep request headers)
21
21
  FLAGS.ONLINE_ASSETS = true //set true to false if you want assets to be loaded locally
22
22
 
23
23
  //if we arent using online assets we have to provide the renderer with the paths
@@ -60,5 +60,8 @@ if (!(outfitModel instanceof OutfitModel)) throw new Error("Failed to get outfit
60
60
  **RESULT:**
61
61
  <img src="https://devforum-uploads.s3.dualstack.us-east-2.amazonaws.com/uploads/original/5X/9/f/a/d/9fadf25d9770b63e8a2e480369930cad94ad04aa.png">
62
62
 
63
- For more examples check out the OutfitRenderer, BackgroundRenderer, RoAvatar (avatarPreview.tsx) or RoValra (ItemRender.ts) source code
63
+ For more code examples check out the OutfitRenderer, BackgroundRenderer, RoAvatar (avatarPreview.tsx) or RoValra (ItemRender.ts) source code
64
+
65
+ For a live renderer example on a website check out https://roavatar.net
66
+
64
67
  There is also a discord server you can ask for help in: https://discord.gg/PHa5Vgtbva
package/dist/index.d.ts CHANGED
@@ -598,7 +598,7 @@ export declare class Authentication {
598
598
  getSessionUUID(): string;
599
599
  }
600
600
 
601
- declare interface AvatarConfigurations {
601
+ export declare interface AvatarConfigurations {
602
602
  emotes?: {
603
603
  assetId: number;
604
604
  assetName: string;
@@ -1579,7 +1579,7 @@ export declare const FLAGS: {
1579
1579
  INCLUDE_REQUEST_CREDENTIALS_OVERRIDE: RequestCredentials;
1580
1580
  /**if requests should be retried once after failing */
1581
1581
  API_REQUEST_RETRY: boolean;
1582
- /**the fetch function the api will use */
1582
+ /**the fetch function the api will use, make sure it doesnt ignore request headers */
1583
1583
  FETCH_FUNC: ((input: URL | RequestInfo, init?: RequestInit) => Promise<Response>) | undefined;
1584
1584
  /**a function all image urls will go through before being loaded, the return value is the new image url */
1585
1585
  IMAGE_FUNC: ((input: string) => Promise<string>) | undefined;
@@ -2026,7 +2026,7 @@ export declare class HumanoidDescriptionWrapper extends InstanceWrapper {
2026
2026
  getAccessoryIds(): bigint[];
2027
2027
  getAccessoryDescriptionWithId(id: bigint): Instance | undefined;
2028
2028
  getBodyPartDescription(bodyPart: number): Instance | undefined;
2029
- getBodyPartColor(bodyPart: number): Color3;
2029
+ getBodyPartColor(bodyPart: number): Color3 | undefined;
2030
2030
  setBodyPartId(bodyPart: number, id: bigint): void;
2031
2031
  setBodyPartHeadShape(bodyPart: number, headShape: string): void;
2032
2032
  getBodyPartId(bodyPart: number): bigint;
@@ -2940,6 +2940,7 @@ export declare class Outfit {
2940
2940
  toJson(removeNotOwnedAssets?: boolean): OutfitJson;
2941
2941
  toCleanJson(removeNotOwnedAssets?: boolean): OutfitJson;
2942
2942
  toCleanJsonV4(removeNotOwnedAssets?: boolean): OutfitJson;
2943
+ toMinimalJson(): OutfitJson;
2943
2944
  fromJson(outfitJson: OutfitJson): void;
2944
2945
  /**
2945
2946
  * @deprecated Incorrect, use getValidationIssues() instead
@@ -3006,6 +3007,7 @@ export declare class OutfitModel {
3006
3007
  thumbnailCustomizations?: ThumbnailCustomization[];
3007
3008
  profileFrame: undefined;
3008
3009
  fromJson(outfitModel: AvatarModel_Result | OutfitModel_Result): OutfitModel;
3010
+ toOutfitModelJson(): OutfitModel_Result;
3009
3011
  clone(): OutfitModel;
3010
3012
  }
3011
3013
 
@@ -3678,12 +3680,12 @@ declare class RenderDesc extends DisposableDesc {
3678
3680
  compiled: boolean;
3679
3681
  failed: boolean;
3680
3682
  constructor(renderScene: RBXRendererScene);
3681
- isSame(_other: RenderDesc): boolean;
3682
- needsRegeneration(_other: RenderDesc): boolean;
3683
- fromRenderDesc(other: RenderDesc): void;
3684
- transferFrom(other: RenderDesc): void;
3685
- virtualTransferFrom(_other: RenderDesc): void;
3686
- virtualFromRenderDesc(_other: RenderDesc): void;
3683
+ isSame(_newDesc: RenderDesc): boolean;
3684
+ needsRegeneration(_newDesc: RenderDesc): boolean;
3685
+ fromRenderDesc(newDesc: RenderDesc): void;
3686
+ transferFrom(oldDesc: RenderDesc): void;
3687
+ virtualTransferFrom(_oldDesc: RenderDesc): void;
3688
+ virtualFromRenderDesc(_newDesc: RenderDesc): void;
3687
3689
  fromInstance(_child: Instance): void;
3688
3690
  compileResults(_renderer: THREE.WebGLRenderer, _scene: THREE.Scene): Promise<THREE.Object3D[] | Response | undefined>;
3689
3691
  updateResults(): void;