Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Fractalis
fractal.js
Commits
7c967715
Commit
7c967715
authored
Jul 11, 2017
by
Sascha Herzinger
Browse files
Fixed a little tooltip bug
parent
9f2ba86e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/vue/charts/CorrelationAnalysis.vue
View file @
7c967715
...
...
@@ -157,6 +157,7 @@
data
:
[]
}
,
selectedPoints
:
[],
tooltips
:
{
}
,
tweened
:
{
regLine
:
{
x1
:
0
,
x2
:
0
,
y1
:
0
,
y2
:
0
}
}
...
...
@@ -391,16 +392,14 @@
'
regLine
'
:
{
handler
:
function
(
newRegLine
)
{
TweenLite
.
to
(
this
.
tweened
.
regLine
,
0.5
,
newRegLine
)
if
(
typeof
this
.
tooltips
.
regLine
!==
'
undefined
'
)
{
this
.
tooltips
.
regLine
.
destroyAll
()
}
this
.
$nextTick
(()
=>
{
const
tip
=
tippy
(
'
.fjs-lin-reg-line:not([data-tooltipped])
'
,
{
this
.
tooltips
.
regLine
=
tippy
(
'
.fjs-lin-reg-line:not([data-tooltipped])
'
,
{
theme
:
'
light
'
,
arrow
:
true
,
followCursor
:
true
,
onShow
:
function
()
{
const
el
=
document
.
querySelector
(
'
.fjs-lin-reg-line[data-tooltipped]
'
)
const
popper
=
tip
.
getPopperElement
(
el
)
tip
.
update
(
popper
)
}
followCursor
:
true
}
)
}
)
}
...
...
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