Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
bioviz-js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Remi PLANEL
bioviz-js
Commits
ed0b9112
Commit
ed0b9112
authored
Jun 11, 2019
by
Remi PLANEL
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set node separation to 1
parent
b74d8faa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/scripts/layout/phylogram.ts
src/scripts/layout/phylogram.ts
+3
-3
No files found.
src/scripts/layout/phylogram.ts
View file @
ed0b9112
...
...
@@ -82,7 +82,7 @@ export default function () {
kx
=
dx
/
(
rightNode
.
x
+
s
+
tx
),
ky
=
dy
/
(
deepestNode
.
data
.
lengthFromRoot
||
1
);
console
.
log
(
nodeSize
);
if
(
nodeSize
)
{
pointPhylotreeRoot
.
eachBefore
(
sizeNode
)
}
else
{
...
...
@@ -119,8 +119,8 @@ export default function () {
}
function
defaultSeparation
(
a
:
HierarchyNode
<
PhyloTreeNode
>
|
null
,
b
:
HierarchyNode
<
PhyloTreeNode
>
|
null
)
{
//
return 1;
return
(
a
&&
b
&&
a
.
parent
===
b
.
parent
)
?
1
:
2
;
return
1
;
//
return (a && b && a.parent === b.parent) ? 1 : 2;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment