devexpress-richedit
Version:
DevExpress Rich Text Editor is an advanced word-processing tool designed for working with rich text documents.
12 lines (11 loc) • 604 B
JavaScript
import { CharacterPropertyDescriptor } from '../../../../../../../common/model/character/character-property-descriptor';
import { ShadingHelper } from '../../shading/shading-helper';
import { CharacterFormattingLeafElementDestination } from '../character-formatting-leaf-element-destination';
export class CharacterShadingDestination extends CharacterFormattingLeafElementDestination {
async processElementOpen(reader) {
this.setProperty(ShadingHelper.getShadingValue(this.data, reader));
}
getDescriptor() {
return CharacterPropertyDescriptor.shadingInfo;
}
}