UNPKG

devexpress-richedit

Version:

DevExpress Rich Text Editor is an advanced word-processing tool designed for working with rich text documents.

13 lines (12 loc) 819 B
import { MapCreator } from '../../../../../../../../common/utils/map-creator'; import { StringMapUtils } from '@devexpress/utils/lib/utils/map/string'; import { RunPropertiesBaseDestination } from '../../../character-properties/run-properties-base-destination'; import { DefaultFontNameDestination } from './default-font-name-destination'; export class InnerDefaultRunPropertiesDestination extends RunPropertiesBaseDestination { get elementHandlerTable() { return InnerDefaultRunPropertiesDestination.handlerTable; } } InnerDefaultRunPropertiesDestination.handlerTable = new MapCreator(StringMapUtils.map(RunPropertiesBaseDestination.handlerTable, (e) => e)) .add('rFonts', (data) => new DefaultFontNameDestination(data, data.destinationStack.getThis().characterProperties)) .get();