Type Alias DataContextType
DataContextType: { addToGraph: ((graphUpdates: { entities: GraphDataSpec["entities"]; relationships: (EntityEdge | EdgeSpec)[]; },
getAllEdgesConnected?: boolean,
forceUpdateEntities?: boolean) => void); graph: GraphDataSpec; removeFromGraph: ((graph: GraphDataSpec) => void); selection: GraphDataSpec; setGraph: ((newGraph: { entities: GraphDataSpec["entities"]; relationships: (EntityEdge | EdgeSpec)[]; }) => void); setSelection: React.Dispatch<React.SetStateAction<GraphDataSpec>>; setSuperSelection: React.Dispatch<React.SetStateAction<{ entityIds: string[]; relationshipIds: string[]; }>>; superSelection: { entityIds: string[]; relationshipIds: string[]; }; }
DataContext is a container for abstract data of graph/selection/superselection. It serves like as a bridge between ontology data and linkchart. Eg. linkchart uses selection, if it updates, it will cause linkchart to select elements with same ids to be selected on it. Vice versa, if user clicks on linkchart, it will call setSelection and thus here via setEntities/setEdges from RightSidebarControllerContext anything what uses it (eg Rightsidebar or Superselect table) will be updated.