Skip to Content
参考类型

PanelPosition

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' | 'center-left' | 'center-right';
Last updated on