UNPKG

devexpress-richedit

Version:

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

17 lines (16 loc) 494 B
export class ValueInfo { constructor(unit = '', value) { this.unit = unit; this.isValidNumber = value !== undefined; if (this.isValidNumber) this.value = value; } get isEmpty() { return this.equals(ValueInfo.empty); } equals(obj) { return obj && obj.isValidNumber == this.isValidNumber && obj.value == this.value && obj.unit == this.unit; } } ValueInfo.empty = new ValueInfo();