lythreeframe 1.0.17 → 1.0.19
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/bundle.cjs.js
CHANGED
|
@@ -2072,12 +2072,15 @@ class ThreeJsApp {
|
|
|
2072
2072
|
return this._onCameraChangedDelegate;
|
|
2073
2073
|
}
|
|
2074
2074
|
constructor(elementId, appParam = DefaultAppParam) {
|
|
2075
|
+
this._appParam = {};
|
|
2075
2076
|
this._onCameraChangedDelegate = new Delegate();
|
|
2076
|
-
this._appParam = appParam;
|
|
2077
|
+
this._appParam.cameraParam = appParam.cameraParam ? appParam.cameraParam : DefaultCameraParam;
|
|
2078
|
+
this._appParam.renderParam = appParam.renderParam ? appParam.renderParam : DefaultRenderParam;
|
|
2079
|
+
this._appParam.postProcessParam = appParam.postProcessParam ? appParam.postProcessParam : DefaultPostProcessParam;
|
|
2077
2080
|
this._clock = new three.Clock();
|
|
2078
|
-
this._camera = CameraFactory.createCamera(
|
|
2081
|
+
this._camera = CameraFactory.createCamera(this._appParam.cameraParam);
|
|
2079
2082
|
this._world = new this.worldClass(this);
|
|
2080
|
-
this._viewport = new this.viewportClass(this, elementId,
|
|
2083
|
+
this._viewport = new this.viewportClass(this, elementId, this._appParam.renderParam, this._appParam.postProcessParam);
|
|
2081
2084
|
this._controller = new this.controllerClass(this);
|
|
2082
2085
|
this.viewport.renderer.setAnimationLoop(() => {
|
|
2083
2086
|
this.tick();
|
package/dist/bundle.esm.js
CHANGED
|
@@ -2070,12 +2070,15 @@ class ThreeJsApp {
|
|
|
2070
2070
|
return this._onCameraChangedDelegate;
|
|
2071
2071
|
}
|
|
2072
2072
|
constructor(elementId, appParam = DefaultAppParam) {
|
|
2073
|
+
this._appParam = {};
|
|
2073
2074
|
this._onCameraChangedDelegate = new Delegate();
|
|
2074
|
-
this._appParam = appParam;
|
|
2075
|
+
this._appParam.cameraParam = appParam.cameraParam ? appParam.cameraParam : DefaultCameraParam;
|
|
2076
|
+
this._appParam.renderParam = appParam.renderParam ? appParam.renderParam : DefaultRenderParam;
|
|
2077
|
+
this._appParam.postProcessParam = appParam.postProcessParam ? appParam.postProcessParam : DefaultPostProcessParam;
|
|
2075
2078
|
this._clock = new Clock();
|
|
2076
|
-
this._camera = CameraFactory.createCamera(
|
|
2079
|
+
this._camera = CameraFactory.createCamera(this._appParam.cameraParam);
|
|
2077
2080
|
this._world = new this.worldClass(this);
|
|
2078
|
-
this._viewport = new this.viewportClass(this, elementId,
|
|
2081
|
+
this._viewport = new this.viewportClass(this, elementId, this._appParam.renderParam, this._appParam.postProcessParam);
|
|
2079
2082
|
this._controller = new this.controllerClass(this);
|
|
2080
2083
|
this.viewport.renderer.setAnimationLoop(() => {
|
|
2081
2084
|
this.tick();
|
|
@@ -28,6 +28,8 @@ export declare class ThreeJsApp {
|
|
|
28
28
|
protected _world: World;
|
|
29
29
|
protected _viewport: Viewport;
|
|
30
30
|
protected _controller: Controller;
|
|
31
|
+
get appParam(): AppParam;
|
|
32
|
+
protected _appParam: AppParam;
|
|
31
33
|
get onCameraChangedDelegate(): Delegate<[void]>;
|
|
32
34
|
protected _onCameraChangedDelegate: Delegate<[void]>;
|
|
33
35
|
constructor(elementId: string, appParam?: AppParam);
|