Options
All
  • Public
  • Public/Protected
  • All
Menu

Module CellGroup

A collection of helper functions relating to merged cell groups

Index

Properties

c1

c1: number

c2

c2: number

r1

r1: number

r2

r2: number

Functions

areCellGroupsIntersecting

areCellGroupsIntersectingAtAxis

  • areCellGroupsIntersectingAtAxis(group1: CellGroup, group2: CellGroup, axis: "row" | "column"): boolean

areCellsMerged

  • areCellsMerged(dataModel: DataModel, rgn: CellRegion, cell1: number[], cell2: number[]): boolean

calculateMergeOffsets

getCellGroupsAtColumn

  • Retrieves a list of cell groups intersecting at a given column.

    Parameters

    • dataModel: DataModel

      data model of the grid.

    • rgn: CellRegion

      the cell region.

    • column: number

      the target column to look for intersections at.

    Returns CellGroup[]

    all cell groups intersecting with the column.

getCellGroupsAtRegion

getCellGroupsAtRow

  • Retrieves a list of cell groups intersecting at a given row.

    Parameters

    • dataModel: DataModel

      data model of the grid.

    • rgn: CellRegion

      the cell region.

    • row: number

      the target row to look for intersections at.

    Returns CellGroup[]

    all cell groups intersecting with the row.

getGroup

getGroupIndex

isCellGroupAbove

isCellGroupBelow

joinCellGroupWithMergedCellGroups

  • Merges a cell group with other cells groups in the same region if they intersect.

    Parameters

    Returns CellGroup

    a new cell group after merging has happened.

joinCellGroups

joinCellGroupsIntersectingAtAxis

  • Merges a target cell group with any cell groups it intersects with at a given row or column.

    Parameters

    • dataModel: DataModel

      data model of the grid.

    • regions: CellRegion[]

      list of cell regions.

    • axis: "row" | "column"

      row or column.

    • group: CellGroup

      the target cell group.

    Returns CellGroup

    a new merged cell group.

Generated using TypeDoc