Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BoundingBox

A bounding box delimits an area on the 2D plane.

Hierarchy

  • BoundingBox

Index

Constructors

constructor

Properties

Protected absolutePosition

absolutePosition: PointF2D = new PointF2D()

Protected borderBottom

borderBottom: number = 0

Protected borderLeft

borderLeft: number = 0

Protected borderMarginBottom

borderMarginBottom: number = 0

Protected borderMarginLeft

borderMarginLeft: number = 0

Protected borderMarginRight

borderMarginRight: number = 0

Protected borderMarginTop

borderMarginTop: number = 0

Protected borderRight

borderRight: number = 0

Protected borderTop

borderTop: number = 0

Protected boundingMarginRectangle

boundingMarginRectangle: RectangleF2D

Protected boundingRectangle

boundingRectangle: RectangleF2D

Protected childElements

childElements: BoundingBox[] = []

Protected dataObject

dataObject: Object

Protected isSymbol

isSymbol: boolean = false

Protected marginSize

marginSize: SizeF2D

Protected parent

parent: BoundingBox

Protected relativePosition

relativePosition: PointF2D = new PointF2D()

Protected relativePositionHasBeenSet

relativePositionHasBeenSet: boolean = false

Protected size

size: SizeF2D = new SizeF2D()

Protected upperLeftCorner

upperLeftCorner: PointF2D

Protected upperLeftMarginCorner

upperLeftMarginCorner: PointF2D

Protected xBordersHaveBeenSet

xBordersHaveBeenSet: boolean = false

Protected yBordersHaveBeenSet

yBordersHaveBeenSet: boolean = false

Accessors

AbsolutePosition

BorderBottom

  • get BorderBottom(): number
  • set BorderBottom(value: number): void

BorderLeft

  • get BorderLeft(): number
  • set BorderLeft(value: number): void

BorderMarginBottom

  • get BorderMarginBottom(): number
  • set BorderMarginBottom(value: number): void

BorderMarginLeft

  • get BorderMarginLeft(): number
  • set BorderMarginLeft(value: number): void

BorderMarginRight

  • get BorderMarginRight(): number
  • set BorderMarginRight(value: number): void

BorderMarginTop

  • get BorderMarginTop(): number
  • set BorderMarginTop(value: number): void

BorderRight

  • get BorderRight(): number
  • set BorderRight(value: number): void

BorderTop

  • get BorderTop(): number
  • set BorderTop(value: number): void

BoundingMarginRectangle

BoundingRectangle

ChildElements

DataObject

  • get DataObject(): Object

MarginSize

Parent

RelativePosition

RelativePositionHasBeenSet

  • get RelativePositionHasBeenSet(): boolean

Size

UpperLeftCorner

UpperLeftMarginCorner

XBordersHaveBeenSet

  • get XBordersHaveBeenSet(): boolean
  • set XBordersHaveBeenSet(value: boolean): void

YBordersHaveBeenSet

  • get YBordersHaveBeenSet(): boolean
  • set YBordersHaveBeenSet(value: boolean): void

Methods

calculateAbsolutePositionsRecursive

  • calculateAbsolutePositionsRecursive(x: number, y: number): void

calculateAbsolutePositionsRecursiveWithoutTopelement

  • calculateAbsolutePositionsRecursiveWithoutTopelement(): void

calculateBoundingBox

  • calculateBoundingBox(): void

Private calculateMarginPositionAlongDirection

Protected calculateMarginRectangle

  • calculateMarginRectangle(): void

Private calculatePositionAlongDirection

Protected calculateRectangle

  • calculateRectangle(): void

calculateTopBottomBorders

  • calculateTopBottomBorders(): void

collisionDetection

computeNonOverlappingPosition

computeNonOverlappingPositionWithMargin

getClickedObjectOfType

  • getClickedObjectOfType<T>(clickPosition: PointF2D): T

getObjectsInRegion

  • getObjectsInRegion<T>(region: BoundingBox, liesInside?: boolean): T[]

liesInsideBorders

liesInsideMargins

marginCollisionDetection

pointLiesInsideBorders

  • pointLiesInsideBorders(position: PointF2D): boolean

pointLiesInsideMargins

  • pointLiesInsideMargins(position: PointF2D): boolean

setAbsolutePositionFromParent

  • setAbsolutePositionFromParent(): void

Generated using TypeDoc