@manycore/custom-sdk 1.13.4 → 1.13.5-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/index.d.ts +14 -2
  2. package/index.js +18 -18
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -26,6 +26,7 @@ export declare class Application {
26
26
  private serviceMap;
27
27
  private sappSDK;
28
28
  constructor();
29
+ private startOnApiCalledEvent;
29
30
  /**
30
31
  * 判断当前是否在定制小程序下运行
31
32
  */
@@ -980,6 +981,7 @@ export declare class FittingDesignService extends BaseService {
980
981
 
981
982
  /**
982
983
  * 交接信息
984
+ * @vm-type UnknownType
983
985
  */
984
986
  export declare interface IBaseIntersected {
985
987
  /**
@@ -1033,6 +1035,7 @@ export declare class FittingDesignService extends BaseService {
1033
1035
 
1034
1036
  /**
1035
1037
  * 自定议参数
1038
+ * @vm-type IBzParamType
1036
1039
  */
1037
1040
  declare interface IBzParamModelLiteProperty<T extends number | string | boolean = string> {
1038
1041
  /**
@@ -2013,6 +2016,7 @@ export declare class FittingDesignService extends BaseService {
2013
2016
 
2014
2017
  /**
2015
2018
  * 模型的参数信息
2019
+ * @vm-type IParamType
2016
2020
  */
2017
2021
  declare interface IParamModelLiteParam<T = any> {
2018
2022
  /**
@@ -2085,13 +2089,21 @@ export declare class FittingDesignService extends BaseService {
2085
2089
  export declare interface IPlankArea {
2086
2090
  /**
2087
2091
  * 由板件原始轮廓数据解析出的所有路径
2092
+ * >包含一个外轮廓路径和任意个内部轮廓路径
2088
2093
  */
2089
2094
  paths: IPlankPath[];
2090
2095
 
2091
2096
  /**
2092
- * 对板件原始轮廓数据进行非直角端点处理、重合、偏移计算后的实际展示路径
2097
+ * 对板件原始轮廓数据进行非直角端点处理、重合、偏移计算后的实际展示路径,高亮时会将轮廓中心点放置到 (0, 0)
2098
+ * @param option.resetCenter 是否重置轮廓中心点为 (0, 0),默认为true
2099
+ * @param option.force 忽略计算缓存,同一个PlankArea对象,getRealPaths计算结果会被缓存,默认为false
2093
2100
  */
2094
- getRealPaths(): IPlankArea;
2101
+ getRealPaths(option?: { resetCenter?: boolean; force?: boolean }): IPlankArea;
2102
+
2103
+ /**
2104
+ * 获取外轮廓路径中心点坐标
2105
+ */
2106
+ getCenterPoint(): Number2_2;
2095
2107
  }
2096
2108
 
2097
2109
  /**