TextWhizzWrapper
Classes
TextWhizzWrapper
A text engine wrapper for editing and measuring text.
Remarks
The TextWhizz is used as a text engine.
Implements
Constructors
Constructor
new TextWhizzWrapper(
engine,
fontRegistry,
listStyleSheetManager,
colorPreviewService,
colorParser,
dpi?): TextWhizzWrapper;
Parameters
| Parameter | Type | Default value |
|---|---|---|
engine | any | undefined |
fontRegistry | FontRegistry | undefined |
listStyleSheetManager | IListStyleSheetManager | undefined |
colorPreviewService | IColorPreviewService | undefined |
colorParser | IColorParser | undefined |
dpi | number | 72 |
Returns
Accessors
colorPalette
Get Signature
get colorPalette(): IColorPalette;
Color palette.
Returns
Color palette.
Implementation of
ITextEngineWrapper.colorPalette
cursorHandler
Get Signature
get cursorHandler(): ICursorHandler;
Handler for performing simple operations with the cursor.
Returns
Handler for performing simple operations with the cursor.
Implementation of
ITextEngineWrapper.cursorHandler
engine
Get Signature
get engine(): any;
Text engine.
Returns
any
Text engine.
Implementation of
engineHandler
Get Signature
get engineHandler(): TextHandler;
The engine's text handler.
Returns
TextHandler
The engine's text handler.
Implementation of
ITextWhizzHolder.engineHandler
initData
Get Signature
get initData(): ITextWhizzInitData;
Text item data for initialization.
Returns
Text item data for initialization.
Implementation of
isInitialized
Get Signature
get isInitialized(): boolean;
Indicates if the text engine wrapper is initialized and ready to work.
Returns
boolean
metadataHandler
Get Signature
get metadataHandler(): IMetadataHandler;
Handler for performing simple operations with text metadata.
Returns
Handler for performing simple operations with text metadata.
Implementation of
ITextEngineWrapper.metadataHandler
selectionHandler
Get Signature
get selectionHandler(): ISelectionHandler;
Handler for performing simple operations with text selection.
Returns
Handler for performing simple operations with text selection.
Implementation of
ITextEngineWrapper.selectionHandler
styleHandler
Get Signature
get styleHandler(): IStyleHandler;
Handler for performing simple operations with paragraph and character styles.
Returns
Handler for performing simple operations with paragraph and character styles.
Implementation of
ITextEngineWrapper.styleHandler
textHandler
Get Signature
get textHandler(): ITextHandler;
Handler for performing simple operations with text content.
Returns
Handler for performing simple operations with text content.
Implementation of
ITextEngineWrapper.textHandler
textMeasurer
Get Signature
get textMeasurer(): ITextMeasurer;
Handler for measuring text.
Returns
Handler for measuring text.
Implementation of
ITextEngineWrapper.textMeasurer
undoRedoHandler
Get Signature
get undoRedoHandler(): IUndoRedoHandler;
Handler for performing operations with redoing and undoing of actions.
Returns
Handler for performing operations with redoing and undoing of actions.
Implementation of
ITextEngineWrapper.undoRedoHandler
Methods
clone()
clone(text): ITextWhizzHolder;
Clones an existing TextWhizz wrapper using custom text.
Parameters
| Parameter | Type | Description |
|---|---|---|
text | string | custom text. |
Returns
Implementation of
initialize()
initialize(itemData): void;
Initializes the text engine wrapper.
Parameters
| Parameter | Type | Description |
|---|---|---|
itemData | ITextWhizzInitData | text item data for initialization. |
Returns
void
createException()
static createException(engine, e): Exception;
Handles the exception of TextWhizz.
Parameters
| Parameter | Type | Description |
|---|---|---|
engine | any | text engine. |
e | number | number of TextWhizz exception. |
Returns
Exception
a handled exception with a name and description.