components_ClusterNodeContainer._internal_
perfect-graph / Modules / components/ClusterNodeContainer / <internal>
#
Namespace: <internal>components/ClusterNodeContainer.
#
Table of contents#
Type aliases- BoundingBox
- Cluster
- CytoscapeEvent
- EdgeData
- EdgeElement
- EdgeElementSettings
- ElementConfig
- ElementContext
- ElementFilterOption
- GraphRef
- NodeConfig
- NodeContext
- NodeData
- NodeElement
- NodeElementSettings
- RenderClusterNode
- RenderElementParams
- ViewportRef
- ViewportType
#
Variables#
Type aliases#
BoundingBoxƬ BoundingBox: Object
#
Type declarationName | Type |
---|---|
height | number |
width | number |
x | number |
y | number |
#
Defined in#
ClusterƬ Cluster: Object
#
Type declarationName | Type | Description |
---|---|---|
childClusterIds | string [] | Member child cluster ids |
id | string | - |
ids | string [] | Member node ids |
name | string | Cluster name or label |
position? | Position | Cluster node position |
visible? | boolean | - |
#
Defined in#
CytoscapeEventƬ CytoscapeEvent: keyof typeof CYTOSCAPE_EVENT
#
Defined in#
EdgeDataƬ EdgeData: Object
#
Type declarationName | Type | Description |
---|---|---|
data? | any | Edge data |
id | string | Edge id for cytoscape |
source | string | Edge source id for cytoscape |
target | string | Edge target id for cytoscape |
#
Defined in#
EdgeElementƬ EdgeElement: EdgeSingular
#
Defined in#
EdgeElementSettingsƬ EdgeElementSettings: Object
#
Type declarationName | Type | Description |
---|---|---|
filtered | boolean | Edge is filtered by given filter function |
hovered | boolean | Hovered state |
nodeFiltered | boolean | Edge's source or target node is filtered |
visibility | Object | Visibility tracking object |
visibility.nodeVisible | boolean | - |
#
Defined in#
ElementConfigƬ ElementConfig<T
>: Object
#
Type parametersName | Type |
---|---|
T | NodeElement | EdgeElement |
#
Type declarationName | Type | Description |
---|---|---|
filter | ElementFilterOption <T > | Filter config data |
renderEvents | CytoscapeEvent [] | When events are triggered, the element will be rerendered. |
#
Defined in#
ElementContextƬ ElementContext<T
>: Object
Cytoscape element context
#
Type parametersName | Type |
---|---|
T | NodeElementSettings | EdgeElementSettings |
#
Type declarationName | Type |
---|---|
settings | T |
onPositionChange | () => void |
render | (callback? : () => void ) => void |
#
Defined in#
ElementFilterOptionƬ ElementFilterOption<E
>: Object
#
Type parametersName |
---|
E |
#
Type declarationName | Type | Description |
---|---|---|
settings | Object | Settings for filtered elements |
settings.opacity | number | - |
test? | (params : { element : E ; item : NodeData | EdgeData }) => boolean | - |
#
Defined in#
GraphRefƬ GraphRef: Object
#
Type declarationName | Type | Description |
---|---|---|
app | PIXI.Application | PIXI instance |
cy | Core | Cytoscape instance |
viewport | ViewportRef | PIXI Viewport instance |
#
Defined in#
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#
NodeContextƬ NodeContext: ElementContext
<NodeElementSettings
> & { boundingBox
: BoundingBox
; element
: NodeElement
}
#
Defined in#
NodeDataƬ NodeData: Object
#
Type declarationName | Type | Description |
---|---|---|
data? | any | Node data |
id | string | Node id for cytoscape |
position? | Position | Node initial position |
#
Defined in#
NodeElementƬ NodeElement: NodeSingular
#
Defined in#
NodeElementSettingsƬ NodeElementSettings: Object
#
Type declarationName | Type | Description |
---|---|---|
filtered | boolean | Node is filtered by given filter function |
hovered | boolean | Hovered state |
visibility | Object | Visibility tracking object |
visibility.cluster | boolean | - |
#
Defined in#
RenderClusterNodeƬ RenderClusterNode<Additional
>: (c
: { config
: NodeConfig
; context
: NodeContext
; element
: NodeElement
; item
: Cluster
} & RenderElementParams
& Additional
) => React.ReactElement
#
Type parametersName | Type |
---|---|
Additional | extends Record <string , any > = {} |
#
Type declarationâ–¸ (c
): React.ReactElement
#
ParametersName | Type |
---|---|
c | { config : NodeConfig ; context : NodeContext ; element : NodeElement ; item : Cluster } & RenderElementParams & Additional |
#
ReturnsReact.ReactElement
#
Defined in#
RenderElementParamsƬ RenderElementParams: Object
Edge or Node render element function
#
Type declarationName | Type | Description |
---|---|---|
cy | Core | Related cytoscape instance |
graphRef | React.RefObject <GraphRef > | Related graph instance ref |
theme | Theme | - |
#
Defined in#
ViewportRefƬ ViewportRef: ViewportType
#
Defined in#
ViewportTypeƬ ViewportType: PIXI.DisplayObject
& ViewportNative
& { clickEvent
: any
; hitArea
: BoundingBox
; isClick
: boolean
; oldQualityLevel
: number
; qualityLevel
: number
}
#
Defined in#
Variables#
CYTOSCAPE_EVENT• CYTOSCAPE_EVENT: Object
#
Type declarationName | Type |
---|---|
data | "data" |
mouseout | "mouseout" |
mouseover | "mouseover" |
position | "position" |
select | "select" |
selectEdge | "selectEdge" |
selectNode | "selectNode" |
unselect | "unselect" |
unselectEdge | "unselectEdge" |
unselectNode | "unselectNode" |