@jlceda/pro-api-types 0.2.56 → 0.2.58

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 +23 -23
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -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,45 +2226,36 @@ 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
  */
2251
- lcscInventory?: number;
2252
2247
  /**
2253
2248
  * 立创商城价格
2254
2249
  */
2255
- lcscPrice?: number;
2256
2250
  /**
2257
2251
  * 嘉立创库存
2258
2252
  */
2259
- jlcInventory?: number;
2260
2253
  /**
2261
2254
  * 嘉立创价格
2262
2255
  */
2263
- jlcPrice?: number;
2264
2256
  /**
2265
2257
  * 嘉立创库类别
2266
2258
  */
2267
- jlcLibraryCategory?: ELIB_DeviceJlcLibraryCategory;
2268
2259
  /** 其它属性 */
2269
2260
  otherProperty?: {
2270
2261
  [key: string]: boolean | number | string | undefined;
@@ -4387,7 +4378,7 @@ declare global {
4387
4378
  * 如果希望在进行本操作时前端画布坐标能与传入数据一致,
4388
4379
  * 建议调用 {@link PCB_Document.setCanvasOrigin} 方法并设置偏移量为零;
4389
4380
  *
4390
- * 此处的单位为数据层面单位,在��度上等同于画布层面的 mil
4381
+ * 此处的单位为数据层面单位,在跨度上等同于画布层面的 mil
4391
4382
  * @param x - 坐标 X
4392
4383
  * @param y - 坐标 Y
4393
4384
  * @returns 操作是否成功
@@ -6040,7 +6031,7 @@ declare global {
6040
6031
  * 获取自动布局文件(JSON)
6041
6032
  *
6042
6033
  * @beta
6043
- * @remarks 可以使用 {@link SYS_FileSystem.saveFile} 接口将文件导出到本地文件系统
6034
+ * @remarks 可以使用 {@link SYS_FileSystem.saveFile} 接口将文件导出到本地文件���统
6044
6035
  * @param fileName - 文件名
6045
6036
  * @returns 自动布局 JSON 文件数据
6046
6037
  * @example
@@ -7644,7 +7635,7 @@ declare global {
7644
7635
  * 获取属性状态:是否镜像
7645
7636
  *
7646
7637
  * @public
7647
- * @returns 是否��像
7638
+ * @returns 是否镜像
7648
7639
  */
7649
7640
  getState_Mirror(): boolean;
7650
7641
  /**
@@ -8440,7 +8431,6 @@ declare global {
8440
8431
  /** 禁止元件 */
8441
8432
  NO_COMPONENTS = 2,
8442
8433
  /** 禁止过孔 */
8443
- NO_VIAS = 3,
8444
8434
  /** 禁止布线 */
8445
8435
  NO_WIRES = 5,
8446
8436
  /** 禁止填充 */
@@ -8807,7 +8797,7 @@ declare global {
8807
8797
  *
8808
8798
  * @beta
8809
8799
  * @remarks 如若传入多个图元 ID,任意图元 ID 未匹配到不影响其它图元的返回,即可能返回少于传入的图元 ID 数量的图元对象
8810
- * @param primitiveIds - 覆铜边框的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
8800
+ * @param primitiveIds - 覆铜边���的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
8811
8801
  * @returns 覆铜边框图元对象,空数组表示获取失败
8812
8802
  */
8813
8803
  get(primitiveIds: Array<string>): Promise<Array<IPCB_PrimitivePour>>;
@@ -10436,7 +10426,7 @@ declare global {
10436
10426
  * 获取器件
10437
10427
  *
10438
10428
  * @beta
10439
- * @param primitiveIds - 器件的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
10429
+ * @param primitiveIds - 器件的图元 ID,可以为字��串或字符串数组,如若为数组,则返回的也是数组
10440
10430
  * @returns 器件图元对象,`undefined` 表示获取失败
10441
10431
  */
10442
10432
  get(primitiveIds: string): Promise<IPCB_PrimitiveComponent | undefined>;
@@ -11950,11 +11940,8 @@ declare global {
11950
11940
  *
11951
11941
  * @beta
11952
11942
  * @remarks ADD since EDA v4
11953
- * @param lut - 材质查找表
11954
11943
  */
11955
- init(lut: Array<{
11956
- [key: string]: any;
11957
- }>): Promise<void>;
11944
+ init(): Promise<void>;
11958
11945
  /**
11959
11946
  * 停止光线追踪引擎
11960
11947
  *
@@ -11982,6 +11969,19 @@ declare global {
11982
11969
  * @returns 渲染配置
11983
11970
  */
11984
11971
  getRenderConfigurations(): Promise<any>;
11972
+ /**
11973
+ * 获取光线追踪光源配置
11974
+ *
11975
+ * @beta
11976
+ * @remarks
11977
+ * {@link PCB_RayTracerEngine.getRenderConfigurations | 获取光线追踪渲染配置} 接口中包含一种光源配置,本接口用于获取不同光源配置
11978
+ *
11979
+ * 本接口配置定义还在进行中
11980
+ *
11981
+ * ADD since EDA v4
11982
+ * @returns 光源配置
11983
+ */
11984
+ getLightConfigurations(lightName: string): Promise<any>;
11985
11985
  }
11986
11986
 
11987
11987
  /**
@@ -18076,7 +18076,7 @@ declare global {
18076
18076
  editable?: boolean | 1 | 2;
18077
18077
  /** 是否带过滤搜索功能 */
18078
18078
  filter?: boolean;
18079
- /** 单元格对齐方式 */
18079
+ /** ��元格对齐方式 */
18080
18080
  align?: TableCellAlign;
18081
18081
  /** 下拉框列表 */
18082
18082
  selectList?: SelectOption[];
@@ -19574,7 +19574,7 @@ declare global {
19574
19574
  *
19575
19575
  * 本接口无法移除 **高级** 菜单下的任何子菜单
19576
19576
  *
19577
- * 注意:本接口需要使用者启用扩展的外部交互权限,如若未启用将始终 `throw Error`
19577
+ * 注意:本接口需要使用者启用���展的外部交互权限,如若未启用将始终 `throw Error`
19578
19578
  *
19579
19579
  * 非公开接口使用提醒:本接口按原样提供,不提供参数的额外文档,参数可能在任何版本出现破坏性更改并不另行通知
19580
19580
  * @param env - 环境
@@ -20573,7 +20573,7 @@ declare global {
20573
20573
  PCB_2D_PREVIEW = 8,
20574
20574
  /** 面板 3D 预览 */
20575
20575
  PANEL_3D_PREVIEW = 9,
20576
- /** 面��库 */
20576
+ /** 面板库 */
20577
20577
  PANEL_LIBRARY = 10
20578
20578
  }
20579
20579
  /**
package/package.json CHANGED
@@ -1 +1 @@
1
- { "name": "@jlceda/pro-api-types", "type": "module", "version": "0.2.56", "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.58", "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" } }