Manages control parameters, especially those which can be stored over sessions. It is based on the communication of messages to gain the settings of the plugin.

Constructors

Properties

capabilities: Capabilities
client: IClient = null
configuration: any
id: string = 'Katex Input Helper'
schema: Schema
storage: IStorage = null
suppressWriteBack: boolean = false

Accessors

Methods

  • Selected console output of the attributes. This is diagnostic output and normally deactivated.

    Returns void

  • onPanelMove handler for some dialogs and windows.

    Parameters

    • id: string
    • left: string | number
    • top: string | number
    • initial: boolean = false

    Returns void

  • onPanelResize handler for some dialogs and windows.

    A Resize can also change left and top values. That's why we must include those into consideration and add them to the object. This only works, if left / top are updated during resize!! EXPERIENCE: resize with left change persisted although onPanelMove not detected

    Parameters

    • id: string

      id of the panel

    • width: string | number

      the width established by the user

    • height: string | number

      the height established by the user

    • initial: boolean = false

    Returns void

  • Queries the parameters from the Storage Source.

    • in the Plugin they are persisted there as settings.
    • in the web variant they are stored as Cookies.
    • newest implementation is IndexedDB.

    Returns Promise<void>

  • Resets all window positions. Defaults will be activated.

    The defaults are determined, when panel is first displayed after re-start.

    Returns void

  • Resizes (and repositions) a given panel by using the 'configured' settings.

    For repositioning after reset a restart is required.

    Parameters

    • id: any

      the panel id as in HTML

    Returns void