@jlceda/pro-api-types 0.2.67 → 0.2.68
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 +16 -16
- 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
|
|
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
|
|
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
|
/**
|
|
@@ -4417,7 +4417,7 @@ declare global {
|
|
|
4417
4417
|
* 停止飞线计算功能
|
|
4418
4418
|
*
|
|
4419
4419
|
* @public
|
|
4420
|
-
* @returns
|
|
4420
|
+
* @returns 操作��否成功
|
|
4421
4421
|
*/
|
|
4422
4422
|
stopCalculatingRatline(): Promise<boolean>;
|
|
4423
4423
|
/**
|
|
@@ -5657,7 +5657,7 @@ declare global {
|
|
|
5657
5657
|
* @beta
|
|
5658
5658
|
* @remarks 可以使用 {@link SYS_FileSystem.saveFile} 接口将文件导出到本地文件系统
|
|
5659
5659
|
* @param fileName - 文件名
|
|
5660
|
-
* @param colorSilkscreen -
|
|
5660
|
+
* @param colorSilkscreen - 是否生成彩色丝印制造��件(嘉立创专用文件)
|
|
5661
5661
|
* @param unit - 单位
|
|
5662
5662
|
* @param digitalFormat - 数字格式
|
|
5663
5663
|
* @param other - 其它
|
|
@@ -7609,7 +7609,7 @@ declare global {
|
|
|
7609
7609
|
*
|
|
7610
7610
|
* @beta
|
|
7611
7611
|
* @param primitiveIds - 文本的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
|
|
7612
|
-
* @returns
|
|
7612
|
+
* @returns 文本图��对象,`undefined` 表示获取失败
|
|
7613
7613
|
*/
|
|
7614
7614
|
get(primitiveIds: string): Promise<IPCB_PrimitiveString | undefined>;
|
|
7615
7615
|
/**
|
|
@@ -8790,7 +8790,7 @@ declare global {
|
|
|
8790
8790
|
* 仅当 `ruleType` 为 {@link EPCB_PrimitiveRegionRuleType.FOLLOW_REGION_RULE} 时有效,用于匹配区域 DRC 规则
|
|
8791
8791
|
*
|
|
8792
8792
|
* 如若 `ruleType` 为 {@link EPCB_PrimitiveRegionRuleType.FOLLOW_REGION_RULE} 但 `regionName` 为空,则系统将会自动分配名称
|
|
8793
|
-
* @param regionName -
|
|
8793
|
+
* @param regionName - ��域名称
|
|
8794
8794
|
* @returns 区域图元对象
|
|
8795
8795
|
*/
|
|
8796
8796
|
setState_RegionName(regionName?: string): IPCB_PrimitiveRegion;
|
|
@@ -9353,7 +9353,7 @@ declare global {
|
|
|
9353
9353
|
*/
|
|
9354
9354
|
getState_PrimitiveId(): string;
|
|
9355
9355
|
/**
|
|
9356
|
-
*
|
|
9356
|
+
* 获取属性状态:网络名称
|
|
9357
9357
|
*
|
|
9358
9358
|
* @public
|
|
9359
9359
|
* @returns 网络名称
|
|
@@ -10455,7 +10455,7 @@ declare global {
|
|
|
10455
10455
|
*/
|
|
10456
10456
|
setState_Layer(): IPCB_PrimitiveComponentPad;
|
|
10457
10457
|
/**
|
|
10458
|
-
*
|
|
10458
|
+
* 设��属性状态:焊盘编号
|
|
10459
10459
|
*
|
|
10460
10460
|
* @internal
|
|
10461
10461
|
* @remarks 本器件焊盘图元属性不支持修改,本接口调用将不会有任何效果
|
|
@@ -12138,7 +12138,7 @@ declare global {
|
|
|
12138
12138
|
*/
|
|
12139
12139
|
class PCB_SelectControl {
|
|
12140
12140
|
/**
|
|
12141
|
-
*
|
|
12141
|
+
* 查询所有已选中图元的图元 ID
|
|
12142
12142
|
*
|
|
12143
12143
|
* @beta
|
|
12144
12144
|
* @returns 所有已选中图元的图元 ID
|
|
@@ -13714,7 +13714,7 @@ declare global {
|
|
|
13714
13714
|
*
|
|
13715
13715
|
* @beta
|
|
13716
13716
|
* @remarks 如若传入多个图元 ID,任意图元 ID 未匹配到不影响其它图元的返回,即可能返回少于传入的图元 ID 数量的图元对象
|
|
13717
|
-
* @param primitiveIds - 属性的图元 ID
|
|
13717
|
+
* @param primitiveIds - 属性的图元 ID,可以为字符串或字符串数组,如若为数组,则��回的也是数组
|
|
13718
13718
|
* @returns 属性图元对象,空数组表示获取失败
|
|
13719
13719
|
*/
|
|
13720
13720
|
get(primitiveIds: Array<string>): Promise<Array<ISCH_PrimitiveAttribute>>;
|
|
@@ -14281,7 +14281,7 @@ declare global {
|
|
|
14281
14281
|
*
|
|
14282
14282
|
* @beta
|
|
14283
14283
|
* @param lineType - 线型
|
|
14284
|
-
* @returns
|
|
14284
|
+
* @returns 总线图元对象
|
|
14285
14285
|
*/
|
|
14286
14286
|
setState_LineType(lineType: ESCH_PrimitiveLineType | null): ISCH_PrimitiveBus;
|
|
14287
14287
|
/**
|
|
@@ -14865,7 +14865,7 @@ declare global {
|
|
|
14865
14865
|
[key: string]: string | number | boolean;
|
|
14866
14866
|
} | undefined;
|
|
14867
14867
|
/**
|
|
14868
|
-
*
|
|
14868
|
+
* 设置��性状态:坐标 X
|
|
14869
14869
|
*
|
|
14870
14870
|
* @beta
|
|
14871
14871
|
* @param x - 坐标 X
|
|
@@ -15920,7 +15920,7 @@ declare global {
|
|
|
15920
15920
|
uuid: string;
|
|
15921
15921
|
} | ILIB_DeviceItem | ILIB_DeviceSearchItem): Promise<boolean>;
|
|
15922
15922
|
/**
|
|
15923
|
-
* 设置在扩展 API 中 AnalogGround
|
|
15923
|
+
* 设置在扩展 API 中 AnalogGround 网络标识关联的���件 UUID
|
|
15924
15924
|
*
|
|
15925
15925
|
* @beta
|
|
15926
15926
|
* @param component - 关联库器件
|
|
@@ -19550,7 +19550,7 @@ declare global {
|
|
|
19550
19550
|
*/
|
|
19551
19551
|
convertAltiumDesignerLibrariesToEasyEDASingleFile(file: File | Array<File>): Promise<File | undefined>;
|
|
19552
19552
|
/**
|
|
19553
|
-
* 转换 Altium Designer
|
|
19553
|
+
* 转换 Altium Designer 库到多个嘉立创库文件��每个器件一个文件)
|
|
19554
19554
|
*
|
|
19555
19555
|
* @beta
|
|
19556
19556
|
* @param file - Altium Designer 库文件
|
|
@@ -19981,7 +19981,7 @@ declare global {
|
|
|
19981
19981
|
* @param height - 内联框架窗口的高度
|
|
19982
19982
|
* @param id - 内联框架窗口 ID,用于关闭内联框架窗口
|
|
19983
19983
|
* @param props - 其它参数
|
|
19984
|
-
* @returns
|
|
19984
|
+
* @returns 操作是否成功
|
|
19985
19985
|
*/
|
|
19986
19986
|
openIFrame(htmlFileName: string, width?: number, height?: number, id?: string, props?: {
|
|
19987
19987
|
/** 是否显示最大化按钮 */
|
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.68", "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" } }
|