Skip to content

Commit 45474da

Browse files
author
Shirsh Zibbu
committed
cleanup
1 parent 5d85d8b commit 45474da

File tree

5 files changed

+253
-203
lines changed

5 files changed

+253
-203
lines changed

index.html

+30-16
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
box-sizing: border-box;
1313

1414
font-family: monospace;
15-
font-size: 18px;
15+
font-size: 16px;
1616
}
1717

1818
body {
@@ -25,19 +25,22 @@
2525
left: 0;
2626
}
2727

28-
#tree path {
28+
/* links */
29+
#tree .links {
2930
fill: none;
3031
stroke: lightgray;
3132
stroke-width: 2;
3233
}
3334

34-
#tree path.focused {
35+
/* links to focused nodes */
36+
#tree .links.focused {
3537
stroke: tomato;
3638
}
3739

40+
/* nodes */
3841
#tree .nodes circle {
3942
cursor: pointer;
40-
fill: skyblue;
43+
fill: lightskyblue;
4144
stroke: none;
4245
}
4346

@@ -59,7 +62,7 @@
5962
/* collapsed nodes */
6063
#tree .nodes.collapsed circle {
6164
fill: whitesmoke;
62-
stroke: skyblue;
65+
stroke: lightskyblue;
6366
}
6467

6568
#tree .nodes.collapsed text {
@@ -70,9 +73,10 @@
7073
/* focused nodes */
7174
#tree .nodes.focused circle {
7275
stroke: orangered;
73-
fill: skyblue;
76+
fill: lightskyblue;
7477
}
7578

79+
/* search */
7680
#search {
7781
position: fixed;
7882
top: 20px;
@@ -81,42 +85,52 @@
8185
z-index: 1;
8286

8387
max-width: 300px;
88+
max-height: calc(100% - 3 * 20px);
8489

8590
background: white;
8691
border-radius: 2px;
87-
box-shadow: 0px 0px 0px 1px lightsteelblue;
88-
overflow: hidden;
92+
box-shadow: 0px 0px 0px 1px lightblue;
93+
overflow-y: auto;
8994
}
9095

9196
#search:focus-within {
92-
box-shadow: 0 0 5px 3px lightsteelblue;
97+
box-shadow: 0 0 5px 2px lightblue;
9398
}
9499

95-
#searchInput {
100+
#search input {
96101
width: 100%;
97-
padding: 5px 5px 5px 10px;
102+
padding: 10px;
98103

99104
border: none;
100105
box-shadow: 0px 1px 0px 0px whitesmoke;
101106
outline: none;
102107
}
103108

104-
#searchOptions div {
105-
padding: 5px 10px;
109+
#search div {
110+
padding: 10px;
106111

107-
box-shadow: 0 -1px 0 0 whitesmoke;
112+
box-shadow: 10px -1px 0 0 whitesmoke;
113+
cursor: pointer;
108114
overflow: hidden;
109115
text-overflow: ellipsis;
110116
}
117+
118+
#search div:hover {
119+
background: gainsboro;
120+
}
121+
122+
#search div.choice {
123+
background: gainsboro;
124+
font-weight: bold;
125+
}
111126
</style>
112127
</head>
113128

114129
<body>
115130
<svg id="tree"></svg>
116131

117132
<div id="search">
118-
<input type="text" placeholder="Search" id="searchInput" />
119-
<div id="searchOptions"></div>
133+
<input type="text" placeholder="Search" />
120134
</div>
121135
</body>
122136

package.json

+3-6
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,12 @@
1010
},
1111
"dependencies": {
1212
"@types/d3": "^5.7.2",
13-
"@types/d3-selection-multi": "^1.0.7",
14-
"@types/dom-inputevent": "^1.0.5",
15-
"@types/node": "^12.7.1",
16-
"d3": "^5.9.7",
17-
"d3-selection-multi": "^1.0.1",
13+
"@types/node": "^12.7.3",
14+
"d3": "^5.11.0",
1815
"gh-pages": "^2.1.1",
1916
"parcel-bundler": "^1.12.3",
2017
"ts-node": "^8.3.0",
21-
"typescript": "^3.5.3"
18+
"typescript": "^3.6.2"
2219
},
2320
"prettier": {
2421
"printWidth": 100,

parse-ctors.core.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { parseModule, pruneTree, sortTree, trees } from './parse-ctors'
22
import { writeJSON } from './utils'
3-
console.log(process.env.NODE_ENV);
43

54
const blacklist = [
65
// node globals

0 commit comments

Comments
 (0)