跳转到内容

pivotick v3.0.0


拓展 / 拓展 / PivotSavePayload

接口: PivotSavePayload ​

定义于:interfaces/Pivot.ts:141

要求消费者写什么。实时图形对象而不是原始片段,因此有效负载携带图形由它们组成的任何内容。

重试仅携带尚未保存的内容,这就是为什么每次尝试都重新构建而不是在运行时保留的原因。

属性 ​

attempt ​

attempt: number

定义于:interfaces/Pivot.ts:161

第一次尝试时为 1,每次重试时递增。


children ​

children: Node[]

定义于:interfaces/Pivot.ts:153

这次运行的节点在内部添加了一个容器,并将其展平。每个容器都可以通过 Node.parentNode 访问,因此有效负载可以按父级分组,而无需第二次遍历。


edges ​

edges: Edge[]

定义于:interfaces/Pivot.ts:154


nodes ​

nodes: Node[]

定义于:interfaces/Pivot.ts:147

此运行创建但仍未保存的顶级节点。


origin ​

origin: Node[]

定义于:interfaces/Pivot.ts:145

The nodes the pivot was run on — "which event does this attach to".


pivotId ​

pivotId: string

定义于:interfaces/Pivot.ts:143


runId ​

runId: string

定义于:interfaces/Pivot.ts:142


vouched ​

vouched: object

定义于:interfaces/Pivot.ts:159

在这次运行之前已经在画布上:担保,而不是创建。仅上下文 - 编写这些内容是生成它们的运行的工作。

edges ​

edges: Edge[]

nodes ​

nodes: Node[]