Skip to content

Documentation / @geoverse/editor-core / DatasetSnapshot

Interface: DatasetSnapshot

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

数据集快照(命名时间点标签,可整体 as-of / 恢复)。

Properties

createdBy?

ts
optional createdBy?: string;

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


entries?

ts
optional entries?: SnapshotEntry[];

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

硬快照:固化各要素版本号(对照 PostGIS snapshot_feature)。V2「硬化」的核心—— 版本号被显式钉住,保留期裁剪(MemoryHistoryStore.prune)会保护被引用的历史行, 故快照恢复稳定、不随后续编辑或归档漂移。 软快照此字段为空,恢复退化为 asOf(takenAt),会随历史裁剪而失真。


id

ts
id: string;

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


label

ts
label: string;

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


layer?

ts
optional layer?: string;

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

图层 / 要素类范围(可空 = 全部)。


takenAt

ts
takenAt: number;

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

打标时刻(epoch ms)。