UNPKG

devexpress-richedit

Version:

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

26 lines (25 loc) 712 B
import { ColorHelper } from '../color/color'; import { BorderLineStyle } from './enums'; export class BorderBase { static empty = new BorderBase(BorderLineStyle.None, 0, ColorHelper.AUTOMATIC_COLOR); style; width; color; static getEmpty() { return BorderBase.empty.clone(); } constructor(style, width, color) { this.style = style; this.width = width; this.color = color; } clone() { return new BorderBase(this.style, this.width, this.color); } equals(obj) { return obj && this.style == obj.style && this.width == obj.width && this.color == obj.color; } }