Skip to content
Snippets Groups Projects

Resolve "[MIN-262] Delay in showing pin and annotations after clicking elements"

10 files
+ 209
73
Compare changes
  • Side-by-side
  • Inline
Files
10
/* eslint-disable no-magic-numbers */
import { bioEntityContentFixture } from '@/models/fixtures/bioEntityContentsFixture';
import { bioEntityFixture } from '@/models/fixtures/bioEntityFixture';
import { findClosestBioEntityPoint } from './findClosestBioEntityPoint';
describe('findClosestBioEntityPoint', () => {
const bioEntityContents = [
{
...bioEntityContentFixture,
bioEntity: { ...bioEntityContentFixture.bioEntity, x: 10, y: 10, width: 20, height: 20 },
...bioEntityFixture,
x: 10,
y: 10,
width: 20,
height: 20,
},
{
...bioEntityContentFixture,
bioEntity: { ...bioEntityContentFixture.bioEntity, x: 50, y: 50, width: 30, height: 30 },
...bioEntityFixture,
x: 50,
y: 50,
width: 30,
height: 30,
},
];
Loading