跳到主要内容

IDP.UI namespace

UI控制相关接口

Signature:

namespace UI 

Functions

Function

Description

computeLayout()

获取计算后的布局信息

hideAll()

隐藏除了场景之外的所有ui元素,包括左侧栏,顶部栏等

onThemeChange(fn)

注册一个回调当主题发生变更的时候触发

Interfaces

Interface

Description

ClientRect

布局信息, 字段含义等同于getBoundingClientRect,建议参考: https://developer.mozilla.org/en-US/docs/Web/API/Element/getBoundingClientRect

Layout

页面布局尺寸信息

Variables

Variable

Description

theme

当前的主题

toast

toast实例