@shapediver/viewer.rendering-engine.camera-engine
Advanced tools
Comparing version 2.8.2 to 2.8.3
@@ -20,3 +20,3 @@ import { vec2, vec3 } from 'gl-matrix'; | ||
protected abstract _controls: ICameraControls; | ||
constructor(_id: string, _type: CAMERA_TYPE); | ||
constructor(_id: string, _type: CAMERA_TYPE, version?: string); | ||
get active(): boolean; | ||
@@ -23,0 +23,0 @@ set active(value: boolean); |
@@ -52,4 +52,4 @@ "use strict"; | ||
// #region Constructors (1) | ||
constructor(_id, _type) { | ||
super(_id); | ||
constructor(_id, _type, version) { | ||
super(_id, version); | ||
this._id = _id; | ||
@@ -56,0 +56,0 @@ this._type = _type; |
@@ -11,3 +11,3 @@ import { SettingsEngine } from '@shapediver/viewer.shared.services'; | ||
protected _controls: IOrthographicCameraControls; | ||
constructor(id: string); | ||
constructor(id: string, version?: string); | ||
get bottom(): number; | ||
@@ -14,0 +14,0 @@ set bottom(value: number); |
@@ -35,4 +35,4 @@ "use strict"; | ||
// #region Constructors (1) | ||
constructor(id) { | ||
super(id, ICameraEngine_1.CAMERA_TYPE.ORTHOGRAPHIC); | ||
constructor(id, version) { | ||
super(id, ICameraEngine_1.CAMERA_TYPE.ORTHOGRAPHIC, version); | ||
// #region Properties (7) | ||
@@ -175,3 +175,3 @@ _OrthographicCamera_converter.set(this, viewer_shared_services_1.Converter.instance); | ||
clone() { | ||
return new OrthographicCamera(this.id); | ||
return new OrthographicCamera(this.id, this.version); | ||
} | ||
@@ -178,0 +178,0 @@ calculateZoomTo(zoomTarget, startingPosition = this.position, startingTarget = this.target) { |
@@ -11,3 +11,3 @@ import { SettingsEngine } from '@shapediver/viewer.shared.services'; | ||
protected _controls: IPerspectiveCameraControls; | ||
constructor(id: string); | ||
constructor(id: string, version?: string); | ||
get aspect(): number | undefined; | ||
@@ -14,0 +14,0 @@ set aspect(value: number | undefined); |
@@ -35,4 +35,4 @@ "use strict"; | ||
// #region Constructors (1) | ||
constructor(id) { | ||
super(id, ICameraEngine_1.CAMERA_TYPE.PERSPECTIVE); | ||
constructor(id, version) { | ||
super(id, ICameraEngine_1.CAMERA_TYPE.PERSPECTIVE, version); | ||
// #region Properties (3) | ||
@@ -119,3 +119,3 @@ _PerspectiveCamera_converter.set(this, viewer_shared_services_1.Converter.instance); | ||
clone() { | ||
return new PerspectiveCamera(this.id); | ||
return new PerspectiveCamera(this.id, this.version); | ||
} | ||
@@ -122,0 +122,0 @@ calculateZoomTo(zoomTarget, startingPosition = this.position, startingTarget = this.target) { |
{ | ||
"name": "@shapediver/viewer.rendering-engine.camera-engine", | ||
"version": "2.8.2", | ||
"version": "2.8.3", | ||
"description": "", | ||
@@ -42,8 +42,8 @@ "keywords": [], | ||
"dependencies": { | ||
"@shapediver/viewer.rendering-engine.rendering-engine": "2.8.2", | ||
"@shapediver/viewer.rendering-engine.rendering-engine": "2.8.3", | ||
"@shapediver/viewer.settings": "0.3.0", | ||
"@shapediver/viewer.shared.math": "2.8.2", | ||
"@shapediver/viewer.shared.node-tree": "2.8.2", | ||
"@shapediver/viewer.shared.services": "2.8.2", | ||
"@shapediver/viewer.shared.types": "2.8.2", | ||
"@shapediver/viewer.shared.math": "2.8.3", | ||
"@shapediver/viewer.shared.node-tree": "2.8.3", | ||
"@shapediver/viewer.shared.services": "2.8.3", | ||
"@shapediver/viewer.shared.types": "2.8.3", | ||
"@tweenjs/tween.js": "^18.6.4", | ||
@@ -53,3 +53,3 @@ "detect-it": "4.0.1", | ||
}, | ||
"gitHead": "ba7d5e50e27552eef4b3188056c600ab2b288485" | ||
"gitHead": "ed5e68bfe4b41ad6445329442c2d7d4f7e0bbcb1" | ||
} |
@@ -52,4 +52,4 @@ import * as detectIt from 'detect-it' | ||
constructor(private readonly _id: string, private readonly _type: CAMERA_TYPE) { | ||
super(_id); | ||
constructor(private readonly _id: string, private readonly _type: CAMERA_TYPE, version?: string) { | ||
super(_id, version); | ||
} | ||
@@ -56,0 +56,0 @@ |
@@ -44,4 +44,4 @@ import { | ||
constructor(id: string) { | ||
super(id, CAMERA_TYPE.ORTHOGRAPHIC); | ||
constructor(id: string, version?: string) { | ||
super(id, CAMERA_TYPE.ORTHOGRAPHIC, version); | ||
this._controls = new OrthographicCameraControls(this, true); | ||
@@ -204,3 +204,3 @@ } | ||
public clone(): IOrthographicCamera { | ||
return new OrthographicCamera(this.id); | ||
return new OrthographicCamera(this.id, this.version); | ||
} | ||
@@ -207,0 +207,0 @@ |
@@ -41,4 +41,4 @@ import { | ||
constructor(id: string) { | ||
super(id, CAMERA_TYPE.PERSPECTIVE); | ||
constructor(id: string, version?: string) { | ||
super(id, CAMERA_TYPE.PERSPECTIVE, version); | ||
this._controls = new PerspectiveCameraControls(this, true); | ||
@@ -138,3 +138,3 @@ } | ||
public clone(): IPerspectiveCamera { | ||
return new PerspectiveCamera(this.id); | ||
return new PerspectiveCamera(this.id, this.version); | ||
} | ||
@@ -141,0 +141,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
547928
+ Added@shapediver/viewer.rendering-engine.rendering-engine@2.8.3(transitive)
+ Added@shapediver/viewer.shared.build-data@2.8.3(transitive)
+ Added@shapediver/viewer.shared.math@2.8.3(transitive)
+ Added@shapediver/viewer.shared.node-tree@2.8.3(transitive)
+ Added@shapediver/viewer.shared.services@2.8.3(transitive)
+ Added@shapediver/viewer.shared.types@2.8.3(transitive)
- Removed@shapediver/viewer.rendering-engine.rendering-engine@2.8.2(transitive)
- Removed@shapediver/viewer.shared.build-data@2.8.2(transitive)
- Removed@shapediver/viewer.shared.math@2.8.2(transitive)
- Removed@shapediver/viewer.shared.node-tree@2.8.2(transitive)
- Removed@shapediver/viewer.shared.services@2.8.2(transitive)
- Removed@shapediver/viewer.shared.types@2.8.2(transitive)
Updated@shapediver/viewer.rendering-engine.rendering-engine@2.8.3