Interface MapThreeLayerOptions

interface MapThreeLayerOptions {
    autoStart?: boolean;
    camera?: CameraModuleOptions;
    container?: string | HTMLElement;
    control?: OrbitControlModuleOptions;
    coordSystem?: CoordSystemOption;
    css2dRender?: CSS2DRendererModuleOptions;
    css3dRender?: CSS3DRendererModuleOptions;
    enableTweenManager?: boolean;
    entityOutline?: EntityOutlineModuleOptions;
    input?: InputModuleOptions;
    isTemp?: boolean;
    modules?: (AppModuleConstructor | [AppModuleConstructor, string])[];
    offscreenCanvas?: {
        height: number;
        width: number;
    };
    passiveRendering?: boolean;
    physics?: PhysicsManagerModuleOptions;
    postProcess?: PostProcessModuleOptions;
    render?: WebGLRendererModuleOptions;
    scene?: SceneModuleOptions;
    stat?: StatModuleOptions;
    ui?: UiModuleOptions;
}

Hierarchy (view full)

Properties

autoStart?: boolean

是否自动开始,默认true

container?: string | HTMLElement

应用容器

coordSystem?: CoordSystemOption
enableTweenManager?: boolean

启动tween管理 默认true

isTemp?: boolean

是否是临时创建的app对象

modules?: (AppModuleConstructor | [AppModuleConstructor, string])[]
offscreenCanvas?: {
    height: number;
    width: number;
}

离屏渲染画布参数

Type declaration

  • height: number
  • width: number
passiveRendering?: boolean