@jlceda/pro-api-types 0.2.51 → 0.2.53

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 +16 -27
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -525,15 +525,9 @@ declare global {
525
525
  * @alpha
526
526
  * @param properties - 属性
527
527
  * @param libraryUuid - 库 UUID,默认为系统库,可以使用 {@link LIB_LibrariesList} 内的接口获取
528
- * @param classification - 分类,默认为全部
529
- *
530
- * ADD since EDA v4
531
- * @param symbolType - 符号类型,默认为全部
532
- * @param itemsOfPage - 一页搜索结果的数量
533
- * @param page - 页数
534
528
  * @returns 搜索到的符号属性的列表
535
529
  */
536
- searchByProperties(properties: ILIB_SymbolPropertiesForSearch, libraryUuid?: string, classification?: Array<string>, symbolType?: ELIB_SymbolType, itemsOfPage?: number, page?: number): Array<ILIB_SymbolSearchItem>;
530
+ searchByProperties(properties: ILIB_SymbolPropertiesForSearch, libraryUuid?: string): Promise<Array<ILIB_SymbolSearchItem>>;
537
531
  /**
538
532
  * 在编辑器打开文档
539
533
  *
@@ -981,7 +975,7 @@ declare global {
981
975
  * 文档树 / 编辑器控制类
982
976
  *
983
977
  * @public
984
- * @remarks 此处编辑器控制基于当前已打开的工程设计下的图页,其它任何 `documentUuid` 都将被认为是不存在的文档页
978
+ * @remarks 此处编辑器控制基于当前已打开的工程设计下���图页,其它任何 `documentUuid` 都将被认为是不存在的文档页
985
979
  */
986
980
  class DMT_EditorControl {
987
981
  /**
@@ -1387,7 +1381,7 @@ declare global {
1387
1381
  */
1388
1382
  createPanel(): Promise<string | undefined>;
1389
1383
  /**
1390
- * 修改面板名称
1384
+ * 修改面���名称
1391
1385
  *
1392
1386
  * @public
1393
1387
  * @param panelUuid - 面板 UUID
@@ -2446,7 +2440,7 @@ declare global {
2446
2440
  * @param page - 页数
2447
2441
  * @returns 搜索到的器件属性的列表
2448
2442
  */
2449
- searchByProperties(properties: ILIB_DevicePropertiesForSearch, libraryUuid?: string, classification?: Array<string>, symbolType?: ELIB_SymbolType, itemsOfPage?: number, page?: number): Array<ILIB_DeviceSearchItem>;
2443
+ searchByProperties(properties: ILIB_DevicePropertiesForSearch, libraryUuid?: string, classification?: Array<string>, symbolType?: ELIB_SymbolType, itemsOfPage?: number, page?: number): Promise<Array<ILIB_DeviceSearchItem>>;
2450
2444
  /**
2451
2445
  * 使用立创 C 编号获取器件
2452
2446
  *
@@ -2622,14 +2616,9 @@ declare global {
2622
2616
  * @alpha
2623
2617
  * @param properties - 属性
2624
2618
  * @param libraryUuid - 库 UUID,默认为系统库,可以使用 {@link LIB_LibrariesList} 内的接口获取
2625
- * @param classification - 分类,默认为全部
2626
- *
2627
- * ADD since EDA v4
2628
- * @param itemsOfPage - 一页搜索结果的数量
2629
- * @param page - 页数
2630
2619
  * @returns 搜索到的封装属性的列表
2631
2620
  */
2632
- searchByProperties(properties: ILIB_FootprintPropertiesForSearch, libraryUuid?: string, classification?: Array<string>, itemsOfPage?: number, page?: number): Array<ILIB_FootprintSearchItem>;
2621
+ searchByProperties(properties: ILIB_FootprintPropertiesForSearch, libraryUuid?: string): Promise<Array<ILIB_FootprintSearchItem>>;
2633
2622
  /**
2634
2623
  * 在编辑器打开文档
2635
2624
  *
@@ -9400,7 +9389,7 @@ declare global {
9400
9389
  * @beta
9401
9390
  * @remarks 如若传入多个图元 ID,任意图元 ID 未匹配到不影响其它图元的返回,即可能返回少于传入的图元 ID 数量的图元对象
9402
9391
  * @param primitiveIds - 填充的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
9403
- * @returns 填充图元对象,空数组表示获取失败
9392
+ * @returns 填充��元对象,空数组表示获取失败
9404
9393
  */
9405
9394
  get(primitiveIds: Array<string>): Promise<Array<IPCB_PrimitiveFill>>;
9406
9395
  /**
@@ -10424,7 +10413,7 @@ declare global {
10424
10413
  * 获取器件
10425
10414
  *
10426
10415
  * @beta
10427
- * @remarks 如若传入多个图元 ID,任意图元 ID 未匹配到不影响其它图元的返回,即可能返回���于传入的图元 ID 数量的图元对象
10416
+ * @remarks 如若传入多个图元 ID,任意图元 ID 未匹配到不影响其它图元的返回,即可能返回少于传入的图元 ID 数量的图元对象
10428
10417
  * @param primitiveIds - 器件的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
10429
10418
  * @returns 器件图元对象,空数组表示获取失败
10430
10419
  */
@@ -11586,7 +11575,7 @@ declare global {
11586
11575
  * @beta
11587
11576
  * @param layer - 层
11588
11577
  * @param topLeftX - 左上点 X
11589
- * @param topLeftY - 左上�� Y
11578
+ * @param topLeftY - 左上点 Y
11590
11579
  * @param binaryData - 二进制数据
11591
11580
  * @param width - 宽
11592
11581
  * @param height - 高
@@ -14314,7 +14303,7 @@ declare global {
14314
14303
  */
14315
14304
  getState_LineType(): ESCH_PrimitiveLineType | null;
14316
14305
  /**
14317
- * 获取属性状态:填充样���
14306
+ * 获取属性状态:填充样式
14318
14307
  *
14319
14308
  * @public
14320
14309
  * @returns 填充样式
@@ -14337,7 +14326,7 @@ declare global {
14337
14326
  */
14338
14327
  setState_CenterY(centerY: number): ISCH_PrimitiveCircle;
14339
14328
  /**
14340
- * 设置属性状态:半径
14329
+ * 设置���性状态:半径
14341
14330
  *
14342
14331
  * @beta
14343
14332
  * @param radius - 半径
@@ -14887,7 +14876,7 @@ declare global {
14887
14876
  * 设置属性状态:引脚类型
14888
14877
  *
14889
14878
  * @internal
14890
- * @remarks 本器��引脚图元属性不支持修改,本接口调用将不会有任何效果
14879
+ * @remarks 本器件引脚图元属性不支持修改,本接口调用将不会有任何效果
14891
14880
  * @returns 器件引脚图元对象
14892
14881
  */
14893
14882
  setState_PinType(): ISCH_PrimitiveComponentPin;
@@ -14902,7 +14891,7 @@ declare global {
14902
14891
  * 将异步图元重置为当前画布状态
14903
14892
  *
14904
14893
  * @internal
14905
- * @remarks 本器件引脚图元属性不支持修改,本接口调用将不会有任何效果
14894
+ * @remarks 本器件引脚图元属性不支持修改,本接��调用将不会有任何效果
14906
14895
  * @returns 器件引脚图元对象
14907
14896
  */
14908
14897
  reset(): Promise<ISCH_PrimitiveComponentPin>;
@@ -16995,7 +16984,7 @@ declare global {
16995
16984
  *
16996
16985
  * @beta
16997
16986
  * @param line - 坐标组
16998
- * @returns 多���形图元对象
16987
+ * @returns 多边形图元对象
16999
16988
  */
17000
16989
  setState_Line(line: Array<number>): ISCH_PrimitivePolygon;
17001
16990
  /**
@@ -18085,7 +18074,7 @@ declare global {
18085
18074
  setCellStyle: (style: CSSProperties) => void;
18086
18075
  /** 设置行样式 */
18087
18076
  setRowStyle: (style: CSSProperties) => void;
18088
- /** 设置所有单元格样�� */
18077
+ /** 设置所有单元格样式 */
18089
18078
  setAllCellStyle: (style: CSSProperties) => void;
18090
18079
  /** 设置行数据 */
18091
18080
  setRowData: (data: {
@@ -19561,7 +19550,7 @@ declare global {
19561
19550
  *
19562
19551
  * 本接口不能在 **高级** 菜单下新增任何子菜单
19563
19552
  *
19564
- * 本接口新增的子菜单将默认排列在原菜单的结尾,除非指���了 `props.insertBefore` 参数
19553
+ * 本接口新增的子菜单将默认排列在原菜单的结尾,除非指定了 `props.insertBefore` 参数
19565
19554
  *
19566
19555
  * 注意:本接口需要使用者启用扩展的外部交互权限,如若未启用将始终 `throw Error`
19567
19556
  *
@@ -20583,7 +20572,7 @@ declare global {
20583
20572
  */
20584
20573
  unregisterShortcutKey(shortcutKey: TSYS_ShortcutKeys): Promise<boolean>;
20585
20574
  /**
20586
- * 查��快捷键列表
20575
+ * 查询快捷键列表
20587
20576
  *
20588
20577
  * @beta
20589
20578
  * @param includeSystem - 是否包含系统快捷键
package/package.json CHANGED
@@ -1 +1 @@
1
- { "name": "@jlceda/pro-api-types", "type": "module", "version": "0.2.51", "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.53", "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" } }