UNPKG

@wdp-api/wim-api

Version:

51WORLD WIM Api is a JavaScript plugin for WdpApi, It provides a set of APIs for developers to integrate WIM into their own applications.

50 lines (49 loc) 1.09 kB
export interface PluginType { name: string; factory: any; object?: any; category?: string; type?: string; } export interface PluginInfo { name: string; des: string; version: string; } export interface IPluiginCfg { list: PluginType[]; info: PluginInfo; } export type CoordType = Array<number>; export interface RotatorType { pitch?: number; yaw?: number; roll?: number; } export type ScaleType = Array<number>; export type ICoordinates = Array<Array<number>>; export type ICoordinates2D = Array<Array<Array<number>>>; export interface EntityEidType { eid?: string | null; } export interface BasicInfoAtomType { entityName: string; customId: string; customData: any; parentEid: string; } export interface TransformAtomType { location: CoordType; rotator: RotatorType; scale3d: ScaleType; pivotOffset: Array<number>; } export interface VisibleAtomType { bVisible: boolean; } export interface EntityFlagAtomType { bLocked: boolean; } export interface EntityOutlinerAtomType { index: string; }