GraphLayerView
The view for the dia.GraphLayer model. It inherits from dia.LayerView and is responsible for inserting cell views into the correct place in the DOM. This layer is created by the dia.Paper automatically when new GraphLayer is added to the Graph. You can access it using the paper.getLayerView() method.
const graphLayerView = paper.getLayerView('myGraphLayer');
Methods
insertCellView()
graphLayerView.insertCellView(cellView: dia.CellView): void;
Insert the given cell view into this layer. It uses paper's sorting option to determine where the cell view is inserted.
sort()
graphLayerView.sort(): void;
Sort all cell views belonging to the cell layer using paper's sorting option.
sortExact()
graphLayerView.sortExact(): void;
Sort all cell views belonging to the cell layer exactly in the order they are defined in the model.
Properties
paper
paper: dia.Paper;
A reference to the Paper instance this layer view belongs to.