@manta-eu/react/screens/graph
Reference for @manta-eu/react/screens/graph as it is on main.
Type Aliases
GraphCanvasProps
GraphCanvasProps =
object
Properties
company
company:
string
graph
graph:
KnowledgeGraph
litIds
litIds:
ReadonlySet<string>
reducedMotion
reducedMotion:
boolean
selectedId
selectedId:
string|undefined
visibleLayers
visibleLayers:
ReadonlySet<GraphLayer>
GraphClassInput
GraphClassInput =
object
Properties
description?
optionaldescription?:string
href
href:
string
iri
iri:
string
label
label:
string
records
records:
number
vocabulary
vocabulary:
boolean
GraphEdge
GraphEdge =
object
Properties
from
from:
string
label
label:
string
to
to:
string
GraphLayer
GraphLayer =
"source"|"business"|"plan"|"vocabulary"
GraphLimits
GraphLimits =
object
Properties
classes
classes:
number
plans
plans:
number
vocabulary
vocabulary:
number
GraphNeighbor
GraphNeighbor =
object
Properties
incoming
incoming:
boolean
node
node:
GraphNode
relationship
relationship:
string
GraphNode
GraphNode =
object
Properties
accounts?
optionalaccounts?:number
connected?
optionalconnected?:boolean
count?
optionalcount?:number
description?
optionaldescription?:string
href
href:
string
id
id:
string
kind
kind:
string
label
label:
string
layer
layer:
GraphLayer
GraphPlanInput
GraphPlanInput =
object
Properties
description?
optionaldescription?:string
href
href:
string
iri
iri:
string
name
name:
string
system?
optionalsystem?:string
GraphScreenProps
GraphScreenProps =
object
Properties
renderCanvas?
optionalrenderCanvas?: (props) =>ReactNode
Parameters
props
Returns
ReactNode
GraphSystemInput
GraphSystemInput =
object
Properties
accounts
accounts:
number
classIris
classIris: readonly
string[]
href
href:
string
key
key:
string
label
label:
string
KnowledgeGraph
KnowledgeGraph =
object
Properties
edges
edges:
GraphEdge[]
nodes
nodes:
GraphNode[]
totals
totals:
object
layers
layers:
Record<GraphLayer,number>
plans
plans:
number
records
records:
number
sources
sources:
number
KnowledgeGraphInput
KnowledgeGraphInput =
object
Properties
classes
classes: readonly
GraphClassInput[]
planCount
planCount:
number
plans
plans: readonly
GraphPlanInput[]
records
records:
number
systems
systems: readonly
GraphSystemInput[]
KnowledgeGraphState
KnowledgeGraphState =
object
Properties
error
error:
string|undefined
graph
graph:
KnowledgeGraph
isLoading
isLoading:
boolean
Variables
defaultGraphLayers
constdefaultGraphLayers: readonlyGraphLayer[]
defaultGraphLimits
constdefaultGraphLimits:GraphLimits
graphLayerNames
constgraphLayerNames:Record<GraphLayer,string>
graphLayers
constgraphLayers: readonlyGraphLayer[]
graphNavId
constgraphNavId:"nav-graph"="nav-graph"
graphPath
constgraphPath:"/graph"="/graph"
Functions
classNodeId()
classNodeId(
iri):string
Parameters
iri
string
Returns
string
findNodes()
findNodes(
graph,query):GraphNode[]
Parameters
graph
query
string
Returns
graphDatastoreRoutes()
graphDatastoreRoutes(
props?):ReactNode
Parameters
props?
GraphScreenProps = {}
Returns
ReactNode
graphNavExtras()
graphNavExtras():
NavExtra[]
Returns
NavExtra[]
graphNodePath()
graphNodePath(
nodeId):string
Parameters
nodeId
string
Returns
string
GraphScreen()
GraphScreen(
props):Element
Parameters
props
Returns
Element
isGraphPath()
isGraphPath(
pathname):boolean
Parameters
pathname
string
Returns
boolean
knowledgeGraph()
knowledgeGraph(
input,limits?):KnowledgeGraph
Parameters
input
limits?
GraphLimits = defaultGraphLimits
Returns
neighborhoodOf()
neighborhoodOf(
graph,nodeId):Set<string>
Parameters
graph
nodeId
string | undefined
Returns
Set<string>
neighborsOf()
neighborsOf(
graph,nodeId):GraphNeighbor[]
Parameters
graph
nodeId
string
Returns
planNodeId()
planNodeId(
iri):string
Parameters
iri
string
Returns
string
recordsWords()
recordsWords(
count):string
Parameters
count
number
Returns
string
sourceNodeId()
sourceNodeId(
key):string
Parameters
key
string
Returns
string
useKnowledgeGraph()
useKnowledgeGraph():
KnowledgeGraphState