fix: imports
This commit is contained in:
parent
28794fd9f0
commit
9dbd406c0e
|
|
@ -1,14 +1,13 @@
|
||||||
import { createSignal, For, Show, createMemo } from 'solid-js';
|
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 { generateTravelPaths, travelPathsToSvg } from '../../plotcutter/layout';
|
||||||
import { pts2plotter } from '../../plotcutter/plotter';
|
import { pts2plotter } from '../../plotcutter/plotter';
|
||||||
import type { CardPath } from '../../plotcutter';
|
import type { CardPath, CardShape } from '../../plotcutter/types';
|
||||||
import type { CardShape } from '../../plotcutter';
|
|
||||||
import {
|
import {
|
||||||
getCardShapePoints,
|
getCardShapePoints,
|
||||||
calculateCenter,
|
calculateCenter,
|
||||||
contourToSvgPath
|
contourToSvgPath
|
||||||
} from '../../plotcutter';
|
} from '../../plotcutter/contour';
|
||||||
|
|
||||||
export interface PltPreviewProps {
|
export interface PltPreviewProps {
|
||||||
/** PLT 文件内容 */
|
/** PLT 文件内容 */
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
import type { DeckStore } from './deckStore';
|
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 {
|
export interface PltExportData {
|
||||||
/** 单页满排时的 PLT 代码 */
|
/** 单页满排时的 PLT 代码 */
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,8 @@
|
||||||
import type { CardShape, ContourPoint, ContourBounds } from './types';
|
import type { CardShape, ContourPoint, ContourBounds } from './types';
|
||||||
|
|
||||||
|
// 重新导出类型以兼容旧导入路径
|
||||||
|
export type { CardShape, ContourPoint, ContourBounds };
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 生成带圆角的矩形轮廓点
|
* 生成带圆角的矩形轮廓点
|
||||||
* @param width 矩形宽度
|
* @param width 矩形宽度
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue