ng-cw-v12
Version:
Angular UI component library
73 lines (72 loc) • 2.46 kB
TypeScript
import { ElementRef, OnInit, OnDestroy } from '@angular/core';
import * as THREE from 'three';
import { LocalService } from './local.service';
import * as i0 from "@angular/core";
export declare class GltfViewerComponent implements OnInit, OnDestroy {
private eleRef;
private ls;
set ncUrl(value: string);
set ncCameraPlacement(value: string);
set ncBg(value: boolean | string);
set ncBgColor(value: string);
set ncTips(value: boolean | string);
set ncControl(value: boolean | string);
set ncAlpha(value: boolean | string);
tipsMode: boolean;
controlMode: boolean;
alphaMode: boolean;
parametersOk: boolean;
gltfUrl: string;
showLoading: boolean;
domId: string;
camera: any;
cameraPlacement: string;
scene: any;
loader: any;
renderer: any;
domWidth: any;
domHeight: any;
gltf: any;
size: number;
center: any;
controls: any;
mixer: THREE.AnimationMixer | null;
clock: THREE.Clock;
gui: any;
state: any;
constructor(eleRef: ElementRef, ls: LocalService);
ngOnInit(): void;
ngOnDestroy(): void;
init(): void;
render(): void;
animate(): void;
onWindowResize(): void;
updateModel(): void;
setCameraPlacement(): void;
addGUI(): void;
updateToneMapping(): void;
updateToneMappingExposure(): void;
updateBackground(): void;
axesHelper: any;
toggleAxesHelper(): void;
toggleWireframe(): void;
traverseMaterials(object: any, callback: any): void;
toggleAutoRotate(): void;
updateAnimation(): void;
ambientLight: any;
toggleAmbientLight(): void;
updateAmbientLight(): void;
directionalLight: any;
toggleDirectionalLight(): void;
updateDirectionalLight(): void;
directionalLightHelper: any;
toggleDirectionalLightHelper(): void;
pointLight: any;
togglePointLight(): void;
updatePointLight(): void;
pointLightHelper: any;
togglePointLightHelper(): void;
webglLoseContext(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<GltfViewerComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<GltfViewerComponent, "nc-gltf-viewer", never, { "ncUrl": "ncUrl"; "ncCameraPlacement": "ncCameraPlacement"; "ncBg": "ncBg"; "ncBgColor": "ncBgColor"; "ncTips": "ncTips"; "ncControl": "ncControl"; "ncAlpha": "ncAlpha"; }, {}, never, never>;
}