@manycore/custom-sdk 1.13.11-alpha.3 → 1.13.12-alpha.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 +46 -0
  2. package/index.js +11 -11
  3. package/package.json +3 -3
package/index.d.ts CHANGED
@@ -4,6 +4,18 @@ 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
+ /**
8
+ * app 配置服务
9
+ */
10
+ export declare class AppConfigService extends BaseService {
11
+ /**
12
+ * 更改获取JSON数据的默认配置信息
13
+ *
14
+ * @param option
15
+ */
16
+ setGetJsonConfig(option: IJsonOutputConfig): void;
17
+ }
18
+
7
19
  /**
8
20
  * 对接2.0主应用
9
21
  *
@@ -954,6 +966,16 @@ export declare class FittingDesignService extends BaseService {
954
966
  * @param id 待删除标识信息的模型ID,默认清空所有
955
967
  */
956
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;
957
979
  }
958
980
 
959
981
  /**
@@ -1421,8 +1443,14 @@ export declare class FittingDesignService extends BaseService {
1421
1443
  force?: boolean;
1422
1444
  /**
1423
1445
  * 模板id
1446
+ * 如果不传,将从配置模板中,获取默认配置
1424
1447
  */
1425
1448
  templateId?: string;
1449
+ /**
1450
+ * 忽略重置默认位置,如果不传入此参数,将会从`AppConfigService`设置的配置中读取
1451
+ * @default false
1452
+ */
1453
+ ignoreResetPosition?: boolean;
1426
1454
  }
1427
1455
 
1428
1456
  export declare interface IGrooveData extends IBaseHoleGrooveData {
@@ -1585,6 +1613,19 @@ export declare class FittingDesignService extends BaseService {
1585
1613
  */
1586
1614
  export declare type IIntersectedResult = IIntersectedData;
1587
1615
 
1616
+ export declare interface IJsonOutputConfig {
1617
+ /**
1618
+ * 默认模板ID
1619
+ */
1620
+ defaultTemplateId?: string;
1621
+
1622
+ /**
1623
+ * 忽略重置默认位置
1624
+ * @default false
1625
+ */
1626
+ ignoreResetPosition?: boolean;
1627
+ }
1628
+
1588
1629
  /**
1589
1630
  * 轮廓路径线段表示
1590
1631
  */
@@ -3405,6 +3446,11 @@ export declare class FittingDesignService extends BaseService {
3405
3446
  * @param flag
3406
3447
  */
3407
3448
  toggleModelTransparent(flag: boolean): void;
3449
+ /**
3450
+ * 设置模型为全透明模式
3451
+ * @param flag
3452
+ */
3453
+ toggleModelFullTransparent(flag: boolean): void;
3408
3454
  /**
3409
3455
  * 配置模型展示信息
3410
3456
  * - 交界面、交接体颜色