widgets/implementations/three-d-rotation/three-d-rotation/three-d-rotation.component.ts
AfterViewInit
OnInit
OnDestroy
| selector | c8y-three-d-rotation |
| standalone | true |
| templateUrl | ./three-d-rotation.component.html |
Properties |
Methods |
|
Inputs |
Accessors |
| angles$ |
Type : Observable<ThreeDRotationWidgetRotate>
|
Default value : of({ x: 0, y: 0, z: 0 })
|
| cameraType$ |
Type : Observable<string>
|
Default value : of('PC')
|
| isWireframe$ |
Type : Observable<boolean>
|
Default value : of(true)
|
| modelObj$ |
Type : Observable<any>
|
| Async loadModel | |||||||||
loadModel(modelObj: any, three)
|
|||||||||
|
Parameters :
Returns :
Promise<THREE.Object3D<THREE.Object3DEventMap>>
|
| ngAfterViewInit |
ngAfterViewInit()
|
|
Returns :
void
|
| ngOnDestroy |
ngOnDestroy()
|
|
Returns :
void
|
| ngOnInit |
ngOnInit()
|
|
Returns :
void
|
| Async setupRenderer | ||||
setupRenderer(three)
|
||||
|
Parameters :
Returns :
any
|
| setWireframe | |||||||||
setWireframe(parsedModel: THREE.Object3D, isWireframe: boolean)
|
|||||||||
|
Parameters :
Returns :
THREE.Object3D
|
| camera |
Type : THREE.PerspectiveCamera | THREE.OrthographicCamera
|
| model |
Type : THREE.Object3D
|
| scene |
Type : THREE.Scene
|
| canvas |
getcanvas()
|
<canvas #canvas class="fit-w fit-h"></canvas>