@jlceda/pro-api-types 0.2.57 → 0.2.59
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 -21
- 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
|
|
@@ -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
|
|
3909
|
+
* @returns 复杂多边形对象,`undefined` 表示数据不合法
|
|
3914
3910
|
*/
|
|
3915
3911
|
createComplexPolygon(complexPolygon: TPCB_PolygonSourceArray | Array<TPCB_PolygonSourceArray> | IPCB_Polygon | Array<IPCB_Polygon>): IPCB_ComplexPolygon | undefined;
|
|
3916
3912
|
/**
|
|
@@ -4285,7 +4281,7 @@ declare global {
|
|
|
4285
4281
|
* @public
|
|
4286
4282
|
* @returns 保存操作是否成功,保存失败、上传失败等错误均返回 `false`
|
|
4287
4283
|
*/
|
|
4288
|
-
save(
|
|
4284
|
+
save(): Promise<boolean>;
|
|
4289
4285
|
/**
|
|
4290
4286
|
* 获取当前飞线计算功能状态
|
|
4291
4287
|
*
|
|
@@ -8272,7 +8268,7 @@ declare global {
|
|
|
8272
8268
|
* 修改覆铜填充
|
|
8273
8269
|
*
|
|
8274
8270
|
* @internal
|
|
8275
|
-
* @remarks
|
|
8271
|
+
* @remarks 覆铜填充图元不���持修改,本接口调用将不会有任何效果
|
|
8276
8272
|
* @returns `undefined`
|
|
8277
8273
|
*/
|
|
8278
8274
|
modify(): undefined;
|
|
@@ -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
|
|
8805
|
-
* @param primitiveIds -
|
|
8799
|
+
* @remarks 如若传入多个图元 ID,任意图元 ID 未匹配到不影响其它图元的返回,即可能返回少于传入的图元 ID 数量的图元对象
|
|
8800
|
+
* @param primitiveIds - 覆铜边框的图�� ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
|
|
8806
8801
|
* @returns 覆铜边框图元对象,空数组表示获取失败
|
|
8807
8802
|
*/
|
|
8808
8803
|
get(primitiveIds: Array<string>): Promise<Array<IPCB_PrimitivePour>>;
|
|
@@ -12174,7 +12169,7 @@ declare global {
|
|
|
12174
12169
|
* 获取指定 ID 的图元的所有属性
|
|
12175
12170
|
*
|
|
12176
12171
|
* @public
|
|
12177
|
-
* @param id -
|
|
12172
|
+
* @param id - 图��� ID
|
|
12178
12173
|
* @returns 图元的所有属性
|
|
12179
12174
|
*/
|
|
12180
12175
|
getPrimitiveByPrimitiveId(id: string): Promise<ISCH_Primitive | undefined>;
|
|
@@ -13156,7 +13151,7 @@ declare global {
|
|
|
13156
13151
|
LEFT_BOTTOM = 3,
|
|
13157
13152
|
/** 中上 */
|
|
13158
13153
|
CENTER_TOP = 4,
|
|
13159
|
-
/**
|
|
13154
|
+
/** 中�� */
|
|
13160
13155
|
CENTER = 5,
|
|
13161
13156
|
/** 中下 */
|
|
13162
13157
|
CENTER_BOTTOM = 6,
|
|
@@ -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,7 +18072,7 @@ 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;
|
|
@@ -19577,9 +19572,9 @@ declare global {
|
|
|
19577
19572
|
*
|
|
19578
19573
|
* 本接口无法移除第一级菜单,`id` 数组请至少传递 `2` 个值
|
|
19579
19574
|
*
|
|
19580
|
-
*
|
|
19575
|
+
* 本接口无法移除 **高级** 菜单下的任何子菜单
|
|
19581
19576
|
*
|
|
19582
|
-
*
|
|
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.
|
|
1
|
+
{ "name": "@jlceda/pro-api-types", "type": "module", "version": "0.2.59", "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" } }
|