@manycore/custom-sdk 1.13.9 → 1.13.11-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.
Files changed (3) hide show
  1. package/index.d.ts +31 -0
  2. package/index.js +8 -8
  3. package/package.json +2 -2
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
  *
@@ -1421,8 +1433,14 @@ export declare class FittingDesignService extends BaseService {
1421
1433
  force?: boolean;
1422
1434
  /**
1423
1435
  * 模板id
1436
+ * 如果不传,将从配置模板中,获取默认配置
1424
1437
  */
1425
1438
  templateId?: string;
1439
+ /**
1440
+ * 忽略重置默认位置,如果不传入此参数,将会从`AppConfigService`设置的配置中读取
1441
+ * @default false
1442
+ */
1443
+ ignoreResetPosition?: boolean;
1426
1444
  }
1427
1445
 
1428
1446
  export declare interface IGrooveData extends IBaseHoleGrooveData {
@@ -1585,6 +1603,19 @@ export declare class FittingDesignService extends BaseService {
1585
1603
  */
1586
1604
  export declare type IIntersectedResult = IIntersectedData;
1587
1605
 
1606
+ export declare interface IJsonOutputConfig {
1607
+ /**
1608
+ * 默认模板ID
1609
+ */
1610
+ defaultTemplateId?: string;
1611
+
1612
+ /**
1613
+ * 忽略重置默认位置
1614
+ * @default false
1615
+ */
1616
+ ignoreResetPosition?: boolean;
1617
+ }
1618
+
1588
1619
  /**
1589
1620
  * 轮廓路径线段表示
1590
1621
  */