Skip to content

splitEntityRelationshipModel

splitEntityRelationshipModel(model, options?): object

Defined in: entityRelationshipDiagram.ts:165

Split when connected in-project objects exceed maxObjects, excluding hub edges when finding components.

Expects a model from buildEntityRelationshipModel (sorted arrays) and preserves its order. Unrelated in-project objects are listed separately. Non-hub objects connected only to hubs (“satellites”) share one diagram per hub (their lexicographically first hub). Hub-to-hub edges attach to diagrams containing either hub; any edge still unplaced forms diagrams by connectivity.

EntityRelationshipModel

ErdOptions

object

diagrams: ErdDiagram[]

unrelatedObjects: string[]