MathRenderer Class
Represent the Math Renderer. It's used to calculate the math ink rendering in HTML5 canvas
Constructor
MathRenderer
(
-
context
Parameters:
-
contextObject
Item Index
Methods
_drawCharacter
(
private
-
character -
context -
parameters
Draw character component
Parameters:
-
characterCharacterInputComponent -
contextObject -
parametersPenParameters
_drawRectangle
(
private
-
rectangle -
context -
parameters
Draw a rectangle on context
Parameters:
-
rectangleRectangle -
contextObject -
parametersPenParameters
_drawStroke
(
private
-
stroke -
context -
parameters
Draw stroke component
Parameters:
-
strokeStrokeComponent -
contextObject -
parametersPenParameters
clear
()
Clear the recognition context
drawRecognitionResult
(
-
components -
recognitionResult
Draw math recognition result on HTML5 canvas. Scratch out results are use to redraw HTML5 Canvas
Parameters:
-
componentsAbstractComponent[] -
recognitionResultMathDocument
getShowBoundingBoxes
()
Boolean
This property is use to show or not show the bounding box
Returns:
Boolean:
setShowBoundingBoxes
(
-
showBoundingBoxes
Set the show state of bounding box
Parameters:
-
showBoundingBoxesBoolean
