@manycore/custom-sdk 1.14.0-alpha.0 → 2.0.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 +568 -234
  2. package/index.js +32 -47
  3. package/package.json +7 -14
package/index.d.ts CHANGED
@@ -1,19 +1,19 @@
1
- import { ELineType as ELineType_2 } from '@manycore/custom-miniapp-sdk';
2
1
  import { IExportModelData } from '@manycore/custom-miniapp-sdk';
3
2
  import { IParamModelPhotoResponse } from '@manycore/custom-miniapp-sdk';
4
3
  import { IServClientService } from 'servkit';
5
- import { Number2 } from '@manycore/custom-miniapp-sdk';
6
- import { Number3 } from '@manycore/custom-miniapp-sdk';
4
+ import { Number2 as Number2_2 } from '@manycore/custom-miniapp-sdk';
7
5
  import { ServService } from 'servkit';
8
6
 
9
- declare interface AMap<K, V> {
10
- clear(): void;
11
- delete(key: K): boolean;
12
- forEach(callbackfn: (value: V, key: K, map: AMap<K, V>) => void, thisArg?: any): void;
13
- get(key: K): V | undefined;
14
- has(key: K): boolean;
15
- set(key: K, value: V): this;
16
- readonly size: number;
7
+ /**
8
+ * app 配置服务
9
+ */
10
+ export declare class AppConfigService extends BaseService {
11
+ /**
12
+ * 更改获取JSON数据的默认配置信息
13
+ *
14
+ * @param option
15
+ */
16
+ setGetJsonConfig(option: IJsonOutputConfig): void;
17
17
  }
18
18
 
19
19
  /**
@@ -28,10 +28,16 @@ export declare class Application {
28
28
  private serviceMap;
29
29
  private sappSDK;
30
30
  constructor();
31
+ private startOnApiCalledEvent;
31
32
  /**
32
33
  * 判断当前是否在定制小程序下运行
33
34
  */
34
35
  isInCustomMiniAppMode(): boolean;
36
+ /**
37
+ * 添加调试的utils
38
+ * - 获取已初始化的service
39
+ */
40
+ private createDebugUtils;
35
41
  /**
36
42
  * 启动对接2.0应用
37
43
  *
@@ -159,7 +165,7 @@ export declare class CustomModelService extends BaseService {
159
165
  */
160
166
  getAllCustomModels(): Promise<IParamModelLite[]>;
161
167
  /**
162
- * 根据id获取所有模型
168
+ * 根据id获取指定模型
163
169
  * @param id 模型id
164
170
  * @returns Promise<IParamModelLite | undefined>
165
171
  */
@@ -184,6 +190,7 @@ export declare class CustomModelService extends BaseService {
184
190
  /**
185
191
  * 自定议字段枚举类型
186
192
  */
193
+
187
194
  declare enum EBzPropertyType {
188
195
  /**
189
196
  * 数字类型
@@ -243,20 +250,6 @@ export declare enum ECameraMoveDirection {
243
250
  BACK = "BACK"
244
251
  }
245
252
 
246
- /**
247
- * 线是否顺时针的值
248
- */
249
- declare enum EClockWise {
250
- /**
251
- * 顺时针
252
- */
253
- TRUE = "true",
254
- /**
255
- * 逆时针
256
- */
257
- FALSE = "false"
258
- }
259
-
260
253
  /**
261
254
  * 定制模型类型
262
255
  */
@@ -352,7 +345,7 @@ export declare enum EFittingType {
352
345
  /**
353
346
  * 交接面信息
354
347
  */
355
- INTERSECTED = 'intersected',
348
+ INTERSECTED = "intersected"
356
349
  }
357
350
 
358
351
  /**
@@ -362,11 +355,25 @@ export declare enum EIntersectedCreatedType {
362
355
  /**
363
356
  * 板与板之间产生的交界
364
357
  */
365
- BOTH_PLANK,
358
+ BOTH_PLANK = 0,
366
359
  /**
367
360
  * 板与五金之间产生的交界信息
368
361
  */
369
- PLANK_FURNITURE,
362
+ PLANK_FURNITURE = 1
363
+ }
364
+
365
+ /**
366
+ * 支持配置输出的交接数据类型
367
+ */
368
+ export declare enum EIntersectedInfoType {
369
+ /**
370
+ * 交接体
371
+ */
372
+ SHELL = "1",
373
+ /**
374
+ * 贯穿交接体
375
+ */
376
+ THROUGH_SHELL = "3"
370
377
  }
371
378
 
372
379
  /**
@@ -376,11 +383,33 @@ export declare enum EIntersectedType {
376
383
  /**
377
384
  * 交接体
378
385
  */
379
- SHELL = '1',
386
+ SHELL = "1",
380
387
  /**
381
388
  * 交界面
382
389
  */
383
- FACE = '2',
390
+ FACE = "2",
391
+ /**
392
+ * 贯穿交接体
393
+ */
394
+ THROUGH_SHELL = "3"
395
+ }
396
+
397
+ /**
398
+ * 交接对象类型
399
+ */
400
+ export declare enum EIntersectModelType {
401
+ /**
402
+ * 板件
403
+ */
404
+ PLANK = 0,
405
+ /**
406
+ * 五金
407
+ */
408
+ HARDWARE = 1,
409
+ /**
410
+ * 商品
411
+ */
412
+ PRODUCT = 2
384
413
  }
385
414
 
386
415
  /**
@@ -448,25 +477,10 @@ export declare enum ELineType {
448
477
  * 当前代码中,暂不支持
449
478
  */
450
479
  ELLIPSE_ARC = 3,
451
- }
452
-
453
- /**
454
- * 线的类型
455
- */
456
- declare enum ELineType_3 {
457
480
  /**
458
- * 直线
481
+ *
459
482
  */
460
- SEGMENT = 0,
461
- /**
462
- * 圆弧
463
- */
464
- CIRCLE_ARC = 1,
465
- /**
466
- * 椭圆
467
- * 当前代码中,暂不支持
468
- */
469
- ELLIPSE_ARC = 3
483
+ CIRCLE_CENTER = 4
470
484
  }
471
485
 
472
486
  /**
@@ -487,6 +501,44 @@ export declare enum EModelType {
487
501
  FITTING_MODEL = 'fitting_model',
488
502
  }
489
503
 
504
+ /**
505
+ * 当前参数的类型
506
+ */
507
+ declare enum EParamForm {
508
+ /**
509
+ * 单值, 老数据
510
+ * */
511
+ SINGLE = 0,
512
+ /**
513
+ * 区间
514
+ * */
515
+ RANGE = 1,
516
+ /**
517
+ * 可选
518
+ * */
519
+ OPTION = 2,
520
+ /**
521
+ * 递增
522
+ * */
523
+ STEP = 3,
524
+ /**
525
+ * 复合公式, 可以在公式和值之间切换
526
+ * */
527
+ COMPOUND_FORMULA = 4,
528
+ /**
529
+ * 公式
530
+ * */
531
+ FIXED_FORMULA = 5,
532
+ /**
533
+ * 固定值
534
+ * */
535
+ FIXED_VALUE = 6,
536
+ /**
537
+ * 复合公式, 公式+可选的组合
538
+ * */
539
+ COMPOUND_FORMULA_OPTION = 7
540
+ }
541
+
490
542
  /**
491
543
  * 当前模型的类型
492
544
  */
@@ -584,6 +636,28 @@ declare enum EParamType {
584
636
  BOOLEAN_LIST = "booleanlist"
585
637
  }
586
638
 
639
+ /**
640
+ * 值的单位类型
641
+ */
642
+ declare enum EParamUnitType {
643
+ /**
644
+ * 单位默认值
645
+ */
646
+ DEFAULT = 0,
647
+ /**
648
+ * 长度单位
649
+ */
650
+ LENGTH = 1,
651
+ /**
652
+ * 面积单位
653
+ */
654
+ AREA = 2,
655
+ /**
656
+ * 数量单位
657
+ */
658
+ NUMBER = 3
659
+ }
660
+
587
661
  /**
588
662
  * 板件轮廓路径类型
589
663
  */
@@ -622,32 +696,19 @@ export declare enum EPointType {
622
696
  * 椭圆
623
697
  */
624
698
  ELLIPSE = 4,
699
+ /**
700
+ * 圆心点
701
+ */
702
+ CIRCLE_CENTER = 5
625
703
  }
626
704
 
627
705
  /**
628
- * 点的类型
706
+ * 商品建模方向
629
707
  */
630
- declare enum EPointType_2 {
631
- /**
632
- * 普通点
633
- */
634
- NONE = 0,
635
- /**
636
- * 倒圆
637
- */
638
- CIRCLE = 1,
639
- /**
640
- * 倒角
641
- */
642
- LINE = 2,
643
- /**
644
- * 切圆,就是内挖一个倒圆的形状
645
- */
646
- CUT_CIRCLE = 3,
647
- /**
648
- * 椭圆
649
- */
650
- ELLIPSE = 4
708
+ export declare enum EProductDirection {
709
+ XY = 0,
710
+ YZ = 1,
711
+ XZ = 2
651
712
  }
652
713
 
653
714
  /**
@@ -905,6 +966,16 @@ export declare class FittingDesignService extends BaseService {
905
966
  * @param id 待删除标识信息的模型ID,默认清空所有
906
967
  */
907
968
  clearFittingHint(id?: string | string[]): void;
969
+ /**
970
+ * 设置五金突出展示
971
+ */
972
+ setFittingHardwareHint(conf: Record<string, IHintBase>): void;
973
+ /**
974
+ * 清空当前已经配置的标识信息
975
+ *
976
+ * @param id 待删除标识信息的模型ID,默认清空所有
977
+ */
978
+ clearFittingHardwareHint(id?: string | string[]): void;
908
979
  }
909
980
 
910
981
  /**
@@ -918,7 +989,7 @@ export declare class FittingDesignService extends BaseService {
918
989
  export declare class FittingModelService extends BaseService {
919
990
  /**
920
991
  * 获取所有五金孔槽模型
921
- * @param modelId 模型id,查找相关联孔槽五金或模型下所有的板件关联孔槽五金
992
+ * @param modelId 模型id,查找相关联的孔槽五金或模型下所有的板件关联的孔槽五金
922
993
  * @returns Promise<IFittingModelLite[]>
923
994
  */
924
995
  getAllFittingModels(modelId?: string): Promise<IFittingModelLite[]>;
