Skip to content

Documentation / @geoverse/editor-core / CreateSnapshotInput

Interface: CreateSnapshotInput ​

Defined in: packages/editor-core/src/history/index.ts:98

创建快照的入参。

Properties ​

at? ​

ts
optional at?: number;

Defined in: packages/editor-core/src/history/index.ts:105

打标时刻(epoch ms),默认 Date.now()。


createdBy? ​

ts
optional createdBy?: string;

Defined in: packages/editor-core/src/history/index.ts:101


hard? ​

ts
optional hard?: boolean;

Defined in: packages/editor-core/src/history/index.ts:103

默认 true=硬快照(固化版本号);false=软快照(仅记 takenAt,恢复走 asOf)。


label ​

ts
label: string;

Defined in: packages/editor-core/src/history/index.ts:99


layer? ​

ts
optional layer?: string;

Defined in: packages/editor-core/src/history/index.ts:100