From ca1d41ecd1ad62fa7c1009f461c54a467c096566 Mon Sep 17 00:00:00 2001 From: Wouter Kayser Date: Mon, 19 May 2025 14:08:17 +0200 Subject: [PATCH] Fix type import Importing a type with the same name causes wrong types to be emitted. --- src/lib/marks/Line.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/marks/Line.svelte b/src/lib/marks/Line.svelte index 6b0156b9..9c54ffff 100644 --- a/src/lib/marks/Line.svelte +++ b/src/lib/marks/Line.svelte @@ -41,7 +41,7 @@ import MarkerPath from './helpers/MarkerPath.svelte'; import { getContext } from 'svelte'; import { resolveProp, resolveStyles } from '../helpers/resolve.js'; - import { line, type CurveFactory, type Line } from 'd3-shape'; + import { line, type CurveFactory, type Line as D3Line } from 'd3-shape'; import { geoPath } from 'd3-geo'; import callWithProps from '$lib/helpers/callWithProps.js'; import { maybeCurve } from '$lib/helpers/curves.js'; @@ -100,7 +100,7 @@ const { getPlotState } = getContext('svelteplot'); const plot = $derived(getPlotState()); - const linePath: Line = $derived( + const linePath: D3Line = $derived( plot.scales.projection && curve === 'auto' ? sphereLine(plot.scales.projection) : callWithProps(line, [], { pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy