devexpress-richedit
Version:
DevExpress Rich Text Editor is an advanced word-processing tool designed for working with rich text documents.
20 lines (19 loc) • 750 B
JavaScript
import { MapCreator } from '../../../../../../common/utils/map-creator';
import { ElementDestination } from '../destination';
import { RelationDestination } from './relation-destination';
export class RelationshipsDestination extends ElementDestination {
get elementHandlerTable() {
return RelationshipsDestination.handlerTable;
}
static handlerTable = new MapCreator()
.add('Relationship', (data, _reader) => new RelationDestination(data, RelationshipsDestination.getThis(data).relations))
.get();
relations;
constructor(data, relations) {
super(data);
this.relations = relations;
}
static getThis(data) {
return data.destinationStack.getThis();
}
}