You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

93 lines
1.3 KiB

type LinkDirection = '<-' | '->' | '<->' | ''
type CursorMode =
'normal'
| 'ALink'
| 'SLink'
| 'PointCallback'
| 'PointAdd'
| 'LinkAdd'
| 'LinkAdd2'
| 'Measure'
| 'MeasureArea'
| 'MeasureAngle'
| 'selectByRec'
interface VData {
/**
* 场景数据
*/
items: ItemJson[]
/**
* 楼层的其他数据
*/
infos: any
/**
* 是否发生了变化,通知外部是否需要保存数据
*/
isChanged: boolean
/**
* 所有地图目录
*/
catalog: Catalog
/**
* 服务器地址
*/
server?: string
/**
* 项目ID
*/
project_uuid?: string
/**
* 当前楼层代码
*/
catalogCode: string
/**
* 世界模型公共数据
*/
worldData: any
}
interface CatalogItem {
catalogCode: string; // 楼层代码
label: string; // 楼层显示名称
}
interface CatalogGroup {
label: string; // 楼层组名称
items: CatalogItem[]; // 楼层组中的楼层列表
}
/**
* 世界模型目录数据
*/
type Catalog = CatalogGroup[];
interface IControls {
init(viewport: any): void
dispose(): void
}
interface Vector3IF {
x: number;
y: number;
z: number;
/**
* 计算当前向量到另一个向量的距离
*/
distanceTo(vector: Vector3IF): number;
}
interface QuaternionIF {
x: number,
y: number,
z: number
}