@jlceda/pro-api-types 0.2.35 → 0.2.36
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.
- package/index.d.ts +13 -13
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -498,7 +498,7 @@ declare global {
|
|
|
498
498
|
* 搜索符号
|
|
499
499
|
*
|
|
500
500
|
* @beta
|
|
501
|
-
* @param key -
|
|
501
|
+
* @param key - 搜索��键字
|
|
502
502
|
* @param libraryUuid - 库 UUID,默认为系统库,可以使用 {@link LIB_LibrariesList} 内的接口获取
|
|
503
503
|
* @param classification - 分类,默认为全部
|
|
504
504
|
* @param symbolType - 符号类型,默认为全部
|
|
@@ -3371,7 +3371,7 @@ declare global {
|
|
|
3371
3371
|
* 保存文档
|
|
3372
3372
|
*
|
|
3373
3373
|
* @public
|
|
3374
|
-
* @returns
|
|
3374
|
+
* @returns 保存操作是否成功,保存失败、上传失败等错误均返回 `false`
|
|
3375
3375
|
*/
|
|
3376
3376
|
save(uuid: string): Promise<boolean>;
|
|
3377
3377
|
/**
|
|
@@ -4784,7 +4784,7 @@ declare global {
|
|
|
4784
4784
|
*
|
|
4785
4785
|
* 注意:本接口需要启用 **工程设计图 \> 文件导出** 权限,没有权限调用将始终 `throw Error`
|
|
4786
4786
|
* @param fileName - 文件名
|
|
4787
|
-
* @param password -
|
|
4787
|
+
* @param password - 加密密码
|
|
4788
4788
|
* @param fileType - 文件格式
|
|
4789
4789
|
* @returns 文档文件数据,`undefined` 表示当前未打开文档或数据获取失败
|
|
4790
4790
|
*/
|
|
@@ -5546,7 +5546,7 @@ declare global {
|
|
|
5546
5546
|
* 获取 JRouter 专用自动布线文件(JSON)
|
|
5547
5547
|
*
|
|
5548
5548
|
* @beta
|
|
5549
|
-
* @remarks 可以使用 {@link SYS_FileSystem.saveFile}
|
|
5549
|
+
* @remarks 可以使用 {@link SYS_FileSystem.saveFile} 接口将文件导出到本地文件系统
|
|
5550
5550
|
* @param fileName - 文件名
|
|
5551
5551
|
* @returns 自动布线 JSON 文件数据
|
|
5552
5552
|
*/
|
|
@@ -8869,7 +8869,7 @@ declare global {
|
|
|
8869
8869
|
*
|
|
8870
8870
|
* @beta
|
|
8871
8871
|
* @param primitiveId - 图元 ID
|
|
8872
|
-
* @param property -
|
|
8872
|
+
* @param property - 修���参数
|
|
8873
8873
|
* @returns 折线图元对象
|
|
8874
8874
|
*/
|
|
8875
8875
|
modify(primitiveId: string | IPCB_PrimitivePolyline, property: {
|
|
@@ -10505,7 +10505,7 @@ declare global {
|
|
|
10505
10505
|
*
|
|
10506
10506
|
* @beta
|
|
10507
10507
|
* @param layer - 层
|
|
10508
|
-
* @returns
|
|
10508
|
+
* @returns 器件图元对象
|
|
10509
10509
|
*/
|
|
10510
10510
|
setState_Layer(layer: TPCB_LayersOfComponent): IPCB_PrimitiveComponent;
|
|
10511
10511
|
/**
|
|
@@ -11636,7 +11636,7 @@ declare global {
|
|
|
11636
11636
|
* 将图元转换为异步图元
|
|
11637
11637
|
*
|
|
11638
11638
|
* @public
|
|
11639
|
-
* @returns
|
|
11639
|
+
* @returns 二进制内嵌对象图���对象
|
|
11640
11640
|
*/
|
|
11641
11641
|
toAsync(): IPCB_PrimitiveObject;
|
|
11642
11642
|
/**
|
|
@@ -14881,7 +14881,7 @@ declare global {
|
|
|
14881
14881
|
* @param addIntoPcb - 是否转到 PCB
|
|
14882
14882
|
* @param designator - 位号
|
|
14883
14883
|
* @param name - 名称,`null` 表示留空
|
|
14884
|
-
* @param uniqueId - 唯一 ID,`null`
|
|
14884
|
+
* @param uniqueId - 唯一 ID,`null` 表示���空
|
|
14885
14885
|
* @param manufacturer - 制造商,`null` 表示留空
|
|
14886
14886
|
* @param manufacturerId - 制造商编号,`null` 表示留空
|
|
14887
14887
|
* @param supplier - 供应商,`null` 表示留空
|
|
@@ -15885,7 +15885,7 @@ declare global {
|
|
|
15885
15885
|
* 获取属性状态:图元 ID
|
|
15886
15886
|
*
|
|
15887
15887
|
* @public
|
|
15888
|
-
* @returns
|
|
15888
|
+
* @returns 图��� ID
|
|
15889
15889
|
*/
|
|
15890
15890
|
getState_PrimitiveId(): string;
|
|
15891
15891
|
/**
|
|
@@ -16497,7 +16497,7 @@ declare global {
|
|
|
16497
16497
|
*
|
|
16498
16498
|
* @beta
|
|
16499
16499
|
* @param content - 对象内容
|
|
16500
|
-
* @returns
|
|
16500
|
+
* @returns 二进制内嵌��象图元对象
|
|
16501
16501
|
*/
|
|
16502
16502
|
setState_Content(content: File | string): ISCH_PrimitiveObject;
|
|
16503
16503
|
/**
|
|
@@ -17071,7 +17071,7 @@ declare global {
|
|
|
17071
17071
|
*
|
|
17072
17072
|
* @beta
|
|
17073
17073
|
* @param height - 高
|
|
17074
|
-
* @returns
|
|
17074
|
+
* @returns 矩形图元对象
|
|
17075
17075
|
*/
|
|
17076
17076
|
setState_Height(height: number): ISCH_PrimitiveRectangle;
|
|
17077
17077
|
/**
|
|
@@ -18565,7 +18565,7 @@ declare global {
|
|
|
18565
18565
|
*/
|
|
18566
18566
|
convertAltiumDesignerLibrariesToEasyEDASingleFile(file: File | Array<File>): Promise<File | undefined>;
|
|
18567
18567
|
/**
|
|
18568
|
-
* 转换 Altium Designer
|
|
18568
|
+
* 转换 Altium Designer 库到多个嘉立创库文件(��个器件一个文件)
|
|
18569
18569
|
*
|
|
18570
18570
|
* @beta
|
|
18571
18571
|
* @param file - Altium Designer 库文件
|
|
@@ -20066,7 +20066,7 @@ declare global {
|
|
|
20066
20066
|
* 关闭 WebSocket 连接
|
|
20067
20067
|
*
|
|
20068
20068
|
* @public
|
|
20069
|
-
* @remarks
|
|
20069
|
+
* @remarks 注意:本接口需要使用者启用扩展的外部交互权限,如若��启用将始终 `throw Error`
|
|
20070
20070
|
* @param id - 自定义的 WebSocket ID
|
|
20071
20071
|
* @param code - 数字状态码,对应 {@link https://developer.mozilla.org/docs/Web/API/CloseEvent/code | WebSocket.CloseEvent} 内允许的状态码
|
|
20072
20072
|
* @param reason - 一个人类可读的字符串,解释连接关闭的原因
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{ "name": "@jlceda/pro-api-types", "type": "module", "version": "0.2.
|
|
1
|
+
{ "name": "@jlceda/pro-api-types", "type": "module", "version": "0.2.36", "description": "嘉立创EDA & EasyEDA 专业版扩展 API 接口类型定义", "typings": "index.d.ts", "author": "JLCEDA <support@lceda.cn>", "license": "Apache-2.0", "homepage": "https://pro.lceda.cn/", "keywords": ["jlceda", "pro-api"], "scripts": { "lint": "eslint", "fix": "eslint --fix", "build": "ts-node ./build/build.ts" }, "devDependencies": { "@antfu/eslint-config": "^5.4.1", "@types/fast-text-encoding": "^1.0.3", "@types/fs-extra": "^11.0.4", "dotenv": "^16.4.7", "eslint": "^9.37.0", "fast-text-encoding": "^1.0.6", "fs-extra": "^11.3.0", "lint-staged": "^16.2.3", "simple-git-hooks": "^2.13.1", "ts-node": "^10.9.2", "typescript": "^5.7.3" }, "simple-git-hooks": { "pre-commit": "npx lint-staged" }, "lint-staged": { "*": "eslint --fix" } }
|