Skip to content

Commit 44227d1

Browse files
Root node styling, other styles apply
1 parent c62adf8 commit 44227d1

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "iknow-entity-browser",
3-
"version": "0.2.2",
3+
"version": "0.2.3",
44
"description": "Visualizer for iKnow entities",
55
"main": "gulpfile.babel.js",
66
"scripts": {

src/static/js/model/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ function fold (tree) {
1717
tree.children.push({
1818
label: `${ rest.length } more`,
1919
type: "folder",
20+
edgeType: rest[0].edgeType,
2021
_children: rest,
2122
children: [],
2223
radius: 10,

src/static/scss/graph.scss

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@
1010

1111
.links line {
1212
&.similar {
13-
stroke: #70d9ff;
13+
stroke: #7ca1ff;
1414
}
1515
&.related {
16-
stroke: #ccc;
16+
stroke: #ffb840;
1717
}
1818
&.other {
19-
stroke: #c11;
19+
stroke: #bbb;
2020
}
2121
}
2222

@@ -35,13 +35,17 @@
3535
}
3636

3737
&.folder circle {
38-
fill: #b58aff;
38+
fill: #bbb;
3939
}
4040

4141
&.selected circle {
4242
stroke: #000;
4343
}
4444

45+
&.root circle {
46+
fill: #ffb840;
47+
}
48+
4549
text {
4650
text-anchor: middle;
4751
pointer-events: none;

0 commit comments

Comments
 (0)