DefaultStyleExtractor
Classes
DefaultStyleExtractor
Implements
Constructors
Constructor
new DefaultStyleExtractor(colorParser): DefaultStyleExtractor;
Parameters
| Parameter | Type |
|---|---|
colorParser | IColorParser |
Returns
Methods
extract()
extract(
markup,
colorPalette,
defaultFontSize,
listStyleSheetManager): IStyleExtractResult;
Extracts default paragraph and span styles.
Parameters
| Parameter | Type | Description |
|---|---|---|
markup | string | source text. |
colorPalette | IColorPalette | list of used colors. |
defaultFontSize | number | default text font size. |
listStyleSheetManager | IListStyleSheetManager | list style sheet manager. |
Returns
IStyleExtractResult that contains text without extracted default paragraph and span styles.