refactor: better preview

This commit is contained in:
hypercross 2026-03-15 15:44:35 +08:00
parent 2e03ef3591
commit 2d4b719e10
2 changed files with 3 additions and 4 deletions

View File

@ -154,9 +154,8 @@ export function PltPreview(props: PltPreviewProps) {
<path <path
d={travelPathD()} d={travelPathD()}
fill="none" fill="none"
stroke="#999" stroke="#f884"
stroke-width="0.2" stroke-width="1"
stroke-dasharray="2 2"
/> />
</Show> </Show>

View File

@ -203,7 +203,7 @@ export function getPointOnPath(points: [number, number][], progress: number): [n
* @param points * @param points
* @param closed * @param closed
*/ */
export function contourToSvgPath(points: [number, number][], closed = true): string { export function contourToSvgPath(points: [number, number][], closed = false): string {
if (points.length === 0) return ''; if (points.length === 0) return '';
const [startX, startY] = points[0]; const [startX, startY] = points[0];