@manycore/custom-sdk 3.1.9 → 3.1.11

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 +51 -1
  2. package/index.js +19 -19
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -1004,6 +1004,15 @@ export declare enum EProductDirection {
1004
1004
  XZ = 2
1005
1005
  }
1006
1006
 
1007
+ /**
1008
+ * 基准建模平面
1009
+ */
1010
+ export declare enum EReferencePlane {
1011
+ XY = "XY",
1012
+ YZ = "YZ",
1013
+ XZ = "XZ"
1014
+ }
1015
+
1007
1016
  /**
1008
1017
  * | z
1009
1018
  * | / y
@@ -1628,6 +1637,10 @@ export declare class FittingDesignService extends BaseService {
1628
1637
  * 当五金与板面产生的交接信息,为板面的部分,则为true
1629
1638
  */
1630
1639
  needGroove?: boolean;
1640
+ /**
1641
+ * 商品建模基准平面,商品层必定存在
1642
+ */
1643
+ referencePlane?: EReferencePlane;
1631
1644
  }
1632
1645
 
1633
1646
  /**
@@ -1909,11 +1922,16 @@ export declare class FittingDesignService extends BaseService {
1909
1922
  * 主要用于BOM
1910
1923
  */
1911
1924
  finishedProfile?: IBomProfile;
1925
+ /**
1926
+ * 基准建模平面
1927
+ * 商品层必填
1928
+ */
1929
+ referencePlane?: EReferencePlane;
1912
1930
  }
1913
1931
 
1914
1932
  export declare interface IFittingViewerDataWithOptionalId {
1915
1933
  /**
1916
- * 关联的商品id
1934
+ * 关联的模型id
1917
1935
  */
1918
1936
  modelId: string;
1919
1937
  /**
@@ -1929,6 +1947,11 @@ export declare class FittingDesignService extends BaseService {
1929
1947
  * 主要用于BOM
1930
1948
  */
1931
1949
  finishedProfile?: IBomProfile;
1950
+ /**
1951
+ * 基准建模平面
1952
+ * 商品层必填
1953
+ */
1954
+ referencePlane?: EReferencePlane;
1932
1955
  }
1933
1956
 
1934
1957
  /** 模型关联户型数据 */
@@ -2017,6 +2040,33 @@ export declare class FittingDesignService extends BaseService {
2017
2040
  * @default 0.05
2018
2041
  */
2019
2042
  thicknessFilterFaceDistTol?: number;
2043
+ /**
2044
+ * 元件匹配
2045
+ * 仅命中条件的元件会被输出,可与`productDirectionConfig`配合使用
2046
+ * 与`computeModelTypes`,`products`,`direction`字段互斥
2047
+ */
2048
+ primitiveMatch?: {
2049
+ /**
2050
+ * 品类
2051
+ */
2052
+ extendedCode: string[];
2053
+ };
2054
+ /**
2055
+ * 商品配置
2056
+ * 用于定义符合条件的商品以及商品的建模平面
2057
+ * 可与`primitiveMatch`配合使用
2058
+ * 与`computeModelTypes`,`products`,`direction`字段互斥
2059
+ */
2060
+ productDirectionConfig?: {
2061
+ /**
2062
+ * 品类
2063
+ */
2064
+ extendedCode: string;
2065
+ /**
2066
+ * 建模平面
2067
+ */
2068
+ referencePlane: EReferencePlane;
2069
+ }[];
2020
2070
  }
2021
2071
 
2022
2072
  /**