roavatar-renderer 1.3.1 → 1.3.3
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 +3 -2
- package/dist/index.js +5 -3
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1024,6 +1024,7 @@ export declare const FLAGS: {
|
|
|
1024
1024
|
ROAVATAR_TRYON_PLACE: number;
|
|
1025
1025
|
ASSETS_PATH: string;
|
|
1026
1026
|
ASSETDELIVERY_V2: boolean;
|
|
1027
|
+
ASSET_REQUEST_PRIORITY: RequestPriority | undefined;
|
|
1027
1028
|
ONLINE_ASSETS: boolean;
|
|
1028
1029
|
RIG_PATH: string;
|
|
1029
1030
|
USE_WORKERS: boolean;
|
|
@@ -2211,7 +2212,7 @@ export declare class RBXRenderer {
|
|
|
2211
2212
|
* @param transparent If the background and ground should be transparent
|
|
2212
2213
|
*/
|
|
2213
2214
|
static setBackgroundTransparent(transparent: boolean): void;
|
|
2214
|
-
|
|
2215
|
+
/**@deprecated Makes the renderer render a new frame on every animationFrame */
|
|
2215
2216
|
static animate(shouldRequestAnimationFrame?: boolean): void;
|
|
2216
2217
|
static animateAll(shouldRequestAnimationFrame?: boolean): void;
|
|
2217
2218
|
static renderScene(renderScene: RBXRendererScene, autoClear?: boolean): void;
|
|
@@ -2240,7 +2241,7 @@ export declare class RBXRenderer {
|
|
|
2240
2241
|
static getRendererControls(): OrbitControls | undefined;
|
|
2241
2242
|
static getRenderer(): THREE.WebGLRenderer | undefined;
|
|
2242
2243
|
/**@deprecated This can only get the first renderScene's scene */
|
|
2243
|
-
static getScene():
|
|
2244
|
+
static getScene(): THREE.Scene;
|
|
2244
2245
|
/**@deprecated
|
|
2245
2246
|
* This function is unstable and can throw errors, but might work
|
|
2246
2247
|
*/
|
package/dist/index.js
CHANGED
|
@@ -29493,6 +29493,7 @@ const FLAGS = {
|
|
|
29493
29493
|
//url of model to load that lists issues with specific versions
|
|
29494
29494
|
ROAVATAR_TRYON_PLACE: 135979364355750,
|
|
29495
29495
|
ASSETDELIVERY_V2: true,
|
|
29496
|
+
ASSET_REQUEST_PRIORITY: "high",
|
|
29496
29497
|
//assets
|
|
29497
29498
|
ONLINE_ASSETS: false,
|
|
29498
29499
|
ASSETS_PATH: "../assets/rbxasset/",
|
|
@@ -35139,7 +35140,8 @@ async function RBLXGet(url, headers, includeCredentials = true) {
|
|
|
35139
35140
|
try {
|
|
35140
35141
|
fetch(url, {
|
|
35141
35142
|
credentials: includeCredentials ? "include" : void 0,
|
|
35142
|
-
headers: fetchHeaders
|
|
35143
|
+
headers: fetchHeaders,
|
|
35144
|
+
priority: FLAGS.ASSET_REQUEST_PRIORITY
|
|
35143
35145
|
}).then((response) => {
|
|
35144
35146
|
resolve(response);
|
|
35145
35147
|
}).catch((error2) => {
|
|
@@ -49345,7 +49347,7 @@ class RBXRenderer {
|
|
|
49345
49347
|
}
|
|
49346
49348
|
}
|
|
49347
49349
|
}
|
|
49348
|
-
|
|
49350
|
+
/**@deprecated Makes the renderer render a new frame on every animationFrame */
|
|
49349
49351
|
static animate(shouldRequestAnimationFrame = true) {
|
|
49350
49352
|
if (!RBXRenderer.renderer) return;
|
|
49351
49353
|
RBXRenderer.renderScene(RBXRenderer.firstScene);
|
|
@@ -49569,7 +49571,7 @@ class RBXRenderer {
|
|
|
49569
49571
|
}
|
|
49570
49572
|
/**@deprecated This can only get the first renderScene's scene */
|
|
49571
49573
|
static getScene() {
|
|
49572
|
-
return RBXRenderer.
|
|
49574
|
+
return RBXRenderer.scene;
|
|
49573
49575
|
}
|
|
49574
49576
|
/**@deprecated
|
|
49575
49577
|
* This function is unstable and can throw errors, but might work
|