API Docs for:
Show:

AnalyzerRenderer Class

Represent the Analyzer Renderer. It's used to calculate the analyzer ink rendering in HTML5 canvas

Constructor

AnalyzerRenderer

(
  • context
)

Parameters:

  • context Object

Methods

_drawCell

(
  • cell
  • context
  • parameters
)
private

Draw a cell

Parameters:

_drawCharacter

(
  • character
  • context
  • parameters
)
private

Draw character component

Parameters:

_drawGroups

(
  • components
  • groups
  • context
  • parameters
)
private

Draw Groups

Parameters:

_drawLine

(
  • p1
  • p2
  • context
  • parameters
)
private

Draw a line on context

Parameters:

_drawRectangle

(
  • rectangle
  • context
  • parameters
)
private

Draw a rectangle on context

Parameters:

_drawStroke

(
  • stroke
  • context
  • parameters
)
private

Draw stroke component

Parameters:

_drawTables

(
  • components
  • tables
  • context
  • parameters
)
private

Draw table

Parameters:

_drawText

(
  • boundingBox
  • text
  • justificationType
  • textHeight
  • baseline
  • context
  • parameters
)
private

Draw text on analyser

Parameters:

  • boundingBox Rectangle
  • text String
  • justificationType String
  • textHeight Number
  • baseline Number
  • context Object
  • parameters PenParameters

_drawTextLines

(
  • components
  • textLines
  • context
  • parameters
)
private

Draw the text line

Parameters:

_drawUnderline

(
  • boundingBox
  • underline
  • text
  • textHeight
  • context
  • parameters
)
private

Draw Underline

Parameters:

drawComponent

(
  • component
)

Draw component

Parameters:

drawComponents

(
  • components
)

Draw components

Parameters:

drawRecognitionResult

(
  • components
  • recognitionResult
)

Draw shape recognition result on HTML5 canvas

Parameters:

getShowBoundingBoxes

() Boolean

This property is use to show or not show the bounding box

Returns:

Boolean:

setShapeRenderer

(
  • shapeRenderer
)

Set shape renderer

Parameters:

setShowBoundingBoxes

(
  • showBoundingBoxes
)

Set the show state of bounding box

Parameters:

  • showBoundingBoxes Boolean