ng-cw-v12
Version:
Angular UI component library
84 lines (83 loc) • 2.88 kB
TypeScript
import { ElementRef, OnInit } from '@angular/core';
import { LocalService } from './local.service';
import * as i0 from "@angular/core";
export interface NcObjInfo {
objUrl: string;
mtlUrl: string;
}
export declare class ObjViewerComponent implements OnInit {
private eleRef;
private ls;
set ncObjInfo(value: NcObjInfo);
set ncCameraPlacement(value: string);
set ncBg(value: boolean | string);
set ncBgColor(value: string);
set ncBgUrl(value: string);
set ncTips(value: boolean | string);
set ncControl(value: boolean | string);
set ncAlpha(value: boolean | string);
set ncAutoRotate(value: boolean | string);
set ncAutoRotateSpeed(value: number);
tipsMode: boolean;
controlMode: boolean;
alphaMode: boolean;
parametersOk: boolean;
objInfo: NcObjInfo;
showLoading: boolean;
loadingText: string;
loadingText2: string;
domId: string;
camera: any;
cameraPlacement: string;
bgUrl: string;
backgroundSphere: any;
scene: any;
renderer: any;
domWidth: any;
domHeight: any;
objScene: any;
size: number;
center: any;
controls: any;
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;
ambientLight: any;
toggleAmbientLight(): void;
updateAmbientLight(): void;
directionalLight: any;
toggleDirectionalLight(): void;
updateDirectionalLight(): void;
directionalLightHelper: any;
toggleDirectionalLightHelper(): void;
directionalLight2: any;
toggleDirectionalLight2(): void;
updateDirectionalLight2(): void;
directionalLightHelper2: any;
toggleDirectionalLightHelper2(): void;
pointLight: any;
togglePointLight(): void;
updatePointLight(): void;
pointLightHelper: any;
togglePointLightHelper(): void;
webglLoseContext(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<ObjViewerComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<ObjViewerComponent, "nc-obj-viewer", never, { "ncObjInfo": "ncObjInfo"; "ncCameraPlacement": "ncCameraPlacement"; "ncBg": "ncBg"; "ncBgColor": "ncBgColor"; "ncBgUrl": "ncBgUrl"; "ncTips": "ncTips"; "ncControl": "ncControl"; "ncAlpha": "ncAlpha"; "ncAutoRotate": "ncAutoRotate"; "ncAutoRotateSpeed": "ncAutoRotateSpeed"; }, {}, never, never>;
}