UNPKG

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

45 lines (44 loc) 1.74 kB
import { EntityEidType, BasicInfoAtomType, TransformAtomType, VisibleAtomType, EntityFlagAtomType, EntityOutlinerAtomType } from '../data-type'; /** * @interface LightType * @extends EntityEidType,Partial<BasicInfoAtomType>,Partial<TransformAtomType>,Partial<VisibleAtomType>,Partial<EntityFlagAtomType> * @param {Partial<LightEntityAtomType>} lightStyle (optional) */ export interface LightType extends EntityEidType, Partial<BasicInfoAtomType>, Partial<TransformAtomType>, Partial<VisibleAtomType>, Partial<EntityFlagAtomType>, Partial<EntityOutlinerAtomType> { lightStyle?: Partial<LightEntityAtomType>; } /** * @interface LightEntityAtomType * @param {number} intensity * @param {string} color * @param {number} angle * @param {number} attenuation * @param {boolean} shadows * @param {boolean} haze * @param {number} haze_Intensity */ export interface LightEntityAtomType { intensity: number; color: string; angle: number; attenuation: number; shadows: boolean; haze: boolean; haze_Intensity: number; } /** * @interface IGenerate * @param {Partial<LightEntityAtomType>} LightEntityAtom (optional) * @param {Partial<BasicInfoAtomType>} BasicInfoAtom (optional) * @param {Partial<TransformAtomType>} TransformAtom (optional) * @param {Partial<VisibleAtomType>} VisibleAtom (optional) * @param {Partial<EntityFlagAtomType>} EntityFlagAtom (optional) */ export interface IGenerate { LightEntityAtom?: Partial<LightEntityAtomType>; BasicInfoAtom?: Partial<BasicInfoAtomType>; TransformAtom?: Partial<TransformAtomType>; VisibleAtom?: Partial<VisibleAtomType>; EntityFlagAtom?: Partial<EntityFlagAtomType>; EntityOutlinerAtom?: Partial<EntityOutlinerAtomType>; }