@jlceda/pro-api-types 0.1.108 → 0.1.110

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 +67 -29
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -3569,7 +3569,7 @@ declare class IPCB_PrimitiveFill implements IPCB_Primitive {
3569
3569
  */
3570
3570
  convertToPour(): Promise<IPCB_PrimitivePour>;
3571
3571
  /**
3572
- * 转换到:区域图元(默认是禁止区域)
3572
+ * 转换到:区��图元(默认是禁止区域)
3573
3573
  *
3574
3574
  * @beta
3575
3575
  * @returns 区域图元对象
@@ -3629,14 +3629,14 @@ declare class IPCB_PrimitiveImage implements IPCB_Primitive {
3629
3629
  * @public
3630
3630
  * @returns BBox 左上点坐标 X
3631
3631
  */
3632
- getState_X(): number;
3632
+ getState_X(): number | undefined;
3633
3633
  /**
3634
3634
  * 获取属性状态:BBox 左上点坐标 Y
3635
3635
  *
3636
3636
  * @public
3637
3637
  * @returns BBox 左上点坐标 Y
3638
3638
  */
3639
- getState_Y(): number;
3639
+ getState_Y(): number | undefined;
3640
3640
  /**
3641
3641
  * 获取属性状态:图像源数据(复杂多边形)
3642
3642
  *
@@ -3650,42 +3650,42 @@ declare class IPCB_PrimitiveImage implements IPCB_Primitive {
3650
3650
  * @public
3651
3651
  * @returns 层
3652
3652
  */
3653
- getState_Layer(): TPCB_LayersOfImage;
3653
+ getState_Layer(): TPCB_LayersOfImage | undefined;
3654
3654
  /**
3655
3655
  * 获取属性状态:宽
3656
3656
  *
3657
3657
  * @public
3658
3658
  * @returns 宽
3659
3659
  */
3660
- getState_Width(): number;
3660
+ getState_Width(): number | undefined;
3661
3661
  /**
3662
3662
  * 获取属性状态:高
3663
3663
  *
3664
3664
  * @public
3665
3665
  * @returns 高
3666
3666
  */
3667
- getState_Height(): number;
3667
+ getState_Height(): number | undefined;
3668
3668
  /**
3669
3669
  * 获取属性状态:旋转角度
3670
3670
  *
3671
3671
  * @public
3672
3672
  * @returns 旋转角度
3673
3673
  */
3674
- getState_Rotation(): number;
3674
+ getState_Rotation(): number | undefined;
3675
3675
  /**
3676
3676
  * 获取属性状态:是否水平镜像
3677
3677
  *
3678
3678
  * @public
3679
3679
  * @returns 是否水平镜像
3680
3680
  */
3681
- getState_HorizonMirror(): boolean;
3681
+ getState_HorizonMirror(): boolean | undefined;
3682
3682
  /**
3683
3683
  * 获取属性状态:是否锁定
3684
3684
  *
3685
3685
  * @public
3686
3686
  * @returns 是否锁定
3687
3687
  */
3688
- getState_PrimitiveLock(): boolean;
3688
+ getState_PrimitiveLock(): boolean | undefined;
3689
3689
  /**
3690
3690
  * 设置属性状态:BBox 左上点坐标 X
3691
3691
  *
@@ -3693,7 +3693,7 @@ declare class IPCB_PrimitiveImage implements IPCB_Primitive {
3693
3693
  * @param x - BBox 左上点坐标 X
3694
3694
  * @returns 图像图元对象
3695
3695
  */
3696
- setState_X(x: number): IPCB_PrimitiveImage;
3696
+ setState_X(x: number | undefined): IPCB_PrimitiveImage;
3697
3697
  /**
3698
3698
  * 设置属性状态:BBox 左上点坐标 Y
3699
3699
  *
@@ -3701,7 +3701,7 @@ declare class IPCB_PrimitiveImage implements IPCB_Primitive {
3701
3701
  * @param y - BBox 左上点坐标 Y
3702
3702
  * @returns 图像图元对象
3703
3703
  */
3704
- setState_Y(y: number): IPCB_PrimitiveImage;
3704
+ setState_Y(y: number | undefined): IPCB_PrimitiveImage;
3705
3705
  /**
3706
3706
  * 设置属性状态:层
3707
3707
  *
@@ -3709,7 +3709,7 @@ declare class IPCB_PrimitiveImage implements IPCB_Primitive {
3709
3709
  * @param layer - 层
3710
3710
  * @returns 图像图元对象
3711
3711
  */
3712
- setState_Layer(layer: TPCB_LayersOfImage): IPCB_PrimitiveImage;
3712
+ setState_Layer(layer: TPCB_LayersOfImage | undefined): IPCB_PrimitiveImage;
3713
3713
  /**
3714
3714
  * 设置属性状态:宽
3715
3715
  *
@@ -3717,7 +3717,7 @@ declare class IPCB_PrimitiveImage implements IPCB_Primitive {
3717
3717
  * @param width - 宽
3718
3718
  * @returns 图像图元对象
3719
3719
  */
3720
- setState_Width(width: number): IPCB_PrimitiveImage;
3720
+ setState_Width(width: number | undefined): IPCB_PrimitiveImage;
3721
3721
  /**
3722
3722
  * 设置属性状态:高
3723
3723
  *
@@ -3725,7 +3725,7 @@ declare class IPCB_PrimitiveImage implements IPCB_Primitive {
3725
3725
  * @param height - 高
3726
3726
  * @returns 图像图元对象
3727
3727
  */
3728
- setState_Height(height: number): IPCB_PrimitiveImage;
3728
+ setState_Height(height: number | undefined): IPCB_PrimitiveImage;
3729
3729
  /**
3730
3730
  * 设置属性状态:旋转角度
3731
3731
  *
@@ -3733,7 +3733,7 @@ declare class IPCB_PrimitiveImage implements IPCB_Primitive {
3733
3733
  * @param rotation - 旋转角度
3734
3734
  * @returns 图像图元对象
3735
3735
  */
3736
- setState_Rotation(rotation: number): IPCB_PrimitiveImage;
3736
+ setState_Rotation(rotation: number | undefined): IPCB_PrimitiveImage;
3737
3737
  /**
3738
3738
  * 设置属性状态:是否水平镜像
3739
3739
  *
@@ -3741,7 +3741,7 @@ declare class IPCB_PrimitiveImage implements IPCB_Primitive {
3741
3741
  * @param horizonMirror - 是否水平镜像
3742
3742
  * @returns 图像图元对象
3743
3743
  */
3744
- setState_HorizonMirror(horizonMirror: boolean): IPCB_PrimitiveImage;
3744
+ setState_HorizonMirror(horizonMirror: boolean | undefined): IPCB_PrimitiveImage;
3745
3745
  /**
3746
3746
  * 设置属性状态:是否锁定
3747
3747
  *
@@ -3749,7 +3749,7 @@ declare class IPCB_PrimitiveImage implements IPCB_Primitive {
3749
3749
  * @param primitiveLock - 是否锁定
3750
3750
  * @returns 图像图元对象
3751
3751
  */
3752
- setState_PrimitiveLock(primitiveLock: boolean): IPCB_PrimitiveImage;
3752
+ setState_PrimitiveLock(primitiveLock: boolean | undefined): IPCB_PrimitiveImage;
3753
3753
  /**
3754
3754
  * 将图元转换为异步图元
3755
3755
  *
@@ -4067,7 +4067,7 @@ declare class IPCB_PrimitiveObject implements IPCB_Primitive {
4067
4067
  */
4068
4068
  getState_TopLeftX(): number | undefined;
4069
4069
  /**
4070
- * 获取属性状态:左上点 Y
4070
+ * 获取属性状态:左上�� Y
4071
4071
  *
4072
4072
  * @public
4073
4073
  * @returns 左上点 Y
@@ -4392,7 +4392,7 @@ declare class IPCB_PrimitivePad implements IPCB_Primitive {
4392
4392
  */
4393
4393
  getState_Metallization(): boolean;
4394
4394
  /**
4395
- * ���取属性状态:焊盘功能
4395
+ * 获取属性状态:焊盘功能
4396
4396
  *
4397
4397
  * @public
4398
4398
  * @returns 焊盘功能
@@ -5858,7 +5858,7 @@ declare class ISCH_PrimitiveComponent implements ISCH_Primitive {
5858
5858
  */
5859
5859
  getState_ComponentType(): ESCH_PrimitiveComponentType;
5860
5860
  /**
5861
- * 获取属性状态:图元 ID
5861
+ * 获取属性状态:���元 ID
5862
5862
  *
5863
5863
  * @public
5864
5864
  * @returns 图元 ID
@@ -7102,7 +7102,6 @@ declare class LIB_Footprint {
7102
7102
  * @returns 封装 UUID
7103
7103
  */
7104
7104
  create(libraryUuid: string, footprintName: string, classification?: ILIB_ClassificationIndex, description?: string): Promise<string | undefined>;
7105
- /* Excluded from this release type: createByDocumentSource */
7106
7105
  /**
7107
7106
  * 删除封装
7108
7107
  *
@@ -7125,6 +7124,16 @@ declare class LIB_Footprint {
7125
7124
  * @returns 操作是否成功
7126
7125
  */
7127
7126
  modify(footprintUuid: string, libraryUuid: string, footprintName?: string, classification?: ILIB_ClassificationIndex | null, description?: string | null): Promise<boolean>;
7127
+ /**
7128
+ * 更新封装的文档源码
7129
+ *
7130
+ * @beta
7131
+ * @param footprintUuid - 封装 UUID
7132
+ * @param libraryUuid - 库 UUID,可以使用 {@link LIB_LibrariesList} 内的接口获取
7133
+ * @param documentSource - 文档源码
7134
+ * @returns 是否更新成功
7135
+ */
7136
+ updateDocumentSource(footprintUuid: string, libraryUuid: string, documentSource: string): Promise<boolean | undefined>;
7128
7137
  /**
7129
7138
  * 获取封装的所有属性
7130
7139
  *
@@ -7320,7 +7329,6 @@ declare class LIB_Symbol {
7320
7329
  * @returns 符号 UUID
7321
7330
  */
7322
7331
  create(libraryUuid: string, symbolName: string, classification?: ILIB_ClassificationIndex, symbolType?: ELIB_SymbolType, description?: string): Promise<string | undefined>;
7323
- /* Excluded from this release type: createByDocumentSource */
7324
7332
  /**
7325
7333
  * 删除符号
7326
7334
  *
@@ -7343,6 +7351,16 @@ declare class LIB_Symbol {
7343
7351
  * @returns 操作是否成功
7344
7352
  */
7345
7353
  modify(symbolUuid: string, libraryUuid: string, symbolName?: string, classification?: ILIB_ClassificationIndex | null, description?: string | null): Promise<boolean>;
7354
+ /**
7355
+ * 更新符号的文档源码
7356
+ *
7357
+ * @beta
7358
+ * @param symbolUuid - 符号 UUID
7359
+ * @param libraryUuid - 库 UUID,可以使用 {@link LIB_LibrariesList} 内的接口获取
7360
+ * @param documentSource - 文档源码
7361
+ * @returns 是否更新成功
7362
+ */
7363
+ updateDocumentSource(symbolUuid: string, libraryUuid: string, documentSource: string): Promise<boolean | undefined>;
7346
7364
  /**
7347
7365
  * 获取符号的所有属性
7348
7366
  *
@@ -7474,7 +7492,7 @@ declare class PCB_Document {
7474
7492
  * 输入画布坐标返回该坐标对应的数据坐标
7475
7493
  *
7476
7494
  * @public
7477
- * @remarks 嘉立创 EDA 前端显示的坐标均为画布原点;嘉立�� EDA API 使用的均为数据原点;在创建 PCB 时,默认画布原点等于数据原点
7495
+ * @remarks 嘉立创 EDA 前端显示的坐标均为画布原点;嘉立创 EDA API 使用的均为数据原点;在创建 PCB 时,默认画布原点等于数据原点
7478
7496
  * @param canvasOriginX - 画布原点 X
7479
7497
  * @param canvasOriginY - 画布原点 Y
7480
7498
  * @returns 数据原点坐标
@@ -8043,7 +8061,7 @@ declare class PCB_Layer {
8043
8061
  *
8044
8062
  * @beta
8045
8063
  * @remarks
8046
- * 此处主要是为了适配 FPC 软板的设计,如若将 PCB 类型设置为 FPC 软板���将会新增 FPC 补强层图层。
8064
+ * 此处主要是为了适配 FPC 软板的设计,如若将 PCB 类型设置为 FPC 软板,将会新增 FPC 补强层图层。
8047
8065
  *
8048
8066
  * 请注意:
8049
8067
  *
@@ -9183,7 +9201,7 @@ declare class PCB_PrimitiveObject implements IPCB_PrimitiveAPI {
9183
9201
  * 获取二进制内嵌对象
9184
9202
  *
9185
9203
  * @beta
9186
- * @param primitiveIds - 二进制内嵌对象的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
9204
+ * @param primitiveIds - 二进制内嵌对象的图元 ID,��以为字符串或字符串数组,如若为数组,则返回的也是数组
9187
9205
  * @returns 二进制内嵌对象图元对象,`undefined` 表示获取失败
9188
9206
  */
9189
9207
  get(primitiveIds: string): Promise<IPCB_PrimitiveObject | undefined>;
@@ -10978,7 +10996,7 @@ declare class SYS_FileManager {
10978
10996
  */
10979
10997
  getProjectFile(fileName?: string, password?: string): Promise<File | undefined>;
10980
10998
  /**
10981
- * 获取文档文件
10999
+ * ���取文档文件
10982
11000
  *
10983
11001
  * @public
10984
11002
  * @remarks 可以使用 {@link SYS_FileSystem.saveFile} 接口将文件导出到本地文件系统
@@ -11073,7 +11091,7 @@ declare class SYS_FileSystem {
11073
11091
  *
11074
11092
  * @beta
11075
11093
  * @param filenameExtensions - 文件扩展名
11076
- * @returns File 格式��件
11094
+ * @returns File 格式文件
11077
11095
  */
11078
11096
  openReadFileDialog(filenameExtensions?: string | Array<string>): Promise<File | undefined>;
11079
11097
  /**
@@ -11248,8 +11266,28 @@ declare class SYS_IFrame {
11248
11266
  * @returns 操作是否成功
11249
11267
  */
11250
11268
  closeIFrame(id?: string): Promise<boolean>;
11251
- /* Excluded from this release type: hideIFrame */
11252
- /* Excluded from this release type: showIFrame */
11269
+ /**
11270
+ * 隐藏内联框架窗口
11271
+ *
11272
+ * @beta
11273
+ * @remarks 本接口为结果导向的:
11274
+ * 如若未找到指定内联框架窗口,接口将会返回 `false`;
11275
+ * 如若在执行操作前该内联框架窗口已处于隐藏状态,接口将会返回 `true`
11276
+ * @param id - 内联框架窗口 ID
11277
+ * @returns 操作是否成功
11278
+ */
11279
+ hideIFrame(id?: string): Promise<boolean>;
11280
+ /**
11281
+ * 显示内联框架窗口
11282
+ *
11283
+ * @beta
11284
+ * @remarks 本接口为结果导向的:
11285
+ * 如若未找到指定内联框架窗口,接口将会返回 `false`;
11286
+ * 如若在执行操作前该内联框架窗口已处于显示状态,接口将会返回 `true`
11287
+ * @param id - 内联框架窗口 ID
11288
+ * @returns 操作是否成功
11289
+ */
11290
+ showIFrame(id?: string): Promise<boolean>;
11253
11291
  }
11254
11292
 
11255
11293
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jlceda/pro-api-types",
3
- "version": "0.1.108",
3
+ "version": "0.1.110",
4
4
  "description": "嘉立创EDA & EasyEDA 专业版扩展 API 接口类型定义",
5
5
  "typings": "index.d.ts",
6
6
  "keywords": [