Manta Developers
GitHub
Menu

@manta-eu/react/graph/types

Reference for @manta-eu/react/graph/types as it is on main.

Type Aliases

EntityView

EntityView = ComponentType<EntityViewProps>


EntityViewProps

EntityViewProps = object

Properties

data

data: RDFNodeData

onContextMenu?

optional onContextMenu?: (e) => void

Parameters
e

React.MouseEvent

Returns

void

ringColor?

optional ringColor?: string

selected?

optional selected?: boolean


LayoutDirection

LayoutDirection = "LR" | "TB"


NodeProperty

NodeProperty = object

Properties

iri?

optional iri?: string

key

key: string

label?

optional label?: string

value

value: string

valueScale?

optional valueScale?: number


NodeRelation

NodeRelation = object

Properties

predicate

predicate: IRI

target

target: IRI


OnNodeContextMenu

OnNodeContextMenu = (nodeId, nodeLabel, x, y) => void

Parameters

nodeId

string

nodeLabel

string

x

number

y

number

Returns

void


RDFNode

RDFNode = Node<RDFNodeData, RDFNodeType>


RDFNodeData

RDFNodeData = object

Indexable

[key: string]: unknown

Properties

actionShape?

optional actionShape?: IRI

childIds

childIds: string[]

connectionCount

connectionCount: number

depth

depth: number

hasChildren

hasChildren: boolean

isCollapsed

isCollapsed: boolean

isHub

isHub: boolean

jsonLd

jsonLd: Record<string, unknown>

label

label: string

parentId?

optional parentId?: string

properties

properties: NodeProperty[]

relations?

optional relations?: NodeRelation[]

type?

optional type?: string


RDFNodeType

RDFNodeType = "rdfNode" | "typeSummaryNode"


SampleInstance

SampleInstance = object

Properties

id

id: string

label

label: string

properties

properties: NodeProperty[]

type

type: string