Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Fractalis
fractal.js
Commits
d060555c
Commit
d060555c
authored
May 17, 2017
by
Sascha Herzinger
Browse files
Some more namespace fixing
parent
88ab546f
Changes
2
Show whitespace changes
Inline
Side-by-side
src/assets/svgtooltip.sass
View file @
d060555c
.d3-tip
.
fjs-
d3-tip
z-index
:
9999
line-height
:
1
padding
:
12px
...
...
@@ -10,7 +10,7 @@
font-family
:
Roboto
,
sans-serif
/* Creates a small triangle extender for the tooltip */
.d3-tip
:after
.
fjs-
d3-tip
:after
box-sizing
:
border-box
display
:
inline
font-size
:
16px
...
...
@@ -21,7 +21,7 @@
pointer-events
:
none
/* Northward tooltips */
.d3-tip.n
:after
.
fjs-
d3-tip.n
:after
content
:
"\25BC"
margin
:
-1px
0
0
0
top
:
100%
...
...
@@ -29,14 +29,14 @@
text-align
:
center
/* Eastward tooltips */
.d3-tip.e
:after
.
fjs-
d3-tip.e
:after
content
:
"\25C0"
margin
:
-4px
0
0
0
top
:
50%
left
:
-12px
/* Southward tooltips */
.d3-tip.s
:after
.
fjs-
d3-tip.s
:after
content
:
"\25B2"
margin
:
0
0
1px
0
top
:
-8px
...
...
@@ -44,7 +44,7 @@
text-align
:
center
/* Westward tooltips */
.d3-tip.w
:after
.
fjs-
d3-tip.w
:after
content
:
"\25B6"
margin
:
-4px
0
0
-1px
top
:
50%
...
...
src/components/mixins/v-svgtooltip.js
View file @
d060555c
...
...
@@ -2,7 +2,7 @@ import * as d3 from 'd3'
import
d3Tip
from
'
d3-tip
'
;
d3
.
tip
=
d3Tip
const
tip
=
d3
.
tip
()
.
attr
(
'
class
'
,
'
d3-tip
'
)
.
attr
(
'
class
'
,
'
fjs-
d3-tip
'
)
.
offset
([
-
15
,
0
])
.
html
(
d
=>
{
let
html
=
''
...
...
@@ -16,7 +16,7 @@ const tip = d3.tip()
export
default
{
mounted
()
{
d3
.
select
(
'
svg
'
).
call
(
tip
)
d3
.
select
(
this
.
$el
.
querySelector
(
'
svg
'
)
)
.
call
(
tip
)
},
directives
:
{
svgtooltip
:
{
...
...
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