Vizceral Vue Implementation ispired by vizceral-react
Install package:
npm install vizceral-vue --save
Import component and start using it:
import VizceralVue from 'vizceral-vue';
Vue.use(VizceralVue);
Example of usage:
import Vizceral from 'vizceral-vue';
<vizceral-vue
:traffic="trafficData"
:view="currentView"
:showLabels="showLabels"
:physicsOptions="physicsOptions"
:filters="filters"
:matchesFound="matchesFound"
:match="searchTerm"
:modes="modes"
:definitions="definitions"
:styles="styles"
@connectionHighlighted="onConnectionHighlighted"
@nodeHighlighted="onNodeHighlighted"
@nodeUpdated="onNodeUpdated"
@nodeContextSizeChanged="onNodeContextSizeChanged"
@matchesFound="onMatchesFound"
@objectHighlighted="onObjectHighlighted"
@objectHovered="onObjectHovered"
/>
// Default: false
allowDraggingOfNodes: Boolean
Nodes can be repositioned through dragging if and only if this is true.
// Default: {}
definitions: Object
Object map of definitions. Refer to github.com/Netflix/Vizceral/wiki/Configuration#definitions-for-data-to-display.
// 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.
// Default: ''
match: String
A search string to highlight nodes that match.
modes: Object
Map of modes to mode type, e.g. { detailedNode: 'volume' }
.
objectHighlight: Object
Pass in an object to highlight.
// Default: true
showLabels: Boolean
Whether or not to show labels on the nodes.
// Default: {}
styles: Object
Styles to override default properties.
// Default: null
targetFramerate: Number
Target framerate for rendering engine
// Default: {}
traffic: Object
The traffic data. See github.com/Netflix/Vizceral/wiki/How-to-Use#graph-data-format for specification.
Event fired when a connection is highlighted. The highlighted connection is the only parameter.
Event fired when an object is highlighted. The highlighted object is the only parameter.
object.type
will be either node
or connection
.
Event fired when a node is updated.
Event fired when the top level node context panel size changes. The updated dimensions is the only parameter.
Event fired when nodes match the match string. The matches object { total, visible }
is the only parameter.
Event fired when an object is highlighted.
Event fired when an object is hovered.