roavatar-renderer 1.4.5 → 1.5.0
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 +36 -6
- package/dist/index.js +676 -226
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -234,7 +234,14 @@ export declare class AnimatorWrapper extends InstanceWrapper {
|
|
|
234
234
|
*/
|
|
235
235
|
getCurrentAnimationTrack(): AnimationTrack | undefined;
|
|
236
236
|
/**
|
|
237
|
-
* Loads
|
|
237
|
+
* Loads an animation (not to be confused with an avatar animation like those found on the catalog)
|
|
238
|
+
* @param id
|
|
239
|
+
* @param forceLoop Forces animation track to loop
|
|
240
|
+
* @returns AnimationTrack on success
|
|
241
|
+
*/
|
|
242
|
+
loadAnimation(id: bigint, forceLoop?: boolean): Promise<AnimationTrack | Response | undefined>;
|
|
243
|
+
/**
|
|
244
|
+
* Loads a new avatar animation (catalog run animation or emote, not to be confused with a creator store animation)
|
|
238
245
|
* @param id
|
|
239
246
|
* @param isEmote
|
|
240
247
|
* @param forceLoop Forces animation track to loop
|
|
@@ -243,7 +250,7 @@ export declare class AnimatorWrapper extends InstanceWrapper {
|
|
|
243
250
|
loadAvatarAnimation(id: bigint, isEmote?: boolean, forceLoop?: boolean): Promise<Response | undefined>;
|
|
244
251
|
/**
|
|
245
252
|
* Switches to new animation
|
|
246
|
-
* @param name Animation name, such as "idle", "walk" or "
|
|
253
|
+
* @param name Animation name, such as "idle", "walk", "emote.1234" or "id.1234"
|
|
247
254
|
* @param type
|
|
248
255
|
* @returns If animation sucessfully played
|
|
249
256
|
*/
|
|
@@ -276,13 +283,14 @@ export declare const animNamesR6: AnimationSet;
|
|
|
276
283
|
*/
|
|
277
284
|
export declare const API: {
|
|
278
285
|
Misc: {
|
|
279
|
-
startCurrentlyLoadingAssets: () => void;
|
|
280
|
-
stopCurrentlyLoadingAssets: () => void;
|
|
286
|
+
startCurrentlyLoadingAssets: (label: string) => void;
|
|
287
|
+
stopCurrentlyLoadingAssets: (label: string) => void;
|
|
281
288
|
idFromStr: (str: string) => number;
|
|
282
289
|
parseAssetString: (str: string) => string;
|
|
283
290
|
getCDNURLFromAssetDelivery: (url: string, headers?: any) => Promise<string | Response>;
|
|
284
291
|
assetURLToCDNURL: (url: string | number | bigint, headers?: any, extraStr?: string) => Promise<string | Response>;
|
|
285
292
|
getCurrentlyLoading: () => boolean;
|
|
293
|
+
getCurrentlyLoadingLabels: () => string[];
|
|
286
294
|
};
|
|
287
295
|
Events: {
|
|
288
296
|
OnLoadingAssets: Event_2;
|
|
@@ -571,6 +579,21 @@ export declare const AvatarType: {
|
|
|
571
579
|
*/
|
|
572
580
|
export declare function averageVec3(vecs: Vec3[]): Vec3;
|
|
573
581
|
|
|
582
|
+
/**
|
|
583
|
+
*
|
|
584
|
+
* @param promise
|
|
585
|
+
* @param time
|
|
586
|
+
*/
|
|
587
|
+
export declare function awaitTimeout<T>(promise: Promise<T>, time?: number): Promise<T | Response>;
|
|
588
|
+
|
|
589
|
+
/**
|
|
590
|
+
*
|
|
591
|
+
* @param promise
|
|
592
|
+
* @param time
|
|
593
|
+
* @throws
|
|
594
|
+
*/
|
|
595
|
+
export declare function awaitTimeoutThrows<T>(promise: Promise<T>, time?: number): Promise<T>;
|
|
596
|
+
|
|
574
597
|
/**
|
|
575
598
|
* @category Mesh
|
|
576
599
|
*/
|
|
@@ -980,6 +1003,8 @@ export declare function createWeightsForMeshChunked(mesh: FileMesh, ref_mesh: Fi
|
|
|
980
1003
|
*/
|
|
981
1004
|
export declare function cross(a: Vec3, b: Vec3): Vec3;
|
|
982
1005
|
|
|
1006
|
+
export declare type CurrentlyLoadingUpdateType = "start" | "finish";
|
|
1007
|
+
|
|
983
1008
|
export declare const DataType: {
|
|
984
1009
|
String: number;
|
|
985
1010
|
Bool: number;
|
|
@@ -1691,6 +1716,7 @@ export declare class HumanoidDescriptionWrapper extends InstanceWrapper {
|
|
|
1691
1716
|
*/
|
|
1692
1717
|
private _applyAccessories;
|
|
1693
1718
|
private _applyMakeup;
|
|
1719
|
+
private _loadDefaultAnimation;
|
|
1694
1720
|
/**
|
|
1695
1721
|
* @returns undefined on success
|
|
1696
1722
|
*/
|
|
@@ -1960,6 +1986,8 @@ export declare function lerpCFrame(oldCFrame: CFrame, newCFrame: CFrame, easedTi
|
|
|
1960
1986
|
|
|
1961
1987
|
export declare function lerpVec3(a: Vector3, b: Vector3, t: number): Vector3;
|
|
1962
1988
|
|
|
1989
|
+
export declare const LightDescClassTypes: string[];
|
|
1990
|
+
|
|
1963
1991
|
export declare class LocalOutfit {
|
|
1964
1992
|
name: string;
|
|
1965
1993
|
id: number;
|
|
@@ -2724,6 +2752,7 @@ export declare class RBFDeformerPatch {
|
|
|
2724
2752
|
patchCount: number;
|
|
2725
2753
|
epsilon: number;
|
|
2726
2754
|
affectBones: boolean;
|
|
2755
|
+
hasSolved: boolean;
|
|
2727
2756
|
id: number;
|
|
2728
2757
|
/**
|
|
2729
2758
|
* Creates the deformer and prepares for deformation
|
|
@@ -2999,7 +3028,7 @@ export declare const RegularBodyColors: string[];
|
|
|
2999
3028
|
*/
|
|
3000
3029
|
declare class RenderDesc extends DisposableDesc {
|
|
3001
3030
|
renderScene: RBXRendererScene;
|
|
3002
|
-
results?: THREE.
|
|
3031
|
+
results?: THREE.Object3D[];
|
|
3003
3032
|
instance?: Instance;
|
|
3004
3033
|
constructor(renderScene: RBXRendererScene);
|
|
3005
3034
|
isSame(_other: RenderDesc): boolean;
|
|
@@ -3009,7 +3038,7 @@ declare class RenderDesc extends DisposableDesc {
|
|
|
3009
3038
|
virtualTransferFrom(_other: RenderDesc): void;
|
|
3010
3039
|
virtualFromRenderDesc(_other: RenderDesc): void;
|
|
3011
3040
|
fromInstance(_child: Instance): void;
|
|
3012
|
-
compileResults(_renderer: THREE.WebGLRenderer, _scene: THREE.Scene): Promise<THREE.
|
|
3041
|
+
compileResults(_renderer: THREE.WebGLRenderer, _scene: THREE.Scene): Promise<THREE.Object3D[] | Response | undefined>;
|
|
3013
3042
|
updateResults(): void;
|
|
3014
3043
|
}
|
|
3015
3044
|
|
|
@@ -3276,6 +3305,7 @@ export declare class SoundWrapper extends InstanceWrapper {
|
|
|
3276
3305
|
get data(): SoundWrapperData;
|
|
3277
3306
|
created(): void;
|
|
3278
3307
|
_updateVolume(): void;
|
|
3308
|
+
setPlaying(value: boolean): void;
|
|
3279
3309
|
playSource(): void;
|
|
3280
3310
|
Play(): void;
|
|
3281
3311
|
Stop(): void;
|