This repository has been archived by the owner on Feb 10, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
203 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,7 @@ | ||
export const greeting = 'Hello World!'; | ||
// GENERATED | ||
export * from './lib/camera/camera.directive'; | ||
export * from './lib/perspective-camera/perspective-camera.directive'; | ||
export * from './lib/orthographic-camera/orthographic-camera.directive'; | ||
export * from './lib/array-camera/array-camera.directive'; | ||
export * from './lib/stereo-camera/stereo-camera.directive'; | ||
export * from './lib/cube-camera/cube-camera.directive'; |
36 changes: 36 additions & 0 deletions
36
packages/core/cameras/src/lib/array-camera/array-camera.directive.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// GENERATED | ||
import { | ||
NgtCommonCamera, | ||
NGT_OBJECT_CONTROLLER_PROVIDER, | ||
} from '@angular-three/core'; | ||
import { NgModule, Directive, Input } from '@angular/core'; | ||
import * as THREE from 'three'; | ||
|
||
@Directive({ | ||
selector: 'ngt-array-camera', | ||
exportAs: 'ngtArrayCamera', | ||
providers: [ | ||
{ | ||
provide: NgtCommonCamera, | ||
useExisting: NgtArrayCamera, | ||
}, | ||
NGT_OBJECT_CONTROLLER_PROVIDER, | ||
], | ||
}) | ||
export class NgtArrayCamera extends NgtCommonCamera<THREE.ArrayCamera> { | ||
static ngAcceptInputType_args: | ||
| ConstructorParameters<typeof THREE.ArrayCamera> | ||
| undefined; | ||
|
||
@Input() set args(v: ConstructorParameters<typeof THREE.ArrayCamera>) { | ||
this.cameraArgs = v; | ||
} | ||
|
||
cameraType = THREE.ArrayCamera; | ||
} | ||
|
||
@NgModule({ | ||
declarations: [NgtArrayCamera], | ||
exports: [NgtArrayCamera], | ||
}) | ||
export class NgtArrayCameraModule {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// GENERATED | ||
import { | ||
NgtCommonCamera, | ||
NGT_OBJECT_CONTROLLER_PROVIDER, | ||
} from '@angular-three/core'; | ||
import { NgModule, Directive, Input } from '@angular/core'; | ||
import * as THREE from 'three'; | ||
|
||
@Directive({ | ||
selector: 'ngt-camera', | ||
exportAs: 'ngtCamera', | ||
providers: [ | ||
{ | ||
provide: NgtCommonCamera, | ||
useExisting: NgtCamera, | ||
}, | ||
NGT_OBJECT_CONTROLLER_PROVIDER, | ||
], | ||
}) | ||
export class NgtCamera extends NgtCommonCamera<THREE.Camera> { | ||
static ngAcceptInputType_args: | ||
| ConstructorParameters<typeof THREE.Camera> | ||
| undefined; | ||
|
||
@Input() set args(v: ConstructorParameters<typeof THREE.Camera>) { | ||
this.cameraArgs = v; | ||
} | ||
|
||
cameraType = THREE.Camera; | ||
} | ||
|
||
@NgModule({ | ||
declarations: [NgtCamera], | ||
exports: [NgtCamera], | ||
}) | ||
export class NgtCameraModule {} |
36 changes: 36 additions & 0 deletions
36
packages/core/cameras/src/lib/orthographic-camera/orthographic-camera.directive.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// GENERATED | ||
import { | ||
NgtCommonCamera, | ||
NGT_OBJECT_CONTROLLER_PROVIDER, | ||
} from '@angular-three/core'; | ||
import { NgModule, Directive, Input } from '@angular/core'; | ||
import * as THREE from 'three'; | ||
|
||
@Directive({ | ||
selector: 'ngt-orthographic-camera', | ||
exportAs: 'ngtOrthographicCamera', | ||
providers: [ | ||
{ | ||
provide: NgtCommonCamera, | ||
useExisting: NgtOrthographicCamera, | ||
}, | ||
NGT_OBJECT_CONTROLLER_PROVIDER, | ||
], | ||
}) | ||
export class NgtOrthographicCamera extends NgtCommonCamera<THREE.OrthographicCamera> { | ||
static ngAcceptInputType_args: | ||
| ConstructorParameters<typeof THREE.OrthographicCamera> | ||
| undefined; | ||
|
||
@Input() set args(v: ConstructorParameters<typeof THREE.OrthographicCamera>) { | ||
this.cameraArgs = v; | ||
} | ||
|
||
cameraType = THREE.OrthographicCamera; | ||
} | ||
|
||
@NgModule({ | ||
declarations: [NgtOrthographicCamera], | ||
exports: [NgtOrthographicCamera], | ||
}) | ||
export class NgtOrthographicCameraModule {} |
36 changes: 36 additions & 0 deletions
36
packages/core/cameras/src/lib/perspective-camera/perspective-camera.directive.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// GENERATED | ||
import { | ||
NgtCommonCamera, | ||
NGT_OBJECT_CONTROLLER_PROVIDER, | ||
} from '@angular-three/core'; | ||
import { NgModule, Directive, Input } from '@angular/core'; | ||
import * as THREE from 'three'; | ||
|
||
@Directive({ | ||
selector: 'ngt-perspective-camera', | ||
exportAs: 'ngtPerspectiveCamera', | ||
providers: [ | ||
{ | ||
provide: NgtCommonCamera, | ||
useExisting: NgtPerspectiveCamera, | ||
}, | ||
NGT_OBJECT_CONTROLLER_PROVIDER, | ||
], | ||
}) | ||
export class NgtPerspectiveCamera extends NgtCommonCamera<THREE.PerspectiveCamera> { | ||
static ngAcceptInputType_args: | ||
| ConstructorParameters<typeof THREE.PerspectiveCamera> | ||
| undefined; | ||
|
||
@Input() set args(v: ConstructorParameters<typeof THREE.PerspectiveCamera>) { | ||
this.cameraArgs = v; | ||
} | ||
|
||
cameraType = THREE.PerspectiveCamera; | ||
} | ||
|
||
@NgModule({ | ||
declarations: [NgtPerspectiveCamera], | ||
exports: [NgtPerspectiveCamera], | ||
}) | ||
export class NgtPerspectiveCameraModule {} |
36 changes: 36 additions & 0 deletions
36
packages/core/cameras/src/lib/stereo-camera/stereo-camera.directive.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// GENERATED | ||
import { | ||
NgtCommonCamera, | ||
NGT_OBJECT_CONTROLLER_PROVIDER, | ||
} from '@angular-three/core'; | ||
import { NgModule, Directive, Input } from '@angular/core'; | ||
import * as THREE from 'three'; | ||
|
||
@Directive({ | ||
selector: 'ngt-stereo-camera', | ||
exportAs: 'ngtStereoCamera', | ||
providers: [ | ||
{ | ||
provide: NgtCommonCamera, | ||
useExisting: NgtStereoCamera, | ||
}, | ||
NGT_OBJECT_CONTROLLER_PROVIDER, | ||
], | ||
}) | ||
export class NgtStereoCamera extends NgtCommonCamera<THREE.StereoCamera> { | ||
static ngAcceptInputType_args: | ||
| ConstructorParameters<typeof THREE.StereoCamera> | ||
| undefined; | ||
|
||
@Input() set args(v: ConstructorParameters<typeof THREE.StereoCamera>) { | ||
this.cameraArgs = v; | ||
} | ||
|
||
cameraType = THREE.StereoCamera; | ||
} | ||
|
||
@NgModule({ | ||
declarations: [NgtStereoCamera], | ||
exports: [NgtStereoCamera], | ||
}) | ||
export class NgtStereoCameraModule {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters