跳转到内容

pivotick v3.0.0


拓展 / 弹出按钮

抽象类: Flyout ​

定义于:ui/elements/Flyout/Flyout.ts:22

设置弹出窗口的共享脚手架 - 由模式轨的弹出模式打开的叠加层:ViewFlyout(网格 + 画布行为)和 PhysicsFlyout(布局 + 模拟)。底座拥有面板元素、共享 pvt-flyout-* 镶边(标题、部分标签、开关行)以及与 ModeStore 的绑定 — 面板是 open,而其自己的模式是活动模式,因此弹出窗口可以免费相互排除。

子类声明它所响应的模式,在模板中呈现其控件并将它们连接到电线中。模板的文字是文本:下面的帮助器转义了它们所给出的内容,并且标有 i18nText / i18nAttr 的元素从图表的目录中填充。重写 onGraphReady 的子类必须调用 super.onGraphReady():这是开关行获取初始状态的地方(graph.simulation 那时才存在)。

延伸 ​

构造函数 ​

构造函数 ​

new Flyout(uiManager): Flyout

定义于:ui/UIComponent.ts:32

参数 ​

uiManager ​

UIManager

返回值 ​

Flyout

继承自 ​

UIComponent.constructor

方法 ​

afterMount() ​

afterMount(): void

定义于:ui/UIComponent.ts:54

返回值 ​

void

继承自 ​

UIComponent.afterMount


destroy() ​

destroy(): void

定义于:ui/UIComponent.ts:64

返回值 ​

void

继承自 ​

UIComponent.destroy


getMode() ​

getMode(): string

定义于:ui/elements/Flyout/Flyout.ts:38

该面板响应的轨道模式。公开,以便轨道模式注册表可以根据其定义声明的 id 检查已注册的弹出窗口。

返回值 ​

string


graphReady() ​

graphReady(): void

定义于:ui/UIComponent.ts:59

返回值 ​

void

继承自 ​

UIComponent.graphReady


mount() ​

mount(container?): void

定义于:ui/UIComponent.ts:50

参数 ​

container? ​

HTMLElement

返回值 ​

void

继承自 ​

UIComponent.mount