@jlceda/pro-api-types 0.2.50 → 0.2.52

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 +47 -21
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -70,6 +70,8 @@ declare global {
70
70
  SYMBOL_NON_ELECTRICAL = 21,
71
71
  /** 短接标识符号 */
72
72
  SYMBOL_SHORT_CIRCUIT_FLAG = 22,
73
+ /** 跨页连接标识符号 */
74
+ SYMBOL_OFF_PAGE_CONNECTOR_FLAG = 25,
73
75
  /** 复用模块符号 */
74
76
  SYMBOL_CBB = 17,
75
77
  /** 封装 */
@@ -969,7 +971,7 @@ declare global {
969
971
  /** 标签页是否可关闭 */
970
972
  isAbleDelete: boolean;
971
973
  /**
972
- * ���签页是否不使用 I18n 功能(内部功能)
974
+ * 标签页是否不使用 I18n 功能(内部功能)
973
975
  *
974
976
  * @internal
975
977
  */
@@ -1374,7 +1376,7 @@ declare global {
1374
1376
  * 文档树 / 面板管理类
1375
1377
  *
1376
1378
  * @public
1377
- * @remarks 在当前打开的工程内进行面板管理的���关操作
1379
+ * @remarks 在当前打开的工程内进行面板管理的相关操作
1378
1380
  */
1379
1381
  class DMT_Panel {
1380
1382
  /**
@@ -8796,7 +8798,7 @@ declare global {
8796
8798
  * @param net - 网络名称
8797
8799
  * @param layer - 层
8798
8800
  * @param primitiveLock - 是否锁定
8799
- * @returns 覆铜边框的图元 ID 数���
8801
+ * @returns 覆铜边框的图元 ID 数组
8800
8802
  */
8801
8803
  getAllPrimitiveId(net?: string, layer?: TPCB_LayersOfCopper, primitiveLock?: boolean): Promise<Array<string>>;
8802
8804
  /**
@@ -9389,7 +9391,7 @@ declare global {
9389
9391
  *
9390
9392
  * @beta
9391
9393
  * @param primitiveIds - 填充的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
9392
- * @returns 填充图元对象,`undefined` 表示获��失败
9394
+ * @returns 填充图元对象,`undefined` 表示获取失败
9393
9395
  */
9394
9396
  get(primitiveIds: string): Promise<IPCB_PrimitiveFill | undefined>;
9395
9397
  /**
@@ -9922,7 +9924,7 @@ declare global {
9922
9924
  */
9923
9925
  create(): Promise<IPCB_PrimitivePad>;
9924
9926
  /**
9925
- * 获取属性���态:图元类型
9927
+ * 获取属性状态:图元类型
9926
9928
  *
9927
9929
  * @public
9928
9930
  * @returns 图元类型
@@ -10422,8 +10424,8 @@ declare global {
10422
10424
  * 获取器件
10423
10425
  *
10424
10426
  * @beta
10425
- * @remarks 如若传入多个图元 ID,任意图元 ID 未匹配到不影响其它图元的返回,即可能返回少于传入的图元 ID 数量的图元对象
10426
- * @param primitiveIds - 器���的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
10427
+ * @remarks 如若传入多个图元 ID,任意图元 ID 未匹配到不影响其它图元的返回,即可能返���少于传入的图元 ID 数量的图元对象
10428
+ * @param primitiveIds - 器件的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
10427
10429
  * @returns 器件图元对象,空数组表示获取失败
10428
10430
  */
10429
10431
  get(primitiveIds: Array<string>): Promise<Array<IPCB_PrimitiveComponent>>;
@@ -11584,7 +11586,7 @@ declare global {
11584
11586
  * @beta
11585
11587
  * @param layer - 层
11586
11588
  * @param topLeftX - 左上点 X
11587
- * @param topLeftY - 左上点 Y
11589
+ * @param topLeftY - 左��点 Y
11588
11590
  * @param binaryData - 二进制数据
11589
11591
  * @param width - 宽
11590
11592
  * @param height - 高
@@ -11918,7 +11920,8 @@ declare global {
11918
11920
  /**
11919
11921
  * 初始化光线追踪引擎
11920
11922
  *
11921
- * @alpha
11923
+ * @beta
11924
+ * @remarks ADD since EDA v4
11922
11925
  * @param lut - 材质查找表
11923
11926
  */
11924
11927
  init(lut: Array<{
@@ -11927,9 +11930,20 @@ declare global {
11927
11930
  /**
11928
11931
  * 停止光线追踪引擎
11929
11932
  *
11930
- * @alpha
11933
+ * @beta
11934
+ * @remarks ADD since EDA v4
11931
11935
  */
11932
11936
  dispose(): Promise<void>;
11937
+ /**
11938
+ * 设置光线追踪渲染配置
11939
+ *
11940
+ * @beta
11941
+ * @remarks 本接口配置定义还在进行中
11942
+ *
11943
+ * ADD since EDA v4
11944
+ * @param configurations - 渲染配置
11945
+ */
11946
+ setRenderConfigurations(configurations: any): Promise<void>;
11933
11947
  }
11934
11948
 
11935
11949
  /**
@@ -13148,7 +13162,7 @@ declare global {
13148
13162
  * @beta
13149
13163
  * @param primitiveId - 图元 ID
13150
13164
  * @param property - 修改参数
13151
- * @returns 文本图元��象
13165
+ * @returns 文本图元对象
13152
13166
  */
13153
13167
  modify(primitiveId: string | ISCH_PrimitiveText, property: {
13154
13168
  x?: number;
@@ -13776,7 +13790,7 @@ declare global {
13776
13790
  */
13777
13791
  setState_FontSize(fontSize: number | null): ISCH_PrimitiveAttribute;
13778
13792
  /**
13779
- * ���置属性状态:是否加粗
13793
+ * 设置属性状态:是否加粗
13780
13794
  *
13781
13795
  * @beta
13782
13796
  * @param bold - 是否加粗
@@ -14300,7 +14314,7 @@ declare global {
14300
14314
  */
14301
14315
  getState_LineType(): ESCH_PrimitiveLineType | null;
14302
14316
  /**
14303
- * 获取属性状态:填充样式
14317
+ * 获取属性状态:填充���式
14304
14318
  *
14305
14319
  * @public
14306
14320
  * @returns 填充样式
@@ -14318,7 +14332,7 @@ declare global {
14318
14332
  * 设置属性状态:圆心 Y
14319
14333
  *
14320
14334
  * @beta
14321
- * @param centerY - ��心 Y
14335
+ * @param centerY - 圆心 Y
14322
14336
  * @returns 圆图元对象
14323
14337
  */
14324
14338
  setState_CenterY(centerY: number): ISCH_PrimitiveCircle;
@@ -14873,7 +14887,7 @@ declare global {
14873
14887
  * 设置属性状态:引脚类型
14874
14888
  *
14875
14889
  * @internal
14876
- * @remarks 本器件引脚图元属性不支持修改,本接口调用将不会有任何效果
14890
+ * @remarks 本��件引脚图元属性不支持修改,本接口调用将不会有任何效果
14877
14891
  * @returns 器件引脚图元对象
14878
14892
  */
14879
14893
  setState_PinType(): ISCH_PrimitiveComponentPin;
@@ -16981,7 +16995,7 @@ declare global {
16981
16995
  *
16982
16996
  * @beta
16983
16997
  * @param line - 坐标组
16984
- * @returns 多边形图元对象
16998
+ * @returns ���边形图元对象
16985
16999
  */
16986
17000
  setState_Line(line: Array<number>): ISCH_PrimitivePolygon;
16987
17001
  /**
@@ -18071,7 +18085,7 @@ declare global {
18071
18085
  setCellStyle: (style: CSSProperties) => void;
18072
18086
  /** 设置行样式 */
18073
18087
  setRowStyle: (style: CSSProperties) => void;
18074
- /** 设置所有单元格样式 */
18088
+ /** 设置所有单元格��式 */
18075
18089
  setAllCellStyle: (style: CSSProperties) => void;
18076
18090
  /** 设置行数据 */
18077
18091
  setRowData: (data: {
@@ -19382,8 +19396,14 @@ declare global {
19382
19396
  PCB_VIEW = "pcbView",
19383
19397
  /** 面板 */
19384
19398
  PANEL = "panel",
19399
+ /** 面板库 */
19400
+ PANEL_LIBRARY = "panelLibrary",
19385
19401
  /** 面板预览 */
19386
- PANEL_VIEW = "panelView"
19402
+ PANEL_VIEW = "panelView",
19403
+ /** 仿真原理图:NGspice */
19404
+ SIMULATION_SCHEMATIC_NGSPICE = "simulationSchematicNGspice",
19405
+ /** 仿真原理图:SimulIDE */
19406
+ SIMULATION_SCHEMATIC_SIMULIDE = "simulationSchematicSimulIDE"
19387
19407
  }
19388
19408
  /**
19389
19409
  * 顶部菜单项
@@ -19413,8 +19433,14 @@ declare global {
19413
19433
  pcbView?: Array<ISYS_HeaderMenuTopMenuItem>;
19414
19434
  /** 面板 */
19415
19435
  panel?: Array<ISYS_HeaderMenuTopMenuItem>;
19436
+ /** 面板库 */
19437
+ panelLibrary?: Array<ISYS_HeaderMenuTopMenuItem>;
19416
19438
  /** 面板预览 */
19417
19439
  panelView?: Array<ISYS_HeaderMenuTopMenuItem>;
19440
+ /** 仿真原理图:NGspice */
19441
+ simulationSchematicNGspice?: Array<ISYS_HeaderMenuTopMenuItem>;
19442
+ /** 仿真原理图:SimulIDE */
19443
+ simulationSchematicSimulIDE?: Array<ISYS_HeaderMenuTopMenuItem>;
19418
19444
  }
19419
19445
  /**
19420
19446
  * 顶部一级菜单项
@@ -19535,7 +19561,7 @@ declare global {
19535
19561
  *
19536
19562
  * 本接口不能在 **高级** 菜单下新增任何子菜单
19537
19563
  *
19538
- * 本接口新增的子菜单将默认排列在原菜单的结尾,除非指定了 `props.insertBefore` 参数
19564
+ * 本接口新增的子菜单将默认排列在原菜单的结尾,除非���定了 `props.insertBefore` 参数
19539
19565
  *
19540
19566
  * 注意:本接口需要使用者启用扩展的外部交互权限,如若未启用将始终 `throw Error`
19541
19567
  *
@@ -20557,7 +20583,7 @@ declare global {
20557
20583
  */
20558
20584
  unregisterShortcutKey(shortcutKey: TSYS_ShortcutKeys): Promise<boolean>;
20559
20585
  /**
20560
- * 查询快捷键列表
20586
+ * ��询快捷键列表
20561
20587
  *
20562
20588
  * @beta
20563
20589
  * @param includeSystem - 是否包含系统快捷键
@@ -20589,7 +20615,7 @@ declare global {
20589
20615
  * 获取扩展所有用户配置
20590
20616
  *
20591
20617
  * @public
20592
- * @remarks 注意:本接口仅扩展有效,在独立脚本环境���调用将始终 `throw Error`
20618
+ * @remarks 注意:本接口仅扩展有效,在独立脚本环境内调用将始终 `throw Error`
20593
20619
  * @returns 扩展所有用户配置信息
20594
20620
  */
20595
20621
  getExtensionAllUserConfigs(): {
package/package.json CHANGED
@@ -1 +1 @@
1
- { "name": "@jlceda/pro-api-types", "type": "module", "version": "0.2.50", "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.52", "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" } }