Skip to content

Commit 0852332

Browse files
authored
Merge pull request #43 from WAKayser/Fix-Line-Component-Type
Fix type import for Line
2 parents f55f704 + ca1d41e commit 0852332

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/marks/Line.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
import MarkerPath from './helpers/MarkerPath.svelte';
4242
import { getContext } from 'svelte';
4343
import { resolveProp, resolveStyles } from '../helpers/resolve.js';
44-
import { line, type CurveFactory, type Line } from 'd3-shape';
44+
import { line, type CurveFactory, type Line as D3Line } from 'd3-shape';
4545
import { geoPath } from 'd3-geo';
4646
import callWithProps from '$lib/helpers/callWithProps.js';
4747
import { maybeCurve } from '$lib/helpers/curves.js';
@@ -100,7 +100,7 @@
100100
const { getPlotState } = getContext<PlotContext>('svelteplot');
101101
const plot = $derived(getPlotState());
102102
103-
const linePath: Line<ScaledDataRecord> = $derived(
103+
const linePath: D3Line<ScaledDataRecord> = $derived(
104104
plot.scales.projection && curve === 'auto'
105105
? sphereLine(plot.scales.projection)
106106
: callWithProps(line, [], {

0 commit comments

Comments
 (0)
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