Skip to content

Commit

Permalink
Fix pnpm check errors/warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
techniq committed Jan 7, 2025
1 parent 0f531c6 commit 2a1dccf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/layerchart/src/lib/components/GeoTile.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
});
}
$: if (renderContext === 'canvas' && url) {
$: if (renderContext === 'canvas') {
canvasContext.register(render);
}
Expand Down
3 changes: 1 addition & 2 deletions packages/layerchart/src/lib/components/Points.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import Link from './Link.svelte';
import { isScaleBand, type AnyScale } from '../utils/scales.js';
import { getCanvasContext } from './layout/Canvas.svelte';
import { DEFAULT_FILL, renderPathData } from '../utils/canvas.js';
import { renderPathData } from '../utils/canvas.js';
import { circlePath } from 'layerchart/utils/path.js';
const context = chartContext() as any;
Expand Down Expand Up @@ -47,7 +47,6 @@
export let fill: string | undefined = undefined;
export let stroke: string | undefined = undefined;
export let strokeWidth: number | string | undefined = undefined;
/** Render to canvas */
export let render: ((ctx: CanvasRenderingContext2D, points: Point[]) => any) | undefined =
Expand Down
2 changes: 1 addition & 1 deletion packages/layerchart/src/lib/utils/canvas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export const DEFAULT_FILL = 'rgb(0, 0, 0)';
export function renderPathData(
canvasCtx: CanvasRenderingContext2D,
pathData: string | null | undefined,
styles: Partial<CSSStyleDeclaration> = {}
styles: Partial<Omit<CSSStyleDeclaration, 'strokeWidth'> & { strokeWidth?: number | string }> = {}
) {
const path = new Path2D(pathData ?? '');

Expand Down

0 comments on commit 2a1dccf

Please sign in to comment.