Function: renameNode()
function renameNode(
layout,
oldId,
newId
): Layout;
Rename a node in every view (e.g. after a table was renamed in the DBML). Returns a new layout. Edge entries whose ref id has the renamed table as an endpoint are re-keyed too, so manual edge routing survives the rename. If a view already has an entry under the new id, the renamed entry replaces it.
Parameters
layout
oldId
string
newId
string