Skip to content

Commit

Permalink
Cleanup unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
techniq committed Jan 7, 2025
1 parent 54561c0 commit 52de26e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/layerchart/src/lib/components/GeoPath.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,11 @@
import { cls } from '@layerstack/tailwind';
import { computedStyles } from '@layerstack/svelte-actions';
import { chartContext } from './ChartContext.svelte';
import { geoContext } from './GeoContext.svelte';
import type { TooltipContextValue } from './tooltip/TooltipContext.svelte';
import { curveLinearClosed, type CurveFactory, type CurveFactoryLineOnly } from 'd3-shape';
import { geoCurvePath } from '$lib/utils/geo.js';
import { clearCanvasContext, renderPathData } from '$lib/utils/canvas.js';
import { renderPathData } from '$lib/utils/canvas.js';
import { getCanvasContext } from './layout/Canvas.svelte';
export let geojson: GeoPermissibleObjects | null | undefined = undefined;
Expand Down Expand Up @@ -55,7 +54,6 @@
click: { geoPath: ReturnType<typeof geoCurvePath>; event: MouseEvent };
}>();
const { containerWidth, containerHeight, padding } = chartContext();
const geo = geoContext();
/**
Expand All @@ -79,7 +77,7 @@
render(ctx, { newGeoPath: () => geoCurvePath(_projection, curve) });
} else {
if (geojson) {
console.log('rendering', _styles.fill);
// console.log('rendering', _styles.fill);
const pathData = geoPath(geojson);
// renderPathData(ctx, pathData, { ..._styles, fill, stroke, strokeWidth });
renderPathData(ctx, pathData, { ..._styles });
Expand Down

0 comments on commit 52de26e

Please sign in to comment.