Skip to main content

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​
ParameterTypeDefault value
engineanyundefined
fontRegistryFontRegistryundefined
listStyleSheetManagerIListStyleSheetManagerundefined
colorPreviewServiceIColorPreviewServiceundefined
colorParserIColorParserundefined
dpinumber72
Returns​

TextWhizzWrapper

Accessors​

colorPalette​
Get Signature​
get colorPalette(): IColorPalette;

Color palette.

Returns​

IColorPalette

Color palette.

Implementation of​

ITextEngineWrapper.colorPalette

cursorHandler​
Get Signature​
get cursorHandler(): ICursorHandler;

Handler for performing simple operations with the cursor.

Returns​

ICursorHandler

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​

ITextWhizzHolder.engine

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​

ITextWhizzInitData

Text item data for initialization.

Implementation of​

ITextWhizzHolder.initData

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​

IMetadataHandler

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​

ISelectionHandler

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​

IStyleHandler

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​

ITextHandler

Handler for performing simple operations with text content.

Implementation of​

ITextEngineWrapper.textHandler

textMeasurer​
Get Signature​
get textMeasurer(): ITextMeasurer;

Handler for measuring text.

Returns​

ITextMeasurer

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​

IUndoRedoHandler

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​
ParameterTypeDescription
textstringcustom text.
Returns​

ITextWhizzHolder

Implementation of​

ITextWhizzHolder.clone

initialize()​
initialize(itemData): void;

Initializes the text engine wrapper.

Parameters​
ParameterTypeDescription
itemDataITextWhizzInitDatatext item data for initialization.
Returns​

void

createException()​
static createException(engine, e): Exception;

Handles the exception of TextWhizz.

Parameters​
ParameterTypeDescription
engineanytext engine.
enumbernumber of TextWhizz exception.
Returns​

Exception

a handled exception with a name and description.

Was this page helpful?