Editor
Editor
Constructor Summary
| Public Constructor | ||
| public |
constructor(element: Element, configuration: Configuration, theme: Theme, penStyle: PenStyle, 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 |
configuration: Configuration: * 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 get |
eastereggs: {inkImporter: inkImporter}: {"inkImporter": *} Get access to some easter egg features link ink injection. |
|
| 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 get |
True if empty, false otherwise |
|
| public |
loader: * |
|
| public |
|
|
| public |
Pen color used only for pending stroke |
|
| public |
Current model |
|
| public |
Notify delay timer |
|
| public set |
Set the pen style |
|
| public get |
Get the pen style |
|
| public set |
penStyleClasses(penStyleClasses: String): * Set the pen style |
|
| public get |
Get the pen style |
|
| public get |
Get a PNG image data url from the data model |
|
| public get |
Return the position of the cursor identifying the current state in the internal iink undo/redo stack. |
|
| 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 |
smartGuide: * |
|
| public get |
Get current stroker |
|
| public get |
Get the theme |
|
| public set |
Set the theme |
|
| public |
|
|
| public |
|
|
| public get |
undoStackIndex: Number: * The number of operations that it is currently possible to undo. |
|
Method Summary
| Public Methods | ||
| public |
clear() Clear the output and the recognition result. |
|
| public |
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 |
Import content. |
|
| public |
Handle a pointer down |
|
| public |
pointerEvents(events: PointerEvents) pointer events |
|
| 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 |
setThemeForFont(lang: *) Set the theme (font family, font size and line height) depending on the language |
|
| public |
undo() Undo the last action. |
|
| public |
Wait for idle state. |
|
Public Constructors
Public Members
public get configuration: Configuration: * source
Get the current recognition parameters
Return:
| Configuration |
public set configuration(configuration: Configuration): * source
Set the recognition parameters WARNING : Need to fire a clear if user have already input some strokes.
public get eastereggs: {inkImporter: inkImporter}: {"inkImporter": *} source
Get access to some easter egg features link ink injection. Use at your own risk (less tested and may be removed without notice).
public error: * source
public loader: * source
public localPenStyle: * source
public get possibleUndoCount: Number: * source
Return the position of the cursor identifying the current state in the internal iink undo/redo stack.
public smartGuide: * source
public undoRedoContext: * source
public undoRedoManager: * source
Public Methods
public convert(conversionState: string) source
Convert the current content
Params:
| Name | Type | Attribute | Description |
| conversionState | string |
|
public export_(requestedMimeTypes: Array<String>) source
Explicitly ask to perform an export. You have to listen to events to get the content as this function is non blocking and does not have a return type.
public import_(data: Blob | *, mimetype: String) source
Import content.
Params:
| Name | Type | Attribute | Description |
| data | Blob | * | Data to import |
|
| mimetype | String |
|
Mimetype of the data, needed if data is not a Blob |
public pointerDown(point: {x: Number, y: Number, t: Number}, pointerType: String, pointerId: String) source
Handle a pointer down
public pointerEvents(events: PointerEvents) source
pointer events
Params:
| Name | Type | Attribute | Description |
| events | PointerEvents |
public resize() source
Function to call when the dom element link to the current ink paper has been resize.
public setThemeForFont(lang: *) source
Set the theme (font family, font size and line height) depending on the language
Params:
| Name | Type | Attribute | Description |
| lang | * |