roavatar-renderer 1.5.0 → 1.5.2
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 +32 -7
- package/dist/index.js +2163 -1741
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1109,8 +1109,6 @@ export declare function dot(v0: Vec3, v1: Vec3): number;
|
|
|
1109
1109
|
|
|
1110
1110
|
export declare function download(filename: string, text: string): void;
|
|
1111
1111
|
|
|
1112
|
-
export declare const EmitterGroupDescClassTypes: string[];
|
|
1113
|
-
|
|
1114
1112
|
/**
|
|
1115
1113
|
* @category DataModel
|
|
1116
1114
|
*/
|
|
@@ -1295,6 +1293,7 @@ export declare const FLAGS: {
|
|
|
1295
1293
|
API_REQUEST_PREFIX: string;
|
|
1296
1294
|
/**credentials request type when fetching from API_DOMAIN and credentials are usually include */
|
|
1297
1295
|
INCLUDE_REQUEST_CREDENTIALS_OVERRIDE: RequestCredentials;
|
|
1296
|
+
API_REQUEST_RETRY: boolean;
|
|
1298
1297
|
/**loads assets from assetdelivery instead of local files */
|
|
1299
1298
|
ONLINE_ASSETS: boolean;
|
|
1300
1299
|
/**path to rbxasset:// local files*/
|
|
@@ -1341,6 +1340,8 @@ export declare const FLAGS: {
|
|
|
1341
1340
|
RENDERTARGET_TO_CANVASTEXTURE: boolean;
|
|
1342
1341
|
/**Amount of time thumbnail generator will wait after no assets are being loaded to resolve, should be a little time at least so particles can render */
|
|
1343
1342
|
THUMBNAIL_TIMEOUT: number;
|
|
1343
|
+
/**Always render attachments even when theyre set to not be visible */
|
|
1344
|
+
ALWAYS_SHOW_ATTACHMENTS: boolean;
|
|
1344
1345
|
/**shows ThreeJS SkeletonHelper */
|
|
1345
1346
|
SHOW_SKELETON_HELPER: boolean;
|
|
1346
1347
|
/**skeleton is updated every frame */
|
|
@@ -1790,6 +1791,7 @@ export declare class Instance {
|
|
|
1790
1791
|
set name(value: string);
|
|
1791
1792
|
get name(): string;
|
|
1792
1793
|
createWrapper(): InstanceWrapper | undefined;
|
|
1794
|
+
get w(): InstanceWrapper | undefined;
|
|
1793
1795
|
addConnectionReference(connection: Connection): void;
|
|
1794
1796
|
removeConnectionReference(connection: Connection): void;
|
|
1795
1797
|
addReferencedBy(instance: Instance): void;
|
|
@@ -1843,6 +1845,8 @@ export declare class InstanceWrapper {
|
|
|
1843
1845
|
constructor(instance: Instance);
|
|
1844
1846
|
setup(): void;
|
|
1845
1847
|
static(): typeof InstanceWrapper;
|
|
1848
|
+
static IsA(className: string): any;
|
|
1849
|
+
IsA(className: string): any;
|
|
1846
1850
|
static register(): void;
|
|
1847
1851
|
/**
|
|
1848
1852
|
* @virtual
|
|
@@ -1986,8 +1990,6 @@ export declare function lerpCFrame(oldCFrame: CFrame, newCFrame: CFrame, easedTi
|
|
|
1986
1990
|
|
|
1987
1991
|
export declare function lerpVec3(a: Vector3, b: Vector3, t: number): Vector3;
|
|
1988
1992
|
|
|
1989
|
-
export declare const LightDescClassTypes: string[];
|
|
1990
|
-
|
|
1991
1993
|
export declare class LocalOutfit {
|
|
1992
1994
|
name: string;
|
|
1993
1995
|
id: number;
|
|
@@ -2421,8 +2423,6 @@ export declare class NumberSequenceKeypoint {
|
|
|
2421
2423
|
isSame(other: NumberSequenceKeypoint): boolean;
|
|
2422
2424
|
}
|
|
2423
2425
|
|
|
2424
|
-
export declare const ObjectDescClassTypes: string[];
|
|
2425
|
-
|
|
2426
2426
|
declare class OctreeChild<T> {
|
|
2427
2427
|
bounds: Bounds;
|
|
2428
2428
|
data: T;
|
|
@@ -2572,6 +2572,14 @@ export declare class OutfitRenderer {
|
|
|
2572
2572
|
animationFPS: number;
|
|
2573
2573
|
deltaTimeMultiplier: number;
|
|
2574
2574
|
renderScene: RBXRendererScene;
|
|
2575
|
+
/**Event is fired if a new outfit failed to load
|
|
2576
|
+
* @returns OutfitRendererErrorType
|
|
2577
|
+
*/
|
|
2578
|
+
onError: Event_2;
|
|
2579
|
+
/**Event is fired if a new outfit successfully loaded
|
|
2580
|
+
* @returns void
|
|
2581
|
+
*/
|
|
2582
|
+
onSuccess: Event_2;
|
|
2575
2583
|
/**
|
|
2576
2584
|
* Creates a new OutfitRenderer which makes it easy to render outfits
|
|
2577
2585
|
* @param auth The authentication object, you should have one you use for everything
|
|
@@ -2608,8 +2616,12 @@ export declare class OutfitRenderer {
|
|
|
2608
2616
|
* @param name The name of the animation, for example "idle", "run" or "emote.1234"
|
|
2609
2617
|
*/
|
|
2610
2618
|
setMainAnimation(name: string): void;
|
|
2619
|
+
/**Calls destroy on the rig and stops animating, the OutfitRenderer should not be interacted with after this */
|
|
2620
|
+
destroy(): void;
|
|
2611
2621
|
}
|
|
2612
2622
|
|
|
2623
|
+
export declare type OutfitRendererErrorType = "rig" | "humanoidDescription";
|
|
2624
|
+
|
|
2613
2625
|
declare class PartCurve {
|
|
2614
2626
|
motorParent: string;
|
|
2615
2627
|
motorName: string;
|
|
@@ -2646,6 +2658,15 @@ declare class PartKeyframeGroup extends BaseKeyframeGroup {
|
|
|
2646
2658
|
getLowerKeyframe(time: number): PartKeyframe | null;
|
|
2647
2659
|
}
|
|
2648
2660
|
|
|
2661
|
+
/**@category DataModelEnum */
|
|
2662
|
+
export declare const PartType: {
|
|
2663
|
+
Ball: number;
|
|
2664
|
+
Block: number;
|
|
2665
|
+
Cylinder: number;
|
|
2666
|
+
Wedge: number;
|
|
2667
|
+
CornerWedge: number;
|
|
2668
|
+
};
|
|
2669
|
+
|
|
2649
2670
|
declare class PRNT {
|
|
2650
2671
|
instanceCount: number;
|
|
2651
2672
|
childReferents: number[];
|
|
@@ -2786,7 +2807,7 @@ export declare class RBFDeformerPatch {
|
|
|
2786
2807
|
|
|
2787
2808
|
declare function RBLXDelete(url: string, auth: Authentication, body: any, attempt?: number): Promise<Response>;
|
|
2788
2809
|
|
|
2789
|
-
declare function RBLXGet(url: string, headers?: any, includeCredentials?: boolean): Promise<Response>;
|
|
2810
|
+
declare function RBLXGet(url: string, headers?: any, includeCredentials?: boolean, attempt?: number): Promise<Response>;
|
|
2790
2811
|
|
|
2791
2812
|
declare function RBLXPatch(url: string, auth: Authentication, body: any, attempt?: number): Promise<Response>;
|
|
2792
2813
|
|
|
@@ -3027,6 +3048,7 @@ export declare const RegularBodyColors: string[];
|
|
|
3027
3048
|
* Abstract class used to describe all rendered instances
|
|
3028
3049
|
*/
|
|
3029
3050
|
declare class RenderDesc extends DisposableDesc {
|
|
3051
|
+
static classTypes: string[];
|
|
3030
3052
|
renderScene: RBXRendererScene;
|
|
3031
3053
|
results?: THREE.Object3D[];
|
|
3032
3054
|
instance?: Instance;
|
|
@@ -3040,6 +3062,9 @@ declare class RenderDesc extends DisposableDesc {
|
|
|
3040
3062
|
fromInstance(_child: Instance): void;
|
|
3041
3063
|
compileResults(_renderer: THREE.WebGLRenderer, _scene: THREE.Scene): Promise<THREE.Object3D[] | Response | undefined>;
|
|
3042
3064
|
updateResults(): void;
|
|
3065
|
+
static shouldRenderInstance(_instance: Instance): boolean;
|
|
3066
|
+
static register(): void;
|
|
3067
|
+
static(): typeof RenderDesc;
|
|
3043
3068
|
}
|
|
3044
3069
|
|
|
3045
3070
|
export declare function replaceBodyPart(rig: Instance, child: Instance): void;
|