devexpress-richedit
Version:
DevExpress Rich Text Editor is an advanced word-processing tool designed for working with rich text documents.
14 lines (13 loc) • 604 B
JavaScript
import { RtfDrawingKeywords } from '../../../../translation-table/rtf-drawing-keywords';
export class RtfDrawingObjectRunPropertiesHelper {
constructor(shapeProperties) {
this.shapeProperties = shapeProperties;
}
applyProperties(anchorInfo) {
this.applyTextWrap(anchorInfo);
}
applyTextWrap(anchorInfo) {
this.shapeProperties.trySetProperty(RtfDrawingKeywords.ShapeWrapTextType, value => anchorInfo.wrapType = value);
this.shapeProperties.trySetProperty(RtfDrawingKeywords.ShapeWrapTextSide, value => anchorInfo.wrapSide = value);
}
}