初始化版本库,可用
This commit is contained in:
49
types/WebCADView/WebCADView.d.ts
vendored
Normal file
49
types/WebCADView/WebCADView.d.ts
vendored
Normal file
@@ -0,0 +1,49 @@
|
||||
import * as THREE from 'three';
|
||||
import { CameraControls } from '../Editor/CameraControls';
|
||||
import { Viewer } from '../GraphicsSystem/Viewer';
|
||||
interface LoadFileRes {
|
||||
State: boolean;
|
||||
Obj?: Object;
|
||||
}
|
||||
/**
|
||||
* 只允许拥有一个view的实例. 暂时不支持多个view在一个页面.
|
||||
*/
|
||||
export declare class WebCADView {
|
||||
m_EdgeEntitytList: Array<THREE.LineSegments>;
|
||||
m_SolidEntityList: Array<THREE.Object3D>;
|
||||
m_Viewer: Viewer;
|
||||
m_CamerCtrl: CameraControls;
|
||||
/**
|
||||
* Creates an instance of WebCADView.
|
||||
*
|
||||
* 构造函数,提供一个dom节点..
|
||||
*
|
||||
* @param {HTMLElement} domNode
|
||||
* @memberof WebCADView
|
||||
*/
|
||||
constructor(domNode: HTMLElement);
|
||||
WriteEdge(obj: THREE.Object3D, color?: number): void;
|
||||
/**
|
||||
*
|
||||
* 加载场景
|
||||
*
|
||||
* @param {string} jsonFile
|
||||
* @memberof WebCADView
|
||||
*/
|
||||
Load(jsonFile: string, pathUrl: string): Promise<void>;
|
||||
/**
|
||||
* 加载json
|
||||
*
|
||||
* @param {string} jsonFile
|
||||
* @returns {Promise<LoadFileRes>}
|
||||
* @memberof WebCADView
|
||||
*/
|
||||
LoadJson(jsonFile: string): Promise<LoadFileRes>;
|
||||
ZoomAll(): void;
|
||||
ViewToFont(): void;
|
||||
ViewToTop(): void;
|
||||
SolidShow(): void;
|
||||
EdgeShow(): void;
|
||||
}
|
||||
export {};
|
||||
//# sourceMappingURL=WebCADView.d.ts.map
|
1
types/WebCADView/WebCADView.d.ts.map
Normal file
1
types/WebCADView/WebCADView.d.ts.map
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"WebCADView.d.ts","sourceRoot":"","sources":["../../../src/WebCADView/WebCADView.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAUlD,UAAU,WAAW;IAEjB,KAAK,EAAE,OAAO,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,qBAAa,UAAU;IAEnB,iBAAiB,EAAE,KAAK,CAAC,KAAK,CAAC,YAAY,CAAC,CAAM;IAClD,iBAAiB,EAAE,KAAK,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAM;IAE9C,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,cAAc,CAAC;IAC5B;;;;;;;OAOG;gBACS,OAAO,EAAE,WAAW;IAShC,SAAS,CAAC,GAAG,EAAE,KAAK,CAAC,QAAQ,EAAE,KAAK,CAAC,EAAE,MAAM;IAsB7C;;;;;;OAMG;IACG,IAAI,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM;IAuB5C;;;;;;OAMG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC;IAuChD,OAAO;IAKP,UAAU;IAKV,SAAS;IAOT,SAAS;IAWT,QAAQ;CAWX"}
|
Reference in New Issue
Block a user