@jlceda/pro-api-types 0.1.91 → 0.1.92

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 +60 -42
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -413,7 +413,7 @@ declare class DMT_Project {
413
413
  * @beta
414
414
  * @param projectFriendlyName - 工程友好名称
415
415
  * @param projectName - 工程名称,仅支持字母 `a-zA-Z`、数字 `0-9`、中划线 `-`,如若不指定,则根据工程友好名称自动生成
416
- * @param teamUuid - 团队 UUID,如若不指定,则默认为个人;在不存在个人工程的环境下必须指定团队 UUID
416
+ * @param teamUuid - 团队 UUID,如若不指定,则默认为个人;在不存在个人工程的环境下必须指定��队 UUID
417
417
  * @param folderUuid - 文件夹 UUID,如若不指定,则为根文件夹
418
418
  * @param description - 工程描述
419
419
  * @param collaborationMode - 工程协作模式,如若团队权限无需工程设置协作模式,则该参数将被忽略
@@ -754,6 +754,9 @@ declare class EDA {
754
754
  pcb_PrimitiveRegion: PCB_PrimitiveRegion;
755
755
  pcb_PrimitiveVia: PCB_PrimitiveVia;
756
756
  pcb_SelectControl: PCB_SelectControl;
757
+ EPCB_LayerId: {
758
+ [key: string]: number;
759
+ };
757
760
  pnl_Document: PNL_Document;
758
761
  sch_Document: SCH_Document;
759
762
  sch_Drc: SCH_Drc;
@@ -2044,36 +2047,12 @@ declare interface ILIB_DeviceAssociationItem {
2044
2047
  footprintUuid?: string;
2045
2048
  }
2046
2049
 
2047
- /**
2048
- * 器件属性
2049
- *
2050
- * @public
2051
- */
2052
- declare interface ILIB_DeviceItem {
2053
- /** 库类型 */
2054
- readonly libraryType: ELIB_LibraryType.DEVICE;
2055
- /** 器件 UUID */
2056
- uuid: string;
2057
- /** 所属库 UUID */
2058
- libraryUuid: string;
2059
- /** 器件名称 */
2060
- name: string;
2061
- /** 器件分类 */
2062
- classification?: ILIB_ClassificationIndex;
2063
- /** 关联 */
2064
- association: ILIB_DeviceAssociationItem;
2065
- /** 描述 */
2066
- description?: string;
2067
- /** 扩展属性 */
2068
- property: ILIB_DevicePropertyItem;
2069
- }
2070
-
2071
2050
  /**
2072
2051
  * 器件扩展属性
2073
2052
  *
2074
2053
  * @public
2075
2054
  */
2076
- declare interface ILIB_DevicePropertyItem {
2055
+ declare interface ILIB_DeviceExtendPropertyItem {
2077
2056
  /** 名称 */
2078
2057
  name?: string;
2079
2058
  /** 位号 */
@@ -2096,6 +2075,30 @@ declare interface ILIB_DevicePropertyItem {
2096
2075
  [key: string]: boolean | number | string | undefined;
2097
2076
  }
2098
2077
 
2078
+ /**
2079
+ * 器件属性
2080
+ *
2081
+ * @public
2082
+ */
2083
+ declare interface ILIB_DeviceItem {
2084
+ /** 库类型 */
2085
+ readonly libraryType: ELIB_LibraryType.DEVICE;
2086
+ /** 器件 UUID */
2087
+ uuid: string;
2088
+ /** 所属库 UUID */
2089
+ libraryUuid: string;
2090
+ /** 器件名称 */
2091
+ name: string;
2092
+ /** 器件分类 */
2093
+ classification?: ILIB_ClassificationIndex;
2094
+ /** 关联 */
2095
+ association: ILIB_DeviceAssociationItem;
2096
+ /** 描述 */
2097
+ description?: string;
2098
+ /** 扩展属性 */
2099
+ property: ILIB_DeviceExtendPropertyItem;
2100
+ }
2101
+
2099
2102
  /**
2100
2103
  * 搜索到的器件属性
2101
2104
  *
@@ -2601,7 +2604,7 @@ declare class IPCB_PrimitiveArc implements IPCB_Primitive {
2601
2604
  *
2602
2605
  * @beta
2603
2606
  * @param layer - 层
2604
- * @returns 圆弧线图元对象
2607
+ * @returns 圆弧线图��对象
2605
2608
  */
2606
2609
  setState_Layer(layer: TPCB_LayersOfLine): IPCB_PrimitiveArc;
2607
2610
  /**
@@ -3576,7 +3579,7 @@ declare class IPCB_PrimitiveLine implements IPCB_Primitive {
3576
3579
  */
3577
3580
  reset(): Promise<IPCB_PrimitiveLine>;
3578
3581
  /**
3579
- * 将对���元的更改应用到画布
3582
+ * 将对图元的更改应用到画布
3580
3583
  *
3581
3584
  * @beta
3582
3585
  * @returns 导线图元对象
@@ -3867,7 +3870,7 @@ declare class IPCB_PrimitivePad implements IPCB_Primitive {
3867
3870
  */
3868
3871
  setState_HoleOffsetX(holeOffsetX: number): IPCB_PrimitivePad;
3869
3872
  /**
3870
- * 设置属性状态:孔偏移 Y
3873
+ * 设置属性状态:孔偏��� Y
3871
3874
  *
3872
3875
  * @beta
3873
3876
  * @remarks 如若孔不存在,则属性将不会被修改
@@ -5058,7 +5061,7 @@ declare class ISCH_PrimitiveComponent implements ISCH_Primitive {
5058
5061
  private readonly primitiveType;
5059
5062
  /** 器件类型 */
5060
5063
  private componentType;
5061
- /** 图元 ID */
5064
+ /** ���元 ID */
5062
5065
  private primitiveId?;
5063
5066
  /** 关联库器件 */
5064
5067
  private component;
@@ -5382,7 +5385,7 @@ declare class ISCH_PrimitiveComponent implements ISCH_Primitive {
5382
5385
  *
5383
5386
  * @beta
5384
5387
  * @param otherProperty - 其它参数
5385
- * @returns ���件图元对象
5388
+ * @returns 器件图元对象
5386
5389
  */
5387
5390
  setState_OtherProperty(otherProperty: {
5388
5391
  [key: string]: string;
@@ -5849,6 +5852,24 @@ declare class ISCH_PrimitiveWire implements ISCH_Primitive {
5849
5852
  done(): ISCH_PrimitiveWire;
5850
5853
  }
5851
5854
 
5855
+ /**
5856
+ * 文件系统文件路径
5857
+ *
5858
+ * @public
5859
+ */
5860
+ declare interface ISYS_FileSystemFileList {
5861
+ /** 文件名(前后均无斜杠) */
5862
+ fileName: string;
5863
+ /** 是否为目录 */
5864
+ isDirectory: boolean;
5865
+ /** 目录子文件 */
5866
+ subFiles?: Array<ISYS_FileSystemFileList>;
5867
+ /** 相对路径,不包含前面的传入路径和文件名(当没有传入路径时,不存在相对路径),且前后均无斜杠 */
5868
+ relativePath?: string;
5869
+ /** 完整路径,包含文件名的绝对路径 */
5870
+ fullPath: string;
5871
+ }
5872
+
5852
5873
  /**
5853
5874
  * 语言数据键值对
5854
5875
  *
@@ -6188,7 +6209,7 @@ declare class LIB_Device {
6188
6209
  symbolType?: ELIB_SymbolType;
6189
6210
  symbolUuid?: string;
6190
6211
  footprintUuid?: string;
6191
- }, description?: string, property?: ILIB_DevicePropertyItem): Promise<string | undefined>;
6212
+ }, description?: string, property?: ILIB_DeviceExtendPropertyItem): Promise<string | undefined>;
6192
6213
  /**
6193
6214
  * 删除器件
6194
6215
  *
@@ -7466,15 +7487,6 @@ declare class PCB_ManufactureData {
7466
7487
  /* Excluded from this release type: placeSmtComponentsOrder */
7467
7488
  /* Excluded from this release type: placePcbOrder */
7468
7489
  /* Excluded from this release type: place3DShellOrder */
7469
- /**
7470
- * 获取 IPC-D-356A 文件
7471
- *
7472
- * @beta
7473
- * @remarks 可以使用 {@link SYS_FileSystem.saveFile} 接口将文件导出到本地文件系统
7474
- * @param fileName - 文件名
7475
- * @returns IPC-D-356A 文件
7476
- */
7477
- getIPCFile(fileName?: string): Promise<File | undefined>;
7478
7490
  }
7479
7491
 
7480
7492
  /**
@@ -7889,7 +7901,7 @@ declare class PCB_PrimitiveFill implements IPCB_PrimitiveAPI {
7889
7901
  }
7890
7902
 
7891
7903
  /**
7892
- * PCB & 封装 / 图像图元类
7904
+ * PCB & 封装 / 图像��元类
7893
7905
  *
7894
7906
  * @public
7895
7907
  */
@@ -9748,6 +9760,12 @@ declare class SYS_FileSystem {
9748
9760
  saveFile(fileData: File | Blob, fileName?: string): Promise<void>;
9749
9761
  /* Excluded from this release type: readFileFromFileSystem */
9750
9762
  /* Excluded from this release type: saveFileToFileSystem */
9763
+ /* Excluded from this release type: listFilesOfFileSystem */
9764
+ /* Excluded from this release type: deleteFileInFileSystem */
9765
+ /* Excluded from this release type: getEdaPath */
9766
+ /* Excluded from this release type: getDocumentsPath */
9767
+ /* Excluded from this release type: getLibrariesPaths */
9768
+ /* Excluded from this release type: getProjectsPaths */
9751
9769
  }
9752
9770
 
9753
9771
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jlceda/pro-api-types",
3
- "version": "0.1.91",
3
+ "version": "0.1.92",
4
4
  "description": "嘉立创EDA & EasyEDA 专业版扩展 API 接口类型定义",
5
5
  "typings": "index.d.ts",
6
6
  "keywords": [