From 1d43e3b47b7a17c0855d2719742ecfe0e73c7e05 Mon Sep 17 00:00:00 2001 From: ChenX Date: Tue, 6 Apr 2021 17:13:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=80=E5=8F=91:=E4=BF=AE=E5=A4=8D=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E7=9A=84api=E5=AF=BC=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/UI/Components/ToolBar/PropertiesPanel.tsx | 2 +- src/api.ts | 5 ++--- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index f7df7662c..3b0f82b11 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "dll": "webpack --config ./config/webpack.dll.ts", "build": "webpack --config ./config/webpack.prod.ts && ts-node ./utils/log.ts && ts-node ./utils/publish.ts", "api-test": "webpack --config ./config/webcadapi.umd.config.ts --display-modules", - "api": "rollup --config ./config/api.rollup.config.js", + "api": "rollup --config ./config/api.rollup.config.js && ts-node ./utils/replace_api_file.ts", "apid": "tsc --declaration --emitDeclarationOnly --declarationMap --declarationDir ./api/types --project apitsconfig.json", "rollup_api": "rollup --config ./config/ue4_api.rollup.config.js", "rollup_api_d": "tsc --declaration --emitDeclarationOnly --declarationMap --declarationDir ./ue4_api/types --project apitsconfig.json", diff --git a/src/UI/Components/ToolBar/PropertiesPanel.tsx b/src/UI/Components/ToolBar/PropertiesPanel.tsx index 42cf73d72..d6a5f724a 100644 --- a/src/UI/Components/ToolBar/PropertiesPanel.tsx +++ b/src/UI/Components/ToolBar/PropertiesPanel.tsx @@ -117,7 +117,7 @@ export class PropertiesPanel extends React.Component 参数:{(ents[0] as Curve).EndParam}
  • - 时针: {ents[0].IsClockWise ? "顺时针" : "逆时针"} + 时针: {(ents[0] as Curve).IsClockWise ? "顺时针" : "逆时针"}
  • } diff --git a/src/api.ts b/src/api.ts index 6a4a3807d..3609ca8ad 100644 --- a/src/api.ts +++ b/src/api.ts @@ -1,12 +1,11 @@ +export { IsRect } from "./Common/CurveUtils"; export * from "./DatabaseServices/CADFiler"; export * from "./DatabaseServices/Entity/Arc"; export * from "./DatabaseServices/Entity/Circle"; export * from "./DatabaseServices/Entity/Line"; export * from "./DatabaseServices/Entity/Polyline"; +export * from "./DatabaseServices/SplineConver2Polyline"; export * from "./GraphicsSystem/BoolOperateUtils"; export { FeedingToolPath } from "./GraphicsSystem/ToolPath/FeedingToolPath"; -export * from "./Add-on/testEntity/SimplifyPolyline"; -export { IsRect } from "./Common/CurveUtils"; export * from "./GraphicsSystem/ToolPath/VKnifToolPath"; export * from "./Production/Product"; -export * from "./DatabaseServices/SplineConver2Polyline";