Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "utils/fields/groupLabels"

Index

Interfaces

Functions

Functions

groupLabels

  • groupLabels(field: MultiField, scale: number): [number, number][]

recalculatePosition

  • recalculatePosition(labels: Label[], selfIndex: number, targetIndiced: number[]): [number, number]
  • Function for recalculating position of labels.

    Parameters

    • labels: Label[]

      Full collection of labels

    • selfIndex: number

      Index of label to recalculate

    • targetIndiced: number[]

      Indices of consumed labels

    Returns [number, number]

    New position of label

Generated using TypeDoc