@jlceda/pro-api-types 0.2.53 → 0.2.54

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.
Files changed (2) hide show
  1. package/index.d.ts +69 -10
  2. 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 此处编辑器控制基于当前已打开的工程设计下���图页,其它任何 `documentUuid` 都将被认为是不存在的文档页
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
@@ -4392,7 +4392,7 @@ declare global {
4392
4392
  *
4393
4393
  * @public
4394
4394
  * @remarks
4395
- * 本接口在前端画布上定位到指定的数据层面坐标;
4395
+ * 本接口在前端画布上定��到指定的数据层面坐标;
4396
4396
  *
4397
4397
  * 如果希望在进行本操作时前端画布坐标能与传入数据一致,
4398
4398
  * 建议调用 {@link PCB_Document.setCanvasOrigin} 方法并设置偏移量为零;
@@ -5108,7 +5108,7 @@ declare global {
5108
5108
  /**
5109
5109
  * 新增实时 DRC 结果事件监听
5110
5110
  *
5111
- * @alpha
5111
+ * @beta
5112
5112
  * @remarks
5113
5113
  * 注意:本接口仅扩展有效,在独立脚本环境内调用将始终 `throw Error`
5114
5114
  * @param id - 事件 ID,用以防止重复注册事件
@@ -5118,6 +5118,45 @@ declare global {
5118
5118
  addRealTimeDrcResultEventListener(id: string, eventType: 'all', callFn: (eventType: undefined, props: [{
5119
5119
  drcResult: any;
5120
5120
  }]) => void | Promise<void>): void;
5121
+ /**
5122
+ * 新增光线追踪引擎 3D 预览点击材质事件监听
5123
+ *
5124
+ * @alpha
5125
+ * @remarks 注意:本接口仅扩展有效,在独立脚本环境内调用将始终 `throw Error`
5126
+ *
5127
+ * ADD since EDA v4
5128
+ * @param id - 事件 ID,用以防止重复注册事件
5129
+ * @param callFn - 事件触发时的回调函数
5130
+ * @param onlyOnce - 是否仅监听一次
5131
+ */
5132
+ addRayTracerEngine3DViewClickMaterialEventListener(id: string, callFn: (props: {
5133
+ materialId: number;
5134
+ material: any;
5135
+ }) => void | Promise<void>, onlyOnce?: boolean): void;
5136
+ /**
5137
+ * 新增光线追踪引擎 3D 预览相机变动(拖动 3D 模型)事件监听
5138
+ *
5139
+ * @alpha
5140
+ * @remarks 注意:本接口仅扩展有效,在独立脚本环境内调用将始终 `throw Error`
5141
+ *
5142
+ * ADD since EDA v4
5143
+ * @param id - 事件 ID,用以防止重复注册事件
5144
+ * @param callFn - 事件触发时的回调函数
5145
+ * @param onlyOnce - 是否仅监听一次
5146
+ */
5147
+ addRayTracerEngine3DViewCameraChangeEventListener(id: string, callFn: (props: {
5148
+ position: {
5149
+ x: number;
5150
+ y: number;
5151
+ z: number;
5152
+ };
5153
+ rotation: {
5154
+ x: number;
5155
+ y: number;
5156
+ z: number;
5157
+ };
5158
+ focalLength: number;
5159
+ }) => void | Promise<void>, onlyOnce?: boolean): void;
5121
5160
  /**
5122
5161
  * 移除事件监听
5123
5162
  *
@@ -5239,7 +5278,7 @@ declare global {
5239
5278
  * @param fileName - 文件名
5240
5279
  * @param password - 加密密码
5241
5280
  * @param fileType - 文件格式
5242
- * @returns 文档文件数据,`undefined` 表示当前未打开文档或数据获取失败
5281
+ * @returns 文档文件数据,`undefined` 表示当前��打开文档或数据获取失败
5243
5282
  */
5244
5283
  getDocumentFile(fileName?: string, password?: string, fileType?: 'epro' | 'epro2'): Promise<File | undefined>;
5245
5284
  /**
@@ -7701,6 +7740,7 @@ declare global {
7701
7740
  * 设置属性状态:是否反相
7702
7741
  *
7703
7742
  * @beta
7743
+ * @remarks 默认字体不支持反相
7704
7744
  * @param reverse - 是否反相
7705
7745
  * @returns 文本图元对象
7706
7746
  */
@@ -8140,6 +8180,7 @@ declare global {
8140
8180
  * 设置属性状态:是否反相
8141
8181
  *
8142
8182
  * @beta
8183
+ * @remarks 默认字体不支持反相
8143
8184
  * @param reverse - 是否反相
8144
8185
  * @returns 属性图元对象
8145
8186
  */
@@ -9389,7 +9430,7 @@ declare global {
9389
9430
  * @beta
9390
9431
  * @remarks 如若传入多个图元 ID,任意图元 ID 未匹配到不影响其它图元的返回,即可能返回少于传入的图元 ID 数量的图元对象
9391
9432
  * @param primitiveIds - 填充的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
9392
- * @returns 填充��元对象,空数组表示获取失败
9433
+ * @returns 填充图元对象,空数组表示获取失败
9393
9434
  */
9394
9435
  get(primitiveIds: Array<string>): Promise<Array<IPCB_PrimitiveFill>>;
9395
9436
  /**
@@ -11536,7 +11577,7 @@ declare global {
11536
11577
  * 查询图元是否为异步图元
11537
11578
  *
11538
11579
  * @public
11539
- * @returns 是否为异步图元
11580
+ * @returns 是否为异步图���
11540
11581
  */
11541
11582
  isAsync(): boolean;
11542
11583
  /**
@@ -11730,6 +11771,10 @@ declare global {
11730
11771
  * 获取属性状态:二进制数据
11731
11772
  *
11732
11773
  * @public
11774
+ * @remarks
11775
+ * 从画布取回的 `binaryData` 数据可能为 `hashId`,这是由于我们后端存储二进制内嵌对象数据的是对象存储,
11776
+ *
11777
+ * 对象存储以 `hashId` 作为索引,需要完整取回数据将会造成额外请求消耗性能
11733
11778
  * @returns 二进制数据
11734
11779
  */
11735
11780
  getState_BinaryData(): string;
@@ -11803,6 +11848,10 @@ declare global {
11803
11848
  * 设置属性状态:二进制数据
11804
11849
  *
11805
11850
  * @public
11851
+ * @remarks
11852
+ * 从画布重新取回的 `binaryData` 数据可能为 `hashId`,这是由于我们后端存储二进制内嵌对象数据的是对象存储,
11853
+ *
11854
+ * 对象存储以 `hashId` 作为索引,需要完整取回数据将会造成额外请求消耗性能
11806
11855
  * @param binaryData - 二进制数据
11807
11856
  * @returns 二进制内嵌对象图元对象
11808
11857
  */
@@ -11933,6 +11982,16 @@ declare global {
11933
11982
  * @param configurations - 渲染配置
11934
11983
  */
11935
11984
  setRenderConfigurations(configurations: any): Promise<void>;
11985
+ /**
11986
+ * 获取光线追踪渲染配置
11987
+ *
11988
+ * @beta
11989
+ * @remarks 本接口配置定义还在进行中
11990
+ *
11991
+ * ADD since EDA v4
11992
+ * @returns 渲染配置
11993
+ */
11994
+ getRenderConfigurations(): Promise<any>;
11936
11995
  }
11937
11996
 
11938
11997
  /**
@@ -14326,7 +14385,7 @@ declare global {
14326
14385
  */
14327
14386
  setState_CenterY(centerY: number): ISCH_PrimitiveCircle;
14328
14387
  /**
14329
- * 设置���性状态:半径
14388
+ * 设置属性状态:半径
14330
14389
  *
14331
14390
  * @beta
14332
14391
  * @param radius - 半径
@@ -14891,7 +14950,7 @@ declare global {
14891
14950
  * 将异步图元重置为当前画布状态
14892
14951
  *
14893
14952
  * @internal
14894
- * @remarks 本器件引脚图元属性不支持修改,本接��调用将不会有任何效果
14953
+ * @remarks 本器件引脚图元属性不支持修改,本接口调用将不会有任何效果
14895
14954
  * @returns 器件引脚图元对象
14896
14955
  */
14897
14956
  reset(): Promise<ISCH_PrimitiveComponentPin>;
@@ -19521,7 +19580,7 @@ declare global {
19521
19580
  *
19522
19581
  * 本接口无法移除 {@link SYS_HeaderMenu.insertSystemHeaderMenus | 导入系统顶部菜单} 接口导入的系统顶部菜单项
19523
19582
  *
19524
- * 本接口无法移除第一级菜单,`id` 数组请至少传递 `2` 个值
19583
+ * 本��口无法移除第一级菜单,`id` 数组请至少传递 `2` 个值
19525
19584
  *
19526
19585
  * 本接口无法移除 **高级** 菜单下的任何子菜单
19527
19586
  *
package/package.json CHANGED
@@ -1 +1 @@
1
- { "name": "@jlceda/pro-api-types", "type": "module", "version": "0.2.53", "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" } }
1
+ { "name": "@jlceda/pro-api-types", "type": "module", "version": "0.2.54", "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" } }