Skip to main content

components_ClusterNodeContainer._internal_

perfect-graph / Modules / components/ClusterNodeContainer / <internal>

Namespace: <internal>#

components/ClusterNodeContainer.

Table of contents#

Type aliases#

Variables#

Type aliases#

BoundingBox#

Ƭ BoundingBox: Object

Type declaration#

NameType
heightnumber
widthnumber
xnumber
ynumber

Defined in#

type/index.ts:87


Cluster#

Ƭ Cluster: Object

Type declaration#

NameTypeDescription
childClusterIdsstring[]Member child cluster ids
idstring-
idsstring[]Member node ids
namestringCluster name or label
position?PositionCluster node position
visible?boolean-

Defined in#

type/index.ts:450


CytoscapeEvent#

Ƭ CytoscapeEvent: keyof typeof CYTOSCAPE_EVENT

Defined in#

type/index.ts:382


EdgeData#

Ƭ EdgeData: Object

Type declaration#

NameTypeDescription
data?anyEdge data
idstringEdge id for cytoscape
sourcestringEdge source id for cytoscape
targetstringEdge target id for cytoscape

Defined in#

type/index.ts:195


EdgeElement#

Ƭ EdgeElement: EdgeSingular

Defined in#

type/index.ts:173


EdgeElementSettings#

Ƭ EdgeElementSettings: Object

Type declaration#

NameTypeDescription
filteredbooleanEdge is filtered by given filter function
hoveredbooleanHovered state
nodeFilteredbooleanEdge's source or target node is filtered
visibilityObjectVisibility tracking object
visibility.nodeVisibleboolean-

Defined in#

type/index.ts:95


ElementConfig#

Ƭ ElementConfig<T>: Object

Type parameters#

NameType
TNodeElement | EdgeElement

Type declaration#

NameTypeDescription
filterElementFilterOption<T>Filter config data
renderEventsCytoscapeEvent[]When events are triggered, the element will be rerendered.

Defined in#

type/index.ts:398


ElementContext#

Ƭ ElementContext<T>: Object

Cytoscape element context

Type parameters#

NameType
TNodeElementSettings | EdgeElementSettings

Type declaration#

NameType
settingsT
onPositionChange() => void
render(callback?: () => void) => void

Defined in#

type/index.ts:81


ElementFilterOption#

Ƭ ElementFilterOption<E>: Object

Type parameters#

Name
E

Type declaration#

NameTypeDescription
settingsObjectSettings for filtered elements
settings.opacitynumber-
test?(params: { element: E ; item: NodeData | EdgeData }) => boolean-

Defined in#

type/index.ts:384


GraphRef#

Ƭ GraphRef: Object

Type declaration#

NameTypeDescription
appPIXI.ApplicationPIXI instance
cyCoreCytoscape instance
viewportViewportRefPIXI Viewport instance

Defined in#

type/index.ts:716


NodeConfig#

Ƭ NodeConfig: { position?: Position ; view: { fill: { default: number ; edgeSelected: number ; hovered: number ; selected: number } ; height: number ; labelVisible: boolean ; radius: number ; width: number } } & ElementConfig<NodeElement>

Defined in#

type/index.ts:408


NodeContext#

Ƭ NodeContext: ElementContext<NodeElementSettings> & { boundingBox: BoundingBox ; element: NodeElement }

Defined in#

type/index.ts:132


NodeData#

Ƭ NodeData: Object

Type declaration#

NameTypeDescription
data?anyNode data
idstringNode id for cytoscape
position?PositionNode initial position

Defined in#

type/index.ts:180


NodeElement#

Ƭ NodeElement: NodeSingular

Defined in#

type/index.ts:174


NodeElementSettings#

Ƭ NodeElementSettings: Object

Type declaration#

NameTypeDescription
filteredbooleanNode is filtered by given filter function
hoveredbooleanHovered state
visibilityObjectVisibility tracking object
visibility.clusterboolean-

Defined in#

type/index.ts:115


RenderClusterNode#

Ƭ RenderClusterNode<Additional>: (c: { config: NodeConfig ; context: NodeContext ; element: NodeElement ; item: Cluster } & RenderElementParams & Additional) => React.ReactElement

Type parameters#

NameType
Additionalextends Record<string, any> = {}

Type declaration#

â–¸ (c): React.ReactElement

Parameters#
NameType
c{ config: NodeConfig ; context: NodeContext ; element: NodeElement ; item: Cluster } & RenderElementParams & Additional
Returns#

React.ReactElement

Defined in#

type/index.ts:313


RenderElementParams#

Ƭ RenderElementParams: Object

Edge or Node render element function

Type declaration#

NameTypeDescription
cyCoreRelated cytoscape instance
graphRefReact.RefObject<GraphRef>Related graph instance ref
themeTheme-

Defined in#

type/index.ts:222


ViewportRef#

Ƭ ViewportRef: ViewportType

Defined in#

type/index.ts:714


ViewportType#

Ƭ ViewportType: PIXI.DisplayObject & ViewportNative & { clickEvent: any ; hitArea: BoundingBox ; isClick: boolean ; oldQualityLevel: number ; qualityLevel: number }

Defined in#

type/index.ts:692

Variables#

CYTOSCAPE_EVENT#

• CYTOSCAPE_EVENT: Object

Type declaration#

NameType
data"data"
mouseout"mouseout"
mouseover"mouseover"
position"position"
select"select"
selectEdge"selectEdge"
selectNode"selectNode"
unselect"unselect"
unselectEdge"unselectEdge"
unselectNode"unselectNode"

Defined in#

constants/index.tsx:170