Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Fractalis
fractal.js
Commits
3936a6da
Commit
3936a6da
authored
Jun 13, 2018
by
Sascha Herzinger
Browse files
Fixed crosshair bug in volcanoplot
parent
fd53f669
Pipeline
#5381
passed with stages
in 6 minutes and 21 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/vue/charts/Survivalplot.vue
View file @
3936a6da
...
...
@@ -38,6 +38,7 @@
</control-panel>
<svg
:height=
"height"
:width=
"width"
>
<g
:transform=
"`translate($
{margin.left}, ${margin.top})`">
<rect
:width=
"padded.width"
:height=
"padded.height"
style=
"opacity: 0"
></rect>
<html2svg
:right=
"padded.width"
>
<draggable>
<div
class=
"fjs-legend"
>
...
...
src/vue/components/Crosshair.vue
View file @
3936a6da
...
...
@@ -27,13 +27,13 @@
},
mounted
()
{
this
.
$el
.
parentNode
.
addEventListener
(
'
mousemove
'
,
this
.
setMousePos
)
this
.
$el
.
parentNode
.
addEventListener
(
'
mouse
ent
er
'
,
()
=>
{
this
.
mouseWithin
=
true
})
this
.
$el
.
parentNode
.
addEventListener
(
'
mouse
leave
'
,
()
=>
{
this
.
mouseWithin
=
false
})
this
.
$el
.
parentNode
.
addEventListener
(
'
mouse
ov
er
'
,
()
=>
{
this
.
mouseWithin
=
true
})
this
.
$el
.
parentNode
.
addEventListener
(
'
mouse
out
'
,
()
=>
{
this
.
mouseWithin
=
false
})
},
beforeDestroy
()
{
this
.
$el
.
parentNode
.
removeEventListener
(
'
mousemove
'
,
this
.
setMousePos
)
this
.
$el
.
parentNode
.
removeEventListener
(
'
mouse
ent
er
'
,
()
=>
{
this
.
mouseWithin
=
true
})
this
.
$el
.
parentNode
.
removeEventListener
(
'
mouse
leave
'
,
()
=>
{
this
.
mouseWithin
=
false
})
this
.
$el
.
parentNode
.
removeEventListener
(
'
mouse
ov
er
'
,
()
=>
{
this
.
mouseWithin
=
true
})
this
.
$el
.
parentNode
.
removeEventListener
(
'
mouse
out
'
,
()
=>
{
this
.
mouseWithin
=
false
})
},
methods
:
{
setMousePos
(
event
)
{
...
...
Write
Preview
Supports
Markdown
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!
Cancel
Please
register
or
sign in
to comment