roavatar-renderer 1.3.0 → 1.3.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 CHANGED
@@ -2240,7 +2240,7 @@ export declare class RBXRenderer {
2240
2240
  static getRendererControls(): OrbitControls | undefined;
2241
2241
  static getRenderer(): THREE.WebGLRenderer | undefined;
2242
2242
  /**@deprecated This can only get the first renderScene's scene */
2243
- static getScene(): RBXRendererScene;
2243
+ static getScene(): THREE.Scene;
2244
2244
  /**@deprecated
2245
2245
  * This function is unstable and can throw errors, but might work
2246
2246
  */
package/dist/index.js CHANGED
@@ -49002,7 +49002,7 @@ class RBXRendererScene {
49002
49002
  directionalLight;
49003
49003
  directionalLight2;
49004
49004
  setRect(bounds) {
49005
- this.viewport = [bounds.left, document.body.clientHeight - bounds.bottom, bounds.width, bounds.height];
49005
+ this.viewport = [bounds.left, window.innerHeight - bounds.bottom, bounds.width, bounds.height];
49006
49006
  this.scissor = [...this.viewport];
49007
49007
  }
49008
49008
  noRect() {
@@ -49569,7 +49569,7 @@ class RBXRenderer {
49569
49569
  }
49570
49570
  /**@deprecated This can only get the first renderScene's scene */
49571
49571
  static getScene() {
49572
- return RBXRenderer.firstScene;
49572
+ return RBXRenderer.scene;
49573
49573
  }
49574
49574
  /**@deprecated
49575
49575
  * This function is unstable and can throw errors, but might work
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "roavatar-renderer",
3
- "version": "1.3.0",
3
+ "version": "1.3.2",
4
4
  "description": "A renderer for Roblox avatars, used by the RoAvatar extension.",
5
5
  "author": "steinan",
6
6
  "type": "module",