Skip to Content
参考手册类型

PanelPosition

GitHub 上的源代码

¥Source on GitHub

此类型主要用于帮助将事物定位在流视口的顶部。例如,<MiniMap /><Controls /> 组件都采用这种类型的 position 属性。

¥This type is mostly used to help position things on top of the flow viewport. For example both the <MiniMap /> and <Controls /> components take a position prop of this type.

export type PanelPosition = | 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right';