Skip to content

Commit 13b35e8

Browse files
committed
fix (#10) fix bug with start depth and tree reset feature, fix few bugs with trees with uncompleted data add path from root to leaf feature
1 parent 04ddf05 commit 13b35e8

File tree

10 files changed

+1081
-2959
lines changed

10 files changed

+1081
-2959
lines changed

examples/CustomTreeExample.ipynb

Lines changed: 50 additions & 2789 deletions
Large diffs are not rendered by default.

examples/output.html

Lines changed: 376 additions & 0 deletions
Large diffs are not rendered by default.

examples/tree.html

Lines changed: 376 additions & 0 deletions
Large diffs are not rendered by default.

examples/treedata.json

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

supertree/js/style.css

Lines changed: 42 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,11 @@ option {
123123
}
124124

125125

126+
.st-svg-2 {
127+
width: 100%;
128+
}
129+
130+
126131

127132
.st-target {
128133
font-family: lato;
@@ -173,7 +178,7 @@ option {
173178
top: 0;
174179
width: 100%;
175180
height: 100%;
176-
overflow: auto;
181+
overflow: hidden;
177182
background-color: rgba(0, 0, 0, 0.7);
178183
}
179184

@@ -188,7 +193,7 @@ option {
188193
max-width: 90%;
189194
max-height: 90%;
190195
text-align: center;
191-
overflow: auto;
196+
overflow: hidden;
192197
position: absolute;
193198
top: 50%;
194199
left: 50%;
@@ -270,16 +275,37 @@ option {
270275

271276
}
272277

278+
.st-link{
279+
stroke: #555;
280+
}
273281

274-
.bold-link {
275-
background-color: #008CBA;
276-
color: white;
282+
#my-window {
283+
position: relative; /* Kluczowy krok: pozycjonowanie względem tego kontenera */
277284
}
278285

279-
.bold-link:hover {
280-
background-color: #007bb5;
286+
.st-side-panel {
287+
width: 300px;
288+
background-color: #f3f9fb;
289+
position: absolute;
290+
top: 0;
291+
right: -350px;
292+
padding: 10px;
293+
box-shadow: -2px 0 5px rgba(0,0,0,0.1);
294+
transition: right 0.3s ease;
295+
overflow: auto;
296+
max-height: 100vh;
281297
}
282298

299+
.st-side-panel.show {
300+
right: 0px; /* Panel pojawia się z prawej strony */
301+
}
302+
303+
/* Klasa, która ukryje panel */
304+
.st-side-panel.hide {
305+
right: -350px; /* Panel wraca do ukrycia */
306+
}
307+
308+
283309

284310
.st-openModal {
285311
background-color: #008CBA;
@@ -301,6 +327,15 @@ option {
301327
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
302328
}
303329

330+
.st-close-button {
331+
position: absolute;
332+
top: 10px;
333+
right: 15px;
334+
font-size: 24px;
335+
cursor: pointer;
336+
color: #000;
337+
}
338+
304339
.st-tree-div {
305340
flex-grow: 1;
306341
display: flex;

supertree/js/supertree.min.js

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

supertree/node.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def convert(value):
3636
),
3737
):
3838
return int(value)
39-
if isinstance(value, (np.float16, np.float32, np.float64, np.float128)):
39+
if isinstance(value, (np.float16, np.float32, np.float64) + (getattr(np, 'float128', ()),)):
4040
return float(value)
4141
if isinstance(value, np.ndarray):
4242
return [convert(item) for item in value.tolist()]

0 commit comments

Comments
 (0)