Editor
Editor
Constructor Summary
| Public Constructor | ||
| public |
constructor(element: Element, configuration: Configuration, penStyle: PenStyle, theme: Theme, behaviors: Behaviors) |
|
Member Summary
| Public Members | ||
| public get |
Get current behavior |
|
| public get |
Get behaviors |
|
| public get |
Get current callbacks |
|
| public get |
True if can clear, false otherwise. |
|
| public get |
canConvert: Boolean: * True if can convert, false otherwise. |
|
| public get |
True if can export, false otherwise. |
|
| public get |
True if can redo, false otherwise. |
|
| public get |
True if can undo, false otherwise. |
|
| public get |
Get the current recognition parameters |
|
| public set |
configuration(configuration: Configuration): * Set the recognition parameters WARNING : Need to fire a clear if user have already input some strokes. |
|
| public |
Inner reference to the DOM Element |
|
| public |
error: * |
|
| public |
Launch export timer |
|
| public get |
Get current state exports |
|
| public get |
Get current grabber |
|
| public |
Current grabber context |
|
| public get |
True if idle state |
|
| public get |
initialized: Boolean: * True if initialized, false otherwise |
|
| public |
loader: * |
|
| public |
Current model |
|
| public |
Notify delay timer |
|
| public set |
Set the pen style |
|
| public get |
Get the pen style |
|
| public get |
Get a PNG image data url from the data model |
|
| public get |
recognizer: Recognizer: * Get current recognizer |
|
| public |
Current recognition context |
|
| public get |
Get current renderer |
|
| public |
Current rendering context |
|
| public |
Launch resize timer |
|
| public get |
Get current stroker |
|
| public set |
Set the theme |
|
| public get |
Get the theme |
|
| public |
|
|
| public |
|
|
Method Summary
| Public Methods | ||
| public |
clear() Clear the output and the recognition result. |
|
| public |
convert() Convert the current content |
|
| public |
Explicitly ask to perform an export. |
|
| public |
Get statistics to monitor what ink size is send to the server. |
|
| public |
importContent(point: {x: Number, y: Number}, data: Blob | *, mimetype: String) Import content. |
|
| public |
Import ink |
|
| public |
Handle a pointer down |
|
| public |
pointerMove(point: {x: Number, y: Number, t: Number}) Handle a pointer move |
|
| public |
Handle a pointer up |
|
| public |
redo() Redo the last action. |
|
| public |
resize() Function to call when the dom element link to the current ink paper has been resize. |
|
| public |
undo() Undo the last action. |
|
| public |
Wait for idle state. |
|
Public Constructors
public constructor(element: Element, configuration: Configuration, penStyle: PenStyle, theme: Theme, behaviors: Behaviors) source
Params:
| Name | Type | Attribute | Description |
| element | Element | DOM element to attach this editor |
|
| configuration | Configuration |
|
Configuration to apply |
| penStyle | PenStyle |
|
Custom style to apply |
| theme | Theme |
|
Custom theme to apply |
| behaviors | Behaviors |
|
Custom behaviors to apply |
Public Members
public set configuration(configuration: Configuration): * source
Set the recognition parameters WARNING : Need to fire a clear if user have already input some strokes.
public error: * source
public loader: * source
public undoRedoContext: * source
public undoRedoManager: * source
Public Methods
public importContent(point: {x: Number, y: Number}, data: Blob | *, mimetype: String) source
Import content.
public pointerDown(point: {x: Number, y: Number, t: Number}, pointerType: String, pointerId: String) source
Handle a pointer down
public resize() source
Function to call when the dom element link to the current ink paper has been resize.