Class TextEditorRenderer
Constructors
(constructor)(canvas, textRenderer)
Constructs a new instance of the TextEditorRenderer class
Declaration
constructor(canvas: Canvas, textRenderer: TextRenderer);
Parameters
Properties
textRenderer
Declaration
set textRenderer(value: TextRenderer);
Property Value
Methods
clearCursor()
Declaration
Returns
drawCursor(callback)
Declaration
drawCursor(callback: (context: CanvasRenderingContext2D) => void): void;
Parameters
| Type |
Name |
Description |
| (context: CanvasRenderingContext2D) => void |
callback |
|
Returns
drawDesign()
Declaration
Returns
drawFrame()
Declaration
Returns
drawSelection(textHandler, selection)
Declaration
drawSelection(textHandler: TextWhizz.TextHandler, selection: TextWhizz.TextRange): void;
Parameters
| Type |
Name |
Description |
| TextWhizz.TextHandler |
textHandler |
|
| TextWhizz.TextRange |
selection |
|
Returns
drawText(textHandler)
Declaration
drawText(textHandler: TextWhizz.TextHandler): void;
Parameters
| Type |
Name |
Description |
| TextWhizz.TextHandler |
textHandler |
|
Returns
initialize(itemHandler)
Declaration
initialize(itemHandler: NewBaseTextItemHandler): void;
Parameters
Returns