roavatar-renderer 1.6.5 → 1.6.7
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 +4 -2
- package/dist/index.js +3388 -3300
- package/package.json +1 -1
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
|
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;
|
|
@@ -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
|
|