Class PresentationUtil

Hierarchy

  • PresentationUtil

Index

Methods

Static arePointsWithinImageBounds

  • arePointsWithinImageBounds(points: Array<Point>, displayArea: Rect2D, deltaX?: number, deltaY?: number): boolean
  • Check if point within image bounds or not

    Parameters

    • points: Array<Point>
    • displayArea: Rect2D
    • Default value deltaX: number = 0
    • Default value deltaY: number = 0

    Returns boolean

    boolean stating whether point within image bounds or not

Static createCircleAnnotation

  • Convert given data into a CircleGraphicAnnotation class and return

    Parameters

    • graphicLayer: string

      annotation layer string

    • graphicObjects: Array<GraphicObject>

      collection of graphic objects

    • textObjects: Array<TextObject>

      collection of text objects

    • referencedImageSequence: Array<ReferencedImage>

      collection of referenced image

    Returns CircleGraphicAnnotation

Static createEllipseAnnotation

  • Convert given data into a EllipseGraphicAnnotation class and return

    Parameters

    • graphicLayer: string

      annotation layer string

    • graphicObjects: Array<GraphicObject>

      collection of graphic objects

    • textObjects: Array<TextObject>

      collection of text objects

    • referencedImageSequence: Array<ReferencedImage>

      collection of referenced image

    Returns EllipseGraphicAnnotation

Static createLineAnnotation

  • Convert given data into a CircleGraphicAnnotation class and return

    Parameters

    • graphicLayer: string

      annotation layer string

    • graphicObjects: Array<GraphicObject>

      collection of graphic objects

    • textObjects: Array<TextObject>

      collection of text objects

    • referencedImageSequence: Array<ReferencedImage>

      collection of referenced image

    Returns PolylineGraphicAnnotation

Static createPointAnnotation

  • Convert given data into a PointGraphicAnnotation class and return

    Parameters

    • graphicLayer: string

      annotation layer string

    • graphicObjects: Array<GraphicObject>

      collection of graphic objects

    • textObjects: Array<TextObject>

      collection of text objects

    • referencedImageSequence: Array<ReferencedImage>

      collection of referenced image

    Returns PointGraphicAnnotation

Static createReferencedImageSequence

  • Create new ReferencedImage for each item in given list, push to an array and return

    Parameters

    Returns ReferencedImage[]

Static createTextAnnotation

  • Convert given data into a EllipseGraphicAnnotation class and return

    Parameters

    • graphicLayer: string

      annotation layer string

    • graphicObjects: Array<GraphicObject>

      collection of graphic objects

    • textObjects: Array<TextObject>

      collection of text objects

    • referencedImageSequence: Array<ReferencedImage>

      collection of referenced image

    Returns TextGraphicAnnotation

Static createTextObjects

  • Create new TextObject for each item in given list, push to an array and return

    Parameters

    • textObjects: Array<TextObject>

      a list of text objects

    Returns Array<TextObject>

Static isLabelSelected

  • isLabelSelected(currentPoint: Point, rect: Rect2D): boolean
  • Check if label selected for given point

    Parameters

    Returns boolean

    boolean stating whether label selected or not

Static isSelected

  • isSelected(currentPoint: Point, anchorPoint: Point, boundsPoint: Point): boolean
  • Check if point selected for given points

    Parameters

    Returns boolean

    boolean stating whether point selected or not

Static Private savePresentationLocal

  • savePresentationLocal(data: any, callbackFunc?: any): any
  • An asynchronous method to save presentation data used locally.

    Parameters

    • data: any

      Presentation data

    • Optional callbackFunc: any

    Returns any

Static validatePoints

  • validatePoints(point: Point, displayArea: Rect2D): void
  • Validate the points given points

    Parameters

    Returns void