@jlceda/pro-api-types 0.2.57 → 0.2.58

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 +15 -20
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -975,7 +975,7 @@ declare global {
975
975
  * 文档树 / 编辑器控制类
976
976
  *
977
977
  * @public
978
- * @remarks 此处编辑器控制基于当前已打开的工程设计下��图页,其它任何 `documentUuid` 都将被认为是不存在的文档页
978
+ * @remarks 此处编辑器控制基于当前已打开的工程设计下的图页,其它任何 `documentUuid` 都将被认为是不存在的文档页
979
979
  */
980
980
  class DMT_EditorControl {
981
981
  /**
@@ -1381,7 +1381,7 @@ declare global {
1381
1381
  */
1382
1382
  createPanel(): Promise<string | undefined>;
1383
1383
  /**
1384
- * 修改面��名称
1384
+ * 修改面板名称
1385
1385
  *
1386
1386
  * @public
1387
1387
  * @param panelUuid - 面板 UUID
@@ -2218,7 +2218,7 @@ declare global {
2218
2218
  libraryUuid: string;
2219
2219
  };
2220
2220
  /** 关联图片 UUID */
2221
- imageUuid?: string;
2221
+ imageUuid?: string | string[];
2222
2222
  /** 描述 */
2223
2223
  description?: string;
2224
2224
  /**
@@ -2226,25 +2226,21 @@ declare global {
2226
2226
  *
2227
2227
  * @deprecated 在 `otherProperty` 中替代
2228
2228
  */
2229
- manufacturer?: string;
2230
2229
  /**
2231
2230
  * 制造商编号
2232
2231
  *
2233
2232
  * @deprecated 在 `otherProperty` 中替代
2234
2233
  */
2235
- manufacturerId?: string;
2236
2234
  /**
2237
2235
  * 供应商
2238
2236
  *
2239
2237
  * @deprecated 在 `otherProperty` 中替代
2240
2238
  */
2241
- supplier?: string;
2242
2239
  /**
2243
2240
  * 供应商编号
2244
2241
  *
2245
2242
  * @deprecated 在 `otherProperty` 中替代
2246
2243
  */
2247
- supplierId?: string;
2248
2244
  /**
2249
2245
  * 立创商城库存
2250
2246
  */
@@ -3910,7 +3906,7 @@ declare global {
3910
3906
  *
3911
3907
  * @public
3912
3908
  * @param complexPolygon - 复杂多边形数据
3913
- * @returns 复杂多边��对象,`undefined` 表示数据不合法
3909
+ * @returns 复杂多边形对象,`undefined` 表示数据不合法
3914
3910
  */
3915
3911
  createComplexPolygon(complexPolygon: TPCB_PolygonSourceArray | Array<TPCB_PolygonSourceArray> | IPCB_Polygon | Array<IPCB_Polygon>): IPCB_ComplexPolygon | undefined;
3916
3912
  /**
@@ -6035,7 +6031,7 @@ declare global {
6035
6031
  * 获取自动布局文件(JSON)
6036
6032
  *
6037
6033
  * @beta
6038
- * @remarks 可以使用 {@link SYS_FileSystem.saveFile} 接口将文件导出到本地文件系统
6034
+ * @remarks 可以使用 {@link SYS_FileSystem.saveFile} 接口将文件导出到本地文件���统
6039
6035
  * @param fileName - 文件名
6040
6036
  * @returns 自动布局 JSON 文件数据
6041
6037
  * @example
@@ -8435,7 +8431,6 @@ declare global {
8435
8431
  /** 禁止元件 */
8436
8432
  NO_COMPONENTS = 2,
8437
8433
  /** 禁止过孔 */
8438
- NO_VIAS = 3,
8439
8434
  /** 禁止布线 */
8440
8435
  NO_WIRES = 5,
8441
8436
  /** 禁止填充 */
@@ -8801,8 +8796,8 @@ declare global {
8801
8796
  * 获取覆铜边框
8802
8797
  *
8803
8798
  * @beta
8804
- * @remarks 如若传入多个图元 ID,任意图元 ID 未匹配到不影响其它图元��返回,即可能返回少于传入的图元 ID 数量的图元对象
8805
- * @param primitiveIds - 覆铜边框的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
8799
+ * @remarks 如若传入多个图元 ID,任意图元 ID 未匹配到不影响其它图元的返回,即可能返回少于传入的图元 ID 数量的图元对象
8800
+ * @param primitiveIds - 覆铜边���的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
8806
8801
  * @returns 覆铜边框图元对象,空数组表示获取失败
8807
8802
  */
8808
8803
  get(primitiveIds: Array<string>): Promise<Array<IPCB_PrimitivePour>>;
@@ -10431,7 +10426,7 @@ declare global {
10431
10426
  * 获取器件
10432
10427
  *
10433
10428
  * @beta
10434
- * @param primitiveIds - 器件的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
10429
+ * @param primitiveIds - 器件的图元 ID,可以为字��串或字符串数组,如若为数组,则返回的也是数组
10435
10430
  * @returns 器件图元对象,`undefined` 表示获取失败
10436
10431
  */
10437
10432
  get(primitiveIds: string): Promise<IPCB_PrimitiveComponent | undefined>;
@@ -13746,7 +13741,7 @@ declare global {
13746
13741
  * 获取属性状态:填充颜色
13747
13742
  *
13748
13743
  * @public
13749
- * @returns 填充���色
13744
+ * @returns 填充颜色
13750
13745
  */
13751
13746
  getState_FillColor(): string | null;
13752
13747
  /**
@@ -14882,7 +14877,7 @@ declare global {
14882
14877
  * 设置属性状态:坐标 Y
14883
14878
  *
14884
14879
  * @internal
14885
- * @remarks 本器件引脚��元属性不支持修改,本接口调用将不会有任何效果
14880
+ * @remarks 本器件引脚图元属性不支持修改,本接口调用将不会有任何效果
14886
14881
  * @returns 器件引脚图元对象
14887
14882
  */
14888
14883
  setState_Y(): ISCH_PrimitiveComponentPin;
@@ -16967,7 +16962,7 @@ declare global {
16967
16962
  private primitiveId?;
16968
16963
  /** 坐标组 */
16969
16964
  private line;
16970
- /** 颜��� */
16965
+ /** 颜色 */
16971
16966
  private color;
16972
16967
  /** 填充颜色 */
16973
16968
  private fillColor;
@@ -18077,11 +18072,11 @@ declare global {
18077
18072
  sortable?: boolean;
18078
18073
  /** 排序字段 */
18079
18074
  sortKey?: string | string[];
18080
- /** 是否允许��辑 */
18075
+ /** 是否允许编辑 */
18081
18076
  editable?: boolean | 1 | 2;
18082
18077
  /** 是否带过滤搜索功能 */
18083
18078
  filter?: boolean;
18084
- /** 单元格对齐方式 */
18079
+ /** ��元格对齐方式 */
18085
18080
  align?: TableCellAlign;
18086
18081
  /** 下拉框列表 */
18087
18082
  selectList?: SelectOption[];
@@ -19577,9 +19572,9 @@ declare global {
19577
19572
  *
19578
19573
  * 本接口无法移除第一级菜单,`id` 数组请至少传递 `2` 个值
19579
19574
  *
19580
- * 本���口无法移除 **高级** 菜单下的任何子菜单
19575
+ * 本接口无法移除 **高级** 菜单下的任何子菜单
19581
19576
  *
19582
- * 注意:本接口需要使用者启用扩展的外部交互权限,如若未启用将始终 `throw Error`
19577
+ * 注意:本接口需要使用者启用���展的外部交互权限,如若未启用将始终 `throw Error`
19583
19578
  *
19584
19579
  * 非公开接口使用提醒:本接口按原样提供,不提供参数的额外文档,参数可能在任何版本出现破坏性更改并不另行通知
19585
19580
  * @param env - 环境
package/package.json CHANGED
@@ -1 +1 @@
1
- { "name": "@jlceda/pro-api-types", "type": "module", "version": "0.2.57", "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" } }
1
+ { "name": "@jlceda/pro-api-types", "type": "module", "version": "0.2.58", "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" } }