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
5dd5bff5
Commit
5dd5bff5
authored
Jun 07, 2019
by
Remi PLANEL
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change formatting
parent
642f6523
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
src/scripts/component/ruler/chromosome.ts
src/scripts/component/ruler/chromosome.ts
+4
-1
tests/brushable-chromosome.test.ts
tests/brushable-chromosome.test.ts
+3
-1
No files found.
src/scripts/component/ruler/chromosome.ts
View file @
5dd5bff5
...
...
@@ -58,7 +58,10 @@ export default function () {
.
select
<
SVGTextElement
>
(
"
.title > text
"
)
.
style
(
"
fill
"
,
"
black
"
)
.
style
(
"
font-family
"
,
"
monospace
"
)
.
attr
(
"
transform
"
,
d
=>
"
translate(
"
+
(
width
/
2
+
d
.
title
.
length
*
8
/
2
)
+
"
,20)
"
)
.
attr
(
"
transform
"
,
d
=>
"
translate(
"
+
(
width
/
2
+
d
.
title
.
length
*
8
/
2
)
+
"
,20)
"
)
.
text
(
d
=>
d
.
title
);
...
...
tests/brushable-chromosome.test.ts
View file @
5dd5bff5
...
...
@@ -26,7 +26,9 @@ describe("Test Chromosome Ruler", () => {
.
call
(
brushableChromosomeRulerComponent
,
1500
,
20
);
expect
(
container
.
html
()).
toBe
(
result
);
})
test
(
"
Test end event when selection bigger than max
"
,
()
=>
{
});
});
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