Skip to content

Commit

Permalink
fix: eslint rule fix
Browse files Browse the repository at this point in the history
  • Loading branch information
LunaticMuch committed Apr 30, 2024
1 parent 9411acc commit dbddf53
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/graph/viewport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ export class Viewport {
onSelectEdge: (id: string) => void;

$svg: SVGSVGElement;
// @ts-expect-error FIXME
// @ts-expect-error FIXME: Consider for future fix
zoomer: Instance;
// @ts-expect-error FIXME
// @ts-expect-error FIXME: Consider for future fix
offsetLeft: number;
// @ts-expect-error FIXME
// @ts-expect-error FIXME: Consider for future fix
offsetTop: number;
// @ts-expect-error FIXME
// @ts-expect-error FIXME: Consider for future fix
maxZoom: number;
resizeObserver: ResizeObserver;

Expand Down Expand Up @@ -262,17 +262,17 @@ function isControl(elem: SVGElement) {
}

function edgeSource(edge: SVGElement): SVGElement {
// @ts-expect-error FIXME
// @ts-expect-error FIXME: Consider for future fix
return document.getElementById(edge['dataset']['from']);
}

function edgeTarget(edge: SVGElement): SVGElement {
// @ts-expect-error FIXME
// @ts-expect-error FIXME: Consider for future fix
return document.getElementById(edge['dataset']['to']);
}

function edgeFrom(id: string): SVGElement {
// @ts-expect-error FIXME
// @ts-expect-error FIXME: Consider for future fix
return document.querySelector(`.edge[data-from='${id}']`);
}

Expand Down

0 comments on commit dbddf53

Please sign in to comment.