devexpress-richedit
Version:
DevExpress Rich Text Editor is an advanced word-processing tool designed for working with rich text documents.
11 lines (10 loc) • 463 B
JavaScript
import { LeafElementDestination } from '../destination';
export class ParagraphNumberingReferenceLevelDestination extends LeafElementDestination {
constructor(data, parentDestination) {
super(data);
this.parentDestination = parentDestination;
}
async processElementOpen(reader) {
this.parentDestination.listLevelIndex = Math.max(0, Math.min(8, this.data.readerHelper.getWpSTIntegerValue(reader, 'val', -1)));
}
}