Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

removeOverlapInOneDimension

  • removeOverlapInOneDimension(spans: object[], lowerBound?: number, upperBound?: number): object
  • Remove overlap between spans while keeping their centers as close as possible to the specified desiredCenters. Lower and upper bounds will be respected if the spans physically fit between them (otherwise they'll be moved and their new position returned). If no upper/lower bound is specified then the bounds of the moved spans will be returned. returns a new center for each span.

    Parameters

    • spans: object[]
    • Optional lowerBound: number
    • Optional upperBound: number

    Returns object

    • lowerBound: number
    • newCenters: number[]
    • upperBound: number

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc