@jlceda/pro-api-types 0.2.55 → 0.2.57
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 +26 -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
|
|
@@ -2248,23 +2248,18 @@ declare global {
|
|
|
2248
2248
|
/**
|
|
2249
2249
|
* 立创商城库存
|
|
2250
2250
|
*/
|
|
2251
|
-
lcscInventory?: number;
|
|
2252
2251
|
/**
|
|
2253
2252
|
* 立创商城价格
|
|
2254
2253
|
*/
|
|
2255
|
-
lcscPrice?: number;
|
|
2256
2254
|
/**
|
|
2257
2255
|
* 嘉立创库存
|
|
2258
2256
|
*/
|
|
2259
|
-
jlcInventory?: number;
|
|
2260
2257
|
/**
|
|
2261
2258
|
* 嘉立创价格
|
|
2262
2259
|
*/
|
|
2263
|
-
jlcPrice?: number;
|
|
2264
2260
|
/**
|
|
2265
2261
|
* 嘉立创库类别
|
|
2266
2262
|
*/
|
|
2267
|
-
jlcLibraryCategory?: ELIB_DeviceJlcLibraryCategory;
|
|
2268
2263
|
/** 其它属性 */
|
|
2269
2264
|
otherProperty?: {
|
|
2270
2265
|
[key: string]: boolean | number | string | undefined;
|
|
@@ -3915,7 +3910,7 @@ declare global {
|
|
|
3915
3910
|
*
|
|
3916
3911
|
* @public
|
|
3917
3912
|
* @param complexPolygon - 复杂多边形数据
|
|
3918
|
-
* @returns
|
|
3913
|
+
* @returns 复杂多边��对象,`undefined` 表示数据不合法
|
|
3919
3914
|
*/
|
|
3920
3915
|
createComplexPolygon(complexPolygon: TPCB_PolygonSourceArray | Array<TPCB_PolygonSourceArray> | IPCB_Polygon | Array<IPCB_Polygon>): IPCB_ComplexPolygon | undefined;
|
|
3921
3916
|
/**
|
|
@@ -4387,7 +4382,7 @@ declare global {
|
|
|
4387
4382
|
* 如果希望在进行本操作时前端画布坐标能与传入数据一致,
|
|
4388
4383
|
* 建议调用 {@link PCB_Document.setCanvasOrigin} 方法并设置偏移量为零;
|
|
4389
4384
|
*
|
|
4390
|
-
*
|
|
4385
|
+
* 此处的单位为数据层面单位,在跨度上等同于画布层面的 mil
|
|
4391
4386
|
* @param x - 坐标 X
|
|
4392
4387
|
* @param y - 坐标 Y
|
|
4393
4388
|
* @returns 操作是否成功
|
|
@@ -7644,7 +7639,7 @@ declare global {
|
|
|
7644
7639
|
* 获取属性状态:是否镜像
|
|
7645
7640
|
*
|
|
7646
7641
|
* @public
|
|
7647
|
-
* @returns
|
|
7642
|
+
* @returns 是否镜像
|
|
7648
7643
|
*/
|
|
7649
7644
|
getState_Mirror(): boolean;
|
|
7650
7645
|
/**
|
|
@@ -8806,7 +8801,7 @@ declare global {
|
|
|
8806
8801
|
* 获取覆铜边框
|
|
8807
8802
|
*
|
|
8808
8803
|
* @beta
|
|
8809
|
-
* @remarks 如若传入多个图元 ID,任意图元 ID
|
|
8804
|
+
* @remarks 如若传入多个图元 ID,任意图元 ID 未匹配到不影响其它图元��返回,即可能返回少于传入的图元 ID 数量的图元对象
|
|
8810
8805
|
* @param primitiveIds - 覆铜边框的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
|
|
8811
8806
|
* @returns 覆铜边框图元对象,空数组表示获取失败
|
|
8812
8807
|
*/
|
|
@@ -11950,11 +11945,8 @@ declare global {
|
|
|
11950
11945
|
*
|
|
11951
11946
|
* @beta
|
|
11952
11947
|
* @remarks ADD since EDA v4
|
|
11953
|
-
* @param lut - 材质查找表
|
|
11954
11948
|
*/
|
|
11955
|
-
init(
|
|
11956
|
-
[key: string]: any;
|
|
11957
|
-
}>): Promise<void>;
|
|
11949
|
+
init(): Promise<void>;
|
|
11958
11950
|
/**
|
|
11959
11951
|
* 停止光线追踪引擎
|
|
11960
11952
|
*
|
|
@@ -11982,6 +11974,19 @@ declare global {
|
|
|
11982
11974
|
* @returns 渲染配置
|
|
11983
11975
|
*/
|
|
11984
11976
|
getRenderConfigurations(): Promise<any>;
|
|
11977
|
+
/**
|
|
11978
|
+
* 获取光线追踪光源配置
|
|
11979
|
+
*
|
|
11980
|
+
* @beta
|
|
11981
|
+
* @remarks
|
|
11982
|
+
* {@link PCB_RayTracerEngine.getRenderConfigurations | 获取光线追踪渲染配置} 接口中包含一种光源配置,本接口用于获取不同光源配置
|
|
11983
|
+
*
|
|
11984
|
+
* 本接口配置定义还在进行中
|
|
11985
|
+
*
|
|
11986
|
+
* ADD since EDA v4
|
|
11987
|
+
* @returns 光源配置
|
|
11988
|
+
*/
|
|
11989
|
+
getLightConfigurations(lightName: string): Promise<any>;
|
|
11985
11990
|
}
|
|
11986
11991
|
|
|
11987
11992
|
/**
|
|
@@ -13741,7 +13746,7 @@ declare global {
|
|
|
13741
13746
|
* 获取属性状态:填充颜色
|
|
13742
13747
|
*
|
|
13743
13748
|
* @public
|
|
13744
|
-
* @returns
|
|
13749
|
+
* @returns 填充���色
|
|
13745
13750
|
*/
|
|
13746
13751
|
getState_FillColor(): string | null;
|
|
13747
13752
|
/**
|
|
@@ -14877,7 +14882,7 @@ declare global {
|
|
|
14877
14882
|
* 设置属性状态:坐标 Y
|
|
14878
14883
|
*
|
|
14879
14884
|
* @internal
|
|
14880
|
-
* @remarks
|
|
14885
|
+
* @remarks 本器件引脚��元属性不支持修改,本接口调用将不会有任何效果
|
|
14881
14886
|
* @returns 器件引脚图元对象
|
|
14882
14887
|
*/
|
|
14883
14888
|
setState_Y(): ISCH_PrimitiveComponentPin;
|
|
@@ -16962,7 +16967,7 @@ declare global {
|
|
|
16962
16967
|
private primitiveId?;
|
|
16963
16968
|
/** 坐标组 */
|
|
16964
16969
|
private line;
|
|
16965
|
-
/**
|
|
16970
|
+
/** 颜��� */
|
|
16966
16971
|
private color;
|
|
16967
16972
|
/** 填充颜色 */
|
|
16968
16973
|
private fillColor;
|
|
@@ -18072,7 +18077,7 @@ declare global {
|
|
|
18072
18077
|
sortable?: boolean;
|
|
18073
18078
|
/** 排序字段 */
|
|
18074
18079
|
sortKey?: string | string[];
|
|
18075
|
-
/**
|
|
18080
|
+
/** 是否允许��辑 */
|
|
18076
18081
|
editable?: boolean | 1 | 2;
|
|
18077
18082
|
/** 是否带过滤搜索功能 */
|
|
18078
18083
|
filter?: boolean;
|
|
@@ -19572,7 +19577,7 @@ declare global {
|
|
|
19572
19577
|
*
|
|
19573
19578
|
* 本接口无法移除第一级菜单,`id` 数组请至少传递 `2` 个值
|
|
19574
19579
|
*
|
|
19575
|
-
*
|
|
19580
|
+
* 本���口无法移除 **高级** 菜单下的任何子菜单
|
|
19576
19581
|
*
|
|
19577
19582
|
* 注意:本接口需要使用者启用扩展的外部交互权限,如若未启用将始终 `throw Error`
|
|
19578
19583
|
*
|
|
@@ -20573,7 +20578,7 @@ declare global {
|
|
|
20573
20578
|
PCB_2D_PREVIEW = 8,
|
|
20574
20579
|
/** 面板 3D 预览 */
|
|
20575
20580
|
PANEL_3D_PREVIEW = 9,
|
|
20576
|
-
/**
|
|
20581
|
+
/** 面板库 */
|
|
20577
20582
|
PANEL_LIBRARY = 10
|
|
20578
20583
|
}
|
|
20579
20584
|
/**
|
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.57", "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" } }
|