UNPKG

devexpress-richedit

Version:

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

25 lines (24 loc) 1.27 kB
import { LayoutAnchoredObjectBox } from './layout-anchored-object-box'; import { LayoutBoxType } from './layout-box'; export class LayoutAnchoredPictureBox extends LayoutAnchoredObjectBox { constructor(characterProperties, colorInfo, belongsToSubDocId, anchorInfo, shape, objectId, rotationInRadians, cacheInfo, descrtiption) { super(characterProperties, colorInfo, belongsToSubDocId, anchorInfo, shape, objectId, rotationInRadians); this.cacheInfo = cacheInfo; this.descrtiption = descrtiption; this.isLoaded = this.cacheInfo.isLoaded; } getType() { return LayoutBoxType.AnchorPicture; } equals(obj) { return super.equals(obj) && this.cacheInfo.equals(obj.cacheInfo) && this.isLoaded == obj.isLoaded; } clone() { const newObject = new LayoutAnchoredPictureBox(this.characterProperties, this.colorInfo, this.belongsToSubDocId, this.anchorInfo, this.shape, this.objectId, this.rotationInRadians, this.cacheInfo, this.descrtiption); newObject.copyFrom(this); return newObject; } renderGetContent(renderer) { return renderer.renderPictureBoxContent(this.createSize(), this.cacheInfo, this.hyperlinkTip, this.descrtiption); } }