CreateMeganeStoresOptions
megane-viewer / CreateMeganeStoresOptions
Interface: CreateMeganeStoresOptions
Defined in: stores/meganeStores.ts:79
Properties
id?
optionalid?:string
Defined in: stores/meganeStores.ts:81
Stable id; auto-generated when omitted.
persist?
optionalpersist?: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?
optionalcamera?:ViewStateStorage
localStorage key for the camera, or false for in-memory.
pipelineUI?
optionalpipelineUI?:PipelineUIStorage
sessionStorage key for the panel tab, or false for in-memory.