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: BooleanNodes can be repositioned through dragging if and only if this is true.
// Default: {}
definitions: ObjectObject map of definitions. Refer to github.com/Netflix/Vizceral/wiki/Configuration#definitions-for-data-to-display.
// Default: []
filters: ArrayArray of filter definitions and current values to filter out nodes and connections. Refer to github.com/Netflix/Vizceral/wiki/Configuration#filters.
// Default: ''
match: StringA search string to highlight nodes that match.
modes: ObjectMap of modes to mode type, e.g. { detailedNode: 'volume' }.
objectHighlight: ObjectPass in an object to highlight.
// Default: true
showLabels: BooleanWhether or not to show labels on the nodes.
// Default: {}
styles: ObjectStyles to override default properties.
// Default: null
targetFramerate: NumberTarget framerate for rendering engine
// Default: {}
traffic: ObjectThe 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.