The More Dialog class.

This represents dialogs with Math content which is loaded on demand when the dialog is opened. This content is in Katex format and will be translated to Math.

Hierarchy-Diagram

UML class diagram of KIHMoreDialog
Legend
icon for a class in the UML class diagram class
icon for a public property in the UML class diagram public property
icon for a public method in the UML class diagram public method
icon for a protected method in the UML class diagram protected method

Hierarchy (view full)

Constructors

Properties

func: any = null
id: string = ""
initialised: boolean = false
initialMoved: boolean = false
initialResized: boolean = false
isOpen: boolean = false
localizer: ILocalizer = null
math: IMath = null
messager: IMessager = null
parameters: any = null
parent: any = null
parser: IParser = null
services: ISelectedServices = null
silent: boolean = false

Accessors

  • get handlers(): {
        onClose: any;
        onMove: any;
        onOpen: any;
        onResize: any;
    }
  • Builds an object from the events to be provided when the panel is created.

    Returns {
        onClose: any;
        onMove: any;
        onOpen: any;
        onResize: any;
    }

    • onClose: any
    • onMove: any
    • onOpen: any
    • onResize: any
  • get panelFunc(): any
  • Returns the bound panel (one of : panel, window, dialog) function.

    Returns any

  • get styles(): any
  • Queries the styles option of the panel.

    Returns any

  • set styles(styles): void
  • Sets the styles option of the panel.

    Parameters

    • styles: any

    Returns void

Methods

  • Initialises (creates) the dialog.

    This additionally to the super class method provides a translation method and a title for Katex to Math in-place translation.

    Parameters

    • initialiseSymbolContent: any

      method of the client to be invoked during loading

    Returns Promise<void>

  • This function handles the desktop use case. It initiates a resize for a workaround to problems only taking place in this case. And it centers the panels.

    Returns void

  • Used to localize an option.

    Place this service into this base class to get access everywhere. TODO: use Utility function.

    Parameters

    • option: string
    • id: any = null
    • func: any = null

    Returns string

  • The handler of move events, invoked when the panel is moved.

    This delegates to the Parameters instance.

    Parameters

    • left: number
    • top: number

    Returns void

  • The handler of resize events, invoked when the panel is resized.

    This delegates to the Parameters instance.

    Parameters

    • width: number
    • height: number

    Returns void

  • Virtual method. Updates a panel. F.i. used for Information Window.

    Parameters

    • Rest..._params: any[]

    Returns Promise<void>