@jlceda/pro-api-types 0.1.80 → 0.1.81

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 +54 -13
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -1187,7 +1187,7 @@ declare enum EPCB_LayerId {
1187
1187
  SHELL_3D_TOP = 54,
1188
1188
  /** 3D 外壳底层 */
1189
1189
  SHELL_3D_BOTTOM = 55,
1190
- /** 钻��图层 */
1190
+ /** 钻孔图层 */
1191
1191
  DRILL_DRAWING = 56
1192
1192
  }
1193
1193
 
@@ -1930,7 +1930,7 @@ declare interface ILIB_CbbItem {
1930
1930
  }
1931
1931
 
1932
1932
  /**
1933
- * 搜索��的复用模块属性
1933
+ * 搜索到的复用模块属性
1934
1934
  *
1935
1935
  * @public
1936
1936
  */
@@ -5552,7 +5552,7 @@ declare interface ISYS_MultilingualLanguagesData {
5552
5552
  * 窗口事件监听可移除对象
5553
5553
  *
5554
5554
  * @public
5555
- * @remarks 本对象从 {@link addEventListener} 获取,并可用于移除创建的事件监听,仅需将其传入 {@link removeEventListener}
5555
+ * @remarks 本对象从 {@link SYS_Window.addEventListener | addEventListener} 获取,并可用于移除创建的事件监听,仅需将其传入 {@link SYS_Window.removeEventListener | removeEventListener}
5556
5556
  */
5557
5557
  declare interface ISYS_WindowEventListenerRemovableObject {
5558
5558
  type: ESYS_WindowEventType;
@@ -5686,10 +5686,10 @@ declare class LIB_Cbb {
5686
5686
  */
5687
5687
  get(cbbUuid: string, libraryUuid?: string): Promise<ILIB_CbbItem | undefined>;
5688
5688
  /**
5689
- * 复制复用模块
5689
+ * 复制复用���块
5690
5690
  *
5691
5691
  * @beta
5692
- * @param cbbUuid - 复用模��� UUID
5692
+ * @param cbbUuid - 复用模块 UUID
5693
5693
  * @param libraryUuid - 库 UUID,可以使用 {@link LIB_LibrariesList} 内的接口获取
5694
5694
  * @param targetLibraryUuid - 目标库 UUID
5695
5695
  * @param targetClassification - 目标库内的分类
@@ -6266,6 +6266,15 @@ declare class PCB_Document {
6266
6266
  * @returns 导入操作是否成功,导入失败或游离 PCB 返回 `false`
6267
6267
  */
6268
6268
  importChanges(uuid: string): Promise<boolean>;
6269
+ /**
6270
+ * 导入旧版自动布线文件(JSON)
6271
+ *
6272
+ * @public
6273
+ * @remarks 可以使用 {@link SYS_FileSystem.openReadFileDialog} 读入文件
6274
+ * @param autoRouteFile - 欲导入的 JSON 文件
6275
+ * @returns 导入操作是否成功
6276
+ */
6277
+ importOldAutoRouteJsonFile(autoRouteFile: File): Promise<boolean>;
6269
6278
  /**
6270
6279
  * 保存文档
6271
6280
  *
@@ -6940,7 +6949,7 @@ declare class PCB_ManufactureData {
6940
6949
  *
6941
6950
  * @beta
6942
6951
  * @remarks
6943
- * 请注意:只有以 STEP 格式导入的元件模型,才能在导出的 STEP 文件���体现
6952
+ * 请注意:只有以 STEP 格式导入的元件模型,才能在导出的 STEP 文件中体现
6944
6953
  *
6945
6954
  * 可以使用 {@link SYS_FileSystem.saveFile} 接口将文件导出到本地文件系统
6946
6955
  * @param fileName - 文件名
@@ -7047,9 +7056,41 @@ declare class PCB_ManufactureData {
7047
7056
  * @beta
7048
7057
  * @remarks 可以使用 {@link SYS_FileSystem.saveFile} 接口将文件导出到本地文件系统
7049
7058
  * @param fileName - 文件名
7050
- * @returns 自动布线文件数据
7059
+ * @returns 自动布线 DSN 文件数据
7051
7060
  */
7052
7061
  getDsnFile(fileName?: string): Promise<File | undefined>;
7062
+ /**
7063
+ * 获取旧版自动布线文件(JSON)
7064
+ *
7065
+ * @alpha
7066
+ * @remarks 可以使用 {@link SYS_FileSystem.saveFile} 接口将文件导出到本地文件系统
7067
+ * @deprecated 新版自动布线 JSON 文件正在开发中,之后将会取代本接口
7068
+ * @param fileName - 文件名
7069
+ * @param routeNet - 布线网络,`All` 所有网络、`SelectedNet` 所选网络、`SelectedComponentsNet` 所选器件的网络
7070
+ * @param cablingCorner - 布线拐角,支持 `45` 度或 `90` 度
7071
+ * @param existingWiresAndVias - 已有导线/过孔的处理方式,`Save` 保留、`Remove` 移除
7072
+ * @param performancePriority - 效果优先级,`Quality` 质量(完成度优先)、`Fast` 快速(速度优先)
7073
+ * @param netPriority - 网络优先级,
7074
+ *
7075
+ * `Default` 默认、`Random` 随机、`Custom net names are preferred` 有自定义网络名的网络优先、
7076
+ *
7077
+ * `Pads from more to less` 焊盘从多到少、`Pads from less to more` 焊盘从少到多、
7078
+ *
7079
+ * `Pads from far to near` 焊盘从远到近、`Pads from near to far` 焊盘从近到远
7080
+ * @param routeLayers - 布线图层,`All` 所有层,你也可以在数组内列出所有需要布线的铜箔层
7081
+ * @param ignoredNets - 忽略的网络,请在数组内列出所有忽略的网络的名称
7082
+ * @returns 旧版自动布线 JSON 文件数据
7083
+ */
7084
+ /**
7085
+ * 获取旧版自动布线文件(JSON)
7086
+ *
7087
+ * @public
7088
+ * @remarks 可以使用 {@link SYS_FileSystem.saveFile} 接口将文件导出到本地文件系统
7089
+ * @deprecated 新版自动布线 JSON 文件正在开发中,之后将会取代本接口
7090
+ * @param fileName - 文件名
7091
+ * @returns 旧版自动布线 JSON 文件数据
7092
+ */
7093
+ getOldAutoRouteJsonFile(fileName?: string): Promise<File | undefined>;
7053
7094
  /**
7054
7095
  * 获取 PCB 信息文件
7055
7096
  *
@@ -7282,7 +7323,7 @@ declare class PCB_PrimitiveArc implements IPCB_PrimitiveAPI {
7282
7323
  * @param net - 网络名称
7283
7324
  * @param layer - 层
7284
7325
  * @param primitiveLock - 是否锁定
7285
- * @returns 圆弧线图元对象数组
7326
+ * @returns ���弧线图元对象数组
7286
7327
  */
7287
7328
  getAll(net?: string, layer?: TPCB_LayersOfLine, primitiveLock?: boolean): Promise<Array<IPCB_PrimitiveArc>>;
7288
7329
  }
@@ -8116,7 +8157,7 @@ declare class SCH_Event {
8116
8157
  * 原理图 & 符号 / 生产资料类
8117
8158
  *
8118
8159
  * @public
8119
- * @remarks 获取当前原理图图页的生产资料文件及快��下单
8160
+ * @remarks 获取当前原理图图页的生产资料文件及快捷下单
8120
8161
  */
8121
8162
  declare class SCH_ManufactureData {
8122
8163
  /**
@@ -8683,7 +8724,7 @@ declare class SCH_PrimitivePin implements ISCH_PrimitiveAPI {
8683
8724
  *
8684
8725
  * @beta
8685
8726
  * @remarks 当处于符号编辑器时,componentPrimitiveId 应始终为 undefined
8686
- * @returns 引脚���图元 ID 数组
8727
+ * @returns 引脚的图元 ID 数组
8687
8728
  */
8688
8729
  getAllPrimitiveId(componentPrimitiveId?: string | ISCH_PrimitiveComponent): Promise<Array<string>>;
8689
8730
  /**
@@ -8777,7 +8818,7 @@ declare class SCH_PrimitiveRectangle implements ISCH_PrimitiveAPI {
8777
8818
  * @param cornerRadius - 圆角半径
8778
8819
  * @param rotation - 旋转角度,绕左上点旋转,可选 `0` `90` `180` `270`
8779
8820
  * @param color - 颜色,`null` 表示默认
8780
- * @param fillColor - 填充颜色,`none` 表示无填充,`null` 表示���认
8821
+ * @param fillColor - 填充颜色,`none` 表示无填充,`null` 表示默认
8781
8822
  * @param lineWidth - 线宽,范围 `1-10`,`null` 表示默认
8782
8823
  * @param lineType - 线型,`0` 实线,`1` 短划线,`2` 点线,`3` 点划线,`null` 表示默认
8783
8824
  * @returns 矩形图元对象
@@ -9058,7 +9099,7 @@ declare class SYS_ClientUrl {
9058
9099
  *
9059
9100
  * @public
9060
9101
  * @remarks
9061
- * 请注意,需要在被请求的站点上允许跨源资源共享(CORS),否��接口将始终返回错误结果。
9102
+ * 请注意,需要在被请求的站点上允许跨源资源共享(CORS),否则接口将始终返回错误结果。
9062
9103
  *
9063
9104
  * 更多信息,请查阅 {@link https://developer.mozilla.org/docs/Web/HTTP/CORS | 跨源资源共享 (CORS) - MDN}。
9064
9105
  *
@@ -9879,7 +9920,7 @@ declare class SYS_Unit {
9879
9920
  }
9880
9921
 
9881
9922
  /**
9882
- * ���统 / WebSocket 类
9923
+ * 系统 / WebSocket 类
9883
9924
  *
9884
9925
  * @public
9885
9926
  * @remarks 与 WebSocket 服务器交互
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jlceda/pro-api-types",
3
- "version": "0.1.80",
3
+ "version": "0.1.81",
4
4
  "description": "嘉立创EDA & EasyEDA 专业版扩展 API 接口类型定义",
5
5
  "typings": "index.d.ts",
6
6
  "keywords": [