roavatar-renderer 1.2.7 → 1.2.8

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
@@ -73,6 +73,8 @@ export declare const AllCharacterSorts: ItemSort[];
73
73
 
74
74
  export declare const AllClothingSorts: ItemSort[];
75
75
 
76
+ export declare const AllHeadShapes: string[];
77
+
76
78
  export declare const AlphaMode: {
77
79
  Overlay: number;
78
80
  Transparency: number;
package/dist/index.js CHANGED
@@ -954,6 +954,32 @@ const accessoryRefinementUpperBounds = {
954
954
  }
955
955
  }
956
956
  };
957
+ const AllHeadShapes = [
958
+ "RobloxClassic",
959
+ "Blockhead",
960
+ "Cheeks",
961
+ "Chiseled",
962
+ "CoolThing",
963
+ "EraserHead",
964
+ "FatHead",
965
+ "FlatTop",
966
+ "GoldenKorbloxGeneral",
967
+ "GoldenMrRobot",
968
+ "KnightOfChivalry",
969
+ "KnightOfCourage",
970
+ "ManHead",
971
+ "MercilessNinja",
972
+ "Narrow",
973
+ "Paragon",
974
+ "Peabrain",
975
+ "Perfection",
976
+ "Roll",
977
+ "Roundy",
978
+ "RoxBox",
979
+ "TheEngineer",
980
+ "Trim",
981
+ "WomanHead"
982
+ ];
957
983
  const REVISION = "180";
958
984
  const MOUSE = { ROTATE: 0, DOLLY: 1, PAN: 2 };
959
985
  const TOUCH = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 };
@@ -49078,6 +49104,10 @@ class WorkerPool {
49078
49104
  };
49079
49105
  worker.onerror = (e) => {
49080
49106
  console.warn(e);
49107
+ const index = this.workers.indexOf(worker);
49108
+ this.workers.splice(index, 1);
49109
+ this.workersActiveTasks.splice(index, 1);
49110
+ this.workersResolves.splice(index, 1);
49081
49111
  throw new Error("Failed to create worker, try disabling workers by setting FLAGS.USE_WORKERS = false but do note doing so will degrade performance");
49082
49112
  };
49083
49113
  }
@@ -61727,11 +61757,11 @@ class RBXRenderer {
61727
61757
  errorDiv.style = `
61728
61758
  display: flex;
61729
61759
  flex-direction: column;
61730
- justify-content: flex-start;
61760
+ justify-content: center;
61731
61761
  align-items: center;
61732
61762
  width: 100%;
61733
61763
  height: 100%;
61734
- background-color: rgb(237, 22, 97);
61764
+ background-color: rgb(255, 89, 89);
61735
61765
  `;
61736
61766
  const errorTitle = document.createElement("span");
61737
61767
  errorTitle.style = `
@@ -61749,6 +61779,7 @@ class RBXRenderer {
61749
61779
  font-size: 24px;
61750
61780
  color: #fff;
61751
61781
  text-align: center;
61782
+ max-width: 90%;
61752
61783
  `;
61753
61784
  errorText.innerText = "Your browser, device or settings do not support WebGL2";
61754
61785
  errorDiv.appendChild(errorText);
@@ -61759,6 +61790,7 @@ class RBXRenderer {
61759
61790
  color: #fff;
61760
61791
  text-align: center;
61761
61792
  `;
61793
+ errorLink.target = "_blank";
61762
61794
  errorLink.innerText = "Learn more";
61763
61795
  errorLink.href = "https://webglreport.com/?v=2";
61764
61796
  errorDiv.appendChild(errorLink);
@@ -62458,6 +62490,7 @@ export {
62458
62490
  AllBodyPartsSorts,
62459
62491
  AllCharacterSorts,
62460
62492
  AllClothingSorts,
62493
+ AllHeadShapes,
62461
62494
  AlphaMode,
62462
62495
  AnimationPropToName,
62463
62496
  AnimationTrack,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "roavatar-renderer",
3
- "version": "1.2.7",
3
+ "version": "1.2.8",
4
4
  "description": "A renderer for Roblox avatars, used by the RoAvatar extension.",
5
5
  "author": "steinan",
6
6
  "type": "module",