@manycore/custom-sdk 1.13.5-beta.0 → 1.13.6-alpha.1
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.
- package/index.d.ts +120 -107
- package/index.js +15 -15
- package/package.json +1 -8
package/index.d.ts
CHANGED
|
@@ -4,16 +4,6 @@ import { IServClientService } from 'servkit';
|
|
|
4
4
|
import { Number2 as Number2_2 } from '@manycore/custom-miniapp-sdk';
|
|
5
5
|
import { ServService } from 'servkit';
|
|
6
6
|
|
|
7
|
-
declare interface AMap<K, V> {
|
|
8
|
-
clear(): void;
|
|
9
|
-
delete(key: K): boolean;
|
|
10
|
-
forEach(callbackfn: (value: V, key: K, map: AMap<K, V>) => void, thisArg?: any): void;
|
|
11
|
-
get(key: K): V | undefined;
|
|
12
|
-
has(key: K): boolean;
|
|
13
|
-
set(key: K, value: V): this;
|
|
14
|
-
readonly size: number;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
7
|
/**
|
|
18
8
|
* 对接2.0主应用
|
|
19
9
|
*
|
|
@@ -31,6 +21,11 @@ export declare class Application {
|
|
|
31
21
|
* 判断当前是否在定制小程序下运行
|
|
32
22
|
*/
|
|
33
23
|
isInCustomMiniAppMode(): boolean;
|
|
24
|
+
/**
|
|
25
|
+
* 添加调试的utils
|
|
26
|
+
* - 获取已初始化的service
|
|
27
|
+
*/
|
|
28
|
+
private createDebugUtils;
|
|
34
29
|
/**
|
|
35
30
|
* 启动对接2.0应用
|
|
36
31
|
*
|
|
@@ -368,6 +363,20 @@ export declare enum EIntersectedCreatedType {
|
|
|
368
363
|
PLANK_FURNITURE = 1
|
|
369
364
|
}
|
|
370
365
|
|
|
366
|
+
/**
|
|
367
|
+
* 支持配置输出的交接数据类型
|
|
368
|
+
*/
|
|
369
|
+
declare enum EIntersectedInfoType {
|
|
370
|
+
/**
|
|
371
|
+
* 交接体
|
|
372
|
+
*/
|
|
373
|
+
SHELL = "1",
|
|
374
|
+
/**
|
|
375
|
+
* 贯穿交接体
|
|
376
|
+
*/
|
|
377
|
+
THROUGH_SHELL = "3"
|
|
378
|
+
}
|
|
379
|
+
|
|
371
380
|
/**
|
|
372
381
|
* 交接数据的数据类型
|
|
373
382
|
*/
|
|
@@ -379,7 +388,11 @@ export declare enum EIntersectedType {
|
|
|
379
388
|
/**
|
|
380
389
|
* 交界面
|
|
381
390
|
*/
|
|
382
|
-
FACE = "2"
|
|
391
|
+
FACE = "2",
|
|
392
|
+
/**
|
|
393
|
+
* 贯穿交接体
|
|
394
|
+
*/
|
|
395
|
+
THROUGH_SHELL = "3"
|
|
383
396
|
}
|
|
384
397
|
|
|
385
398
|
/**
|
|
@@ -983,40 +996,7 @@ export declare class FittingDesignService extends BaseService {
|
|
|
983
996
|
* 交接信息
|
|
984
997
|
* @vm-type UnknownType
|
|
985
998
|
*/
|
|
986
|
-
export declare
|
|
987
|
-
/**
|
|
988
|
-
* 当前交接信息所处的板面信息
|
|
989
|
-
*/
|
|
990
|
-
plankFaceId: number;
|
|
991
|
-
/**
|
|
992
|
-
* 当前交接信息所有顶点的信息
|
|
993
|
-
* * 如果为交接面,length为4
|
|
994
|
-
* * 如果为交接体,length为8
|
|
995
|
-
*/
|
|
996
|
-
points: Number3[];
|
|
997
|
-
/**
|
|
998
|
-
* 当前交接信息产生的元件ID
|
|
999
|
-
*/
|
|
1000
|
-
linkedModelId: string;
|
|
1001
|
-
/**
|
|
1002
|
-
* 交接信息产生元件的父母ID
|
|
1003
|
-
*/
|
|
1004
|
-
linkedParentModelId: string;
|
|
1005
|
-
/**
|
|
1006
|
-
* 交接数据的数据类型
|
|
1007
|
-
*/
|
|
1008
|
-
'@type': EIntersectedType;
|
|
1009
|
-
/**
|
|
1010
|
-
* @ignore
|
|
1011
|
-
* 交接体的shell数据
|
|
1012
|
-
*/
|
|
1013
|
-
shell?: string;
|
|
1014
|
-
/**
|
|
1015
|
-
* 交接体板面是否需要开槽
|
|
1016
|
-
* 当五金与板面产生的交接信息,为板面的部分,则为true
|
|
1017
|
-
*/
|
|
1018
|
-
needGroove?: boolean;
|
|
1019
|
-
}
|
|
999
|
+
export declare type IBaseIntersected = (ICommonIntersected<EIntersectedType.FACE> & IPlankFaceId) | (ICommonIntersected<EIntersectedType.SHELL> & IPlankFaceId) | ICommonIntersected<EIntersectedType.THROUGH_SHELL>;
|
|
1020
1000
|
|
|
1021
1001
|
/**
|
|
1022
1002
|
* 获取模型数据/交界面/体数据参数
|
|
@@ -1084,6 +1064,37 @@ export declare class FittingDesignService extends BaseService {
|
|
|
1084
1064
|
update?: IUpdateInfo[];
|
|
1085
1065
|
}
|
|
1086
1066
|
|
|
1067
|
+
declare interface ICommonIntersected<T extends EIntersectedType> {
|
|
1068
|
+
/**
|
|
1069
|
+
* 当前交接信息所有顶点的信息
|
|
1070
|
+
* * 如果为交接面,length为4
|
|
1071
|
+
* * 如果为交接体,length为8
|
|
1072
|
+
*/
|
|
1073
|
+
points: Number3[];
|
|
1074
|
+
/**
|
|
1075
|
+
* 当前交接信息产生的元件ID
|
|
1076
|
+
*/
|
|
1077
|
+
linkedModelId: string;
|
|
1078
|
+
/**
|
|
1079
|
+
* 交接信息产生元件的父母ID
|
|
1080
|
+
*/
|
|
1081
|
+
linkedParentModelId: string;
|
|
1082
|
+
/**
|
|
1083
|
+
* 交接数据的数据类型
|
|
1084
|
+
*/
|
|
1085
|
+
'@type': T;
|
|
1086
|
+
/**
|
|
1087
|
+
* @ignore
|
|
1088
|
+
* 交接体的shell数据
|
|
1089
|
+
*/
|
|
1090
|
+
shell?: string;
|
|
1091
|
+
/**
|
|
1092
|
+
* 交接体板面是否需要开槽
|
|
1093
|
+
* 当五金与板面产生的交接信息,为板面的部分,则为true
|
|
1094
|
+
*/
|
|
1095
|
+
needGroove?: boolean;
|
|
1096
|
+
}
|
|
1097
|
+
|
|
1087
1098
|
/**
|
|
1088
1099
|
* 场景内的某个模型
|
|
1089
1100
|
*/
|
|
@@ -1328,6 +1339,13 @@ export declare class FittingDesignService extends BaseService {
|
|
|
1328
1339
|
* @default EProductDirection.XY
|
|
1329
1340
|
*/
|
|
1330
1341
|
direction?: EProductDirection;
|
|
1342
|
+
/**
|
|
1343
|
+
* 支持配置的交接类型
|
|
1344
|
+
* 默认输出交接面&交接体
|
|
1345
|
+
* 交接面不支持配置(一定输出)
|
|
1346
|
+
* 支持配置输出交接体/贯穿交接体
|
|
1347
|
+
*/
|
|
1348
|
+
intersectedInfoType?: EIntersectedInfoType[];
|
|
1331
1349
|
}
|
|
1332
1350
|
|
|
1333
1351
|
/**
|
|
@@ -1756,63 +1774,10 @@ export declare class FittingDesignService extends BaseService {
|
|
|
1756
1774
|
/**
|
|
1757
1775
|
* 定制模型类型,在 @modelType 基础上进行了细分
|
|
1758
1776
|
* @public
|
|
1777
|
+
* @readonly
|
|
1759
1778
|
* @type ECustomModelType
|
|
1760
1779
|
*/
|
|
1761
1780
|
type: ECustomModelType;
|
|
1762
|
-
/**
|
|
1763
|
-
* 模型在方案中的名称
|
|
1764
|
-
* @readonly
|
|
1765
|
-
* @public
|
|
1766
|
-
* @type string
|
|
1767
|
-
*/
|
|
1768
|
-
name: string;
|
|
1769
|
-
/**
|
|
1770
|
-
* 模型的备注信息
|
|
1771
|
-
* @readonly
|
|
1772
|
-
* @public
|
|
1773
|
-
* @typedef Number3
|
|
1774
|
-
*/
|
|
1775
|
-
remark?: string;
|
|
1776
|
-
/**
|
|
1777
|
-
* 当前位置信息
|
|
1778
|
-
* @readonly
|
|
1779
|
-
* @public
|
|
1780
|
-
* @typedef Number3
|
|
1781
|
-
*/
|
|
1782
|
-
position: Number3;
|
|
1783
|
-
/**
|
|
1784
|
-
* 当前模型的旋转信息
|
|
1785
|
-
* @readonly
|
|
1786
|
-
* @public
|
|
1787
|
-
* @typedef Number3
|
|
1788
|
-
* @deprecated 将废弃,推荐使用 rotation
|
|
1789
|
-
*/
|
|
1790
|
-
rotate: Number3;
|
|
1791
|
-
/**
|
|
1792
|
-
* 当前模型的旋转信息
|
|
1793
|
-
* @readonly
|
|
1794
|
-
* @public
|
|
1795
|
-
* @typedef Number3
|
|
1796
|
-
*/
|
|
1797
|
-
rotation: Number3;
|
|
1798
|
-
/**
|
|
1799
|
-
* 当前尺寸信息
|
|
1800
|
-
* @readonly
|
|
1801
|
-
* @public
|
|
1802
|
-
* @typedef Number3
|
|
1803
|
-
*/
|
|
1804
|
-
size: Number3;
|
|
1805
|
-
/**
|
|
1806
|
-
* 模型当中自定议的参数信息
|
|
1807
|
-
* @readonly
|
|
1808
|
-
* @protected
|
|
1809
|
-
* @typedef AMap<string, IParamModelLiteParam>
|
|
1810
|
-
*/
|
|
1811
|
-
readonly params: AMap<string, IParamModelLiteParam>;
|
|
1812
|
-
/**
|
|
1813
|
-
* 模型当前用户自定义属性
|
|
1814
|
-
*/
|
|
1815
|
-
readonly bzProperties: AMap<string, IBzParamModelLiteProperty>;
|
|
1816
1781
|
/**
|
|
1817
1782
|
* 商品ID,即商品后台的商品ID
|
|
1818
1783
|
* @readonly
|
|
@@ -1887,17 +1852,15 @@ export declare class FittingDesignService extends BaseService {
|
|
|
1887
1852
|
*/
|
|
1888
1853
|
getPosition(): Number3;
|
|
1889
1854
|
/**
|
|
1890
|
-
*
|
|
1891
|
-
* @
|
|
1892
|
-
* @param rotate {Number3} 旋转的弧度
|
|
1893
|
-
* @deprecated 将废弃,推荐使用 rotation
|
|
1855
|
+
* 通过公式设置旋转
|
|
1856
|
+
* @internal
|
|
1894
1857
|
*/
|
|
1895
|
-
|
|
1858
|
+
setPositionFormula(position: Number3Formula): void;
|
|
1896
1859
|
/**
|
|
1897
|
-
*
|
|
1898
|
-
* @
|
|
1860
|
+
* 读取模型位置旋转
|
|
1861
|
+
* @internal
|
|
1899
1862
|
*/
|
|
1900
|
-
|
|
1863
|
+
getPositionFormula(): Number3Formula | undefined;
|
|
1901
1864
|
/**
|
|
1902
1865
|
* 更新当前模型的旋转信息
|
|
1903
1866
|
* @description 特别说明,定制模型,使用的是右手坐标系,rotation字段中
|
|
@@ -1908,6 +1871,16 @@ export declare class FittingDesignService extends BaseService {
|
|
|
1908
1871
|
* 获取当前模型相对父级的旋转信息
|
|
1909
1872
|
*/
|
|
1910
1873
|
getRotation(): Number3;
|
|
1874
|
+
/**
|
|
1875
|
+
* 通过公式设置旋转
|
|
1876
|
+
* @internal
|
|
1877
|
+
*/
|
|
1878
|
+
setRotationFormula(rotation: Number3Formula): void;
|
|
1879
|
+
/**
|
|
1880
|
+
* 读取模型位置旋转
|
|
1881
|
+
* @internal
|
|
1882
|
+
*/
|
|
1883
|
+
getRotationFormula(): Number3Formula | undefined;
|
|
1911
1884
|
/**
|
|
1912
1885
|
* 获取当前模型所处的工具线
|
|
1913
1886
|
*/
|
|
@@ -2081,6 +2054,17 @@ export declare class FittingDesignService extends BaseService {
|
|
|
2081
2054
|
* @param value {boolean}
|
|
2082
2055
|
*/
|
|
2083
2056
|
setPrimitiveOverride(value: boolean): void;
|
|
2057
|
+
/**
|
|
2058
|
+
* 获取公式
|
|
2059
|
+
* @internal
|
|
2060
|
+
*/
|
|
2061
|
+
getFormula(): string | undefined;
|
|
2062
|
+
/**
|
|
2063
|
+
* 设置公式
|
|
2064
|
+
* @internal
|
|
2065
|
+
* @param formula
|
|
2066
|
+
*/
|
|
2067
|
+
setFormula(formula: string): void;
|
|
2084
2068
|
}
|
|
2085
2069
|
|
|
2086
2070
|
/**
|
|
@@ -2122,6 +2106,13 @@ export declare class FittingDesignService extends BaseService {
|
|
|
2122
2106
|
modelId: string;
|
|
2123
2107
|
}
|
|
2124
2108
|
|
|
2109
|
+
declare interface IPlankFaceId {
|
|
2110
|
+
/**
|
|
2111
|
+
* 当前交接信息所处的板面信息
|
|
2112
|
+
*/
|
|
2113
|
+
plankFaceId: number;
|
|
2114
|
+
}
|
|
2115
|
+
|
|
2125
2116
|
/**
|
|
2126
2117
|
* 板件轮廓上的某条闭合路径,例如外轮廓、内部挖洞
|
|
2127
2118
|
*/
|
|
@@ -2437,6 +2428,10 @@ export declare class FittingDesignService extends BaseService {
|
|
|
2437
2428
|
* 交接体展示时,使用的颜色
|
|
2438
2429
|
*/
|
|
2439
2430
|
intersectedBodyColor: number;
|
|
2431
|
+
/**
|
|
2432
|
+
* 贯穿交接体展示时,使用的颜色
|
|
2433
|
+
*/
|
|
2434
|
+
intersectedThroughColor: number;
|
|
2440
2435
|
/**
|
|
2441
2436
|
* 五金与柜体之间,交接面产生的颜色
|
|
2442
2437
|
*/
|
|
@@ -3265,6 +3260,24 @@ export declare class FittingDesignService extends BaseService {
|
|
|
3265
3260
|
z: number;
|
|
3266
3261
|
}
|
|
3267
3262
|
|
|
3263
|
+
/**
|
|
3264
|
+
* 设置旋转/位置
|
|
3265
|
+
*/
|
|
3266
|
+
declare interface Number3Formula {
|
|
3267
|
+
/**
|
|
3268
|
+
* X轴方向上的公式
|
|
3269
|
+
*/
|
|
3270
|
+
x: string;
|
|
3271
|
+
/**
|
|
3272
|
+
* Y轴方向上的公式
|
|
3273
|
+
*/
|
|
3274
|
+
y: string;
|
|
3275
|
+
/**
|
|
3276
|
+
* Z轴方向上的公式
|
|
3277
|
+
*/
|
|
3278
|
+
z: string;
|
|
3279
|
+
}
|
|
3280
|
+
|
|
3268
3281
|
/**
|
|
3269
3282
|
* 底层板件轮廓服务,支持对模型json中轮廓解析为特定的类,暴露对轮廓数据查看、计算、修改的方法
|
|
3270
3283
|
*
|