Skip to content

Documentation / @geoverse/editor-core / EditSessionOptions

Interface: EditSessionOptions ​

Defined in: packages/editor-core/src/session.ts:63

Extends ​

Properties ​

crs? ​

ts
optional crs?: string;

Defined in: packages/editor-core/src/engine.ts:20

Inherited from ​

EditEngineOptions.crs


features? ​

ts
optional features?: EditableFeature[];

Defined in: packages/editor-core/src/engine.ts:21

Inherited from ​

EditEngineOptions.features


history? ​

ts
optional history?: HistoryStore;

Defined in: packages/editor-core/src/session.ts:67

只读历史存储(RFC-0006):供 restoreToVersion / 历史面板查询。


idGen? ​

ts
optional idGen?: () => string;

Defined in: packages/editor-core/src/engine.ts:25

可注入的 id 生成器,便于测试可重现。

Returns ​

string

Inherited from ​

EditEngineOptions.idGen


rules? ​

ts
optional rules?: ValidationRule[];

Defined in: packages/editor-core/src/session.ts:65

省略则用 defaultLocalRules()。


snapshots? ​

ts
optional snapshots?: SnapshotStore;

Defined in: packages/editor-core/src/session.ts:69

只读快照存储(RFC-0006 V2):供快照面板打标 / 浏览。常与 history 为同一实现。