Skip to Content
参考类型

FitViewOptions

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.

字段

🌐 Fields

NameTypeDefault
paddingPadding
includeHiddenNodesboolean
minZoomnumber
maxZoomnumber
durationnumber
ease(t: number) => number
interpolate"smooth" | "linear"
nodes(NodeType | { id: string; })[]
Last updated on