@jlceda/pro-api-types 0.2.53 → 0.2.55
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 +68 -19
- 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
|
|
@@ -2247,32 +2247,22 @@ declare global {
|
|
|
2247
2247
|
supplierId?: string;
|
|
2248
2248
|
/**
|
|
2249
2249
|
* 立创商城库存
|
|
2250
|
-
*
|
|
2251
|
-
* @deprecated 在 `otherProperty` 中替代
|
|
2252
2250
|
*/
|
|
2253
2251
|
lcscInventory?: number;
|
|
2254
2252
|
/**
|
|
2255
2253
|
* 立创商城价格
|
|
2256
|
-
*
|
|
2257
|
-
* @deprecated 在 `otherProperty` 中替代
|
|
2258
2254
|
*/
|
|
2259
2255
|
lcscPrice?: number;
|
|
2260
2256
|
/**
|
|
2261
2257
|
* 嘉立创库存
|
|
2262
|
-
*
|
|
2263
|
-
* @deprecated 在 `otherProperty` 中替代
|
|
2264
2258
|
*/
|
|
2265
2259
|
jlcInventory?: number;
|
|
2266
2260
|
/**
|
|
2267
2261
|
* 嘉立创价格
|
|
2268
|
-
*
|
|
2269
|
-
* @deprecated 在 `otherProperty` 中替代
|
|
2270
2262
|
*/
|
|
2271
2263
|
jlcPrice?: number;
|
|
2272
2264
|
/**
|
|
2273
2265
|
* 嘉立创库类别
|
|
2274
|
-
*
|
|
2275
|
-
* @deprecated 在 `otherProperty` 中替代
|
|
2276
2266
|
*/
|
|
2277
2267
|
jlcLibraryCategory?: ELIB_DeviceJlcLibraryCategory;
|
|
2278
2268
|
/** 其它属性 */
|
|
@@ -4397,7 +4387,7 @@ declare global {
|
|
|
4397
4387
|
* 如果希望在进行本操作时前端画布坐标能与传入数据一致,
|
|
4398
4388
|
* 建议调用 {@link PCB_Document.setCanvasOrigin} 方法并设置偏移量为零;
|
|
4399
4389
|
*
|
|
4400
|
-
*
|
|
4390
|
+
* 此处的单位为数据层面单位,在��度上等同于画布层面的 mil
|
|
4401
4391
|
* @param x - 坐标 X
|
|
4402
4392
|
* @param y - 坐标 Y
|
|
4403
4393
|
* @returns 操作是否成功
|
|
@@ -5108,7 +5098,7 @@ declare global {
|
|
|
5108
5098
|
/**
|
|
5109
5099
|
* 新增实时 DRC 结果事件监听
|
|
5110
5100
|
*
|
|
5111
|
-
* @
|
|
5101
|
+
* @beta
|
|
5112
5102
|
* @remarks
|
|
5113
5103
|
* 注意:本接口仅扩展有效,在独立脚本环境内调用将始终 `throw Error`
|
|
5114
5104
|
* @param id - 事件 ID,用以防止重复注册事件
|
|
@@ -5118,6 +5108,45 @@ declare global {
|
|
|
5118
5108
|
addRealTimeDrcResultEventListener(id: string, eventType: 'all', callFn: (eventType: undefined, props: [{
|
|
5119
5109
|
drcResult: any;
|
|
5120
5110
|
}]) => void | Promise<void>): void;
|
|
5111
|
+
/**
|
|
5112
|
+
* 新增光线追踪引擎 3D 预览点击材质事件监听
|
|
5113
|
+
*
|
|
5114
|
+
* @alpha
|
|
5115
|
+
* @remarks 注意:本接口仅扩展有效,在独立脚本环境内调用将始终 `throw Error`
|
|
5116
|
+
*
|
|
5117
|
+
* ADD since EDA v4
|
|
5118
|
+
* @param id - 事件 ID,用以防止重复注册事件
|
|
5119
|
+
* @param callFn - 事件触发时的回调函数
|
|
5120
|
+
* @param onlyOnce - 是否仅监听一次
|
|
5121
|
+
*/
|
|
5122
|
+
addRayTracerEngine3DViewClickMaterialEventListener(id: string, callFn: (props: {
|
|
5123
|
+
materialId: number;
|
|
5124
|
+
material: any;
|
|
5125
|
+
}) => void | Promise<void>, onlyOnce?: boolean): void;
|
|
5126
|
+
/**
|
|
5127
|
+
* 新增光线追踪引擎 3D 预览相机变动(拖动 3D 模型)事件监听
|
|
5128
|
+
*
|
|
5129
|
+
* @alpha
|
|
5130
|
+
* @remarks 注意:本接口仅扩展有效,在独立脚本环境内调用将始终 `throw Error`
|
|
5131
|
+
*
|
|
5132
|
+
* ADD since EDA v4
|
|
5133
|
+
* @param id - 事件 ID,用以防止重复注册事件
|
|
5134
|
+
* @param callFn - 事件触发时的回调函数
|
|
5135
|
+
* @param onlyOnce - 是否仅监听一次
|
|
5136
|
+
*/
|
|
5137
|
+
addRayTracerEngine3DViewCameraChangeEventListener(id: string, callFn: (props: {
|
|
5138
|
+
position: {
|
|
5139
|
+
x: number;
|
|
5140
|
+
y: number;
|
|
5141
|
+
z: number;
|
|
5142
|
+
};
|
|
5143
|
+
rotation: {
|
|
5144
|
+
x: number;
|
|
5145
|
+
y: number;
|
|
5146
|
+
z: number;
|
|
5147
|
+
};
|
|
5148
|
+
focalLength: number;
|
|
5149
|
+
}) => void | Promise<void>, onlyOnce?: boolean): void;
|
|
5121
5150
|
/**
|
|
5122
5151
|
* 移除事件监听
|
|
5123
5152
|
*
|
|
@@ -7615,7 +7644,7 @@ declare global {
|
|
|
7615
7644
|
* 获取属性状态:是否镜像
|
|
7616
7645
|
*
|
|
7617
7646
|
* @public
|
|
7618
|
-
* @returns
|
|
7647
|
+
* @returns 是否��像
|
|
7619
7648
|
*/
|
|
7620
7649
|
getState_Mirror(): boolean;
|
|
7621
7650
|
/**
|
|
@@ -7701,6 +7730,7 @@ declare global {
|
|
|
7701
7730
|
* 设置属性状态:是否反相
|
|
7702
7731
|
*
|
|
7703
7732
|
* @beta
|
|
7733
|
+
* @remarks 默认字体不支持反相
|
|
7704
7734
|
* @param reverse - 是否反相
|
|
7705
7735
|
* @returns 文本图元对象
|
|
7706
7736
|
*/
|
|
@@ -8140,6 +8170,7 @@ declare global {
|
|
|
8140
8170
|
* 设置属性状态:是否反相
|
|
8141
8171
|
*
|
|
8142
8172
|
* @beta
|
|
8173
|
+
* @remarks 默认字体不支持反相
|
|
8143
8174
|
* @param reverse - 是否反相
|
|
8144
8175
|
* @returns 属性图元对象
|
|
8145
8176
|
*/
|
|
@@ -9389,7 +9420,7 @@ declare global {
|
|
|
9389
9420
|
* @beta
|
|
9390
9421
|
* @remarks 如若传入多个图元 ID,任意图元 ID 未匹配到不影响其它图元的返回,即可能返回少于传入的图元 ID 数量的图元对象
|
|
9391
9422
|
* @param primitiveIds - 填充的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
|
|
9392
|
-
* @returns
|
|
9423
|
+
* @returns 填充图元对象,空数组表示获取失败
|
|
9393
9424
|
*/
|
|
9394
9425
|
get(primitiveIds: Array<string>): Promise<Array<IPCB_PrimitiveFill>>;
|
|
9395
9426
|
/**
|
|
@@ -11730,6 +11761,10 @@ declare global {
|
|
|
11730
11761
|
* 获取属性状态:二进制数据
|
|
11731
11762
|
*
|
|
11732
11763
|
* @public
|
|
11764
|
+
* @remarks
|
|
11765
|
+
* 从画布取回的 `binaryData` 数据可能为 `hashId`,这是由于我们后端存储二进制内嵌对象数据的是对象存储,
|
|
11766
|
+
*
|
|
11767
|
+
* 对象存储以 `hashId` 作为索引,需要完整取回数据将会造成额外请求消耗性能
|
|
11733
11768
|
* @returns 二进制数据
|
|
11734
11769
|
*/
|
|
11735
11770
|
getState_BinaryData(): string;
|
|
@@ -11803,6 +11838,10 @@ declare global {
|
|
|
11803
11838
|
* 设置属性状态:二进制数据
|
|
11804
11839
|
*
|
|
11805
11840
|
* @public
|
|
11841
|
+
* @remarks
|
|
11842
|
+
* 从画布重新取回的 `binaryData` 数据可能为 `hashId`,这是由于我们后端存储二进制内嵌对象数据的是对象存储,
|
|
11843
|
+
*
|
|
11844
|
+
* 对象存储以 `hashId` 作为索引,需要完整取回数据将会造成额外请求消耗性能
|
|
11806
11845
|
* @param binaryData - 二进制数据
|
|
11807
11846
|
* @returns 二进制内嵌对象图元对象
|
|
11808
11847
|
*/
|
|
@@ -11933,6 +11972,16 @@ declare global {
|
|
|
11933
11972
|
* @param configurations - 渲染配置
|
|
11934
11973
|
*/
|
|
11935
11974
|
setRenderConfigurations(configurations: any): Promise<void>;
|
|
11975
|
+
/**
|
|
11976
|
+
* 获取光线追踪渲染配置
|
|
11977
|
+
*
|
|
11978
|
+
* @beta
|
|
11979
|
+
* @remarks 本接口配置定义还在进行中
|
|
11980
|
+
*
|
|
11981
|
+
* ADD since EDA v4
|
|
11982
|
+
* @returns 渲染配置
|
|
11983
|
+
*/
|
|
11984
|
+
getRenderConfigurations(): Promise<any>;
|
|
11936
11985
|
}
|
|
11937
11986
|
|
|
11938
11987
|
/**
|
|
@@ -14326,7 +14375,7 @@ declare global {
|
|
|
14326
14375
|
*/
|
|
14327
14376
|
setState_CenterY(centerY: number): ISCH_PrimitiveCircle;
|
|
14328
14377
|
/**
|
|
14329
|
-
*
|
|
14378
|
+
* 设置属性状态:半径
|
|
14330
14379
|
*
|
|
14331
14380
|
* @beta
|
|
14332
14381
|
* @param radius - 半径
|
|
@@ -14891,7 +14940,7 @@ declare global {
|
|
|
14891
14940
|
* 将异步图元重置为当前画布状态
|
|
14892
14941
|
*
|
|
14893
14942
|
* @internal
|
|
14894
|
-
* @remarks
|
|
14943
|
+
* @remarks 本器件引脚图元属性不支持修改,本接口调用将不会有任何效果
|
|
14895
14944
|
* @returns 器件引脚图元对象
|
|
14896
14945
|
*/
|
|
14897
14946
|
reset(): Promise<ISCH_PrimitiveComponentPin>;
|
|
@@ -20524,7 +20573,7 @@ declare global {
|
|
|
20524
20573
|
PCB_2D_PREVIEW = 8,
|
|
20525
20574
|
/** 面板 3D 预览 */
|
|
20526
20575
|
PANEL_3D_PREVIEW = 9,
|
|
20527
|
-
/**
|
|
20576
|
+
/** 面��库 */
|
|
20528
20577
|
PANEL_LIBRARY = 10
|
|
20529
20578
|
}
|
|
20530
20579
|
/**
|
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.55", "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" } }
|