fix: imports

This commit is contained in:
hypercross 2026-03-15 09:33:39 +08:00
parent 28794fd9f0
commit 9dbd406c0e
3 changed files with 8 additions and 5 deletions

View File

@ -1,14 +1,13 @@
import { createSignal, For, Show, createMemo } from 'solid-js';
import { parsePlt, extractCutPaths, parsedPltToSvg } from '../../plotcutter/parser';
import { parsePlt, extractCutPaths } from '../../plotcutter/parser';
import { generateTravelPaths, travelPathsToSvg } from '../../plotcutter/layout';
import { pts2plotter } from '../../plotcutter/plotter';
import type { CardPath } from '../../plotcutter';
import type { CardShape } from '../../plotcutter';
import type { CardPath, CardShape } from '../../plotcutter/types';
import {
getCardShapePoints,
calculateCenter,
contourToSvgPath
} from '../../plotcutter';
} from '../../plotcutter/contour';
export interface PltPreviewProps {
/** PLT 文件内容 */

View File

@ -1,5 +1,6 @@
import type { DeckStore } from './deckStore';
import { calculateSinglePageLayout, generateTravelPaths, pts2plotter } from '../../../plotcutter';
import { calculateSinglePageLayout, generateTravelPaths } from '../../../plotcutter/layout';
import { pts2plotter } from '../../../plotcutter/plotter';
export interface PltExportData {
/** 单页满排时的 PLT 代码 */

View File

@ -1,5 +1,8 @@
import type { CardShape, ContourPoint, ContourBounds } from './types';
// 重新导出类型以兼容旧导入路径
export type { CardShape, ContourPoint, ContourBounds };
/**
*
* @param width