lythreeframe 1.0.30 → 1.0.31

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.
@@ -2162,8 +2162,8 @@ class ThreeJsApp {
2162
2162
  // }
2163
2163
  this.camera.updateProjectionMatrix();
2164
2164
  }
2165
- renderAsImage() {
2166
- return this.viewport.renderAsImage();
2165
+ renderAsImage(width = 1024, height = 1024) {
2166
+ return this.viewport.renderAsImage(width, height);
2167
2167
  }
2168
2168
  }
2169
2169
 
@@ -2160,8 +2160,8 @@ class ThreeJsApp {
2160
2160
  // }
2161
2161
  this.camera.updateProjectionMatrix();
2162
2162
  }
2163
- renderAsImage() {
2164
- return this.viewport.renderAsImage();
2163
+ renderAsImage(width = 1024, height = 1024) {
2164
+ return this.viewport.renderAsImage(width, height);
2165
2165
  }
2166
2166
  }
2167
2167
 
@@ -29,5 +29,5 @@ export declare class ThreeJsApp {
29
29
  destroy(): void;
30
30
  updateCamera(param: CameraParam): void;
31
31
  onWindowResize(width: number, height: number): void;
32
- renderAsImage(): string;
32
+ renderAsImage(width?: number, height?: number): string;
33
33
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lythreeframe",
3
- "version": "1.0.30",
3
+ "version": "1.0.31",
4
4
  "description": "Three.js 封装",
5
5
  "main": "dist/bundle.cjs.js",
6
6
  "module": "dist/bundle.esm.js",