Highcharts Dashboards
    Preparing search index...

    Class providing a resizing functionality.

    Index

    Constructors

    Properties

    currentCell: Cell | undefined

    Resized element reference.

    currentDimension: string | undefined

    Dimension of current resizing (x or y).

    editMode: EditMode

    The editMode reference.

    isActive: boolean

    Pending resizer flag

    isX: boolean

    Type of resizing.

    isY: boolean

    Type of resizing.

    mouseDownSnapX?: Function
    mouseDownSnapY?: Function
    mouseMoveSnap?: Function
    mouseUpSnap?: Function
    options: Options

    Resizer options.

    snapBottom: HTMLElement | undefined

    Reference to bottom handler

    snapRight: HTMLElement | undefined

    Reference to right handler

    startX: number

    Reference to start position of resizer

    tempSiblingsWidth: Cell[]

    Array of siblings which have auto-flex width and we need to apply static width for resizing event. After resizing cells revert widths to auto.

    defaultOptions: Options = ...

    Methods

    • Add mouse events to snaps

      Returns void

    • Add Snap - create snaps and add events.

      Returns void

    • Destroy resizer

      Returns void

    • Hide snaps

      Returns void

    • General method used on resizing.

      Parameters

      • e: PointerEvent

        A mouse event.

      Returns void

    • Revert widths to auto.

      Returns void

    • Update snap position.

      Parameters

      • cell: Cell

        Cell reference

      Returns void

    • Method detects siblings and auto-width applied by flex. The resizer requires static widths for correct calculations, so we need to apply temporary width on siblings.

      Returns void