devexpress-richedit
Version:
DevExpress Rich Text Editor is an advanced word-processing tool designed for working with rich text documents.
12 lines (11 loc) • 607 B
JavaScript
import { __awaiter } from "tslib";
import { OpenXmlColorImportHelper } from '../../color/open-xml-color-import-helper';
import { LeafElementDestination } from '../destination';
export class BackgroundDestination extends LeafElementDestination {
processElementOpen(reader) {
return __awaiter(this, void 0, void 0, function* () {
this.documentModel.setPageColor(this.documentModel.cache.colorModelInfoCache.getItem(OpenXmlColorImportHelper.createColorModelInfo(this.data, reader, 'color')).
toRgb(this.data.documentModel.colorProvider));
});
}
}