Этот коммит содержится в:
higsch 2020-10-10 01:12:39 +02:00
родитель a95ee44d0a
Коммит b702d8a762
7 изменённых файлов: 11 добавлений и 11 удалений

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Просмотреть файл

@ -1,7 +1,7 @@
import SpotTooltip from '../components/SpotTooltip.svelte';
import { get } from 'svelte/store';
export function spottooltipable(node, { data, target, left, top }) {
export function spottooltipable(node, { data, target, top }) {
let component;
function handleMouseleave(e) {
@ -12,10 +12,10 @@ export function spottooltipable(node, { data, target, left, top }) {
function handleMouseenter(e) {
if (!target) return;
const elem = get(target);
const { left } = node.getBoundingClientRect();
component = new SpotTooltip({
target: elem,
target,
props: {
data,
x: left,

Просмотреть файл

@ -49,7 +49,7 @@
.spot-tooltip {
margin-right: 1rem;
position: absolute;
z-index: 10000;
z-index: 1000000000;
}
.content {

Просмотреть файл

@ -15,7 +15,7 @@
<g class="spot"
transform="translate({$x} 0)"
use:spottooltipable={{data: spot, target: drawWrapper, left: $x, top: $panelHeight + 20}}>
use:spottooltipable={{data: spot, target: $drawWrapper, top: $panelHeight + 20}}>
<circle cx="0" cy="0" r="5"></circle>
<circle class="bait" cx="0" cy="0" r="10"></circle>
</g>