@jlceda/pro-api-types 0.2.65 → 0.2.66
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 +17 -17
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -502,7 +502,7 @@ declare global {
|
|
|
502
502
|
* @param libraryUuid - 库 UUID,可以使用 {@link LIB_LibrariesList} 内的接口获取
|
|
503
503
|
* @param targetLibraryUuid - 目标库 UUID
|
|
504
504
|
* @param targetClassification - 目标库内的分类
|
|
505
|
-
* @param newSymbolName -
|
|
505
|
+
* @param newSymbolName - 新符号名称,如若目标库内存在重名���号将导致复制失败
|
|
506
506
|
* @returns 目标库内新符号的 UUID
|
|
507
507
|
*/
|
|
508
508
|
copy(symbolUuid: string, libraryUuid: string, targetLibraryUuid: string, targetClassification?: ILIB_ClassificationIndex | Array<string>, newSymbolName?: string): Promise<string | undefined>;
|
|
@@ -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
|
|
@@ -2390,8 +2390,8 @@ declare global {
|
|
|
2390
2390
|
* @param libraryUuid - 库 UUID,可以使用 {@link LIB_LibrariesList} 内的接口获取
|
|
2391
2391
|
* @param targetLibraryUuid - 目标库 UUID
|
|
2392
2392
|
* @param targetClassification - 目标库内的分类
|
|
2393
|
-
* @param newDeviceName -
|
|
2394
|
-
* @returns
|
|
2393
|
+
* @param newDeviceName - 新器件名称,如若目标库内存在重名器件将��致复制失败
|
|
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
|
/**
|
|
@@ -2869,7 +2869,7 @@ declare global {
|
|
|
2869
2869
|
*/
|
|
2870
2870
|
getSupportedSymbolTypes: () => Promise<Array<ELIB_SymbolType>>;
|
|
2871
2871
|
/**
|
|
2872
|
-
*
|
|
2872
|
+
* 获���支持的预览类型
|
|
2873
2873
|
*
|
|
2874
2874
|
* @returns 预览类型数组
|
|
2875
2875
|
*/
|
|
@@ -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
|
/**
|
|
@@ -8789,8 +8789,8 @@ declare global {
|
|
|
8789
8789
|
* @remarks
|
|
8790
8790
|
* 仅当 `ruleType` 为 {@link EPCB_PrimitiveRegionRuleType.FOLLOW_REGION_RULE} 时有效,用于匹配区域 DRC 规则
|
|
8791
8791
|
*
|
|
8792
|
-
* 如若 `ruleType` 为 {@link EPCB_PrimitiveRegionRuleType.FOLLOW_REGION_RULE} 但 `regionName`
|
|
8793
|
-
* @param regionName -
|
|
8792
|
+
* 如若 `ruleType` 为 {@link EPCB_PrimitiveRegionRuleType.FOLLOW_REGION_RULE} 但 `regionName` 为空,则系统将会自动分配��称
|
|
8793
|
+
* @param regionName - 区域名称
|
|
8794
8794
|
* @returns 区域图元对象
|
|
8795
8795
|
*/
|
|
8796
8796
|
setState_RegionName(regionName?: string): IPCB_PrimitiveRegion;
|
|
@@ -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 本器件焊盘图元属性不支持修改,本接口调用将不会有任何效果
|
|
@@ -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>>;
|
|
@@ -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 - 关联库器件
|
|
@@ -18060,7 +18060,7 @@ declare global {
|
|
|
18060
18060
|
}
|
|
18061
18061
|
/** 单元格内容类型枚举 */
|
|
18062
18062
|
enum CellContentType {
|
|
18063
|
-
/**
|
|
18063
|
+
/** 纯���本 */
|
|
18064
18064
|
TEXT = "TEXT",
|
|
18065
18065
|
/** 输入框 */
|
|
18066
18066
|
INPUT = "INPUT",
|
|
@@ -19978,7 +19978,7 @@ declare global {
|
|
|
19978
19978
|
minimizeStyle?: 'collapsed' | 'constricted';
|
|
19979
19979
|
/** 按钮点击回调 */
|
|
19980
19980
|
buttonCallbackFn?: (button: 'close' | 'minimize' | 'maximize') => void | Promise<void>;
|
|
19981
|
-
/**
|
|
19981
|
+
/** 关闭前回调:回调返回 `false` 时阻止按钮触发 */
|
|
19982
19982
|
onBeforeCloseCallFn?: () => boolean | undefined | Promise<boolean | undefined>;
|
|
19983
19983
|
/** 是否背景置灰 */
|
|
19984
19984
|
grayscaleMask?: boolean;
|
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.66", "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" } }
|