@jlceda/pro-api-types 0.1.91 → 0.1.93

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 +63 -45
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -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 导线图元对象
@@ -4632,7 +4635,7 @@ declare class IPCB_PrimitiveVia implements IPCB_Primitive {
4632
4635
  */
4633
4636
  getState_ViaType(): EPCB_PrimitiveViaType;
4634
4637
  /**
4635
- * 获取属性状态:盲埋孔设计规则项名称
4638
+ * 获取属性状态:盲埋孔设计规则项名��
4636
4639
  *
4637
4640
  * @public
4638
4641
  * @returns 盲埋孔设计规则项名称
@@ -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
  *
@@ -6690,7 +6711,7 @@ declare class PCB_Document {
6690
6711
  * 如果返回的数据为 `{ canvasOriginOffsetX: 100, canvasOriginOffsetY: 200 }`,
6691
6712
  * 则代表画布原点在数据原点的向右 100 单位且向上 200 单位的位置;
6692
6713
  *
6693
- * 此处的单位为数据层面单位,在跨度上等同于画布层面的 mil
6714
+ * 此处的单位为数据层面单位,在跨度上等同于画布���面的 mil
6694
6715
  * @returns 画布原点相对于数据原点的偏移坐标
6695
6716
  */
6696
6717
  getCanvasOrigin(): Promise<{
@@ -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
  /**
@@ -8195,7 +8207,7 @@ declare class PCB_PrimitivePolyline implements IPCB_PrimitiveAPI {
8195
8207
  * @beta
8196
8208
  * @param primitiveId - 图元 ID
8197
8209
  * @param property - 修改参数
8198
- * @returns 折线图元对象
8210
+ * @returns 折线图元���象
8199
8211
  */
8200
8212
  modify(primitiveId: string | IPCB_PrimitivePolyline, property: {
8201
8213
  net?: string;
@@ -9579,7 +9591,7 @@ declare class SYS_Environment {
9579
9591
  */
9580
9592
  isClient(): boolean;
9581
9593
  /**
9582
- * 是否为 EasyEDA Pro 版本
9594
+ * 是否为 EasyEDA Pro 版��
9583
9595
  *
9584
9596
  * @public
9585
9597
  * @returns 是否为 EasyEDA Pro 版本
@@ -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
  /**
@@ -10145,7 +10163,7 @@ declare class SYS_Storage {
10145
10163
  private extensionUuid?;
10146
10164
  /* Excluded from this release type: __constructor */
10147
10165
  /**
10148
- * 获取扩展所有用户配置
10166
+ * 获��扩展所有用户配置
10149
10167
  *
10150
10168
  * @public
10151
10169
  * @remarks 注意:本接口仅扩展有效,在独立脚本环境内调用将始终 `throw Error`
@@ -10548,7 +10566,7 @@ declare type TPCB_LayerTypesOfInnerLayer = EPCB_LayerType.SIGNAL | EPCB_LayerTyp
10548
10566
  *
10549
10567
  * `['CIRCLE', 100, 200, 5]`
10550
10568
  *
10551
- * 单多边形的数据由以下几种模式组合而成:
10569
+ * ��多边形的数据由以下几种模式组合而成:
10552
10570
  *
10553
10571
  * ① L 直线模式
10554
10572
  *
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.93",
4
4
  "description": "嘉立创EDA & EasyEDA 专业版扩展 API 接口类型定义",
5
5
  "typings": "index.d.ts",
6
6
  "keywords": [