-
Notifications
You must be signed in to change notification settings - Fork 232
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/new config static graph with drag and drop (#217)
* Add staticGraphWithDragAndDrop to graph.config * Add stat dataset * Code new functionality for property staticGraphWithDragAndDrop
- Loading branch information
1 parent
b431b82
commit ca581d9
Showing
5 changed files
with
101 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
module.exports = { | ||
height: 400, | ||
width: 800, | ||
nodeHighlightBehavior: true, | ||
linkHighlightBehavior: true, | ||
staticGraphWithDragAndDrop: true, | ||
node: { | ||
fontSize: 12, | ||
highlightFontSize: 12, | ||
highlightFontWeight: "bold", | ||
highlightStrokeColor: "blue", | ||
labelProperty: "name", | ||
size: 500, | ||
strokeWidth: 2, | ||
}, | ||
link: { | ||
highlightColor: "blue", | ||
renderLabel: true, | ||
highlightFontWeight: "bold", | ||
semanticStrokeWidth: true, | ||
fontSize: 12, | ||
}, | ||
d3: { | ||
gravity: -400, | ||
linkLength: 180, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
module.exports = { | ||
links: [ | ||
{ | ||
source: 1, | ||
target: 2, | ||
label: "A-B", | ||
}, | ||
{ | ||
source: 1, | ||
target: 3, | ||
label: "A-C", | ||
}, | ||
{ | ||
source: 1, | ||
target: 4, | ||
label: "A-D", | ||
}, | ||
{ | ||
source: 3, | ||
target: 4, | ||
label: "C-D", | ||
}, | ||
], | ||
nodes: [ | ||
{ | ||
id: 1, | ||
name: "A", | ||
x: 50, | ||
y: 310, | ||
}, | ||
{ | ||
id: 2, | ||
name: "B", | ||
x: 300, | ||
y: 50, | ||
}, | ||
{ | ||
id: 3, | ||
name: "C", | ||
x: 400, | ||
y: 100, | ||
}, | ||
{ | ||
id: 4, | ||
name: "D", | ||
x: 400, | ||
y: 200, | ||
}, | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters