@jlceda/pro-api-types 0.1.147 → 0.1.149

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 (2) hide show
  1. package/index.d.ts +49 -15
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -806,6 +806,11 @@ declare class DMT_Workspace {
806
806
  getCurrentWorkspaceInfo(): Promise<IDMT_WorkspaceItem | undefined>;
807
807
  }
808
808
 
809
+ declare enum EBoardOutlineSourceType {
810
+ FromKeepoutLayer = "keepout",
811
+ FromMechanicalLayer1 = "mechanical"
812
+ }
813
+
809
814
  /**
810
815
  * 嘉立创 EDA 专业版 API 接口
811
816
  *
@@ -1021,6 +1026,12 @@ declare enum EDMT_ProjectCollaborationMode {
1021
1026
  FREE = 1
1022
1027
  }
1023
1028
 
1029
+ declare enum EImportOptionType {
1030
+ ImportDocument = "ImportDocument",
1031
+ ExtractLibraries = "ExtractLibraries",
1032
+ ImportDocumentExtractLibraries = "ImportDocumentExtractLibraries"
1033
+ }
1034
+
1024
1035
  /**
1025
1036
  * 嘉立创贴片库类别
1026
1037
  *
@@ -1735,6 +1746,11 @@ declare enum ESCH_PrimitiveType {
1735
1746
  ELLIPSE = "Ellipse"
1736
1747
  }
1737
1748
 
1749
+ declare enum ESchPrimitiveStyle {
1750
+ UseSystemTheme = "system",
1751
+ UseSourceFileStyle = "custom"
1752
+ }
1753
+
1738
1754
  /**
1739
1755
  * 底部面板标签页
1740
1756
  *
@@ -1964,6 +1980,11 @@ declare enum ESYS_WindowOpenTarget {
1964
1980
  SELF = "_self"
1965
1981
  }
1966
1982
 
1983
+ declare enum EViaSolderMaskExpansion {
1984
+ AllCoverOil = "cover",
1985
+ FollowOriginalSetting = "custom"
1986
+ }
1987
+
1967
1988
  /**
1968
1989
  * 板子属性
1969
1990
  *
@@ -2160,7 +2181,7 @@ declare interface IDMT_PcbItem {
2160
2181
  readonly itemType: EDMT_ItemType.PCB | EDMT_ItemType.CBB_PCB;
2161
2182
  /** PCB UUID */
2162
2183
  uuid: string;
2163
- /** PCB ���称 */
2184
+ /** PCB 名称 */
2164
2185
  name: string;
2165
2186
  /** 所属工程 UUID */
2166
2187
  parentProjectUuid: string;
@@ -2736,6 +2757,18 @@ declare interface ILIB_SymbolSearchItem {
2736
2757
  lastModifiedBy: string;
2737
2758
  }
2738
2759
 
2760
+ /**
2761
+ * BOM 列的属性及排序规则
2762
+ *
2763
+ * @public
2764
+ */
2765
+ declare interface IPCB_BomPropertiesTableColumns {
2766
+ property: string;
2767
+ title?: string;
2768
+ sort?: null | 'asc' | 'desc';
2769
+ group?: null | 'Yes' | 'No';
2770
+ }
2771
+
2739
2772
  /**
2740
2773
  * 复杂多边形
2741
2774
  *
@@ -6000,7 +6033,7 @@ declare class IPCB_PrimitiveRegion implements IPCB_Primitive {
6000
6033
  */
6001
6034
  setState_LineWidth(lineWidth: number): IPCB_PrimitiveRegion;
6002
6035
  /**
6003
- * 设置属性状态:��否锁定
6036
+ * 设置属性状态:是否锁定
6004
6037
  *
6005
6038
  * @beta
6006
6039
  * @param primitiveLock - 是否锁定
@@ -7311,7 +7344,7 @@ declare class ISCH_PrimitiveComponent implements ISCH_Primitive {
7311
7344
  */
7312
7345
  getState_SubPartName(): string | undefined;
