devexpress-richedit
Version:
DevExpress Rich Text Editor is an advanced word-processing tool designed for working with rich text documents.
23 lines (22 loc) • 676 B
JavaScript
import { ColorHelper } from '../color/color';
import { BorderLineStyle } from './enums';
export class BorderBase {
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;
}
}
BorderBase.empty = new BorderBase(BorderLineStyle.None, 0, ColorHelper.AUTOMATIC_COLOR);