@perspective-dev/viewer
    Preparing search index...

    Type Alias PerspectiveConfigUpdateEventDetail

    type PerspectiveConfigUpdateEventDetail = {
        getConfig(): ViewerConfigUpdate;
    }
    Index

    Methods

    Methods

    • Serialize the panel config that triggered this event, ON DEMAND. The serialization is deferred so a config change with no interested listener costs nothing; call getConfig() only if you need the config.

      Valid ONLY synchronously within the event callback — the backing closure is released immediately after dispatch, so stashing getConfig and calling it later throws. To read config outside the callback, use viewer.save() / viewer.saveWorkspace().

      Returns ViewerConfigUpdate