svelteplot 0.4.8-pr-222.1 → 0.4.8-pr-225.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -88,31 +88,19 @@
|
|
|
88
88
|
</script>
|
|
89
89
|
|
|
90
90
|
<div
|
|
91
|
-
class={['tooltip', { hide: !datum }]}
|
|
91
|
+
class={['svelteplot-tooltip', { hide: !datum }]}
|
|
92
92
|
style:left="{tooltipX ? facetOffsetX + projectX('x', plot.scales, tooltipX) : 0}px"
|
|
93
93
|
style:top="{tooltipY ? facetOffsetY + projectY('y', plot.scales, tooltipY) : 0}px">
|
|
94
|
-
|
|
95
|
-
{@render children({ datum })}
|
|
96
|
-
</div>
|
|
94
|
+
{@render children({ datum })}
|
|
97
95
|
</div>
|
|
98
96
|
|
|
99
97
|
<style>
|
|
100
|
-
div.tooltip {
|
|
101
|
-
background: white;
|
|
102
|
-
background: var(--svelteplot-tooltip-bg);
|
|
103
|
-
border: 1px solid #ccc;
|
|
104
|
-
border-color: var(--svelteplot-tooltip-border);
|
|
105
|
-
font-size: 12px;
|
|
106
|
-
padding: 1ex 1em;
|
|
107
|
-
border-radius: 3px;
|
|
108
|
-
line-height: 1.2;
|
|
109
|
-
box-shadow:
|
|
110
|
-
rgba(50, 50, 93, 0.25) 0px 2px 5px -1px,
|
|
111
|
-
rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
|
|
98
|
+
div.svelteplot-tooltip {
|
|
112
99
|
position: absolute;
|
|
113
100
|
pointer-events: none;
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
101
|
+
|
|
102
|
+
&.hide {
|
|
103
|
+
display: none;
|
|
104
|
+
}
|
|
117
105
|
}
|
|
118
106
|
</style>
|