roavatar-renderer 1.2.8 → 1.2.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 +71 -17
- package/dist/index.js +5459 -5098
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -111,6 +111,7 @@ export declare class AnimationTrack {
|
|
|
111
111
|
priority: number;
|
|
112
112
|
shouldUpdateMotors: boolean;
|
|
113
113
|
updateFaceControls: boolean;
|
|
114
|
+
animatesParts: boolean;
|
|
114
115
|
pOriginalWeight: number;
|
|
115
116
|
pTargetWeight: number;
|
|
116
117
|
pSpeed: number;
|
|
@@ -232,6 +233,7 @@ export declare const API: {
|
|
|
232
233
|
UpdateOutfit: (auth: Authentication, outfitId: number | string, newOutfit: Outfit) => Promise<Response>;
|
|
233
234
|
PatchOutfit: (auth: Authentication, outfitId: number | string, patchData: any) => Promise<Response>;
|
|
234
235
|
DeleteOutfit: (auth: Authentication, outfitId: number | string) => Promise<Response>;
|
|
236
|
+
GetUserOutfits: (userId: number) => Promise<Response | GetUserOutfits_Result>;
|
|
235
237
|
GetEmotes: () => Promise<Response>;
|
|
236
238
|
EquipEmote: (auth: Authentication, assetId: number | string, slot: number) => Promise<Response>;
|
|
237
239
|
UnequipEmote: (auth: Authentication, slot: number) => Promise<Response>;
|
|
@@ -239,6 +241,7 @@ export declare const API: {
|
|
|
239
241
|
RedrawThumbnail: (auth: Authentication) => Promise<Response>;
|
|
240
242
|
GetThumbnailCustomization: () => Promise<Response>;
|
|
241
243
|
SetThumbnailCustomization: (auth: Authentication, body: ThumbnailsCustomization_Payload) => Promise<Response>;
|
|
244
|
+
ResetThumbnailCustomization: (auth: Authentication, thumbnailType: number) => Promise<Response>;
|
|
242
245
|
};
|
|
243
246
|
Asset: {
|
|
244
247
|
GetAssetBuffer: (url: string, headers?: HeadersInit, extraStr?: string) => Promise<Response | ArrayBuffer>;
|
|
@@ -264,11 +267,14 @@ export declare const API: {
|
|
|
264
267
|
};
|
|
265
268
|
Users: {
|
|
266
269
|
GetUserInfo: () => Promise<UserInfo | undefined>;
|
|
270
|
+
GetIdsFromUsernames: (usernames: string[]) => Promise<any>;
|
|
271
|
+
GetInfoForId: (userId: number) => Promise<GetInfoForId_Result | Response>;
|
|
272
|
+
UserOmniSearch: (query: string, cursor?: string) => Promise<Response | UserOmniSearch_Result>;
|
|
267
273
|
};
|
|
268
274
|
Thumbnails: {
|
|
269
275
|
GetThumbnail: (auth: Authentication, type: string, id: number | string, size?: string, headShape?: string) => Promise<string | undefined>;
|
|
270
276
|
UncacheThumbnail: (type: string, id: number | string, size?: string, headShape?: string) => void;
|
|
271
|
-
RenderOutfit: (auth: Authentication, outfit: Outfit, attempt?: number) => Promise<string | undefined>;
|
|
277
|
+
RenderOutfit: (auth: Authentication, outfit: Outfit, size?: string, thumbnailType?: string, attempt?: number) => Promise<string | undefined>;
|
|
272
278
|
};
|
|
273
279
|
LocalOutfit: {
|
|
274
280
|
GetLocalOutfits: () => Promise<LocalOutfit[]>;
|
|
@@ -417,6 +423,8 @@ export declare interface AvatarInventory_Result {
|
|
|
417
423
|
};
|
|
418
424
|
availabilityStatus: string;
|
|
419
425
|
acquisitionTime: string;
|
|
426
|
+
expirationTime?: string;
|
|
427
|
+
lastEquipTime?: string;
|
|
420
428
|
headShape?: string;
|
|
421
429
|
outfitDetail?: {
|
|
422
430
|
assets: {
|
|
@@ -624,7 +632,7 @@ export declare const CatalogBundleTypes: string[];
|
|
|
624
632
|
export declare const CategoryDictionary: {
|
|
625
633
|
[K in string]: {
|
|
626
634
|
[K in string]: {
|
|
627
|
-
[K in string]: SortInfo | SpecialInfo;
|
|
635
|
+
[K in string]: SortInfo | SpecialInfo | SortDivision;
|
|
628
636
|
};
|
|
629
637
|
};
|
|
630
638
|
};
|
|
@@ -647,7 +655,7 @@ export declare function clamp(v0: Vec3, lower: Vec3, higher: Vec3): Vec3;
|
|
|
647
655
|
|
|
648
656
|
export declare function cleanString(inputString: string): string;
|
|
649
657
|
|
|
650
|
-
export declare function clonePrimitiveArray<T>(arr: T[]):
|
|
658
|
+
export declare function clonePrimitiveArray<T>(arr: T[]): any[];
|
|
651
659
|
|
|
652
660
|
export declare function cloneSearch_Payload(data: Search_Payload): Search_Payload;
|
|
653
661
|
|
|
@@ -937,6 +945,7 @@ export declare class FileMeshVertex {
|
|
|
937
945
|
|
|
938
946
|
export declare const FLAGS: {
|
|
939
947
|
HAIR_IS_BODYPART: boolean;
|
|
948
|
+
AVATAR_JOINT_UPGRADE: boolean;
|
|
940
949
|
BODYCOLOR3: boolean;
|
|
941
950
|
ENABLE_API_CACHE: boolean;
|
|
942
951
|
ENABLE_API_MESH_CACHE: boolean;
|
|
@@ -950,6 +959,8 @@ export declare const FLAGS: {
|
|
|
950
959
|
INFLATE_LAYERED_CLOTHING: number;
|
|
951
960
|
LAYERED_CLOTHING_ALGORITHM: "linear" | "linearnormal" | "linearnormal2" | "rbf";
|
|
952
961
|
SHOW_CAGE: boolean;
|
|
962
|
+
LAYERED_CLOTHING_COOLDOWN: number;
|
|
963
|
+
GET_WORKER_FUNC: () => Worker;
|
|
953
964
|
RBF_PATCH_COUNT: number;
|
|
954
965
|
RBF_PATCH_DETAIL_SAMPLES: number;
|
|
955
966
|
RBF_PATCH_SHAPE_SAMPLES: number;
|
|
@@ -1005,6 +1016,17 @@ export declare function GetAttachedPart(accessory: Instance, rig: Instance): Ins
|
|
|
1005
1016
|
|
|
1006
1017
|
export declare function getDistVertArray(ref: FileMesh, dist: FileMesh): (FileMeshVertex | undefined)[];
|
|
1007
1018
|
|
|
1019
|
+
export declare interface GetInfoForId_Result {
|
|
1020
|
+
"description": string;
|
|
1021
|
+
"created": string;
|
|
1022
|
+
"isBanned": boolean;
|
|
1023
|
+
"externalAppDisplayName": null;
|
|
1024
|
+
"hasVerifiedBadge": boolean;
|
|
1025
|
+
"id": number;
|
|
1026
|
+
"name": string;
|
|
1027
|
+
"displayName": string;
|
|
1028
|
+
}
|
|
1029
|
+
|
|
1008
1030
|
export declare function getOffsetArray(inner: FileMesh, outer: FileMesh): ([Vec3, THREE.Quaternion, number] | undefined)[];
|
|
1009
1031
|
|
|
1010
1032
|
export declare function getOffsetMap(inner: FileMesh, outer: FileMesh): Map<number, Vec3>;
|
|
@@ -1042,6 +1064,15 @@ export declare interface GetTopics_Result {
|
|
|
1042
1064
|
}[];
|
|
1043
1065
|
}
|
|
1044
1066
|
|
|
1067
|
+
export declare interface GetUserOutfits_Result {
|
|
1068
|
+
data: {
|
|
1069
|
+
id: number;
|
|
1070
|
+
name: string;
|
|
1071
|
+
isEditable: boolean;
|
|
1072
|
+
outfitType: string;
|
|
1073
|
+
}[];
|
|
1074
|
+
}
|
|
1075
|
+
|
|
1045
1076
|
export declare function getUVtoIndexMap(mesh: FileMesh): Map<number, number>;
|
|
1046
1077
|
|
|
1047
1078
|
export declare function getUVtoVertMap(mesh: FileMesh): Map<number, FileMeshVertex[]>;
|
|
@@ -1218,7 +1249,6 @@ export declare class Instance {
|
|
|
1218
1249
|
Child(name: string): Instance | undefined;
|
|
1219
1250
|
FindFirstChildOfClass(className: string): Instance | undefined;
|
|
1220
1251
|
FindLastChildOfClass(className: string): Instance | undefined;
|
|
1221
|
-
AccessoryBuildWeld(): void;
|
|
1222
1252
|
preRender(): void;
|
|
1223
1253
|
}
|
|
1224
1254
|
|
|
@@ -1299,11 +1329,14 @@ export declare class ItemInfo {
|
|
|
1299
1329
|
id: number | string;
|
|
1300
1330
|
name: string;
|
|
1301
1331
|
bundledAssets: number[];
|
|
1332
|
+
creatorId?: number;
|
|
1302
1333
|
price?: number;
|
|
1303
1334
|
limitedType?: "Limited" | "LimitedUnique";
|
|
1304
1335
|
offsale?: boolean;
|
|
1305
1336
|
supportsHeadShapes?: boolean;
|
|
1306
1337
|
headShape?: string;
|
|
1338
|
+
expirationTime?: Date;
|
|
1339
|
+
acquisitionTime?: Date;
|
|
1307
1340
|
constructor(itemType: ItemType, type: string, id: number | string, name: string, supportsHeadShapes?: boolean);
|
|
1308
1341
|
}
|
|
1309
1342
|
|
|
@@ -1313,7 +1346,7 @@ export declare class ItemSort {
|
|
|
1313
1346
|
constructor(subType: number, itemType?: string);
|
|
1314
1347
|
}
|
|
1315
1348
|
|
|
1316
|
-
declare type ItemType = "Asset" | "Bundle" | "Outfit" | "Look" | "None";
|
|
1349
|
+
declare type ItemType = "Asset" | "Bundle" | "Outfit" | "Look" | "Avatar" | "None";
|
|
1317
1350
|
|
|
1318
1351
|
declare class KDNode {
|
|
1319
1352
|
point: Vec3;
|
|
@@ -1765,6 +1798,7 @@ export declare class Outfit {
|
|
|
1765
1798
|
removeAssetType(type: string | number): void;
|
|
1766
1799
|
addAsset(id: number, type: string | number, name: string, supportsHeadShapes?: boolean): void;
|
|
1767
1800
|
fixOrders(): void;
|
|
1801
|
+
getAssetsAtOrder(order: number): Asset[];
|
|
1768
1802
|
isOrderUsed(order: number, self?: Asset): boolean;
|
|
1769
1803
|
getNextOrder(order: number): number;
|
|
1770
1804
|
addAssetId(assetId: number, auth: Authentication): Promise<boolean>;
|
|
@@ -1883,12 +1917,6 @@ declare class PartKeyframeGroup extends BaseKeyframeGroup {
|
|
|
1883
1917
|
getLowerKeyframe(time: number): PartKeyframe | null;
|
|
1884
1918
|
}
|
|
1885
1919
|
|
|
1886
|
-
declare type Patch = {
|
|
1887
|
-
center: Vec3;
|
|
1888
|
-
neighborIndices: number[];
|
|
1889
|
-
weights?: Float32Array;
|
|
1890
|
-
};
|
|
1891
|
-
|
|
1892
1920
|
declare class PRNT {
|
|
1893
1921
|
instanceCount: number;
|
|
1894
1922
|
childReferents: number[];
|
|
@@ -1982,14 +2010,16 @@ export declare class RBFDeformer {
|
|
|
1982
2010
|
|
|
1983
2011
|
export declare class RBFDeformerPatch {
|
|
1984
2012
|
mesh: FileMesh;
|
|
1985
|
-
refVerts:
|
|
1986
|
-
distVerts:
|
|
1987
|
-
importantIndices:
|
|
2013
|
+
refVerts: Float32Array;
|
|
2014
|
+
distVerts: Float32Array;
|
|
2015
|
+
importantIndices: Uint16Array;
|
|
1988
2016
|
controlKD: KDNode | null;
|
|
1989
2017
|
patchKD: KDNode | null;
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
nearestPatch
|
|
2018
|
+
meshVerts: Float32Array;
|
|
2019
|
+
meshBones: Float32Array;
|
|
2020
|
+
nearestPatch?: Uint16Array;
|
|
2021
|
+
neighborIndices?: Uint16Array[];
|
|
2022
|
+
weights?: Float32Array[];
|
|
1993
2023
|
K: number;
|
|
1994
2024
|
patchCount: number;
|
|
1995
2025
|
epsilon: number;
|
|
@@ -2048,6 +2078,9 @@ export declare class RBXRenderer {
|
|
|
2048
2078
|
static resolution: [number, number];
|
|
2049
2079
|
static backgroundColorHex: number;
|
|
2050
2080
|
static backgroundTransparent: boolean;
|
|
2081
|
+
static _wellLitDirectionalLightIntensity: number;
|
|
2082
|
+
static set wellLitDirectionalLightIntensity(v: number);
|
|
2083
|
+
static get wellLitDirectionalLightIntensity(): number;
|
|
2051
2084
|
static createLoadingIcon: boolean;
|
|
2052
2085
|
static canvasContainer: HTMLDivElement;
|
|
2053
2086
|
static loadingIcon?: HTMLSpanElement;
|
|
@@ -2377,6 +2410,11 @@ declare class SKINNING {
|
|
|
2377
2410
|
getSubsetIndex(vertIndex: number): number;
|
|
2378
2411
|
}
|
|
2379
2412
|
|
|
2413
|
+
export declare function snapToNumber(value: number, numbers: number[]): number;
|
|
2414
|
+
|
|
2415
|
+
export declare class SortDivision {
|
|
2416
|
+
}
|
|
2417
|
+
|
|
2380
2418
|
export declare class SortInfo {
|
|
2381
2419
|
sortOption: string;
|
|
2382
2420
|
itemCategories: ItemSort[];
|
|
@@ -2500,6 +2538,22 @@ export declare interface UserLooks_Result {
|
|
|
2500
2538
|
previousCursor: string | null;
|
|
2501
2539
|
}
|
|
2502
2540
|
|
|
2541
|
+
export declare interface UserOmniSearch_Result {
|
|
2542
|
+
"searchResults": {
|
|
2543
|
+
"contentGroupType": "User";
|
|
2544
|
+
"contents": {
|
|
2545
|
+
"username": string;
|
|
2546
|
+
"displayName": string;
|
|
2547
|
+
"previousUsernames": null | string[];
|
|
2548
|
+
"hasVerifiedBadge": boolean;
|
|
2549
|
+
"contentType": "User";
|
|
2550
|
+
"contentId": number;
|
|
2551
|
+
"defaultLayoutData": null;
|
|
2552
|
+
}[];
|
|
2553
|
+
}[];
|
|
2554
|
+
"nextPageToken": string;
|
|
2555
|
+
}
|
|
2556
|
+
|
|
2503
2557
|
declare type ValidationIssue = {
|
|
2504
2558
|
type: ValidationIssueType;
|
|
2505
2559
|
text: string;
|