wdpapi
Version:
51WORLD WdpApi is a set of programming interfaces developed by JavaScript that is responsible for negotiating between web pages and cloud rendering platforms. Supported by 51Cloud rendering platform, it enables the users to create any HTML5 UI element on
81 lines (80 loc) • 2.97 kB
TypeScript
import { EntityEidType, BasicInfoAtomType, TransformAtomType, VisibleAtomType, ICoordinates2D, EntityFlagAtomType, EntityOutlinerAtomType } from '../data-type';
/**
* @interface IAttributes
* @param {number} cornerRadius
* @param {number} cornerSplitNum
*/
export interface IAttributes {
cornerRadius: number;
cornerSplitNum: number;
}
/**
* @interface ModelerWaterPolygonAtomType
* @param {Array<IAttributes>} attributes
* @param {ICoordinates2D} coordinates
*/
export interface ModelerWaterPolygonAtomType {
attributes: Array<IAttributes>;
coordinates: ICoordinates2D;
}
/**
* @interface ModelerWaterAtomType
* @param {number} waterHeight
* @param {boolean} bInverseNormal
* @param {boolean} bAlignZ
* @param {boolean} bUseVertexCorner
* @param {number} cornerRadius
* @param {number} cornerSplitNum
* @param {string} waterType
* @param {string} waterColor
* @param {number} waveHeight
* @param {number} waterTransparency
* @param {number} waterTransparentDepth
* @param {number} rippleScale
* @param {number} waveRotate
* @param {number} waveSpeed
*/
export interface ModelerWaterAtomType {
waterHeight: number;
bInverseNormal: boolean;
bAlignZ: boolean;
bUseVertexCorner: boolean;
cornerRadius: number;
cornerSplitNum: number;
waterType: string;
waterColor: string;
waveHeight: number;
waterTransparency: number;
waterTransparentDepth: number;
rippleScale: number;
waveRotate: number;
waveSpeed: number;
waveIntensity: number;
waveScale: number;
}
/**
* @interface ModelerWaterType
* @extends EntityEidType,Partial<BasicInfoAtomType>,Partial<TransformAtomType>,Partial<VisibleAtomType>,Partial<ModelerWaterPolygonAtomType>,Partial<EntityFlagAtomType>
* @param {Partial<ModelerWaterAtomType>} modelerWaterStyle (optional)
*/
export interface ModelerWaterType extends EntityEidType, Partial<BasicInfoAtomType>, Partial<TransformAtomType>, Partial<VisibleAtomType>, Partial<ModelerWaterPolygonAtomType>, Partial<EntityFlagAtomType>, Partial<EntityOutlinerAtomType> {
modelerWaterStyle?: Partial<ModelerWaterAtomType>;
}
/**
* @interface IGenerate
* @param {Partial<ModelerWaterAtomType>} ModelerWaterAtom (optional)
* @param {Partial<ModelerWaterPolygonAtomType>} ModelerWaterPolygonAtom (optional)
* @param {Partial<BasicInfoAtomType>} BasicInfoAtom (optional)
* @param {Partial<TransformAtomType>} TransformAtom (optional)
* @param {Partial<VisibleAtomType>} VisibleAtom (optional)
* @param {Partial<EntityFlagAtomType>} EntityFlagAtom (optional)
*/
export interface IGenerate {
ModelerWaterAtom?: Partial<ModelerWaterAtomType>;
ModelerWaterPolygonAtom?: Partial<ModelerWaterPolygonAtomType>;
BasicInfoAtom?: Partial<BasicInfoAtomType>;
TransformAtom?: Partial<TransformAtomType>;
VisibleAtom?: Partial<VisibleAtomType>;
EntityFlagAtom?: Partial<EntityFlagAtomType>;
EntityOutlinerAtom?: Partial<EntityOutlinerAtomType>;
}