@@ -984,17 +1055,14 @@ export declare class FittingDesignService extends BaseService {
984
1055
  * 孔/槽的深度
985
1056
  */
986
1057
  depth: number;
987
-
988
1058
  /**
989
1059
  * 所处的板面
990
1060
  */
991
1061
  plankFaceId: number;
992
-
993
1062
  /**
994
1063
  * 起点
995
1064
  */
996
1065
  start: Number3;
997
-
998
1066
  /**
999
1067
  * 终点
1000
1068
  */
@@ -1003,42 +1071,9 @@ export declare class FittingDesignService extends BaseService {
1003
1071
 
1004
1072
  /**
1005
1073
  * 交接信息
1074
+ * @vm-type UnknownType
1006
1075
  */
1007
- export declare interface IBaseIntersected {
1008
- /**
1009
- * 当前交接信息所处的板面信息
1010
- */
1011
- plankFaceId: number;
1012
- /**
1013
- * 当前交接信息所有顶点的信息
1014
- * * 如果为交接面,length为4
1015
- * * 如果为交接体,length为8
1016
- */
1017
- points: Number3[];
1018
-
1019
- /**
1020
- * 当前交接信息产生的元件ID
1021
- */
1022
- linkedModelId: string;
1023
- /**
1024
- * 交接信息产生元件的父母ID
1025
- */
1026
- linkedParentModelId: string;
1027
- /**
1028
- * 交接数据的数据类型
1029
- */
1030
- '@type': EIntersectedType;
1031
- /**
1032
- * @ignore
1033
- * 交接体的shell数据
1034
- */
1035
- shell?: string;
1036
- /**
1037
- * 交接体板面是否需要开槽
1038
- * 当五金与板面产生的交接信息,为板面的部分,则为true
1039
- */
1040
- needGroove?: boolean;
1041
- }
1076
+ export declare type IBaseIntersected = (ICommonIntersected<EIntersectedType.FACE> & IPlankFaceId) | (ICommonIntersected<EIntersectedType.SHELL> & IPlankFaceId) | ICommonIntersected<EIntersectedType.THROUGH_SHELL>;
1042
1077
 
1043
1078
  /**
1044
1079
  * 获取模型数据/交界面/体数据参数
@@ -1046,7 +1081,7 @@ export declare class FittingDesignService extends BaseService {
1046
1081
  export declare interface IBaseOptions {
1047
1082
  /**
1048
1083
  * 最长等待时间(以ms为单位)
1049
- * @default 500000
1084
+ * @default 50000
1050
1085
  */
1051
1086
  timeout?: number;
1052
1087
  /**
@@ -1057,6 +1092,7 @@ export declare class FittingDesignService extends BaseService {
1057
1092
 
1058
1093
  /**
1059
1094
  * 自定议参数
1095
+ * @vm-type IBzParamType
1060
1096
  */
1061
1097
  declare interface IBzParamModelLiteProperty<T extends number | string | boolean = string> {
1062
1098
  /**
@@ -1105,6 +1141,37 @@ export declare class FittingDesignService extends BaseService {
1105
1141
  update?: IUpdateInfo[];
1106
1142
  }
1107
1143
 
1144
+ declare interface ICommonIntersected<T extends EIntersectedType> {
1145
+ /**
1146
+ * 当前交接信息所有顶点的信息
1147
+ * * 如果为交接面,length为4
1148
+ * * 如果为交接体,length为8
1149
+ */
1150
+ points: Number3[];
1151
+ /**
1152
+ * 当前交接信息产生的元件ID
1153
+ */
1154
+ linkedModelId: string;
1155
+ /**
1156
+ * 交接信息产生元件的父母ID
1157
+ */
1158
+ linkedParentModelId: string;
1159
+ /**
1160
+ * 交接数据的数据类型
1161
+ */
1162
+ '@type': T;
1163
+ /**
1164
+ * @ignore
1165
+ * 交接体的shell数据
1166
+ */
1167
+ shell?: string;
1168
+ /**
1169
+ * 交接体板面是否需要开槽
1170
+ * 当五金与板面产生的交接信息,为板面的部分,则为true
1171
+ */
1172
+ needGroove?: boolean;
1173
+ }
1174
+
1108
1175
  /**
1109
1176
  * 场景内的某个模型
1110
1177
  */
@@ -1165,19 +1232,19 @@ export declare class FittingDesignService extends BaseService {
1165
1232
  /**
1166
1233
  * 所有的孔的数据
1167
1234
  */
1168
- holes: IFittingHoleCollect;
1235
+ holes: IFittingHoleCollect_2;
1169
1236
  /**
1170
1237
  * 槽的数据
1171
1238
  */
1172
- grooves: IFittingGrooveCollect;
1239
+ grooves: IFittingGrooveCollect_2;
1173
1240
  /**
1174
1241
  * 五金数据
1175
1242
  */
1176
- hardwares: IFittingHardwareCollect;
1243
+ hardwares: IFittingHardwareCollect_2;
1177
1244
  /**
1178
1245
  * 五金槽数据
1179
1246
  */
1180
- hardwareGrooves: IFittingHardwareGrooves;
1247
+ hardwareGrooves: IFittingHardwareGrooves_2;
1181
1248
  }
1182
1249
 
1183
1250
  export declare interface IFittingDesignValidateResult {
@@ -1192,16 +1259,31 @@ export declare class FittingDesignService extends BaseService {
1192
1259
  */
1193
1260
  export declare type IFittingGrooveCollect = Record<string, IGrooveData[]>;
1194
1261
 
1262
+ /**
1263
+ * 方案中的所有槽的数据
1264
+ */
1265
+ declare type IFittingGrooveCollect_2 = Record<string, IGrooveData[]>;
1266
+
1195
1267
  /**
1196
1268
  * 五金数据
1197
1269
  */
1198
1270
  export declare type IFittingHardwareCollect = Record<string, IHardwareData[]>;
1199
1271
 
1272
+ /**
1273
+ * 五金数据
1274
+ */
1275
+ declare type IFittingHardwareCollect_2 = Record<string, IHardwareData[]>;
1276
+
1200
1277
  /**
1201
1278
  * 五金槽数据
1202
1279
  */
1203
1280
  export declare type IFittingHardwareGrooves = Record<string, IHardwareGrooveData[]>;
1204
1281
 
1282
+ /**
1283
+ * 五金槽数据
1284
+ */
1285
+ declare type IFittingHardwareGrooves_2 = Record<string, IHardwareGrooveData[]>;
1286
+
1205
1287
  /**
1206
1288
  * 五金孔槽模型ID - 标识信息
1207
1289
  *
@@ -1225,6 +1307,11 @@ export declare class FittingDesignService extends BaseService {
1225
1307
  */
1226
1308
  export declare type IFittingHoleCollect = Record<string, IHoleData[]>;
1227
1309
 
1310
+ /**
1311
+ * 方案中,所有孔的数据
1312
+ */
1313
+ declare type IFittingHoleCollect_2 = Record<string, IHoleData[]>;
1314
+
1228
1315
  /**
1229
1316
  * 五金孔槽通用模型
1230
1317
  */
@@ -1273,17 +1360,78 @@ export declare class FittingDesignService extends BaseService {
1273
1360
  }
1274
1361
 
1275
1362
  /**
1276
- * 获取交接面配置信息
1363
+ * 获取模型的交接信息
1277
1364
  */
1278
- export declare interface IGetModelIntersectedOption extends IBaseOptions {
1365
+ declare interface IGetIntersectedOption {
1279
1366
  /**
1367
+ * 模型ID
1368
+ */
1369
+ modelId: string;
1370
+ /**
1371
+ * @deprecated 可使用bodyDistTol/faceDistTol分别指定交接体/面阈值
1280
1372
  * 含义为交接面/体进行运算过程中的阈值容差;即两个平行面之间,生成交接信息时,最大距离
1281
1373
  * 默认值为 0.1mm
1282
1374
  * 单位:毫米
1283
1375
  */
1284
1376
  tolerance?: number;
1377
+ /**
1378
+ * 超时时间
1379
+ * 单位:秒
1380
+ */
1381
+ timeout?: number;
1382
+ /**
1383
+ * 交接体阈值
1384
+ * 单位:毫米
1385
+ * @default 0.1
1386
+ */
1387
+ bodyDistTol?: number;
1388
+ /**
1389
+ * 交接面阈值
1390
+ * 单位:毫米
1391
+ * @default 0.1
1392
+ */
1393
+ faceDistTol?: number;
1394
+ /**
1395
+ * 是否过滤板厚
1396
+ * @default true
1397
+ */
1398
+ thicknessFilter?: boolean;
1399
+ /**
1400
+ * 参与计算的对象
1401
+ * 传入商品需要明确指定prodCatIds
1402
+ * @default [EIntersectModelType.PLANK,EIntersectModelType.HARDWARE]
1403
+ */
1404
+ computeModelTypes?: Array<EIntersectModelType>;
1405
+ /**
1406
+ * 参与计算的商品
1407
+ */
1408
+ products?: Array<{
1409
+ /**
1410
+ * 真分类
1411
+ */
1412
+ category: number;
1413
+ }>;
1414
+ /**
1415
+ * 商品统一建模方向
1416
+ * @default EProductDirection.XY
1417
+ */
1418
+ direction?: EProductDirection;
1419
+ /**
1420
+ * 支持配置的交接类型
1421
+ * 默认输出交接面&交接体
1422
+ * 交接面不支持配置(一定输出)
1423
+ * 支持配置输出交接体/贯穿交接体
1424
+ */
1425
+ intersectedInfoType?: EIntersectedInfoType[];
1285
1426
  }
1286
1427
 
1428
+ /**
1429
+ * 获取交接面配置信息
1430
+ */
1431
+ export declare interface IGetModelIntersectedOption
1432
+ extends Omit<IGetIntersectedOption, 'modelId'>,
1433
+ IBaseOptions {}
1434
+
1287
1435
  /**
1288
1436
  * 获取模型数据
1289
1437
  */
@@ -1295,12 +1443,17 @@ export declare class FittingDesignService extends BaseService {
1295
1443
  force?: boolean;
1296
1444
  /**
1297
1445
  * 模板id
1446
+ * 如果不传,将从配置模板中,获取默认配置
1298
1447
  */
1299
1448
  templateId?: string;
1449
+ /**
1450
+ * 忽略重置默认位置,如果不传入此参数,将会从`AppConfigService`设置的配置中读取
1451
+ * @default false
1452
+ */
1453
+ ignoreResetPosition?: boolean;
1300
1454
  }
1301
1455
 
1302
1456
  export declare interface IGrooveData extends IBaseHoleGrooveData {
1303
- // 槽宽
1304
1457
  width: number;
1305
1458
  }
1306
1459
 
@@ -1312,22 +1465,18 @@ export declare class FittingDesignService extends BaseService {
1312
1465
  * 建模原点在板件坐标系下的坐标
1313
1466
  */
1314
1467
  position: Number3;
1315
-
1316
1468
  /**
1317
1469
  * 相对建模坐标系中夹角,不传默认没有任何基于板件坐标的旋转,会将五金以建模原点放在 position 上,五金建模方向和板件建模方向一致进行摆放。
1318
1470
  */
1319
1471
  rotate: Number3;
1320
-
1321
1472
  /**
1322
1473
  * 相对建模坐标系中缩放,不传默认五金和上传大小完全一致
1323
1474
  */
1324
1475
  scale: Number3;
1325
-
1326
1476
  /**
1327
1477
  * 商品ID
1328
1478
  */
1329
1479
  brandGoodId: string;
1330
-
1331
1480
  /**
1332
1481
  * 关联孔槽ID
1333
1482
  */
@@ -1342,7 +1491,6 @@ export declare class FittingDesignService extends BaseService {
1342
1491
  * 槽的深度
1343
1492
  */
1344
1493
  depth: number;
1345
-
1346
1494
  /**
1347
1495
  * 所处的板面
1348
1496
  */
@@ -1432,6 +1580,16 @@ export declare class FittingDesignService extends BaseService {
1432
1580
  diameter: number;
1433
1581
  }
1434
1582
 
1583
+ /**
1584
+ * 交接信息
1585
+ */
1586
+ export declare interface IIntersectedData {
1587
+ /**
1588
+ * 交接信息集合
1589
+ */
1590
+ intersectedGroups: IIntersectedGroup[];
1591
+ }
1592
+
1435
1593
  /**
1436
1594
  * 一组交接信息
1437
1595
  */
@@ -1453,11 +1611,19 @@ export declare class FittingDesignService extends BaseService {
1453
1611
  /**
1454
1612
  * 交接信息
1455
1613
  */
1456
- export declare interface IIntersectedResult {
1614
+ export declare type IIntersectedResult = IIntersectedData;
1615
+
1616
+ export declare interface IJsonOutputConfig {
1457
1617
  /**
1458
- * 交接信息集合
1618
+ * 默认模板ID
1459
1619
  */
1460
- intersectedGroups: IIntersectedGroup[];
1620
+ defaultTemplateId?: string;
1621
+
1622
+ /**
1623
+ * 忽略重置默认位置
1624
+ * @default false
1625
+ */
1626
+ ignoreResetPosition?: boolean;
1461
1627
  }
1462
1628
 
1463
1629
  /**
@@ -1468,7 +1634,7 @@ export declare class FittingDesignService extends BaseService {
1468
1634
  * 获取实际渲染端点
1469
1635
  * >线段两端
1470
1636
  */
1471
- getRenderPoints(): [Number2, Number2];
1637
+ getRenderPoints(): [Number2_2, Number2_2];
1472
1638
  /**
1473
1639
  * 设置线段的高亮,高亮深度为板件厚度
1474
1640
  * @param hint 高亮配置
@@ -1523,26 +1689,21 @@ export declare class FittingDesignService extends BaseService {
1523
1689
  /**
1524
1690
  * 直线
1525
1691
  */
1526
- export declare interface ILineDataBase
1527
- extends Omit<
1528
- ILineBase,
1529
- 'ellipseCenter' | 'clockwise' | 'minorArc' | 'radius' | 'majorRadius' | 'minorRadius'
1530
- > {
1692
+ export declare interface ILineDataBase extends Omit<ILineBase, 'ellipseCenter' | 'clockwise' | 'minorArc' | 'radius' | 'majorRadius' | 'minorRadius'> {
1531
1693
  /**
1532
1694
  * 线条类型
1533
1695
  */
1534
- type: ELineType_2.SEGMENT;
1696
+ type: ELineType.SEGMENT;
1535
1697
  }
1536
1698
 
1537
1699
  /**
1538
1700
  * 弧线
1539
1701
  */
1540
- export declare interface ILineDataCircle
1541
- extends Omit<ILineBase, 'ellipseCenter' | 'majorRadius' | 'minorRadius'> {
1702
+ export declare interface ILineDataCircle extends Omit<ILineBase, 'ellipseCenter' | 'majorRadius' | 'minorRadius'> {
1542
1703
  /**
1543
1704
  * 线条类型
1544
1705
  */
1545
- type: ELineType_2.CIRCLE_ARC;
1706
+ type: ELineType.CIRCLE_ARC;
1546
1707
  /**
1547
1708
  * 是否顺时针
1548
1709
  */
@@ -1643,6 +1804,12 @@ export declare class FittingDesignService extends BaseService {
1643
1804
  invalidateList: string[];
1644
1805
  }
1645
1806
 
1807
+ /** 交互优先级配置 */
1808
+ export declare type InteractionPriorityConfig = Record<
1809
+ Exclude<EElementType, EElementType.PARAM_MODEL_ASSEMBLY>,
1810
+ number
1811
+ >;
1812
+
1646
1813
  /**
1647
1814
  * 获取交接信息
1648
1815
  *
@@ -1695,7 +1862,8 @@ export declare class FittingDesignService extends BaseService {
1695
1862
 
1696
1863
  /**
1697
1864
  * 对定制参数化模型进行精简处理后的结果
1698
- * @name ParamModel
1865
+ * @name CustomModel
1866
+ * @vm-type CustomModel
1699
1867
  */
1700
1868
  declare interface IParamModelLite_2 {
1701
1869
  /**
@@ -1709,63 +1877,10 @@ export declare class FittingDesignService extends BaseService {
1709
1877
  /**
1710
1878
  * 定制模型类型,在 @modelType 基础上进行了细分
1711
1879
  * @public
1880
+ * @readonly
1712
1881
  * @type ECustomModelType
1713
1882
  */
1714
1883
  type: ECustomModelType;
1715
- /**
1716
- * 模型在方案中的名称
1717
- * @readonly
1718
- * @public
1719
- * @type string
1720
- */
1721
- name: string;
1722
- /**
1723
- * 模型的备注信息
1724
- * @readonly
1725
- * @public
1726
- * @typedef Number3
1727
- */
1728
- remark?: string;
1729
- /**
1730
- * 当前位置信息
1731
- * @readonly
1732
- * @public
1733
- * @typedef Number3
1734
- */
1735
- position: Number3_2;
1736
- /**
1737
- * 当前模型的旋转信息
1738
- * @readonly
1739
- * @public
1740
- * @typedef Number3
1741
- * @deprecated 将废弃,推荐使用 rotation
1742
- */
1743
- rotate: Number3_2;
1744
- /**
1745
- * 当前模型的旋转信息
1746
- * @readonly
1747
- * @public
1748
- * @typedef Number3
1749
- */
1750
- rotation: Number3_2;
1751
- /**
1752
- * 当前尺寸信息
1753
- * @readonly
1754
- * @public
1755
- * @typedef Number3
1756
- */
1757
- size: Number3_2;
1758
- /**
1759
- * 模型当中自定议的参数信息
1760
- * @readonly
1761
- * @protected
1762
- * @typedef AMap<string, IParamModelLiteParam>
1763
- */
1764
- readonly params: AMap<string, IParamModelLiteParam>;
1765
- /**
1766
- * 模型当前用户自定义属性
1767
- */
1768
- readonly bzProperties: AMap<string, IBzParamModelLiteProperty>;
1769
1884
  /**
1770
1885
  * 商品ID,即商品后台的商品ID
1771
1886
  * @readonly
@@ -1809,6 +1924,13 @@ export declare class FittingDesignService extends BaseService {
1809
1924
  * @type boolean
1810
1925
  */
1811
1926
  readonly legal?: boolean;
1927
+ /**
1928
+ * 当前尺寸信息
1929
+ * @readonly
1930
+ * @public
1931
+ * @typedef Number3
1932
+ */
1933
+ readonly size: Number3;
1812
1934
  /**
1813
1935
  * 获取当前模型名称
1814
1936
  */
@@ -1833,34 +1955,42 @@ export declare class FittingDesignService extends BaseService {
1833
1955
  * 更新当前模型的位置信息
1834
1956
  * @param position {Number3} 坐标
1835
1957
  */
1836
- setPosition(position: Number3_2): void;
1958
+ setPosition(position: Number3): void;
1837
1959
  /**
1838
1960
  * 获取当前模型的坐标信息
1839
1961
  * @return Number3 相对父模型坐标,如果为顶层模型,则为世界坐标
1840
1962
  */
1841
- getPosition(): Number3_2;
1963
+ getPosition(): Number3;
1842
1964
  /**
1843
- * 更新当前模型的旋转信息
1844
- * @description 特别说明,定制模型,使用的是右手坐标系,rotate字段中
1845
- * @param rotate {Number3} 旋转的弧度
1846
- * @deprecated 将废弃,推荐使用 rotation
1965
+ * 通过公式设置旋转
1966
+ * @internal
1847
1967
  */
1848
- setRotate(rotate: Number3_2): void;
1968
+ setPositionFormula(position: Number3Formula): void;
1849
1969
  /**
1850
- * 获取当前模型相对父级的旋转信息
1851
- * @deprecated 将废弃,推荐使用 rotation
1970
+ * 读取模型位置旋转
1971
+ * @internal
1852
1972
  */
1853
- getRotate(): Number3_2;
1973
+ getPositionFormula(): Number3Formula | undefined;
1854
1974
  /**
1855
1975
  * 更新当前模型的旋转信息
1856
1976
  * @description 特别说明,定制模型,使用的是右手坐标系,rotation字段中
1857
1977
  * @param rotation {Number3} 旋转的弧度
1858
1978
  */
1859
- setRotation(rotation: Number3_2): void;
1979
+ setRotation(rotation: Number3): void;
1860
1980
  /**
1861
1981
  * 获取当前模型相对父级的旋转信息
1862
1982
  */
1863
- getRotation(): Number3_2;
1983
+ getRotation(): Number3;
1984
+ /**
1985
+ * 通过公式设置旋转
1986
+ * @internal
1987
+ */
1988
+ setRotationFormula(rotation: Number3Formula): void;
1989
+ /**
1990
+ * 读取模型位置旋转
1991
+ * @internal
1992
+ */
1993
+ getRotationFormula(): Number3Formula | undefined;
1864
1994
  /**
1865
1995
  * 获取当前模型所处的工具线
1866
1996
  */
@@ -1965,12 +2095,61 @@ export declare class FittingDesignService extends BaseService {
1965
2095
  * 获取设计对象id
1966
2096
  */
1967
2097
  getElementId(): ElementId | undefined;
2098
+ /**
2099
+ * 获取当前模型中的板件轮廓信息
2100
+ */
2101
+ getPlankPathAsync(): Promise<IParamModelLitePlankPath | undefined>;
1968
2102
  }
1969
2103
 
1970
2104
  /**
1971
2105
  * 模型的参数信息
2106
+ * @vm-type IParamType
1972
2107
  */
1973
2108
  declare interface IParamModelLiteParam<T = any> {
2109
+ /**
2110
+ * 获取参数名称
2111
+ */
2112
+ getName(): string;
2113
+ /**
2114
+ * 当前参数描述信息
2115
+ */
2116
+ getDescription(): string | undefined;
2117
+ /**
2118
+ * 获取参数简写名称
2119
+ */
2120
+ getSimpleName(): string | undefined;
2121
+ /**
2122
+ * 获取参数的显示名称
2123
+ */
2124
+ getDisplayName(): string;
2125
+ /**
2126
+ * 当前参数在工具中是否可见
2127
+ */
2128
+ getVisible(): boolean | undefined;
2129
+ /**
2130
+ * 当前字段是否被覆盖
2131
+ */
2132
+ isOverridden(): boolean | undefined;
2133
+ /**
2134
+ * 取消当前字段被覆盖
2135
+ */
2136
+ cancelOverride(): any;
2137
+ /**
2138
+ * 获取当前字段的单位类型
2139
+ */
2140
+ getUnitType(): EParamUnitType | undefined;
2141
+ /**
2142
+ * 获取当前参数类型
2143
+ */
2144
+ getParamForm(): EParamForm | undefined;
2145
+ /**
2146
+ * 判断当前值是否使用复合公式
2147
+ */
2148
+ isUsingMixFormula(): boolean;
2149
+ /**
2150
+ * 重置当前参数使用复合公式
2151
+ */
2152
+ useMixFormula(): void;
1974
2153
  /**
1975
2154
  * 获取当前参数解析后的值内容
1976
2155
  */
@@ -1991,7 +2170,7 @@ export declare class FittingDesignService extends BaseService {
1991
2170
  */
1992
2171
  setParsedValue(value: T): any;
1993
2172
  /**
1994
- * 获取当前参数类型
2173
+ * 获取当前参数值类型
1995
2174
  */
1996
2175
  getType(): EParamType;
1997
2176
  /**
@@ -2020,34 +2199,120 @@ export declare class FittingDesignService extends BaseService {
2020
2199
  */
2021
2200
  getRecommendValues(): NamedValue[];
2022
2201
  /**
2023
- * 获取value展示的值
2202
+ * 当为多布尔值时,展示的内容
2024
2203
  */
2025
2204
  getValueDisplayNames(): string[];
2026
2205
  /**
2027
2206
  * 是否需要将设置的参数覆盖原始参数信息
2028
2207
  * 仅对部分参数设计有效,具体细节,见对应场景
2208
+ * @deprecated 直接调用isOverridden()方法即可
2029
2209
  */
2030
2210
  getPrimitiveOverride(): boolean;
2031
2211
  /**
2032
2212
  * 是否需要将设置的参数覆盖原始参数信息
2213
+ * @deprecated 此逻辑,将在调用setValue时,自动完成此步骤,此方法可以忽略
2033
2214
  * @param value {boolean}
2034
2215
  */
2035
2216
  setPrimitiveOverride(value: boolean): void;
2217
+ /**
2218
+ * 获取公式
2219
+ * @internal
2220
+ */
2221
+ getFormula(): string | undefined;
2222
+ /**
2223
+ * 设置公式
2224
+ * @internal
2225
+ * @param formula
2226
+ */
2227
+ setFormula(formula: string): void;
2228
+ }
2229
+
2230
+ /**
2231
+ * 模型的板件轮廓信息
2232
+ */
2233
+ declare interface IParamModelLitePlankPath {
2234
+ /**
2235
+ * 获取原始外轮廓
2236
+ * 编辑器设置的外轮廓
2237
+ */
2238
+ getOriginOuterPath(): IPathData;
2239
+ /**
2240
+ * 获取原始内轮廓洞
2241
+ * 编辑器设置的内轮廓洞
2242
+ */
2243
+ getOriginInnerHoles(): IPathData[];
2244
+ /**
2245
+ * 获取外轮廓
2246
+ */
2247
+ getOuterPath(): IPathData;
2248
+ /**
2249
+ * 获取内轮廓洞的集合
2250
+ */
2251
+ getInnerHoles(): IPathData[];
2252
+ /**
2253
+ * 设置外轮廓
2254
+ * 全量替换原有的外轮廓
2255
+ */
2256
+ setOuterPath(path: IPathData): void;
2257
+ /**
2258
+ * 设置内轮廓洞
2259
+ * 全量替换原有的内轮廓洞
2260
+ */
2261
+ setInnerHoles(holes: IPathData[]): void;
2262
+ /**
2263
+ * 获取轮廓值
2264
+ * 调用updateAsync后取得准确
2265
+ * 叠加offset后的最终结果
2266
+ */
2267
+ getResult(): IPlankPathResult;
2268
+ }
2269
+
2270
+ /**
2271
+ * 轮廓数据
2272
+ */
2273
+ declare interface IPathData {
2274
+ /**
2275
+ * 轮廓上的点
2276
+ */
2277
+ paramPoints: IPlankPathPoint[];
2278
+ /**
2279
+ * 轮廓上的线
2280
+ */
2281
+ paramPathLines: IPlankPathLine[];
2282
+ /**
2283
+ * other fields
2284
+ */
2285
+ [key: string]: any;
2036
2286
  }
2037
2287
 
2288
+ declare type IPathResultData = IPathData & {
2289
+ /**
2290
+ * 轮廓绕向
2291
+ */
2292
+ clockwise?: boolean;
2293
+ };
2294
+
2038
2295
  /**
2039
2296
  * 板件轮廓描述
2040
2297
  */
2041
2298
  export declare interface IPlankArea {
2042
2299
  /**
2043
2300
  * 由板件原始轮廓数据解析出的所有路径
2301
+ * >包含一个外轮廓路径和任意个内部轮廓路径
2044
2302
  */
2045
2303
  paths: IPlankPath[];
2046
2304
 
2047
2305
  /**
2048
- * 对板件原始轮廓数据进行非直角端点处理、重合、偏移计算后的实际展示路径
2306
+ * 对板件原始轮廓数据进行非直角端点处理、重合、偏移计算后的实际展示路径,高亮时会将轮廓中心点放置到 (0, 0)
2307
+ * @param option.resetCenter 是否重置轮廓中心点为 (0, 0),默认为true
2308
+ * @param option.force 忽略计算缓存,同一个PlankArea对象,getRealPaths计算结果会被缓存,默认为false
2309
+ */
2310
+ getRealPaths(option?: { resetCenter?: boolean; force?: boolean }): IPlankArea;
2311
+
2312
+ /**
2313
+ * 获取外轮廓路径中心点坐标
2049
2314
  */
2050
- getRealPaths(): IPlankArea;
2315
+ getCenterPoint(): Number2_2 | undefined;
2051
2316
  }
2052
2317
 
2053
2318
  /**
@@ -2066,6 +2331,13 @@ export declare class FittingDesignService extends BaseService {
2066
2331
  modelId: string;
2067
2332
  }
2068
2333
 
2334
+ declare interface IPlankFaceId {
2335
+ /**
2336
+ * 当前交接信息所处的板面信息
2337
+ */
2338
+ plankFaceId: number;
2339
+ }
2340
+
2069
2341
  /**
2070
2342
  * 板件轮廓上的某条闭合路径,例如外轮廓、内部挖洞
2071
2343
  */
@@ -2085,7 +2357,7 @@ export declare class FittingDesignService extends BaseService {
2085
2357
  /**
2086
2358
  * 获取路径上实际渲染的端点
2087
2359
  */
2088
- getRenderPoints(): Number2[];
2360
+ getRenderPoints(): Number2_2[];
2089
2361
  }
2090
2362
 
2091
2363
  declare interface IPlankPathData {
@@ -2097,11 +2369,11 @@ export declare class FittingDesignService extends BaseService {
2097
2369
  [key: string]: any;
2098
2370
  }
2099
2371
 
2100
- declare interface IPlankPathLineData {
2372
+ declare interface IPlankPathLine {
2101
2373
  /**
2102
2374
  * 线条类型
2103
2375
  */
2104
- type: ELineType_3;
2376
+ type: ELineType;
2105
2377
  /**
2106
2378
  * 是否顺时针
2107
2379
  */
@@ -2113,9 +2385,11 @@ export declare class FittingDesignService extends BaseService {
2113
2385
  /**
2114
2386
  * 半径 (只有弧线有)
2115
2387
  */
2116
- radius?: number;
2388
+ radius?: string;
2117
2389
  }
2118
2390
 
2391
+ declare type IPlankPathLineData = ILineBase;
2392
+
2119
2393
  declare interface IPlankPathPathData {
2120
2394
  /**
2121
2395
  * 偏移, 正数扩大路径范围,负数缩小路径范围
@@ -2131,26 +2405,28 @@ export declare class FittingDesignService extends BaseService {
2131
2405
  paramPathLines: IPlankPathLineData[];
2132
2406
  }
2133
2407
 
2134
- declare interface IPlankPathPointData {
2408
+ declare interface IPlankPathPoint {
2135
2409
  /**
2136
2410
  * 点的位置
2137
- *
2138
2411
  * @example
2139
2412
  * "123,-345"
2413
+ * "#W/2,#D/2"
2140
2414
  */
2141
2415
  position: string;
2142
2416
  /**
2143
2417
  * 点的类型
2144
2418
  */
2145
- type: EPointType_2;
2419
+ type: EPointType;
2146
2420
  /**
2147
2421
  * 切角两边上切点距离当前点的距离(切角专用)
2148
2422
  */
2149
2423
  cornerCutDistance?: [string, string];
2150
2424
  /**
2151
- * 是否顺时针, 前端必须保证逆时针
2425
+ * 切圆必传
2426
+ * 轮廓路径顺时针 true=外弧 false=内弧
2427
+ * 轮廓路径逆时针 true=内弧 false=外弧
2152
2428
  */
2153
- clockwise?: EClockWise;
2429
+ clockwise?: boolean;
2154
2430
  /**
2155
2431
  * 半径 (倒圆切圆专用)
2156
2432
  * @example
@@ -2160,7 +2436,8 @@ export declare class FittingDesignService extends BaseService {
2160
2436
  /**
2161
2437
  * 圆心偏移 (切圆专用)
2162
2438
  * @example
2163
- * "345.12"
2439
+ * "0,0"
2440
+ * "#W/2,#D/2"
2164
2441
  */
2165
2442
  offset?: string;
2166
2443
  /**
@@ -2177,6 +2454,22 @@ export declare class FittingDesignService extends BaseService {
2177
2454
  minorRadius?: string;
2178
2455
  }
2179
2456
 
2457
+ declare type IPlankPathPointData = IPointBase;
2458
+
2459
+ /**
2460
+ * 轮廓值
2461
+ */
2462
+ declare interface IPlankPathResult {
2463
+ /**
2464
+ * 外轮廓
2465
+ */
2466
+ outerPath: IPathResultData;
2467
+ /**
2468
+ * 内轮廓洞
2469
+ */
2470
+ innerHoles: IPathResultData[];
2471
+ }
2472
+
2180
2473
  /**
2181
2474
  * 轮廓路径端点表示
2182
2475
  */
@@ -2185,7 +2478,7 @@ export declare class FittingDesignService extends BaseService {
2185
2478
  * 获取实际渲染端点
2186
2479
  * >非直角端点为渲染线段的两端,直角端点两个端点相同
2187
2480
  */
2188
- getRenderPoints(): [Number2, Number2];
2481
+ getRenderPoints(): [Number2_2, Number2_2];
2189
2482
  /**
2190
2483
  * 设置非直角端点渲染线段的高亮,高亮深度为板件厚度
2191
2484
  * @param hint 高亮配置
@@ -2208,6 +2501,9 @@ export declare class FittingDesignService extends BaseService {
2208
2501
  type: EPointType;
2209
2502
  /**
2210
2503
  * 点的位置
2504
+ *
2505
+ * @example
2506
+ * "123,-345"
2211
2507
  */
2212
2508
  position: Number3 | Number2;
2213
2509
  /**
@@ -2244,11 +2540,7 @@ export declare class FittingDesignService extends BaseService {
2244
2540
  /**
2245
2541
  * 倒圆
2246
2542
  */
2247
- export declare interface IPointWithCircle
2248
- extends Omit<
2249
- IPointBase,
2250
- 'clockwise' | 'majorRadius' | 'minorRadius' | 'cornerCutDistance' | 'offset'
2251
- > {
2543
+ export declare interface IPointWithCircle extends Omit<IPointBase, 'clockwise' | 'majorRadius' | 'minorRadius' | 'cornerCutDistance' | 'offset'> {
2252
2544
  /**
2253
2545
  * 切角类型
2254
2546
  */
@@ -2279,8 +2571,7 @@ export declare class FittingDesignService extends BaseService {
2279
2571
  /**
2280
2572
  * 切角
2281
2573
  */
2282
- export declare interface IPointWithLine
2283
- extends Omit<IPointBase, 'clockwise' | 'majorRadius' | 'minorRadius' | 'radius' | 'offset'> {
2574
+ export declare interface IPointWithLine extends Omit<IPointBase, 'clockwise' | 'majorRadius' | 'minorRadius' | 'radius' | 'offset'> {
2284
2575
  /**
2285
2576
  * 切角类型
2286
2577
  */
@@ -2294,11 +2585,7 @@ export declare class FittingDesignService extends BaseService {
2294
2585
  /**
2295
2586
  * 普通点类型
2296
2587
  */
2297
- export declare interface IPointWithNone
2298
- extends Omit<
2299
- IPointBase,
2300
- 'cornerCutDistance' | 'majorRadius' | 'minorRadius' | 'radius' | 'offset'
2301
- > {
2588
+ export declare interface IPointWithNone extends Omit<IPointBase, 'cornerCutDistance' | 'majorRadius' | 'minorRadius' | 'radius' | 'offset'> {
2302
2589
  /**
2303
2590
  * 普通点
2304
2591
  */
@@ -2387,6 +2674,10 @@ export declare class FittingDesignService extends BaseService {
2387
2674
  * 交接体展示时,使用的颜色
2388
2675
  */
2389
2676
  intersectedBodyColor: number;
2677
+ /**
2678
+ * 贯穿交接体展示时,使用的颜色
2679
+ */
2680
+ intersectedThroughColor: number;
2390
2681
  /**
2391
2682
  * 五金与柜体之间,交接面产生的颜色
2392
2683
  */
@@ -2942,6 +3233,11 @@ export declare class FittingDesignService extends BaseService {
2942
3233
  * @param options.ignoreCategory 真分类id过滤,默认值 CUSTOM_MODEL_CATEGORY_FILTER
2943
3234
  */
2944
3235
  getTopParamModels(options?: ITopParamModelListOption): Promise<ITopParamModelDataResponse>;
3236
+ /**
3237
+ * 获取模型缩略图信息
3238
+ * @param modelId
3239
+ * @returns 模型缩略图信息
3240
+ */
2945
3241
  getParamModelPhotoById(modelId: string | string[]): Promise<IParamModelPhotoResponse[]>;
2946
3242
  }
2947
3243
 
@@ -3136,9 +3432,6 @@ export declare class FittingDesignService extends BaseService {
3136
3432
  export declare class ModelViewerService extends BaseService {
3137
3433
  /**
3138
3434
  * 将工具方案中,选中的模型,加载到对接 2.0 小程序中展示
3139
- *
3140
- * 此方法,会成Application.start方法中,默认执行
3141
- *
3142
3435
  */
3143
3436
  viewSelected(): Promise<void>;
3144
3437
  /**
@@ -3161,6 +3454,11 @@ export declare class FittingDesignService extends BaseService {
3161
3454
  * @param flag
3162
3455
  */
3163
3456
  toggleModelTransparent(flag: boolean): void;
3457
+ /**
3458
+ * 设置模型为全透明模式
3459
+ * @param flag
3460
+ */
3461
+ toggleModelFullTransparent(flag: boolean): void;
3164
3462
  /**
3165
3463
  * 配置模型展示信息
3166
3464
  * - 交界面、交接体颜色
@@ -3178,6 +3476,24 @@ export declare class FittingDesignService extends BaseService {
3178
3476
  * > example: 调用工具API修改模型材质纹理方向(或其他属性)后,调用该API可手动同步模型修改到小程序渲染场景中(效果同退出小程序后重新进入),如果小程序中不存在任意模型,则抛出错误.
3179
3477
  */
3180
3478
  refreshModel(): Promise<void>;
3479
+ /**
3480
+ * 修改场景中可交互对象的[优先级](https://manual.kujiale.com/custom-sdk#/mini-app/annotation/index?id=%e4%ba%a4%e4%ba%92%e4%bc%98%e5%85%88%e7%ba%a7)配置
3481
+ * > 配置生效必须重新渲染模型
3482
+ * @example
3483
+ * ```
3484
+ * const viewer = getApplication().getService(ModelViewerService);
3485
+ * viewer.setInteractionPriority({ hole: 10, groove: 10, paramModel: 5 });
3486
+ * viewer.viewSelected(); // 重新渲染模型
3487
+ * viewer.viewModelById('xx'); // 指定渲染某个模型
3488
+ * ```
3489
+ *
3490
+ * @param options
3491
+ */
3492
+ setInteractionPriority(options: Partial<InteractionPriorityConfig>): void;
3493
+ /**
3494
+ * 获取场景中可交互对象的优先级配置
3495
+ */
3496
+ getInteractionPriority(): InteractionPriorityConfig;
3181
3497
  }
3182
3498
 
3183
3499
  /**
@@ -3194,7 +3510,7 @@ export declare class FittingDesignService extends BaseService {
3194
3510
  /**
3195
3511
  * 二维空间下:坐标/向量/旋转/尺寸的基础表示
3196
3512
  */
3197
- declare interface Number2_2 {
3513
+ declare interface Number2 {
3198
3514
  /**
3199
3515
  * x轴上的数据
3200
3516
  */
@@ -3208,13 +3524,31 @@ export declare class FittingDesignService extends BaseService {
3208
3524
  /**
3209
3525
  * 三维空间下,坐标/向量/旋转/尺寸的基础表示
3210
3526
  */
3211
- declare interface Number3_2 extends Number2_2 {
3527
+ declare interface Number3 extends Number2 {
3212
3528
  /**
3213
3529
  * z轴方向数据
3214
3530
  */
3215
3531
  z: number;
3216
3532
  }
3217
3533
 
3534
+ /**
3535
+ * 设置旋转/位置
3536
+ */
3537
+ declare interface Number3Formula {
3538
+ /**
3539
+ * X轴方向上的公式
3540
+ */
3541
+ x: string;
3542
+ /**
3543
+ * Y轴方向上的公式
3544
+ */
3545
+ y: string;
3546
+ /**
3547
+ * Z轴方向上的公式
3548
+ */
3549
+ z: string;
3550
+ }
3551
+
3218
3552
  /**
3219
3553
  * 底层板件轮廓服务,支持对模型json中轮廓解析为特定的类,暴露对轮廓数据查看、计算、修改的方法
3220
3554
  *