clear method
void
clear()
Clear out all references to any model data. This also clears out the UndoManager, so this operation is not undoable. This method is called by Diagram#clear; it does not notify any Diagrams or other listeners. This method does not unregister any Changed event listeners.
Instead of calling this method, you may prefer to set #nodeDataArray to an empty JavaScript Array. If this model is a GraphLinksModel, you would also want to set GraphLinksModel#linkDataArray to a separate empty JavaScript Array.
Implementation
void clear() {
_i4.callMethod(
this,
'clear',
[],
);
}