# hub-vizceral-react
**Repository Path**: mirrors_blackducksoftware/hub-vizceral-react
## Basic Information
- **Project Name**: hub-vizceral-react
- **Description**: No description available
- **Primary Language**: Unknown
- **License**: Apache-2.0
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2021-10-29
- **Last Updated**: 2025-09-14
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
## Vizceral
From [`src/vizceral.jsx`](src/vizceral.jsx)

This is a react wrapper around [Vizceral](https://github.com/Netflix/vizceral).
## Setup
1. Install package
`npm install vizceral-react --save`
2. import vizceral-react to start using
```js
import Vizceral from 'vizceral-react';
```
## Props
#### allowDraggingOfNodes
```js
// Default: false
allowDraggingOfNodes: Boolean
```
Nodes can be repositioned through dragging if and only if this is true.
#### connectionHighlighted
```js
// Default: () => {}
connectionHighlighted: Function
```
Callback for when a connection is highlighted. The highlighted connection is the only parameter.
#### definitions
```js
// Default: {}
definitions: Object
```
Object map of definitions. Refer to [github.com/Netflix/Vizceral/wiki/Configuration#definitions-for-data-to-display](https://github.com/Netflix/Vizceral/wiki/Configuration#definitions-for-data-to-display)
#### filters
```js
// Default: []
filters: Array
```
Array of filter definitions and current values to filter out nodes and connections. Refer to
[github.com/Netflix/Vizceral/wiki/Configuration#filters](https://github.com/Netflix/Vizceral/wiki/Configuration#filters)
#### match
```js
// Default: ''
match: String
```
A search string to highlight nodes that match
#### matchesFound
```js
// Default: () => {}
matchesFound: Function
```
Callback when nodes match the match string. The matches object { total, visible } is the only property.
#### modes
```js
modes: Object
```
Map of modes to mode type, e.g. { detailedNode: 'volume' }
#### nodeContextSizeChanged
```js
// Default: () => {}
nodeContextSizeChanged: Function
```
Callback for when the top level node context panel size changes. The updated dimensions is the only parameter.
#### nodeHighlighted
```js
// Default: () => {}
nodeHighlighted: Function
```
Callback for when an object is highlighted. The highlighted object is the only parameter.
`object.type` will be either 'node' or 'connection'
#### nodeUpdated
```js
// Default: () => {}
nodeUpdated:
```
#### objectHighlighted
```js
// Default: () => {}
objectHighlighted:
```
#### showLabels
```js
// Default: true
showLabels: Boolean
```
Whether or not to show labels on the nodes.
#### styles
```js
// Default: {}
styles: Object
```
Styles to override default properties.
#### targetFramerate
```js
// Default: null
targetFramerate: Number
```
Target framerate for rendering engine
#### traffic
```js
// Default: {}
traffic: Object
```
The traffic data. See [github.com/Netflix/Vizceral/wiki/How-to-Use#graph-data-format](https://github.com/Netflix/Vizceral/wiki/How-to-Use#graph-data-format) for specification.
#### view
```js
// Default: []
view:
```
#### viewChanged
```js
// Default: () => {}
viewChanged: Function
```
Callback for when the view changed. The view array is the only property.
#### viewUpdated
```js
// Default: () => {}
viewUpdated: Function
```
Callback for when the current view is updated.