Type Alias SettingsRef

SettingsRef: {
    register: (
        callback: (settings: React.Settings.Settings) => void,
    ) => void;
    update: (updater: (settings: React.Settings.Settings) => void) => void;
}

Settings API managing settings applied to the viewer.

Type declaration

  • register: (callback: (settings: React.Settings.Settings) => void) => void

    Registers a callback function to be notified when settings are updated.

  • update: (updater: (settings: React.Settings.Settings) => void) => void

    Allows updating settings by providing a callback function.