Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
Wiki
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jorge SOUSA
Wiki
Commits
dd87e524
Commit
dd87e524
authored
10 months ago
by
Remi PLANEL
Browse files
Options
Downloads
Patches
Plain Diff
remove x axis domain
parent
6152ec91
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
components/OperonStructure.vue
+19
-22
19 additions, 22 deletions
components/OperonStructure.vue
with
19 additions
and
22 deletions
components/OperonStructure.vue
+
19
−
22
View file @
dd87e524
...
...
@@ -14,12 +14,12 @@ const structureBasket = useStructuresBasket()
const
props
=
withDefaults
(
defineProps
<
Props
>
(),
{
genes
:
null
});
const
height
=
ref
<
number
>
(
1
5
0
)
const
height
=
ref
<
number
>
(
1
2
0
)
const
svgRef
=
ref
<
SVGElement
|
null
>
(
null
)
const
margin
=
ref
<
PlotMargin
>
({
marginTop
:
10
,
marginRight
:
7
,
marginBottom
:
3
0
,
marginBottom
:
4
0
,
marginLeft
:
7
,
})
...
...
@@ -124,19 +124,14 @@ function draw() {
gx
.
attr
(
"
transform
"
,
`translate(
${
marginLeft
}
,
${
toValue
(
height
)
+
5
}
)`
)
.
call
(
xAxis
)
.
selectAll
(
"
text
"
)
.
attr
(
"
transform
"
,
'
rotate(20)
'
)
.
attr
(
"
text-anchor
"
,
"
start
"
)
const
gxTitle
=
createOrSelect
(
gx
,
"
text
"
,
"
x-axis-title
"
)
gxTitle
.
attr
(
"
text-anchor
"
,
"
end
"
)
.
attr
(
"
fill
"
,
"
currentColor
"
)
gx
.
call
(
g
=>
g
.
select
(
"
.domain
"
)
.
remove
())
gxTitle
.
attr
(
"
x
"
,
toValue
(
computedPlotWidth
))
.
attr
(
"
y
"
,
-
10
)
.
selectAll
(
"
text
"
)
.
attr
(
"
transform
"
,
'
rotate(20)
'
)
.
attr
(
"
text-anchor
"
,
"
start
"
)
let
gGenes
=
createOrSelect
(
svg
,
"
g
"
,
"
genes
"
)
gGenes
...
...
@@ -160,18 +155,20 @@ function drawGenes(genesGroup: d3.Selection<SVGElement, any, SVGElement, any>) {
gGene
.
append
(
"
path
"
)
.
classed
(
"
gene
"
,
true
)
gGene
.
append
(
"
image
"
)
gGene
.
append
(
"
g
"
).
classed
(
"
img
"
,
true
).
append
(
"
image
"
)
.
on
(
"
mouseover
"
,
function
(
event
)
{
d3
.
select
(
event
.
srcElement
.
previousSibling
)
.
attr
(
"
stroke-width
"
,
4
)
.
attr
(
"
stroke
"
,
"
darkred
"
)
d3
.
select
(
event
.
srcElement
).
attr
(
"
cursor
"
,
"
pointer
"
)
const
target
=
d3
.
select
(
event
.
srcElement
.
parentElement
)
target
// .attr("stroke-width", 4)
// .attr("stroke", "darkred")
.
attr
(
"
cursor
"
,
"
pointer
"
)
})
.
on
(
"
mouseout
"
,
function
(
event
)
{
d3
.
select
(
event
.
srcElement
.
previousSibling
)
.
attr
(
"
stroke-width
"
,
0
)
.
attr
(
"
stroke
"
,
null
)
d3
.
select
(
event
.
srcElement
).
attr
(
"
cursor
"
,
"
unset
"
)
const
target
=
d3
.
select
(
event
.
srcElement
.
parentElement
)
target
// .attr("stroke-width", 0)
// .attr("stroke", null)
.
attr
(
"
cursor
"
,
"
unset
"
)
})
gGene
.
append
(
"
text
"
)
// .attr("fill", "white")
...
...
@@ -185,7 +182,7 @@ function drawGenes(genesGroup: d3.Selection<SVGElement, any, SVGElement, any>) {
exit
=>
exit
.
remove
()
)
genesSelection
.
attr
(
"
transform
"
,
d
=>
`translate(
${
d
.
x
}
, 0)`
)
genesSelection
.
select
(
"
image
"
)
genesSelection
.
select
(
"
g.img
"
).
select
(
"
image
"
)
.
attr
(
"
transform
"
,
d
=>
`translate(0,
${
toValue
(
yScale
)(
"
img
"
)}
)`
)
.
attr
(
"
href
"
,
d
=>
d
?.
structImg
??
null
)
.
attr
(
"
width
"
,
d
=>
d
.
width
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment