function svgCursor({ svg, hotspotX, hotspotY, }: { svg: string; hotspotX: number; hotspotY: number; }): string { return `url("data:image/svg+xml,${encodeURIComponent(svg)}") ${hotspotX} ${hotspotY}, crosshair`; } /** Hotspot is at the nib tip, which is where anchor points land. */ export const PEN_CURSOR = svgCursor({ svg: ` `, hotspotX: 1, hotspotY: 1, });