7313
7346
  /**
7314
- * 获取属性状态:旋转角��
7347
+ * 获取属性状态:旋转角度
7315
7348
  *
7316
7349
  * @public
7317
7350
  * @returns 旋转角度
@@ -9097,13 +9130,6 @@ declare interface ISYS_WindowEventListenerRemovableObject {
9097
9130
  };
9098
9131
  }
9099
9132
 
9100
- declare interface ITableColum {
9101
- property: string;
9102
- title?: string;
9103
- sort?: null | 'asc' | 'desc';
9104
- group?: null | 'Yes' | 'No';
9105
- }
9106
-
9107
9133
  /**
9108
9134
  * 综合库 / 3D 模型类
9109
9135
  *
@@ -10719,7 +10745,7 @@ declare class PCB_ManufactureData {
10719
10745
  getBomFile(fileName?: string, fileType?: 'xlsx' | 'csv', template?: string, filterOptions?: Array<{
10720
10746
  property: string;
10721
10747
  includeValue: boolean | string;
10722
- }>, statistics?: Array<string>, property?: Array<string>, columns?: ITableColum[]): Promise<File | undefined>;
10748
+ }>, statistics?: Array<string>, property?: Array<string>, columns?: Array<IPCB_BomPropertiesTableColumns>): Promise<File | undefined>;
10723
10749
  /**
10724
10750
  * 获取测试点报告文件
10725
10751
  *
@@ -11934,7 +11960,7 @@ declare class PCB_PrimitivePolyline implements IPCB_PrimitiveAPI {
11934
11960
  *
11935
11961
  * @beta
11936
11962
  * @param primitiveIds - 折线的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
11937
- * @returns 折线图元对象,`undefined` ���示获取失败
11963
+ * @returns 折线图元对象,`undefined` 表示获取失败
11938
11964
  */
11939
11965
  get(primitiveIds: string): Promise<IPCB_PrimitivePolyline | undefined>;
11940
11966
  /**
@@ -12432,9 +12458,17 @@ declare class SCH_ManufactureData {
12432
12458
  * @remarks 可以使用 {@link SYS_FileSystem.saveFile} 接口将文件导出到本地文件系统
12433
12459
  * @param fileName - 文件名
12434
12460
  * @param fileType - 文件类型
12461
+ * @param template - 模板名称
12462
+ * @param filterOptions - 过滤规则,仅应包含需要启用的规则,`property` 为规则名称,`includeValue` 为匹配的值
12463
+ * @param statistics - 统计,包含所有需要启用的统计项的名称
12464
+ * @param property - 属性,包含所有需要启用的属性的名称
12465
+ * @param columns - 列的属性及排序,`title`、`sort`、`group`、`orderWeight` 不传入则取默认值,`null` 代表 **无** 或 **空**
12435
12466
  * @returns BOM 文件数据
12436
12467
  */
12437
- getBomFile(fileName?: string, fileType?: 'xlsx' | 'csv'): Promise<File | undefined>;
12468
+ getBomFile(fileName?: string, fileType?: 'xlsx' | 'csv', template?: string, filterOptions?: Array<{
12469
+ property: string;
12470
+ includeValue: boolean | string;
12471
+ }>, statistics?: Array<string>, property?: Array<string>, columns?: Array<IPCB_BomPropertiesTableColumns>): Promise<File | undefined>;
12438
12472
  /**
12439
12473
  * 获取网表文件(Netlist)
12440
12474
  *
@@ -14223,7 +14257,7 @@ declare class SYS_FileSystem {
14223
14257
  *
14224
14258
  * @beta
14225
14259
  * @remarks
14226
- * 注意 1:本接口仅客户端有效,在浏览器环境内调用将始终 `throw Error`
14260
+ * 注意 1:本接口仅客���端有效,在浏览器环境内调用将始终 `throw Error`
14227
14261
  *
14228
14262
  * 注意 2:本接口需要使用者启用扩展的外部交互权限,如若未启用将始终 `throw Error`
14229
14263
  * @param folderPath - 目录路径
@@ -14745,7 +14779,7 @@ declare class SYS_ShortcutKey {
14745
14779
  * @param callbackFn - 回调函数
14746
14780
  * @returns 注册操作是否成功
14747
14781
  */
14748
- registerShortcutKey(shortcutKey: TSYS_ShortcutKeys, title: string, callbackFn: (shortcutKey: TSYS_ShortcutKeys) => void | Promise<void>, documentType: Array<ESYS_ShortcutKeyEffectiveEditorDocumentType> | undefined, scene: Array<ESYS_ShortcutKeyEffectiveEditorScene> | undefined, hotkeyCmd: string): Promise<boolean>;
14782
+ registerShortcutKey(shortcutKey: TSYS_ShortcutKeys, title: string, callbackFn: (shortcutKey: TSYS_ShortcutKeys) => void | Promise<void>, documentType?: Array<ESYS_ShortcutKeyEffectiveEditorDocumentType>, scene?: Array<ESYS_ShortcutKeyEffectiveEditorScene>): Promise<boolean>;
14749
14783
  /**
14750
14784
  * 反注册快捷键
14751
14785
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jlceda/pro-api-types",
3
- "version": "0.1.147",
3
+ "version": "0.1.149",
4
4
  "description": "嘉立创EDA & EasyEDA 专业版扩展 API 接口类型定义",
5
5
  "typings": "index.d.ts",
6
6
  "keywords": [