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
d={travelPathD()}
fill="none"
stroke="#999"
stroke-width="0.2"
stroke-dasharray="2 2"
stroke="#f884"
stroke-width="1"
/>
</Show>

View File

@ -203,7 +203,7 @@ export function getPointOnPath(points: [number, number][], progress: number): [n
* @param points
* @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 '';
const [startX, startY] = points[0];