roavatar-renderer 1.3.2 → 1.3.4

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 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
- /**Makes the renderer render a new frame on every animationFrame */
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;
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) => {
@@ -49127,6 +49129,7 @@ class RBXRenderer {
49127
49129
  RBXRenderer.loadingIcon.style.width = "24px";
49128
49130
  RBXRenderer.loadingIcon.style.height = "24px";
49129
49131
  RBXRenderer.loadingIcon.style.transition = "0.1s";
49132
+ RBXRenderer.loadingIcon.style.transitionProperty = "opacity";
49130
49133
  RBXRenderer.loadingIconStyle = document.createElement("style");
49131
49134
  RBXRenderer.loadingIconStyle.textContent = `
49132
49135
  /*Loader source: https://cssloaders.github.io/ */
@@ -49345,7 +49348,7 @@ class RBXRenderer {
49345
49348
  }
49346
49349
  }
49347
49350
  }
49348
- /**Makes the renderer render a new frame on every animationFrame */
49351
+ /**@deprecated Makes the renderer render a new frame on every animationFrame */
49349
49352
  static animate(shouldRequestAnimationFrame = true) {
49350
49353
  if (!RBXRenderer.renderer) return;
49351
49354
  RBXRenderer.renderScene(RBXRenderer.firstScene);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "roavatar-renderer",
3
- "version": "1.3.2",
3
+ "version": "1.3.4",
4
4
  "description": "A renderer for Roblox avatars, used by the RoAvatar extension.",
5
5
  "author": "steinan",
6
6
  "type": "module",