devexpress-richedit
Version:
DevExpress Rich Text Editor is an advanced word-processing tool designed for working with rich text documents.
12 lines (11 loc) • 487 B
JavaScript
import { LeafElementDestination } from '../destination';
export class ParagraphNumberingReferenceLevelDestination extends LeafElementDestination {
parentDestination;
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)));
}
}