Options
All
  • Public
  • Public/Protected
  • All
Menu

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

param dataObject

Graphical object where the bounding box will be attached

param parent

Parent bounding box of an object in a higher hierarchy position

param connectChildToParent

Create a child to parent relationship too. Will be true by default

Hierarchy

  • BoundingBox

Index

Constructors

  • Create a bounding box

    Parameters

    • dataObject: Object = undefined

      Graphical object where the bounding box will be attached

    • parent: BoundingBox = undefined

      Parent bounding box of an object in a higher hierarchy position

    • isSymbol: boolean = false

      Defines the bounding box to be symbol thus not calculating its boundaries by itself. NOTE: Borders need to be set!

    Returns BoundingBox

Properties

absolutePosition: PointF2D = ...
borderBottom: number = 0
borderLeft: number = 0
borderMarginBottom: number = 0
borderMarginLeft: number = 0
borderMarginRight: number = 0
borderMarginTop: number = 0
borderRight: number = 0
borderTop: number = 0
boundingMarginRectangle: RectangleF2D
boundingRectangle: RectangleF2D
childElements: BoundingBox[] = []
dataObject: Object
isSymbol: boolean = false
marginSize: SizeF2D = ...
parent: BoundingBox
relativePosition: PointF2D = ...
relativePositionHasBeenSet: boolean = false
size: SizeF2D = ...
upperLeftCorner: PointF2D = ...
upperLeftMarginCorner: PointF2D = ...
xBordersHaveBeenSet: boolean = false
yBordersHaveBeenSet: boolean = false

Accessors

  • get BorderBottom(): number
  • set BorderBottom(value: number): void
  • get BorderLeft(): number
  • set BorderLeft(value: number): void
  • get BorderMarginBottom(): number
  • set BorderMarginBottom(value: number): void
  • get BorderMarginLeft(): number
  • set BorderMarginLeft(value: number): void
  • get BorderMarginRight(): number
  • set BorderMarginRight(value: number): void
  • get BorderMarginTop(): number
  • set BorderMarginTop(value: number): void
  • get BorderRight(): number
  • set BorderRight(value: number): void
  • get BorderTop(): number
  • set BorderTop(value: number): void
  • get DataObject(): Object
  • get RelativePositionHasBeenSet(): boolean
  • get XBordersHaveBeenSet(): boolean
  • set XBordersHaveBeenSet(value: boolean): void
  • get YBordersHaveBeenSet(): boolean
  • set YBordersHaveBeenSet(value: boolean): void

Methods

  • calculateAbsolutePosition(): void
  • calculateAbsolutePositionsOfChildren(): void
  • calculateAbsolutePositionsRecursive(x: number, y: number): void
  • calculateAbsolutePositionsRecursiveWithoutTopelement(): void
  • calculateBoundingBox(ignoreClasses?: string[]): void
  • calculateMarginRectangle(): void
  • calculateRectangle(): void
  • calculateTopBottomBorders(): void
  • getClickedObjectOfType<T>(clickPosition: PointF2D): T
  • getObjectsInRegion<T>(region: BoundingBox, liesInside?: boolean, className?: string): T[]
  • pointLiesInsideBorders(position: PointF2D): boolean
  • pointLiesInsideMargins(position: PointF2D): boolean
  • setAbsolutePositionFromParent(): void

Generated using TypeDoc