@jlceda/pro-api-types 0.2.60 → 0.2.61

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 +14 -13
  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
@@ -2391,7 +2391,7 @@ declare global {
2391
2391
  * @param targetLibraryUuid - 目标库 UUID
2392
2392
  * @param targetClassification - 目标库内的分类
2393
2393
  * @param newDeviceName - 新器件名称,如若目标库内存在重名器件将导致复制失败
2394
- * @returns ���标库内新器件的 UUID
2394
+ * @returns 目���库内新器件的 UUID
2395
2395
  */
2396
2396
  copy(deviceUuid: string, libraryUuid: string, targetLibraryUuid: string, targetClassification?: ILIB_ClassificationIndex | Array<string>, newDeviceName?: string): Promise<string | undefined>;
2397
2397
  /**
@@ -8268,7 +8268,7 @@ declare global {
8268
8268
  * 修改覆铜填充
8269
8269
  *
8270
8270
  * @internal
8271
- * @remarks 覆铜填充图元不支���修改,本接口调用将不会有任何效果
8271
+ * @remarks 覆铜填充图元不支持���改,本接口调用将不会有任何效果
8272
8272
  * @returns `undefined`
8273
8273
  */
8274
8274
  modify(): undefined;
@@ -8797,7 +8797,7 @@ declare global {
8797
8797
  *
8798
8798
  * @beta
8799
8799
  * @remarks 如若传入多个图元 ID,任意图元 ID 未匹配到不影响其它图元的返回,即可能返回少于传入的图元 ID 数量的图元对象
8800
- * @param primitiveIds - 覆铜边框的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
8800
+ * @param primitiveIds - 覆铜边框的图元 ID��可以为字符串或字符串数组,如若为数组,则返回的也是数组
8801
8801
  * @returns 覆铜边框图元对象,空数组表示获取失败
8802
8802
  */
8803
8803
  get(primitiveIds: Array<string>): Promise<Array<IPCB_PrimitivePour>>;
@@ -13592,6 +13592,7 @@ declare global {
13592
13592
  * 创建网络标签
13593
13593
  *
13594
13594
  * @alpha
13595
+ * @remarks ADD since EDA v4
13595
13596
  * @param x - 坐标 X
13596
13597
  * @param y - 坐标 Y
13597
13598
  * @param net - 网络名称
@@ -14878,7 +14879,7 @@ declare global {
14878
14879
  *
14879
14880
  * @internal
14880
14881
  * @remarks 本器件引脚图元属性不支持修改,本接口调用将不会有任何效果
14881
- * @returns 器件引脚图元对象
14882
+ * @returns 器件引���图元对象
14882
14883
  */
14883
14884
  setState_Y(): ISCH_PrimitiveComponentPin;
14884
14885
  /**
@@ -15881,7 +15882,7 @@ declare global {
15881
15882
  * @param x - 坐标 X
15882
15883
  * @param y - 坐标 Y
15883
15884
  * @param rotation - 旋转角度
15884
- * @param mirror - 是否镜像
15885
+ * @param mirror - 是否镜��
15885
15886
  * @returns 器件图元对象
15886
15887
  */
15887
15888
  createShortCircuitFlag(x: number, y: number, rotation?: number, mirror?: boolean): Promise<ISCH_PrimitiveComponent | undefined>;
@@ -19570,16 +19571,16 @@ declare global {
19570
19571
  *
19571
19572
  * 本接口无法移除 {@link SYS_HeaderMenu.insertSystemHeaderMenus | 导入系统顶部菜单} 接口导入的系统顶部菜单项
19572
19573
  *
19573
- * 本接口无法移除第一级菜单,`id` 数组请至少传递 `2` 个值
19574
+ * 当 `id` 数组仅包含一个元素时,将移除对应的一级菜单;当 `id` 数组包含多个元素时,将按照数组顺序按层级匹配菜单项,并移除数组最后一位对应的子菜单项
19574
19575
  *
19575
- * 本接口无法移除 **高级** 菜单下的任何子菜单
19576
+ * 本接口无法移除 **高级** 菜单本身及其下的任何子菜单
19576
19577
  *
19577
- * 注意:本接口需要使用者启用扩展的外��交互权限,如若未启用将始终 `throw Error`
19578
+ * 注意:本接口需要使用者启用扩展的外部交互权限,如若未启用将始终 `throw Error`
19578
19579
  *
19579
19580
  * 非公开接口使用提醒:本接口按原样提供,不提供参数的额外文档,参数可能在任何版本出现破坏性更改并不另行通知
19580
19581
  * @param env - 环境
19581
- * @param id - 菜单项 ID 树,将会按照数组顺序按层级匹配菜单项,并移除数组最后一位对应的菜单项
19582
- * @param props - 其它参数,是否移除菜单项之前、之后的分隔线
19582
+ * @param id - 菜单项 ID 树,将会按照数组顺序按层级匹配菜单项,并移除数组最后一位对应的菜单项;仅传递一个元素时移除对应的一级菜单
19583
+ * @param props - 其它参数,是否移除菜单项之前、之后的分隔线(仅在移除子菜单项时生效)
19583
19584
  * @returns 移除操作是否成功,菜单已移除但分隔线未找到也会返回 `true` 的结果
19584
19585
  */
19585
19586
  removeSystemHeaderMenuItem(id: Array<string>, props?: {
@@ -20557,7 +20558,7 @@ declare global {
20557
20558
  BLANK = 0,
20558
20559
  /** 开始页 */
20559
20560
  HOME = 1,
20560
- /** 原理图图页 */
20561
+ /** 原理��图页 */
20561
20562
  SCHEMATIC_PAGE = 2,
20562
20563
  /** 符号 */
20563
20564
  SYMBOL = 3,
package/package.json CHANGED
@@ -1 +1 @@
1
- { "name": "@jlceda/pro-api-types", "type": "module", "version": "0.2.60", "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.61", "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" } }