Skip to content

Commit

Permalink
graph overview filter fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rrmerugu committed May 30, 2021
1 parent fa3a8a1 commit f06e835
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/settings/networkOptions.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const defaultOptions = {

layout: {
// randomSeed: 100,
hierarchical: false
hierarchical: true
},
physics: {
forceAtlas2Based: {
Expand All @@ -29,8 +29,8 @@ const defaultOptions = {
// timestep: 0.55,
stabilization: {
enabled: true,
updateInterval: 100,
iterations: 1000 // YMMV
// updateInterval: 100,
// iterations: 1000 // YMMV
},
minVelocity: undefined
// barnesHut: {
Expand Down Expand Up @@ -62,7 +62,7 @@ const defaultOptions = {
chosen: {
edge: function (values, id, selected, hovering) {
console.log("=====", id, selected, hovering);
values.width = 1.5 * 1.4;
values.width = values.width * 1.5;
}
},
selectionWidth: function (width) {
Expand Down
7 changes: 7 additions & 0 deletions src/web/viewlets/data-management/data-sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,13 @@ export default class DataSidebarViewlet extends DefaultRemoteComponent {

searchLabels(event) {
const label = event.target.value;
if (!label) {
this.setState({
filteredNodeStats: [],
filteredEdgeStats: []
})
return;
}
let reg = new RegExp(label.split('').join('\\w*').replace(/\W/, ""), 'i');
const _this = this;

Expand Down

0 comments on commit f06e835

Please sign in to comment.