This class is solely responsible for the Dynamic Panel for Custom Equations.

Hierarchy-Diagram

UML class diagram of DynamicPanel
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

categoriesTree: ICategoriesTree
categoriesTreeFactory: Promise<Factory<ICategoriesTree>> = null
func: any = null
gridSelector: string = ""
gridSelectorOfCopy: string = ""
hints: IHints
id: string = ""
initialised: boolean = false
initialMoved: boolean = false
initialResized: boolean = false
isOpen: boolean = false
layoutHeight: number
layoutWidth: number
localizer: ILocalizer = null
math: IMath = null
messager: IMessager = null
parameters: any = null
parent: any = null
parser: IParser = null
renderComplete: boolean = false
services: ISelectedServices = null
silent: boolean = false
sortOrderAsc: string = 'desc'
treeSelector: string = ""
utilities: IUtilities

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

  • Adds an Equation to the grid.

    Parameters

    • title: any

      the title of the equation

    • formula: any

      the formula itself in katex format

    • id: number = -1

    Returns void

  • Compares 2 items of the datagrid for sorting.

    WORKS. Must observe the contract with the sorting API.

    Parameters

    • a: string

      item 1

    • b: string

      item 2

    Returns number

    -1 for a < b and +1 for a >= b;

  • Builds a single Anchor from formula.

    Parameters

    • formula: any

      the formula is capable of providing an interactive anchor

    Returns string

    the calculated anchor

  • Clears the checked checkboxes in datagrid and updates the latter.

    Returns void

  • Reads the Custom Equations from the parameters.

    Returns Promise<void>

  • Called after each change of the content writes the Custom Equations back to the parameters.

    Returns void

  • Equips the data grid anchors with interactivity.

    This is necessary because original event handlers do not stay active after changes.

    Returns void

  • Uses the given JSON compatible data to fill the data grid.

    Parameters

    • json: any

      a json object used to fill the data grid

    Returns void

  • It is intended to create this Panel dynamically taking the content from the Settings.

    Parameters

    • dummy: any = null

    Returns Promise<void>

  • Initialises a Data Grid given by the selector TODO: CHECK state of DND.

    Parameters

    • selector: string

    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

  • Equips the datagrid (after render update).

    • inplace update of the content
    • row height fixing
    • saving of equations

    Parameters

    • withParametersUpdate: boolean = true

    Returns void

  • An Observer for the Locale Changed notifications.

    This changes all localized text in the dialog.

    Parameters

    • localizer: any

    Returns Promise<void>

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

    This delegates to the Parameters instance.

    Parameters

    • left: number
    • top: number

    Returns void

  • Observer of Category Tree observable.

    Parameters

    • equations: any

    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

  • Reads the Equations from data grid and returns them.

    These are all equations now but filtered, if a filter is active.

    Returns any

    An array of the equations, JSON compatible

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

    Parameters

    • Rest..._params: any[]

    Returns Promise<void>

  • Returns an object with view property, assigning overrides for render methods.

    Returns Promise<{
        view: any;
    }>