Skip to content

Commit 91be9b3

Browse files
committed
WIP: implement family-tree
1 parent 61bdcb3 commit 91be9b3

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

demo/family-tree.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
}
1414
.orgchart .node {
1515
padding: 3px 8px;
16-
/* box-shadow: rgba(99, 99, 99, 0.3) 0px 2px 8px 0px; */
1716
}
1817
.orgchart .node .avatar {
1918
border-radius: 60px;
@@ -65,7 +64,7 @@
6564
{ 'id': '12', 'name': 'Pang Pang', 'title': 'Wife', 'gender': 'female', 'outsider': true,
6665
'children': [
6766
[{ 'id': '7', 'name': 'Dan Dan', 'title': 'Daughter', 'gender': 'female' }],
68-
// [{ 'id': '6', 'name': 'Er Dan', 'title': 'Daughter', 'gender': 'female' }],
67+
[{ 'id': '6', 'name': 'Er Dan', 'title': 'Daughter', 'gender': 'female' }],
6968
]
7069
},
7170
{ 'id': '5', 'name': 'Hei Hei', 'title': 'Me', 'gender': 'male' },

dist/css/jquery.orgchart.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -565,6 +565,10 @@
565565
border-width: 0 0 2px 2px;
566566
}
567567

568+
.orgchart .nodes.vertical .hierarchy:only-child::before {
569+
width: 11px;
570+
}
571+
568572
.orgchart .nodes.vertical .hierarchy::before {
569573
top: 0px;
570574
height: 26px; /* node top half's height(25px) + half width of line */

dist/css/jquery.orgchart.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/css/jquery.orgchart.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -565,6 +565,10 @@
565565
border-width: 0 0 2px 2px;
566566
}
567567

568+
.orgchart .nodes.vertical .hierarchy:only-child::before {
569+
width: 11px;
570+
}
571+
568572
.orgchart .nodes.vertical .hierarchy::before {
569573
top: 0px;
570574
height: 26px; /* node top half's height(25px) + half width of line */

0 commit comments

Comments
 (0)