Skip to main content

CreateMeganeStoresOptions

megane-viewer


megane-viewer / CreateMeganeStoresOptions

Interface: CreateMeganeStoresOptions

Defined in: stores/meganeStores.ts:79

Properties

id?

optional id?: string

Defined in: stores/meganeStores.ts:81

Stable id; auto-generated when omitted.


persist?

optional persist?: object

Defined in: stores/meganeStores.ts:89

Where per-viewer UI state persists. Both default to false (in memory). An anonymous instance has no stable identity across reloads, and silently reusing the legacy keys is exactly the collision this bundle exists to prevent — two viewers would overwrite each other's saved camera and tab. Pass keys explicitly to opt in.

camera?

optional camera?: ViewStateStorage

localStorage key for the camera, or false for in-memory.

pipelineUI?

optional pipelineUI?: PipelineUIStorage

sessionStorage key for the panel tab, or false for in-memory.