Skip to Content
参考手册类型

FitViewOptions

GitHub 上的源代码

¥Source on GitHub

调用 fitView 时,这些选项可用于自定义行为。例如,duration 选项可用于在给定的时间内平滑地转换视口。

¥When calling fitView these options can be used to customize the behavior. For example, the duration option can be used to transform the viewport smoothly over a given amount of time.

export type FitViewOptions = { padding?: number; includeHiddenNodes?: boolean; minZoom?: number; maxZoom?: number; duration?: number; nodes?: (Partial<Node> & { id: Node['id'] })[]; };

字段

¥Fields

NameTypeDefault
paddingPadding
includeHiddenNodesboolean
minZoomnumber
maxZoomnumber
durationnumber
nodes(NodeType | { id: string; })[]
Last updated on