@jlceda/pro-api-types 0.1.152 → 0.1.154

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 +55 -28
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -348,7 +348,7 @@ declare class DMT_Folder {
348
348
  * 删除文件夹
349
349
  *
350
350
  * @public
351
- * @param teamUuid - 团队 UUID
351
+ * @param teamUuid - ��队 UUID
352
352
  * @param folderUuid - 文件夹 UUID
353
353
  * @returns 操作是否成功
354
354
  */
@@ -508,7 +508,7 @@ declare class DMT_Project {
508
508
  *
509
509
  * @beta
510
510
  * @param projectFriendlyName - 工程友好名称
511
- * @param projectName - 工程名称,仅支持字母 `a-zA-Z`、数字 `0-9`、中划线 `-`,如若不指定,则根据工程友好名称自动生成
511
+ * @param projectName - 工程名称,不可重复,仅支持字母 `a-zA-Z`、数字 `0-9`、中划线 `-`,如若不指定,则根据工程友好名称自动生成
512
512
  * @param teamUuid - 团队 UUID,如若不指定,则默认为个人;在不存在个人工程的环境下必须指定团队 UUID
513
513
  * @param folderUuid - 文件夹 UUID,如若不指定,则为根文件夹
514
514
  * @param description - 工程描述
@@ -731,7 +731,7 @@ declare class DMT_Schematic {
731
731
  * 文档树 / 选择控制类
732
732
  *
733
733
  * @public
734
- * @remarks 在文档树内进行选择焦点的查询、控制
734
+ * @remarks 在文档树内进行选择焦���的查询、控制
735
735
  */
736
736
  declare class DMT_SelectControl {
737
737
  /**
@@ -1916,6 +1916,18 @@ declare enum ESYS_ShortcutKeyEffectiveEditorScene {
1916
1916
  LOCAL = 6
1917
1917
  }
1918
1918
 
1919
+ /**
1920
+ * 主题
1921
+ *
1922
+ * @public
1923
+ */
1924
+ declare enum ESYS_Theme {
1925
+ /** 浅色 */
1926
+ LIGHT = "light",
1927
+ /** 深色 */
1928
+ DARK = "dark"
1929
+ }
1930
+
1919
1931
  /**
1920
1932
  * 吐司消息类型
1921
1933
  *
@@ -2142,7 +2154,7 @@ declare interface IDMT_IndicatorMarkerShape {
2142
2154
  */
2143
2155
  bottom?: number;
2144
2156
  /**
2145
- * 矩形:左 X
2157
+ * 矩���:左 X
2146
2158
  */
2147
2159
  left?: number;
2148
2160
  /**
@@ -2804,6 +2816,7 @@ declare class IPCB_ComplexPolygon {
2804
2816
  * @returns 复杂多边形数据
2805
2817
  */
2806
2818
  getSourceStrictComplex(): Array<TPCB_PolygonSourceArray>;
2819
+ /* Excluded from this release type: getCenter */
2807
2820
  /* Excluded from this release type: validateSource */
2808
2821
  }
2809
2822
 
@@ -2935,16 +2948,7 @@ declare class IPCB_Polygon {
2935
2948
  * @returns 单多边形数据
2936
2949
  */
2937
2950
  getSource(): TPCB_PolygonSourceArray;
2938
- /**
2939
- * 获取单多边形中心点
2940
- *
2941
- * @public
2942
- * @returns 单多边形中心点
2943
- */
2944
- getCenter(): {
2945
- x: number;
2946
- y: number;
2947
- };
2951
+ /* Excluded from this release type: getCenter */
2948
2952
  /* Excluded from this release type: validateSource */
2949
2953
  }
2950
2954
 
@@ -3503,7 +3507,7 @@ declare class IPCB_PrimitiveAttribute implements IPCB_Primitive {
3503
3507
  */
3504
3508
  setState_LineWidth(lineWidth: number): IPCB_PrimitiveAttribute;
3505
3509
  /**
3506
- * 设置属性状态:对齐模式
3510
+ * 设置属���状态:对齐模式
3507
3511
  *
3508
3512
  * @beta
3509
3513
  * @param alignMode - 对齐模式
@@ -3949,7 +3953,7 @@ declare class IPCB_PrimitiveComponent implements IPCB_Primitive {
3949
3953
  * @remarks
3950
3954
  * 器件焊盘图元是一个特殊的图元,它指的是在 PCB 画布上关联到封装的焊盘
3951
3955
  *
3952
- * 你只能通过 {@link PCB_PrimitiveComponent.getAllPadsByPrimitiveId | 器件类的 getAllPinsByPrimitiveId 方法} 或 {@link IPCB_PrimitiveComponent.getAllPins | 器件图元的 getAllPads 方法} 获取到器件焊盘图元
3956
+ * 你只能通过 {@link PCB_PrimitiveComponent.getAllPinsByPrimitiveId | 器件类的 getAllPinsByPrimitiveId 方法} 或 {@link IPCB_PrimitiveComponent.getAllPins | 器件图元的 getAllPads 方法} 获取到器件焊盘图元
3953
3957
  */
3954
3958
  declare class IPCB_PrimitiveComponentPad extends IPCB_PrimitivePad {
3955
3959
  /** 图元类型 */
@@ -4329,7 +4333,7 @@ declare class IPCB_PrimitiveFill implements IPCB_Primitive {
4329
4333
  */
4330
4334
  done(): Promise<IPCB_PrimitiveFill>;
4331
4335
  /**
4332
- * 转换到:折线图元(默认是线条)
4336
+ * 转换到:折线图元
4333
4337
  *
4334
4338
  * @beta
4335
4339
  * @returns 折线图元对象
@@ -4783,7 +4787,7 @@ declare class IPCB_PrimitiveLine implements IPCB_Primitive {
4783
4787
  *
4784
4788
  * @beta
4785
4789
  * @param includeVias - 是否包含导线两端的过孔
4786
- * @returns 整段导线内的所有直线、圆弧线,以及两端连接的过孔(如果��)
4790
+ * @returns ���段导线内的所有直线、圆弧线,以及两端连接的过孔(如果有)
4787
4791
  */
4788
4792
  getEntireTrack(includeVias: true): Promise<Array<IPCB_PrimitiveLine | IPCB_PrimitiveArc | IPCB_PrimitiveVia>>;
4789
4793
  }
@@ -6651,7 +6655,7 @@ declare interface ISCH_Primitive {
6651
6655
  }
6652
6656
 
6653
6657
  /**
6654
- * 原��图图元接口
6658
+ * 原理图图元接口
6655
6659
  *
6656
6660
  * @public
6657
6661
  */
@@ -8586,7 +8590,7 @@ declare class ISCH_PrimitiveRectangle implements ISCH_Primitive {
8586
8590
  */
8587
8591
  setState_Height(height: number): ISCH_PrimitiveRectangle;
8588
8592
  /**
8589
- * 设置属性状态:圆角半径
8593
+ * 设置属性���态:圆角半径
8590
8594
  *
8591
8595
  * @beta
8592
8596
  * @param cornerRadius - 圆角半径
@@ -9207,7 +9211,7 @@ declare class LIB_3DModel {
9207
9211
  * @beta
9208
9212
  * @param key - 搜索关键字
9209
9213
  * @param libraryUuid - 库 UUID,默认为系统库,可以使用 {@link LIB_LibrariesList} 内的接口获取
9210
- * @param classification - 分类,默认为全部
9214
+ * @param classification - 分类,��认为全部
9211
9215
  * @param itemsOfPage - 一页搜索结果的数量
9212
9216
  * @param page - 页数
9213
9217
  * @returns 搜索到的 3D 模型属性列表
@@ -9959,7 +9963,7 @@ declare class PCB_Document {
9959
9963
  * 启动飞线计算功能
9960
9964
  *
9961
9965
  * @public
9962
- * @remarks 在启动时将会触发一次飞线计算
9966
+ * @remarks 在启动时将会触发一次飞线计��
9963
9967
  * @returns 操作是否成功
9964
9968
  */
9965
9969
  startCalculatingRatline(): Promise<boolean>;
@@ -12377,7 +12381,7 @@ declare class PNL_Document {
12377
12381
  * 原理图 & 符号 / 文档操作类
12378
12382
  *
12379
12383
  * @public
12380
- * @remarks 对设计��档总体进行的操作
12384
+ * @remarks 对设计文档总体进行的操作
12381
12385
  */
12382
12386
  declare class SCH_Document {
12383
12387
  /**
@@ -14267,7 +14271,7 @@ declare class SYS_FileSystem {
14267
14271
  *
14268
14272
  * @beta
14269
14273
  * @remarks
14270
- * ���意 1:本接口仅客户端有效,在浏览器环境内调用将始终 `throw Error`
14274
+ * 注意 1:本接口仅客户端有效,在浏览器环境内调用将始终 `throw Error`
14271
14275
  *
14272
14276
  * 注意 2:本接口需要使用者启用扩展的外部交互权限,如若未启用将始终 `throw Error`
14273
14277
  * @param folderPath - 目录路径
@@ -14471,9 +14475,9 @@ declare class SYS_IFrame {
14471
14475
  *
14472
14476
  * 本接口调用后将会打开一个 Dialog 窗口,该 Dialog 窗口的标题为 HTML 文件的 `<title>`,标题栏有关闭按钮;
14473
14477
  *
14474
- * 正文部分为内联框架,{@link width}{@link height} 均为正文部分内联框架的宽高;
14478
+ * 正文部分为内联框架,`width``height` 均为正文部分内联框架的宽高;
14475
14479
  *
14476
- * 内联框架需要展示 {@link htmlFileName} 的内容,该 HTML 从扩展包内获取,并已在安装时被存储至 IndexedDB 中
14480
+ * 内联框架需要展示 `htmlFileName` 的内容,该 HTML 从扩展包内获取,并已在安装时被存储至 IndexedDB 中
14477
14481
  *
14478
14482
  * 注意:本接口仅扩展有效,在独立脚本环境内调用将始终 `throw Error`
14479
14483
  * @param htmlFileName - 需要加载的 HTML 文件在扩展包内的路径
@@ -14631,8 +14635,23 @@ declare class SYS_Message {
14631
14635
  * @param buttonCallbackFn - 回调函数内容,字符串形式,会被自动解析并执行
14632
14636
  */
14633
14637
  showToastMessage(message: string, messageType?: ESYS_ToastMessageType, timer?: number, bottomPanel?: ESYS_BottomPanelTab, buttonTitle?: string, buttonCallbackFn?: string): void;
14634
- /* Excluded from this release type: showFollowMouseTip */
14635
- /* Excluded from this release type: removeFollowMouseTip */
14638
+ /**
14639
+ * 展示跟随鼠标的提示
14640
+ *
14641
+ * @beta
14642
+ * @remarks 同一时间只能展示一条提示,如果展示新的提示,则之前的提示将被自动移除
14643
+ * @param tip - 提示内容
14644
+ * @param msTimeout - 展示时间,以毫秒(ms)为单位,如若不传入则持续展示,直到调用 {@link SYS_Message.removeFollowMouseTip | removeFollowMouseTip} 或被其它提示覆盖
14645
+ */
14646
+ showFollowMouseTip(tip: string, msTimeout?: number): Promise<void>;
14647
+ /**
14648
+ * 移除跟随鼠标的提示
14649
+ *
14650
+ * @beta
14651
+ * @remarks 移除当前或指定的跟随鼠标的提示
14652
+ * @param tip - 提示内容,如若传入,则仅当当前提示为指定内容时才移除
14653
+ */
14654
+ removeFollowMouseTip(tip?: string): Promise<void>;
14636
14655
  }
14637
14656
 
14638
14657
  /**
@@ -15133,6 +15152,14 @@ declare class SYS_Window {
15133
15152
  */
15134
15153
  removeEventListener(removableObject: ISYS_WindowEventListenerRemovableObject): void;
15135
15154
  /* Excluded from this release type: openUI */
15155
+ /**
15156
+ * 获取当前主题
15157
+ *
15158
+ * @public
15159
+ * @remarks 获取当前 EDA 主题,**浅色** 或 **深色**
15160
+ * @returns 当前主题
15161
+ */
15162
+ getCurrentTheme(): Promise<ESYS_Theme>;
15136
15163
  }
15137
15164
 
15138
15165
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jlceda/pro-api-types",
3
- "version": "0.1.152",
3
+ "version": "0.1.154",
4
4
  "description": "嘉立创EDA & EasyEDA 专业版扩展 API 接口类型定义",
5
5
  "typings": "index.d.ts",
6
6
  "keywords": [