@jlceda/pro-api-types 0.1.99 → 0.1.101

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 +820 -224
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -416,7 +416,7 @@ declare class DMT_Project {
416
416
  * @param teamUuid - 团队 UUID,如若不指定,则默认为个人;在不存在个人工程的环境下必须指定团队 UUID
417
417
  * @param folderUuid - 文件夹 UUID,如若不指定,则为根文件夹
418
418
  * @param description - 工程描述
419
- * @param collaborationMode - 工程协作模式,如若团队权限无需工程设置协作模式,则��参数将被忽略
419
+ * @param collaborationMode - 工程协作模式,如若团队权限无需工程设置协作模式,则该参数将被忽略
420
420
  * @returns 工程 UUID,如若为 `undefined` 则创建失败
421
421
  */
422
422
  createProject(projectFriendlyName: string, projectName?: string, teamUuid?: string, folderUuid?: string, description?: string, collaborationMode?: EDMT_ProjectCollaborationMode): Promise<string | undefined>;
@@ -744,19 +744,17 @@ declare class EDA {
744
744
  pcb_Primitive: PCB_Primitive;
745
745
  pcb_PrimitiveArc: PCB_PrimitiveArc;
746
746
  pcb_PrimitiveComponent: PCB_PrimitiveComponent;
747
- pcb_PrimitiveFill: PCB_PrimitiveFill;
748
747
  pcb_PrimitiveDimension: PCB_PrimitiveDimension;
748
+ pcb_PrimitiveFill: PCB_PrimitiveFill;
749
749
  pcb_PrimitiveImage: PCB_PrimitiveImage;
750
750
  pcb_PrimitiveLine: PCB_PrimitiveLine;
751
+ pcb_PrimitiveObject: PCB_PrimitiveObject;
751
752
  pcb_PrimitivePad: PCB_PrimitivePad;
752
753
  pcb_PrimitivePolyline: PCB_PrimitivePolyline;
753
754
  pcb_PrimitivePour: PCB_PrimitivePour;
754
755
  pcb_PrimitiveRegion: PCB_PrimitiveRegion;
755
756
  pcb_PrimitiveVia: PCB_PrimitiveVia;
756
757
  pcb_SelectControl: PCB_SelectControl;
757
- EPCB_LayerId: {
758
- [key: string]: number;
759
- };
760
758
  pnl_Document: PNL_Document;
761
759
  sch_Document: SCH_Document;
762
760
  sch_Drc: SCH_Drc;
@@ -795,7 +793,6 @@ declare class EDA {
795
793
  sys_WebSocket: SYS_WebSocket;
796
794
  sys_Window: SYS_Window;
797
795
  /* Excluded from this release type: extensionUuid */
798
- /* Excluded from this release type: allowExternalInteractions */
799
796
  /* Excluded from this release type: __constructor */
800
797
  }
801
798
 
@@ -1020,7 +1017,7 @@ declare enum EPCB_LayerId {
1020
1017
  TOP_SOLDER_MASK = 5,
1021
1018
  /** 顶层锡膏(助焊)层 */
1022
1019
  TOP_PASTE_MASK = 7,
1023
- /** 顶层装配层 */
1020
+ /** 顶层���配层 */
1024
1021
  TOP_ASSEMBLY = 9,
1025
1022
  /** 顶层 FPC 补强层 */
1026
1023
  TOP_STIFFENER = 58,
@@ -1378,6 +1375,8 @@ declare enum EPCB_PrimitiveType {
1378
1375
  COMPONENT = "Component",
1379
1376
  /** 焊盘 */
1380
1377
  PAD = "Pad",
1378
+ /** 器件焊盘 */
1379
+ COMPONENT_PAD = "ComponentPad",
1381
1380
  /** 折线 */
1382
1381
  POLYLINE = "Polyline",
1383
1382
  /** 覆铜边框 */
@@ -1393,7 +1392,9 @@ declare enum EPCB_PrimitiveType {
1393
1392
  /** 尺寸标注 */
1394
1393
  DIMENSION = "Dimension",
1395
1394
  /** 图像 */
1396
- IMAGE = "Image"
1395
+ IMAGE = "Image",
1396
+ /** 二进制内嵌对象 */
1397
+ OBJECT = "Object"
1397
1398
  }
1398
1399
 
1399
1400
  /**
@@ -1428,6 +1429,7 @@ declare enum ESCH_PrimitiveComponentType {
1428
1429
  NON_ELECTRICAL_FLAG = "nonElectrical_symbol",
1429
1430
  /** 短接标识 */
1430
1431
  SHORT_CIRCUIT_FLAG = "short_symbol",
1432
+ /** 网络标签 */
1431
1433
  NET_LABEL = "netlabel"
1432
1434
  }
1433
1435
 
@@ -1435,6 +1437,7 @@ declare enum ESCH_PrimitiveComponentType {
1435
1437
  * 引脚类型
1436
1438
  *
1437
1439
  * @public
1440
+ * @remarks 引脚图元仅符号编辑器可用,在原理图图页内,关联到符号的引脚被称为 {@link ISCH_PrimitiveComponentPin | 器件引脚图元}
1438
1441
  */
1439
1442
  declare enum ESCH_PrimitivePinType {
1440
1443
  IN = "IN",
@@ -2470,8 +2473,8 @@ declare interface IPCB_PrimitiveAPI {
2470
2473
  (primitiveIds: string): IPCB_Primitive | undefined | Promise<IPCB_Primitive | undefined>;
2471
2474
  (primitiveIds: Array<string>): Array<IPCB_Primitive> | Promise<Array<IPCB_Primitive>>;
2472
2475
  };
2473
- getAllPrimitiveId: (...args: any[]) => Array<string> | Promise<Array<string>> | Promise<Array<string>>;
2474
- getAll: (...args: any[]) => Array<IPCB_Primitive> | Promise<Array<IPCB_Primitive>> | Promise<Array<IPCB_Primitive>>;
2476
+ getAllPrimitiveId: (...args: any[]) => Array<string> | Promise<Array<string>>;
2477
+ getAll: (...args: any[]) => Array<IPCB_Primitive> | Promise<Array<IPCB_Primitive>>;
2475
2478
  }
2476
2479
 
2477
2480
  /**
@@ -2707,6 +2710,8 @@ declare class IPCB_PrimitiveArc implements IPCB_Primitive {
2707
2710
  * @returns 圆弧线图元对象
2708
2711
  */
2709
2712
  done(): Promise<IPCB_PrimitiveArc>;
2713
+ /* Excluded from this release type: getAdjacentPrimitives */
2714
+ /* Excluded from this release type: getEntireTrack */
2710
2715
  }
2711
2716
 
2712
2717
  /**
@@ -2758,39 +2763,266 @@ declare class IPCB_PrimitiveComponent implements IPCB_Primitive {
2758
2763
  /** 其它参数 */
2759
2764
  private otherProperty?;
2760
2765
  /* Excluded from this release type: __constructor */
2766
+ /* Excluded from this release type: create */
2761
2767
  /**
2762
- * 在 PCB 画布中创建图元
2768
+ * 获取属性状态:图元类型
2769
+ *
2770
+ * @public
2771
+ * @returns 图元类型
2772
+ */
2773
+ getState_PrimitiveType(): EPCB_PrimitiveType;
2774
+ /**
2775
+ * 获取属性状态:图元 ID
2776
+ *
2777
+ * @public
2778
+ * @returns 图元 ID
2779
+ */
2780
+ getState_PrimitiveId(): string;
2781
+ /**
2782
+ * 获取属性状态:关联库器件
2783
+ *
2784
+ * @public
2785
+ * @returns 关联库器件
2786
+ */
2787
+ getState_Component(): {
2788
+ libraryUuid: string;
2789
+ uuid: string;
2790
+ };
2791
+ /**
2792
+ * 获取属性状态:关联库封装
2793
+ *
2794
+ * @public
2795
+ * @returns 关联库封装
2796
+ */
2797
+ getState_Footprint(): {
2798
+ libraryUuid: string;
2799
+ uuid: string;
2800
+ } | undefined;
2801
+ /**
2802
+ * 获取属性状态:层
2803
+ *
2804
+ * @public
2805
+ * @returns 层
2806
+ */
2807
+ getState_Layer(): TPCB_LayersOfComponent;
2808
+ /**
2809
+ * 获取属性状态:坐标 X
2810
+ *
2811
+ * @public
2812
+ * @returns 坐标 X
2813
+ */
2814
+ getState_X(): number;
2815
+ /**
2816
+ * 获取属性状态:坐标 Y
2817
+ *
2818
+ * @public
2819
+ * @returns 坐标 Y
2820
+ */
2821
+ getState_Y(): number;
2822
+ /**
2823
+ * 获取属性状态:旋转角度
2824
+ *
2825
+ * @public
2826
+ * @returns 旋转角度
2827
+ */
2828
+ getState_Rotation(): number;
2829
+ /**
2830
+ * 获取属性状态:是否锁定
2831
+ *
2832
+ * @public
2833
+ * @returns 是否锁定
2834
+ */
2835
+ getState_PrimitiveLock(): boolean;
2836
+ /**
2837
+ * 获取属性状态:是否加入 BOM
2838
+ *
2839
+ * @public
2840
+ * @returns 是否加入 BOM
2841
+ */
2842
+ getState_AddIntoBom(): boolean;
2843
+ /**
2844
+ * 获取属性状态:关联库 3D 模型
2845
+ *
2846
+ * @public
2847
+ * @returns 关联库 3D 模型
2848
+ */
2849
+ getState_Model3D(): {
2850
+ libraryUuid: string;
2851
+ uuid: string;
2852
+ } | undefined;
2853
+ /**
2854
+ * 获取属性状态:位号
2855
+ *
2856
+ * @public
2857
+ * @returns 位号
2858
+ */
2859
+ getState_Designator(): string | undefined;
2860
+ /**
2861
+ * 获取属性状态:焊盘
2862
+ *
2863
+ * @public
2864
+ * @returns 焊盘
2865
+ */
2866
+ getState_Pads(): Array<{
2867
+ primitiveId: string;
2868
+ net: string;
2869
+ padNumber: string;
2870
+ }> | undefined;
2871
+ /**
2872
+ * 获取属性状态:名称
2873
+ *
2874
+ * @public
2875
+ * @returns 名称
2876
+ */
2877
+ getState_Name(): string | undefined;
2878
+ /**
2879
+ * 获取属性状态:唯一 ID
2880
+ *
2881
+ * @public
2882
+ * @returns 唯一 ID
2883
+ */
2884
+ getState_UniqueId(): string | undefined;
2885
+ /**
2886
+ * 获取属性状态:制造商
2887
+ *
2888
+ * @public
2889
+ * @returns 制造商
2890
+ */
2891
+ getState_Manufacturer(): string | undefined;
2892
+ /**
2893
+ * 获取属性状态:制造商编号
2894
+ *
2895
+ * @public
2896
+ * @returns 制造商编号
2897
+ */
2898
+ getState_ManufacturerId(): string | undefined;
2899
+ /**
2900
+ * 获取属性状态:供应商
2901
+ *
2902
+ * @public
2903
+ * @returns 供应商
2904
+ */
2905
+ getState_Supplier(): string | undefined;
2906
+ /**
2907
+ * 获取属性状态:供应商编号
2908
+ *
2909
+ * @public
2910
+ * @returns 供应商编号
2911
+ */
2912
+ getState_SupplierId(): string | undefined;
2913
+ /**
2914
+ * 获取属性状态:其它参数
2915
+ *
2916
+ * @public
2917
+ * @returns 其它参数
2918
+ */
2919
+ getState_OtherProperty(): {
2920
+ [key: string]: string | number | boolean;
2921
+ } | undefined;
2922
+ /**
2923
+ * 设置属性状态:层
2763
2924
  *
2764
2925
  * @beta
2926
+ * @param layer - 层
2765
2927
  * @returns 器件图元对象
2766
2928
  */
2767
- create(): Promise<IPCB_PrimitiveComponent>;
2929
+ setState_Layer(layer: TPCB_LayersOfComponent): IPCB_PrimitiveComponent;
2768
2930
  /**
2769
- * 获取对象的图元 ID
2931
+ * 设置属性状态:坐标 X
2770
2932
  *
2771
- * @returns
2933
+ * @beta
2934
+ * @param x - 坐标 X
2935
+ * @returns 器件图元对象
2772
2936
  */
2773
- getState_PrimitiveType(): EPCB_PrimitiveType;
2937
+ setState_X(x: number): IPCB_PrimitiveComponent;
2938
+ /**
2939
+ * 设置属性状态:坐标 Y
2940
+ *
2941
+ * @beta
2942
+ * @param y - 坐标 Y
2943
+ * @returns 器件图元对象
2944
+ */
2945
+ setState_Y(y: number): IPCB_PrimitiveComponent;
2774
2946
  /**
2775
- * 获取对象的图元 ID
2947
+ * 设置属性状态:旋转角度
2776
2948
  *
2777
- * @returns
2949
+ * @beta
2950
+ * @param rotation - 旋转角度
2951
+ * @returns 器件图元对象
2778
2952
  */
2779
- getState_PrimitiveId(): string;
2780
- /* Excluded from this release type: getState_Pads */
2781
- /* Excluded from this release type: setState_Layer */
2782
- /* Excluded from this release type: setState_X */
2783
- /* Excluded from this release type: setState_Y */
2784
- /* Excluded from this release type: setState_Rotation */
2785
- /* Excluded from this release type: setState_PrimitiveLock */
2786
- /* Excluded from this release type: setState_AddIntoBom */
2787
- /* Excluded from this release type: setState_Designator */
2788
- /* Excluded from this release type: setState_Name */
2789
- /* Excluded from this release type: setState_UniqueId */
2790
- /* Excluded from this release type: setState_Supplier */
2791
- /* Excluded from this release type: setState_SupplierId */
2792
- /* Excluded from this release type: setState_Manufacturer */
2793
- /* Excluded from this release type: setState_ManufacturerId */
2953
+ setState_Rotation(rotation: number): IPCB_PrimitiveComponent;
2954
+ /**
2955
+ * 设置属性状态:是否锁定
2956
+ *
2957
+ * @beta
2958
+ * @param primitiveLock - 是否锁定
2959
+ * @returns 器件图元对象
2960
+ */
2961
+ setState_PrimitiveLock(primitiveLock: boolean): IPCB_PrimitiveComponent;
2962
+ /**
2963
+ * 设置属性状态:是否加入 BOM
2964
+ *
2965
+ * @beta
2966
+ * @param addIntoBom - 是否加入 BOM
2967
+ * @returns 器件图元对象
2968
+ */
2969
+ setState_AddIntoBom(addIntoBom: boolean): IPCB_PrimitiveComponent;
2970
+ /**
2971
+ * 设置属性状态:位号
2972
+ *
2973
+ * @beta
2974
+ * @param designator - 位号
2975
+ * @returns 器件图元对象
2976
+ */
2977
+ setState_Designator(designator: string | undefined): IPCB_PrimitiveComponent;
2978
+ /**
2979
+ * 设置属性状态:名称
2980
+ *
2981
+ * @beta
2982
+ * @param name - 名称
2983
+ * @returns 器件图元对象
2984
+ */
2985
+ setState_Name(name: string | undefined): IPCB_PrimitiveComponent;
2986
+ /**
2987
+ * 设置属性状态:唯一 ID
2988
+ *
2989
+ * @beta
2990
+ * @param uniqueId - 唯一 ID
2991
+ * @returns 器件图元对象
2992
+ */
2993
+ setState_UniqueId(uniqueId: string | undefined): IPCB_PrimitiveComponent;
2994
+ /**
2995
+ * 设置属性状态:制造商
2996
+ *
2997
+ * @beta
2998
+ * @param manufacturer - 制造商
2999
+ * @returns 器件图元对象
3000
+ */
3001
+ setState_Manufacturer(manufacturer: string | undefined): IPCB_PrimitiveComponent;
3002
+ /**
3003
+ * 设置属性状态:制造商编号
3004
+ *
3005
+ * @beta
3006
+ * @param manufacturerId - 制造商编号
3007
+ * @returns 器件图元对象
3008
+ */
3009
+ setState_ManufacturerId(manufacturerId: string | undefined): IPCB_PrimitiveComponent;
3010
+ /**
3011
+ * 设置属性状态:供应商
3012
+ *
3013
+ * @beta
3014
+ * @param supplier - 供应商
3015
+ * @returns 器件图元对象
3016
+ */
3017
+ setState_Supplier(supplier: string | undefined): IPCB_PrimitiveComponent;
3018
+ /**
3019
+ * 设置属性状态:供应商编号
3020
+ *
3021
+ * @beta
3022
+ * @param supplierId - 供应商编号
3023
+ * @returns 器件图元对象
3024
+ */
3025
+ setState_SupplierId(supplierId: string | undefined): IPCB_PrimitiveComponent;
2794
3026
  /**
2795
3027
  * 设置属性状态:其它参数
2796
3028
  *
@@ -2799,38 +3031,67 @@ declare class IPCB_PrimitiveComponent implements IPCB_Primitive {
2799
3031
  * @returns 器件图元对象
2800
3032
  */
2801
3033
  setState_OtherProperty(otherProperty: {
2802
- [key: string]: string;
3034
+ [key: string]: string | number | boolean;
2803
3035
  }): IPCB_PrimitiveComponent;
2804
3036
  /**
2805
3037
  * 将图元转换为异步图元
2806
3038
  *
3039
+ * @public
3040
+ * @returns 器件图元对象
2807
3041
  */
2808
3042
  toAsync(): IPCB_PrimitiveComponent;
2809
3043
  /**
2810
3044
  * 将图元转换为同步图元
2811
3045
  *
3046
+ * @public
3047
+ * @returns 器件图元对象
2812
3048
  */
2813
3049
  toSync(): IPCB_PrimitiveComponent;
2814
3050
  /**
2815
3051
  * 查询图元是否为异步图元
2816
3052
  *
3053
+ * @public
3054
+ * @returns 是否为异步图元
2817
3055
  */
2818
3056
  isAsync(): boolean;
2819
3057
  /**
2820
3058
  * 将异步图元重置为当前画布状态
2821
3059
  *
2822
3060
  * @beta
3061
+ * @returns 器件图元对象
2823
3062
  */
2824
3063
  reset(): Promise<IPCB_PrimitiveComponent>;
2825
3064
  /**
2826
3065
  * 将对图元的更改应用到画布
2827
3066
  *
2828
3067
  * @beta
3068
+ * @returns 器件图元对象
2829
3069
  */
2830
3070
  done(): Promise<IPCB_PrimitiveComponent>;
3071
+ /* Excluded from this release type: getAllPins */
2831
3072
  /* Excluded from this release type: setState_Component */
2832
3073
  }
2833
3074
 
3075
+ /**
3076
+ * 器件焊盘图元
3077
+ *
3078
+ * @public
3079
+ * @remarks
3080
+ * 器件焊盘图元是一个特殊的图元,它指的是在 PCB 画布上关联到封装的焊盘
3081
+ *
3082
+ * 你只能通过 {@link PCB_PrimitiveComponent.getAllPadsByPrimitiveId | 器件类的 getAllPinsByPrimitiveId 方法} 或 {@link IPCB_PrimitiveComponent.getAllPins | 器件图元的 getAllPads 方法} 获取到器件焊盘图元
3083
+ */
3084
+ declare class IPCB_PrimitiveComponentPad extends IPCB_PrimitivePad {
3085
+ /** 图元类型 */
3086
+ protected readonly primitiveType: EPCB_PrimitiveType.COMPONENT_PAD;
3087
+ /* Excluded from this release type: __constructor */
3088
+ /* Excluded from this release type: create */
3089
+ /* Excluded from this release type: setState_Layer */
3090
+ /* Excluded from this release type: setState_PadNumber */
3091
+ /* Excluded from this release type: reset */
3092
+ /* Excluded from this release type: done */
3093
+ }
3094
+
2834
3095
  /**
2835
3096
  * 尺寸标注图元
2836
3097
  *
@@ -3394,7 +3655,7 @@ declare class IPCB_PrimitiveImage implements IPCB_Primitive {
3394
3655
  }
3395
3656
 
3396
3657
  /**
3397
- * 导线图元
3658
+ * 直线图元
3398
3659
  *
3399
3660
  * @public
3400
3661
  */
@@ -3424,68 +3685,289 @@ declare class IPCB_PrimitiveLine implements IPCB_Primitive {
3424
3685
  /* Excluded from this release type: __constructor */
3425
3686
  /* Excluded from this release type: create */
3426
3687
  /**
3427
- * 获取属性状态:图元类型
3688
+ * 获取属性状态:图元类型
3689
+ *
3690
+ * @public
3691
+ * @returns 图元类型
3692
+ */
3693
+ getState_PrimitiveType(): EPCB_PrimitiveType;
3694
+ /**
3695
+ * 获取属性状态:图元 ID
3696
+ *
3697
+ * @public
3698
+ * @returns 图元 ID
3699
+ */
3700
+ getState_PrimitiveId(): string;
3701
+ /**
3702
+ * 获取属性状态:网络名称
3703
+ *
3704
+ * @public
3705
+ * @returns 网络名称
3706
+ */
3707
+ getState_Net(): string;
3708
+ /**
3709
+ * 获取属性状态:层
3710
+ *
3711
+ * @public
3712
+ * @returns 层
3713
+ */
3714
+ getState_Layer(): TPCB_LayersOfLine;
3715
+ /**
3716
+ * 获取属性状态:起始位置 X
3717
+ *
3718
+ * @public
3719
+ * @returns 起始位置 X
3720
+ */
3721
+ getState_StartX(): number;
3722
+ /**
3723
+ * 获取属性状态:起始位置 Y
3724
+ *
3725
+ * @public
3726
+ * @returns 起始位置 Y
3727
+ */
3728
+ getState_StartY(): number;
3729
+ /**
3730
+ * 获取属性状态:终止位置 X
3731
+ *
3732
+ * @public
3733
+ * @returns 终止位置 X
3734
+ */
3735
+ getState_EndX(): number;
3736
+ /**
3737
+ * 获取属性状态:终止位置 Y
3738
+ *
3739
+ * @public
3740
+ * @returns 终止位置 Y
3741
+ */
3742
+ getState_EndY(): number;
3743
+ /**
3744
+ * 获取属性状态:线宽
3745
+ *
3746
+ * @public
3747
+ * @returns 线宽
3748
+ */
3749
+ getState_LineWidth(): number;
3750
+ /**
3751
+ * 获取属性状态:是否锁定
3752
+ *
3753
+ * @public
3754
+ * @returns 是否锁定
3755
+ */
3756
+ getState_PrimitiveLock(): boolean;
3757
+ /**
3758
+ * 设置属性状态:网络名称
3759
+ *
3760
+ * @beta
3761
+ * @param net - 网络名称
3762
+ * @returns 直线图元对象
3763
+ */
3764
+ setState_Net(net: string): IPCB_PrimitiveLine;
3765
+ /**
3766
+ * 设置属性状态:层
3767
+ *
3768
+ * @beta
3769
+ * @param layer - 层
3770
+ * @returns 直线图元对象
3771
+ */
3772
+ setState_Layer(layer: TPCB_LayersOfLine): IPCB_PrimitiveLine;
3773
+ /**
3774
+ * 设置属性状态:起始位置 X
3775
+ *
3776
+ * @beta
3777
+ * @param startX - 起始位置 X
3778
+ * @returns 直线图元对象
3779
+ */
3780
+ setState_StartX(startX: number): IPCB_PrimitiveLine;
3781
+ /**
3782
+ * 设置属性状态:起始位置 Y
3783
+ *
3784
+ * @beta
3785
+ * @param startY - 起始位置 Y
3786
+ * @returns 直线图元对象
3787
+ */
3788
+ setState_StartY(startY: number): IPCB_PrimitiveLine;
3789
+ /**
3790
+ * 设置属性状态:终止位置 X
3791
+ *
3792
+ * @beta
3793
+ * @param endX - 终止位置 X
3794
+ * @returns 直线图元对象
3795
+ */
3796
+ setState_EndX(endX: number): IPCB_PrimitiveLine;
3797
+ /**
3798
+ * 设置属性状态:终止位置 Y
3799
+ *
3800
+ * @beta
3801
+ * @param endY - 终止位置 Y
3802
+ * @returns 直线图元对象
3803
+ */
3804
+ setState_EndY(endY: number): IPCB_PrimitiveLine;
3805
+ /**
3806
+ * 设置属性状态:线宽
3807
+ *
3808
+ * @beta
3809
+ * @param lineWidth - 线宽
3810
+ * @returns 直线图元对象
3811
+ */
3812
+ setState_LineWidth(lineWidth: number): IPCB_PrimitiveLine;
3813
+ /**
3814
+ * 设置属性状态:是否锁定
3815
+ *
3816
+ * @beta
3817
+ * @param primitiveLock - 是否锁定
3818
+ * @returns 直线图元对象
3819
+ */
3820
+ setState_PrimitiveLock(primitiveLock: boolean): IPCB_PrimitiveLine;
3821
+ /**
3822
+ * 将图元转换为异步图元
3823
+ *
3824
+ * @public
3825
+ * @returns 直线图元对象
3826
+ */
3827
+ toAsync(): IPCB_PrimitiveLine;
3828
+ /**
3829
+ * 将图元转换为同步图元
3830
+ *
3831
+ * @public
3832
+ * @returns 直线图元对象
3833
+ */
3834
+ toSync(): IPCB_PrimitiveLine;
3835
+ /**
3836
+ * 查询图元是否为异步图元
3837
+ *
3838
+ * @public
3839
+ * @returns 是否为异步图元
3840
+ */
3841
+ isAsync(): boolean;
3842
+ /**
3843
+ * 将异步图元重置为当前画布状态
3844
+ *
3845
+ * @beta
3846
+ * @returns 直线图元对象
3847
+ */
3848
+ reset(): Promise<IPCB_PrimitiveLine>;
3849
+ /**
3850
+ * 将对图元的更改应用到画布
3851
+ *
3852
+ * @beta
3853
+ * @returns 直线图元对象
3854
+ */
3855
+ done(): Promise<IPCB_PrimitiveLine>;
3856
+ /* Excluded from this release type: getAdjacentPrimitives */
3857
+ /* Excluded from this release type: getEntireTrack */
3858
+ }
3859
+
3860
+ /**
3861
+ * 二进制内嵌对象图元
3862
+ *
3863
+ * @public
3864
+ */
3865
+ declare class IPCB_PrimitiveObject implements IPCB_Primitive {
3866
+ /** 异步 */
3867
+ private async;
3868
+ /** 图元类型 */
3869
+ private readonly primitiveType;
3870
+ /** 图元 ID */
3871
+ private primitiveId?;
3872
+ /** 层 */
3873
+ private layer;
3874
+ /** 左上点 X */
3875
+ private topLeftX;
3876
+ /** 左上点 Y */
3877
+ private topLeftY;
3878
+ /** 二进制数据 */
3879
+ private binaryData;
3880
+ /** 宽 */
3881
+ private width;
3882
+ /** 高 */
3883
+ private height;
3884
+ /** 旋转角度 */
3885
+ private rotation;
3886
+ /** 是否水平镜像 */
3887
+ private mirror;
3888
+ /** 文件名 */
3889
+ private fileName;
3890
+ /** 是否锁定 */
3891
+ private primitiveLock;
3892
+ /* Excluded from this release type: __constructor */
3893
+ /* Excluded from this release type: create */
3894
+ /**
3895
+ * 获取属性状态:图元类型
3896
+ *
3897
+ * @public
3898
+ * @returns 图元类型
3899
+ */
3900
+ getState_PrimitiveType(): EPCB_PrimitiveType;
3901
+ /**
3902
+ * 获取属性状态:图元 ID
3903
+ *
3904
+ * @public
3905
+ * @returns 图��� ID
3906
+ */
3907
+ getState_PrimitiveId(): string;
3908
+ /**
3909
+ * 获取属性状态:层
3428
3910
  *
3429
3911
  * @public
3430
- * @returns 图元类型
3912
+ * @returns
3431
3913
  */
3432
- getState_PrimitiveType(): EPCB_PrimitiveType;
3914
+ getState_Layer(): TPCB_LayersOfObject;
3433
3915
  /**
3434
- * 获取属性状态:图元 ID
3916
+ * 获取属性状态:左上点 X
3435
3917
  *
3436
3918
  * @public
3437
- * @returns 图元 ID
3919
+ * @returns 左上点 X
3438
3920
  */
3439
- getState_PrimitiveId(): string;
3921
+ getState_TopLeftX(): number;
3440
3922
  /**
3441
- * 获取属性状态:网络名称
3923
+ * 获取属性状态:左上点 Y
3442
3924
  *
3443
3925
  * @public
3444
- * @returns 网络名称
3926
+ * @returns 左上点 Y
3445
3927
  */
3446
- getState_Net(): string;
3928
+ getState_TopLeftY(): number;
3447
3929
  /**
3448
- * 获取属性状态:层
3930
+ * 获取属性状态:二进制数据
3449
3931
  *
3450
3932
  * @public
3451
- * @returns
3933
+ * @returns 二进制数据
3452
3934
  */
3453
- getState_Layer(): TPCB_LayersOfLine;
3935
+ getState_BinaryData(): string;
3454
3936
  /**
3455
- * 获取属性状态:起始位置 X
3937
+ * 获取属性状态:宽
3456
3938
  *
3457
3939
  * @public
3458
- * @returns 起始位置 X
3940
+ * @returns
3459
3941
  */
3460
- getState_StartX(): number;
3942
+ getState_Width(): number;
3461
3943
  /**
3462
- * 获取属性状态:起始位置 Y
3944
+ * 获取属性状态:高
3463
3945
  *
3464
3946
  * @public
3465
- * @returns 起始位置 Y
3947
+ * @returns
3466
3948
  */
3467
- getState_StartY(): number;
3949
+ getState_Height(): number;
3468
3950
  /**
3469
- * 获取属性状态:终止位置 X
3951
+ * 获取属性状态:旋转角度
3470
3952
  *
3471
3953
  * @public
3472
- * @returns 终止位置 X
3954
+ * @returns 旋转角度
3473
3955
  */
3474
- getState_EndX(): number;
3956
+ getState_Rotation(): number;
3475
3957
  /**
3476
- * 获取属性状态:终止位置 Y
3958
+ * 获取属性状态:是否水平镜像
3477
3959
  *
3478
3960
  * @public
3479
- * @returns 终止位置 Y
3961
+ * @returns 是否水平镜像
3480
3962
  */
3481
- getState_EndY(): number;
3963
+ getState_Mirror(): boolean;
3482
3964
  /**
3483
- * 获取属性状态:线宽
3965
+ * 获取属性状态:文件名
3484
3966
  *
3485
3967
  * @public
3486
- * @returns 线宽
3968
+ * @returns 文件名
3487
3969
  */
3488
- getState_LineWidth(): number;
3970
+ getState_FileName(): string;
3489
3971
  /**
3490
3972
  * 获取属性状态:是否锁定
3491
3973
  *
@@ -3494,83 +3976,99 @@ declare class IPCB_PrimitiveLine implements IPCB_Primitive {
3494
3976
  */
3495
3977
  getState_PrimitiveLock(): boolean;
3496
3978
  /**
3497
- * 设置属性状态:网络名称
3979
+ * 设置属性状态:层
3498
3980
  *
3499
3981
  * @beta
3500
- * @param net - 网络名称
3501
- * @returns 导线图元对象
3982
+ * @param layer -
3983
+ * @returns 二进制内嵌对象图元对象
3502
3984
  */
3503
- setState_Net(net: string): IPCB_PrimitiveLine;
3985
+ setState_Layer(layer: TPCB_LayersOfObject): IPCB_PrimitiveObject;
3504
3986
  /**
3505
- * 设置属性状态:层
3987
+ * 设置属性状态:左上点 X
3506
3988
  *
3507
- * @beta
3508
- * @param layer -
3509
- * @returns 导线图元对象
3989
+ * @public
3990
+ * @param topLeftX - 左上点 X
3991
+ * @returns 二进制内嵌对象图元对象
3510
3992
  */
3511
- setState_Layer(layer: TPCB_LayersOfLine): IPCB_PrimitiveLine;
3993
+ setState_TopLeftX(topLeftX: number): IPCB_PrimitiveObject;
3512
3994
  /**
3513
- * 设置属性状态:起始位置 X
3995
+ * 设置属性状态:左上点 Y
3514
3996
  *
3515
- * @beta
3516
- * @param startX - 起始位置 X
3517
- * @returns 导线图元对象
3997
+ * @public
3998
+ * @param topLeftY - 左上点 Y
3999
+ * @returns 二进制内嵌对象图元对象
3518
4000
  */
3519
- setState_StartX(startX: number): IPCB_PrimitiveLine;
4001
+ setState_TopLeftY(topLeftY: number): IPCB_PrimitiveObject;
3520
4002
  /**
3521
- * 设置属性状态:起始位置 Y
4003
+ * 设置属性状态:二进制数据
3522
4004
  *
3523
- * @beta
3524
- * @param startY - 起始位置 Y
3525
- * @returns 导线图元对象
4005
+ * @public
4006
+ * @param binaryData - 二进制数据
4007
+ * @returns 二进制内嵌对象图元对象
3526
4008
  */
3527
- setState_StartY(startY: number): IPCB_PrimitiveLine;
4009
+ setState_BinaryData(binaryData: string): IPCB_PrimitiveObject;
3528
4010
  /**
3529
- * 设置属性状态:终止位置 X
4011
+ * 设置属性状态:宽
3530
4012
  *
3531
- * @beta
3532
- * @param endX - 终止位置 X
3533
- * @returns 导线图元对象
4013
+ * @public
4014
+ * @param width -
4015
+ * @returns 二进制内嵌对象图元对象
3534
4016
  */
3535
- setState_EndX(endX: number): IPCB_PrimitiveLine;
4017
+ setState_Width(width: number): IPCB_PrimitiveObject;
3536
4018
  /**
3537
- * 设置属性状态:终止位置 Y
4019
+ * 设置属性状态:高
3538
4020
  *
3539
- * @beta
3540
- * @param endY - 终止位置 Y
3541
- * @returns 导线图元对象
4021
+ * @public
4022
+ * @param height -
4023
+ * @returns 二进制内嵌对象图元对象
3542
4024
  */
3543
- setState_EndY(endY: number): IPCB_PrimitiveLine;
4025
+ setState_Height(height: number): IPCB_PrimitiveObject;
3544
4026
  /**
3545
- * 设置属性状态:线宽
4027
+ * 设置属性状态:旋转角度
3546
4028
  *
3547
- * @beta
3548
- * @param lineWidth - 线宽
3549
- * @returns 导线图元对象
4029
+ * @public
4030
+ * @param rotation - 旋转角度
4031
+ * @returns 二进制内嵌对象图元对象
3550
4032
  */
3551
- setState_LineWidth(lineWidth: number): IPCB_PrimitiveLine;
4033
+ setState_Rotation(rotation: number): IPCB_PrimitiveObject;
4034
+ /**
4035
+ * 设置属性状态:是否水平镜像
4036
+ *
4037
+ * @public
4038
+ * @param mirror - 是否水平镜像
4039
+ * @returns 二进制内嵌对象图元对象
4040
+ */
4041
+ setState_Mirror(mirror: boolean): IPCB_PrimitiveObject;
4042
+ /**
4043
+ * 设置属性状态:文件名
4044
+ *
4045
+ * @public
4046
+ * @param fileName - 文件名
4047
+ * @returns 二进制内嵌对象图元对象
4048
+ */
4049
+ setState_FileName(fileName: string): IPCB_PrimitiveObject;
3552
4050
  /**
3553
4051
  * 设置属性状态:是否锁定
3554
4052
  *
3555
4053
  * @beta
3556
4054
  * @param primitiveLock - 是否锁定
3557
- * @returns 导线图元对象
4055
+ * @returns 二进制内嵌对象图元对象
3558
4056
  */
3559
- setState_PrimitiveLock(primitiveLock: boolean): IPCB_PrimitiveLine;
4057
+ setState_PrimitiveLock(primitiveLock: boolean): IPCB_PrimitiveObject;
3560
4058
  /**
3561
4059
  * 将图元转换为异步图元
3562
4060
  *
3563
4061
  * @public
3564
- * @returns 导线图元对象
4062
+ * @returns 二进制内嵌对象图元对象
3565
4063
  */
3566
- toAsync(): IPCB_PrimitiveLine;
4064
+ toAsync(): IPCB_PrimitiveObject;
3567
4065
  /**
3568
4066
  * 将图元转换为同步图元
3569
4067
  *
3570
4068
  * @public
3571
- * @returns 导线图元对象
4069
+ * @returns 二进制内嵌对象图元对象
3572
4070
  */
3573
- toSync(): IPCB_PrimitiveLine;
4071
+ toSync(): IPCB_PrimitiveObject;
3574
4072
  /**
3575
4073
  * 查询图元是否为异步图元
3576
4074
  *
@@ -3578,20 +4076,8 @@ declare class IPCB_PrimitiveLine implements IPCB_Primitive {
3578
4076
  * @returns 是否为异步图元
3579
4077
  */
3580
4078
  isAsync(): boolean;
3581
- /**
3582
- * 将异步图元重置为当前画布状态
3583
- *
3584
- * @beta
3585
- * @returns 导线图元对象
3586
- */
3587
- reset(): Promise<IPCB_PrimitiveLine>;
3588
- /**
3589
- * 将对图元的更改应用到画布
3590
- *
3591
- * @beta
3592
- * @returns 导线图元对象
3593
- */
3594
- done(): Promise<IPCB_PrimitiveLine>;
4079
+ /* Excluded from this release type: reset */
4080
+ /* Excluded from this release type: done */
3595
4081
  }
3596
4082
 
3597
4083
  /**
@@ -3601,45 +4087,45 @@ declare class IPCB_PrimitiveLine implements IPCB_Primitive {
3601
4087
  */
3602
4088
  declare class IPCB_PrimitivePad implements IPCB_Primitive {
3603
4089
  /** 异步 */
3604
- private async;
4090
+ protected async: boolean;
3605
4091
  /** 图元类型 */
3606
- private readonly primitiveType;
4092
+ protected readonly primitiveType: EPCB_PrimitiveType;
3607
4093
  /** 图元 ID */
3608
- private primitiveId?;
4094
+ protected primitiveId?: string;
3609
4095
  /** 层 */
3610
- private layer;
4096
+ protected layer: TPCB_LayersOfPad;
3611
4097
  /** 焊盘编号 */
3612
- private padNumber;
4098
+ protected padNumber: string;
3613
4099
  /** 位置 X */
3614
- private x;
4100
+ protected x: number;
3615
4101
  /** 位置 Y */
3616
- private y;
4102
+ protected y: number;
3617
4103
  /** 旋转角度 */
3618
- private rotation;
4104
+ protected rotation: number;
3619
4105
  /** 焊盘外形 */
3620
- private pad?;
4106
+ protected pad?: TPCB_PrimitivePadShape;
3621
4107
  /** 网络名称 */
3622
- private net?;
4108
+ protected net?: string;
3623
4109
  /** 孔 */
3624
- private hole;
4110
+ protected hole: TPCB_PrimitivePadHole | null;
3625
4111
  /** 孔偏移 X */
3626
- private holeOffsetX;
4112
+ protected holeOffsetX: number;
3627
4113
  /** 孔偏移 Y */
3628
- private holeOffsetY;
4114
+ protected holeOffsetY: number;
3629
4115
  /** 孔相对于焊盘的旋转角度 */
3630
- private holeRotation;
4116
+ protected holeRotation: number;
3631
4117
  /** 是否金属化孔壁 */
3632
- private metallization;
4118
+ protected metallization: boolean;
3633
4119
  /** 焊盘功能 */
3634
- private padFunction;
4120
+ protected padFunction: EPCB_PrimitivePadFunction;
3635
4121
  /** 特殊焊盘外形 */
3636
- private specialPad?;
4122
+ protected specialPad?: TPCB_PrimitiveSpecialPadShape;
3637
4123
  /** 阻焊/助焊扩展 */
3638
- private solderMaskAndPasteMaskExpansion;
4124
+ protected solderMaskAndPasteMaskExpansion: IPCB_PrimitiveSolderMaskAndPasteMaskExpansion | null;
3639
4125
  /** 热焊优化参数 */
3640
- private heatWelding;
4126
+ protected heatWelding: IPCB_PrimitivePadHeatWelding | null;
3641
4127
  /** 是否锁定 */
3642
- private primitiveLock;
4128
+ protected primitiveLock: boolean;
3643
4129
  /* Excluded from this release type: __constructor */
3644
4130
  /**
3645
4131
  * 在 PCB 画布中创建图元
@@ -3990,7 +4476,7 @@ declare class IPCB_PrimitivePad implements IPCB_Primitive {
3990
4476
  *
3991
4477
  * @public
3992
4478
  * @remarks
3993
- * 当连接方式({@link IPCB_PrimitivePadHeatWelding.connectionMethod | connectionMethod})为直连({@link EPCB_PrimitivePadHeatWeldingConnectionMethod.DIRECT_CONNECTED | DIRECT_CONNECTED})、无连接({@link EPCB_PrimitivePadHeatWeldingConnectionMethod.NON_CONNECTED | NON_CONNECTED})时,发散间距、发散线宽、发散角度的设置将被忽略
4479
+ * 当连接方式({@link IPCB_PrimitivePadHeatWelding.connectionMethod | connectionMethod})为直连({@link EPCB_PrimitivePadHeatWeldingConnectionMethod.DIRECT_CONNECTED | DIRECT_CONNECTED})、无连接({@link EPCB_PrimitivePadHeatWeldingConnectionMethod.NON_CONNECTED | NON_CONNECTED})时,发散间距、发散线宽、发散角度��设置将被忽略
3994
4480
  */
3995
4481
  declare interface IPCB_PrimitivePadHeatWelding {
3996
4482
  /** 连接方式 */
@@ -4174,7 +4660,7 @@ declare class IPCB_PrimitivePour implements IPCB_Primitive {
4174
4660
  private layer;
4175
4661
  /** 复杂多边形 */
4176
4662
  private complexPolygon;
4177
- /** 覆���填充方法 */
4663
+ /** 覆铜填充方法 */
4178
4664
  private pourFillMethod;
4179
4665
  /** 是否保留孤岛 */
4180
4666
  private preserveSilos;
@@ -4769,6 +5255,7 @@ declare class IPCB_PrimitiveVia implements IPCB_Primitive {
4769
5255
  * @returns 过孔图元对象
4770
5256
  */
4771
5257
  done(): Promise<IPCB_PrimitiveVia>;
5258
+ /* Excluded from this release type: getAdjacentPrimitives */
4772
5259
  }
4773
5260
 
4774
5261
  /**
@@ -4800,8 +5287,8 @@ declare interface ISCH_PrimitiveAPI {
4800
5287
  (primitiveIds: string): ISCH_Primitive | undefined | Promise<ISCH_Primitive | undefined>;
4801
5288
  (primitiveIds: Array<string>): Array<ISCH_Primitive> | Promise<Array<ISCH_Primitive>>;
4802
5289
  };
4803
- getAllPrimitiveId: (...args: any[]) => Array<string> | Promise<Array<string>> | Promise<Array<string>>;
4804
- getAll: (...args: any[]) => Array<ISCH_Primitive> | Promise<Array<ISCH_Primitive>> | Promise<Array<ISCH_Primitive>>;
5290
+ getAllPrimitiveId: (...args: any[]) => Array<string> | Promise<Array<string>>;
5291
+ getAll: (...args: any[]) => Array<ISCH_Primitive> | Promise<Array<ISCH_Primitive>>;
4805
5292
  }
4806
5293
 
4807
5294
  /**
@@ -5210,7 +5697,7 @@ declare class ISCH_PrimitiveComponent implements ISCH_Primitive {
5210
5697
  uuid: string;
5211
5698
  } | undefined;
5212
5699
  /**
5213
- * 获取属性状态:关联库封装
5700
+ * 获取属性状态:关联库��装
5214
5701
  *
5215
5702
  * @public
5216
5703
  * @returns 关联库封装
@@ -5275,7 +5762,7 @@ declare class ISCH_PrimitiveComponent implements ISCH_Primitive {
5275
5762
  * @returns 其它参数
5276
5763
  */
5277
5764
  getState_OtherProperty(): {
5278
- [key: string]: string;
5765
+ [key: string]: string | number | boolean;
5279
5766
  } | undefined;
5280
5767
  /**
5281
5768
  * 设置属性状态:坐标 X
@@ -5397,7 +5884,7 @@ declare class ISCH_PrimitiveComponent implements ISCH_Primitive {
5397
5884
  * @returns 器件图元对象
5398
5885
  */
5399
5886
  setState_OtherProperty(otherProperty: {
5400
- [key: string]: string;
5887
+ [key: string]: string | number | boolean;
5401
5888
  }): ISCH_PrimitiveComponent;
5402
5889
  /**
5403
5890
  * 将图元转换为异步图元
@@ -5434,65 +5921,73 @@ declare class ISCH_PrimitiveComponent implements ISCH_Primitive {
5434
5921
  * @returns 器件图元对象
5435
5922
  */
5436
5923
  done(): Promise<ISCH_PrimitiveComponent>;
5924
+ /* Excluded from this release type: getAllPins */
5437
5925
  /* Excluded from this release type: setState_Component */
5438
5926
  /* Excluded from this release type: setState_SubPartName */
5439
5927
  }
5440
5928
 
5441
5929
  /**
5442
- * 器件引脚
5930
+ * 器件引脚图元
5443
5931
  *
5444
5932
  * @public
5933
+ * @remarks
5934
+ * 器件引脚图元是一个特殊的图元,它指的是在原理图画布上关联到符号的引脚
5935
+ *
5936
+ * 器件引脚图元仅可更改 `pinNumber` 属性,其它所有属性均为只读,
5937
+ * 并且你只能通过 {@link SCH_PrimitiveComponent.getAllPinsByPrimitiveId | 器件类的 getAllPinsByPrimitiveId 方法} 或 {@link ISCH_PrimitiveComponent.getAllPins | 器件图元的 getAllPins 方法} 获取到器件引脚图元
5445
5938
  */
5446
- declare interface ISCH_PrimitiveComponentPin {
5447
- readonly primitiveType: ESCH_PrimitiveType.COMPONENT_PIN;
5448
- readonly primitiveId: string;
5449
- readonly x: number;
5450
- readonly y: number;
5451
- readonly pinNumber: string;
5452
- readonly pinName: string;
5453
- readonly pinShape: string;
5454
- readonly pinType: ESCH_PrimitivePinType;
5455
- readonly noConnectFlag: boolean;
5939
+ declare class ISCH_PrimitiveComponentPin extends ISCH_PrimitivePin {
5940
+ /** 图元类型 */
5941
+ protected readonly primitiveType: ESCH_PrimitiveType.COMPONENT_PIN;
5942
+ /* Excluded from this release type: __constructor */
5943
+ /* Excluded from this release type: create */
5944
+ /* Excluded from this release type: setState_X */
5945
+ /* Excluded from this release type: setState_Y */
5946
+ /* Excluded from this release type: setState_PinName */
5947
+ /* Excluded from this release type: setState_Rotation */
5948
+ /* Excluded from this release type: setState_PinLength */
5949
+ /* Excluded from this release type: setState_PinColor */
5950
+ /* Excluded from this release type: setState_PinShape */
5951
+ /* Excluded from this release type: setState_PinType */
5952
+ /* Excluded from this release type: reset */
5953
+ /* Excluded from this release type: done */
5456
5954
  }
5457
5955
 
5458
5956
  /**
5459
5957
  * 引脚图元
5460
5958
  *
5461
5959
  * @public
5960
+ * @remarks 引脚图元仅符号编辑器可用,在原理图图页内,关联到符号的引脚被称为 {@link ISCH_PrimitiveComponentPin | 器件引脚图元}
5462
5961
  */
5463
5962
  declare class ISCH_PrimitivePin implements ISCH_Primitive {
5464
5963
  /** 异步 */
5465
- private async;
5964
+ protected async: boolean;
5466
5965
  /** 图元类型 */
5467
- private readonly primitiveType;
5966
+ protected readonly primitiveType: ESCH_PrimitiveType;
5468
5967
  /** 图元 ID */
5469
- private primitiveId?;
5968
+ protected primitiveId?: string;
5470
5969
  /** 坐标 X */
5471
- private x;
5970
+ protected x: number;
5472
5971
  /** 坐标 Y */
5473
- private y;
5972
+ protected y: number;
5474
5973
  /** 引脚编号 */
5475
- private pinNumber;
5974
+ protected pinNumber: string;
5476
5975
  /** 引脚名称 */
5477
- private pinName;
5976
+ protected pinName: string;
5478
5977
  /** 旋转角度 */
5479
- private rotation;
5978
+ protected rotation: number;
5480
5979
  /** 引脚长度 */
5481
- private pinLength;
5980
+ protected pinLength: number;
5482
5981
  /** 引脚颜色 */
5483
- private pinColor;
5982
+ protected pinColor: string | null;
5484
5983
  /** 引脚外形 */
5485
- private pinShape;
5984
+ protected pinShape: string;
5486
5985
  /** 引脚类型 */
5487
- private pinType;
5986
+ protected pinType: ESCH_PrimitivePinType;
5987
+ /** 其它参数 */
5988
+ private otherProperty?;
5488
5989
  /* Excluded from this release type: __constructor */
5489
- /**
5490
- * 在原理图画布中创建图元
5491
- *
5492
- * @beta
5493
- * @returns 引脚图元对象
5494
- */
5495
- create(): Promise<ISCH_PrimitivePin>;
5990
+ /* Excluded from this release type: create */
5496
5991
  getState_PrimitiveType(): ESCH_PrimitiveType;
5497
5992
  getState_PrimitiveId(): string;
5498
5993
  getState_X(): number;
@@ -5504,6 +5999,15 @@ declare class ISCH_PrimitivePin implements ISCH_Primitive {
5504
5999
  getState_PinColor(): string | null;
5505
6000
  getState_PinShape(): string;
5506
6001
  getState_pinType(): ESCH_PrimitivePinType;
6002
+ /**
6003
+ * 获取属性状态:其它参数
6004
+ *
6005
+ * @public
6006
+ * @returns 其它参数
6007
+ */
6008
+ getState_OtherProperty(): {
6009
+ [key: string]: string | number | boolean;
6010
+ } | undefined;
5507
6011
  setState_X(x: number): ISCH_PrimitivePin;
5508
6012
  setState_Y(y: number): ISCH_PrimitivePin;
5509
6013
  setState_PinNumber(pinNumber: string): ISCH_PrimitivePin;
@@ -5511,8 +6015,18 @@ declare class ISCH_PrimitivePin implements ISCH_Primitive {
5511
6015
  setState_Rotation(rotation: number): ISCH_PrimitivePin;
5512
6016
  setState_PinLength(pinLength: number): ISCH_PrimitivePin;
5513
6017
  setState_PinColor(pinColor: string | null): ISCH_PrimitivePin;
5514
- setState_PinShape(pinShape: string): this;
6018
+ setState_PinShape(pinShape: string): ISCH_PrimitivePin;
5515
6019
  setState_PinType(pinType: ESCH_PrimitivePinType): ISCH_PrimitivePin;
6020
+ /**
6021
+ * 设置属性状态:其它参数
6022
+ *
6023
+ * @beta
6024
+ * @param otherProperty - 其它参数
6025
+ * @returns 引脚图元对象
6026
+ */
6027
+ setState_OtherProperty(otherProperty: {
6028
+ [key: string]: string | number | boolean;
6029
+ }): ISCH_PrimitivePin;
5516
6030
  /**
5517
6031
  * 将图元转换为异步图元
5518
6032
  */
@@ -5536,7 +6050,7 @@ declare class ISCH_PrimitivePin implements ISCH_Primitive {
5536
6050
  *
5537
6051
  * @beta
5538
6052
  */
5539
- done(): ISCH_PrimitivePin;
6053
+ done(): Promise<ISCH_PrimitivePin>;
5540
6054
  }
5541
6055
 
5542
6056
  /**
@@ -5873,7 +6387,7 @@ declare interface ISYS_FileSystemFileList {
5873
6387
  isDirectory: boolean;
5874
6388
  /** 目录子文件 */
5875
6389
  subFiles?: Array<ISYS_FileSystemFileList>;
5876
- /** 相对路径,不包含前面的传入路径和文件名(当没有传入路径时,不存在相对路径),且前后均无斜杠 */
6390
+ /** 相对路径���不包含前面的传入路径和文件名(当没有传入路径时,不存在相对路径),且前后均无斜杠 */
5877
6391
  relativePath?: string;
5878
6392
  /** 完整路径,包含文件名的绝对路径 */
5879
6393
  fullPath: string;
@@ -5950,7 +6464,7 @@ declare class LIB_3DModel {
5950
6464
  *
5951
6465
  * @beta
5952
6466
  * @param modelUuid - 3D 模型 UUID
5953
- * @param libraryUuid - 库 UUID,可以使用 {@link LIB_LibrariesList} 内的接��获取
6467
+ * @param libraryUuid - 库 UUID,可以使用 {@link LIB_LibrariesList} 内的接口获取
5954
6468
  * @returns 操作是否成功
5955
6469
  */
5956
6470
  delete(modelUuid: string, libraryUuid: string): Promise<boolean>;
@@ -5993,7 +6507,7 @@ declare class LIB_3DModel {
5993
6507
  *
5994
6508
  * @beta
5995
6509
  * @param key - 搜索关键字
5996
- * @param libraryUuid - 库 UUID,默认为系统库,可以使用 {@link LIB_LibrariesList} 内的接口获取
6510
+ * @param libraryUuid - 库 UUID,默认为系统库��可以使用 {@link LIB_LibrariesList} 内的接口获取
5997
6511
  * @param classification - 分类,默认为全部
5998
6512
  * @param itemsOfPage - 一页搜索结果的数量
5999
6513
  * @param page - 页数
@@ -6087,7 +6601,7 @@ declare class LIB_Cbb {
6087
6601
  * 在编辑器打开复用模块符号
6088
6602
  *
6089
6603
  * @beta
6090
- * @param cbbUuid - 复用模块 UUID
6604
+ * @param cbbUuid - 复��模块 UUID
6091
6605
  * @param libraryUuid - 库 UUID,可以使用 {@link LIB_LibrariesList} 内的接口获取
6092
6606
  * @param splitScreenId - 分屏 ID,不填写则默认在最后输入焦点的分屏内打开,可以使用 {@link DMT_EditorControl} 内的接口获取
6093
6607
  * @returns 标签页 ID,对应 {@link IDMT_EditorTabItem.tabId},可使用 {@link DMT_EditorControl.getSplitScreenIdByTabId} 获取到分屏 ID
@@ -6187,7 +6701,7 @@ declare class LIB_Classification {
6187
6701
  */
6188
6702
  deleteByUuid(libraryUuid: string, classificationUuid: string): Promise<boolean>;
6189
6703
  /**
6190
- * 删除指定索引的分类
6704
+ * 删除指定索���的分类
6191
6705
  *
6192
6706
  * @beta
6193
6707
  * @param classificationIndex - 分类索引
@@ -6284,7 +6798,7 @@ declare class LIB_Device {
6284
6798
  *
6285
6799
  * @beta
6286
6800
  * @param key - 搜索关键字
6287
- * @param libraryUuid - 库 UUID,默认为系统库,可以使用 {@link LIB_LibrariesList} 内的接口获取
6801
+ * @param libraryUuid - 库 UUID,默认为系统库,可以��用 {@link LIB_LibrariesList} 内的接口获取
6288
6802
  * @param classification - 分类,默认为全部
6289
6803
  * @param symbolType - 符号类型,默认为全部
6290
6804
  * @param itemsOfPage - 一页搜索结果的数量
@@ -6432,7 +6946,14 @@ declare class LIB_LibrariesList {
6432
6946
  * @returns 个人库的 UUID
6433
6947
  */
6434
6948
  getPersonalLibraryUuid(): Promise<string | undefined>;
6435
- /* Excluded from this release type: getProjectLibraryUuid */
6949
+ /**
6950
+ * 获取工程库的 UUID
6951
+ *
6952
+ * @beta
6953
+ * @remarks 在未打开工程的情况下调用将返回 `undefined`
6954
+ * @returns 工程库的 UUID
6955
+ */
6956
+ getProjectLibraryUuid(): Promise<string | undefined>;
6436
6957
  /**
6437
6958
  * 获取收藏库的 UUID
6438
6959
  *
@@ -6632,18 +7153,29 @@ declare class PCB_Document {
6632
7153
  * 从原理图导入变更
6633
7154
  *
6634
7155
  * @public
6635
- * @returns 导入操作是否成功,导入失败或游离 PCB 返回 `false`
7156
+ * @param uuid - 原理图 UUID,默认为关联在同一个 Board 下的原理图
7157
+ * @returns 导入操作是否成功,导入失败或未传入原理图 UUID 的游离 PCB 将返回 `false`
6636
7158
  */
6637
- importChanges(uuid: string): Promise<boolean>;
7159
+ importChanges(uuid?: string): Promise<boolean>;
6638
7160
  /**
6639
- * 导入自动布线文件(JSON)
7161
+ * 导入旧版自动布线文件(JSON)
6640
7162
  *
6641
7163
  * @beta
6642
7164
  * @remarks 可以使用 {@link SYS_FileSystem.openReadFileDialog} 读入文件
6643
7165
  * @param autoRouteFile - 欲导入的 JSON 文件
6644
7166
  * @returns 导入操作是否成功
6645
7167
  */
6646
- importAutoRouteJsonFile(autoRouteFile: File): Promise<boolean>;
7168
+ importOldAutoRouteJsonFile(autoRouteFile: File): Promise<boolean>;
7169
+ /**
7170
+ * 导入旧版自动布局文件(JSON)
7171
+ *
7172
+ * @beta
7173
+ * @remarks 可以使用 {@link SYS_FileSystem.openReadFileDialog} 读入文件
7174
+ * @deprecated 建议使用 {@link PCB_ManufactureData.getAutoLayoutJsonFile} 接口提供的自动布线文件,它对应 {@link PCB_Document.importAutoLayoutJsonFile} 导入接口
7175
+ * @param autoLayoutFile - 欲导入的 JSON 文件
7176
+ * @returns 导入操作是否成功
7177
+ */
7178
+ importOldAutoLayoutJsonFile(autoLayoutFile: File): Promise<boolean>;
6647
7179
  /**
6648
7180
  * 导入自动布局文件(JSON)
6649
7181
  *
@@ -6741,7 +7273,7 @@ declare class PCB_Document {
6741
7273
  * 即 `setCanvasOrigin(0, 0)`;
6742
7274
  *
6743
7275
  * 此处的单位为数据层面单位,在跨度上等同于画布层面的 mil
6744
- * @param offsetX - 画布原点相对于数据原点的 X 坐标偏移
7276
+ * @param offsetX - ��布原点相对于数据原点的 X 坐标偏移
6745
7277
  * @param offsetY - 画布原点相对于数据原点的 Y 坐标偏移
6746
7278
  * @returns 操作是否成功
6747
7279
  */
@@ -6754,13 +7286,17 @@ declare class PCB_Document {
6754
7286
  * 本接口在前端画布上定位到指定的数据层面坐标;
6755
7287
  *
6756
7288
  * 如果希望在进行本操作时前端画布坐标能与传入数据一致,
6757
- * 建议调用 {@link PCB_Document.setCanvasOrigin} 方法并设置偏移量为零
7289
+ * 建议调用 {@link PCB_Document.setCanvasOrigin} 方法并设置偏移量为零;
7290
+ *
7291
+ * 此处的单位为数据层面单位,在跨度上等同于画布层面的 mil
6758
7292
  * @param x - 坐标 X
6759
7293
  * @param y - 坐标 Y
6760
7294
  * @returns 操作是否成功
6761
7295
  */
6762
7296
  navigateToCoordinates(x: number, y: number): Promise<boolean>;
6763
7297
  /* Excluded from this release type: navigateToRegion */
7298
+ /* Excluded from this release type: getPrimitiveAtPoint */
7299
+ /* Excluded from this release type: getPrimitivesInRegion */
6764
7300
  }
6765
7301
 
6766
7302
  /**
@@ -6974,7 +7510,7 @@ declare class PCB_Drc {
6974
7510
  */
6975
7511
  getAllNetClasses(): Promise<Array<IPCB_NetClassItem>>;
6976
7512
  /**
6977
- * 创建差分对
7513
+ * 创建���分对
6978
7514
  *
6979
7515
  * @beta
6980
7516
  * @param differentialPairName - 差分对名称
@@ -7448,7 +7984,7 @@ declare class PCB_ManufactureData {
7448
7984
  *
7449
7985
  * @public
7450
7986
  * @remarks 可以使用 {@link SYS_FileSystem.saveFile} 接口将文件导出到本地文件系统
7451
- * @deprecated 新版自动布线 JSON 文件正在开发中,之后将会取代本接口
7987
+ * @deprecated 建议使用 {@link PCB_ManufactureData.getAutoRouteJsonFile} 接口提供的自动布线文件
7452
7988
  * @param fileName - 文件名
7453
7989
  * @returns 旧版自动布线 JSON 文件数据
7454
7990
  */
@@ -7467,7 +8003,7 @@ declare class PCB_ManufactureData {
7467
8003
  *
7468
8004
  * @beta
7469
8005
  * @remarks 可以使用 {@link SYS_FileSystem.saveFile} 接口将文件导出到本地文件系统
7470
- * @deprecated 新版自动布局 JSON 文件正在开发中,之后将会取代本接口
8006
+ * @deprecated 建议使用 {@link PCB_ManufactureData.getAutoLayoutJsonFile} 接口提供的自动布局文件
7471
8007
  * @param fileName - 文件名
7472
8008
  * @returns 旧版自动布局 JSON 文件数据
7473
8009
  */
@@ -7585,14 +8121,33 @@ declare class PCB_Net {
7585
8121
  * @returns 操作是否成功
7586
8122
  */
7587
8123
  selectNet(net: string): Promise<boolean>;
8124
+ /**
8125
+ * 取消选中网络
8126
+ *
8127
+ * @beta
8128
+ * @param net - 网络名称
8129
+ * @returns 操作是否成功
8130
+ */
8131
+ unselectNet(net: string): Promise<boolean>;
8132
+ /**
8133
+ * 取消选中所有网络
8134
+ *
8135
+ * @beta
8136
+ * @remarks 如果希望取消选中所有图元,请使用 {@link PCB_SelectControl.clearSelected} 接口
8137
+ * @returns 操作是否成功
8138
+ */
8139
+ unselectAllNets(): Promise<boolean>;
7588
8140
  /**
7589
8141
  * 高亮网络
7590
8142
  *
7591
8143
  * @beta
8144
+ * @remarks 本接口的返回值为结果导向,如果该网络原先已高亮,也将返回 `true`
7592
8145
  * @param net - 网络名称
7593
8146
  * @returns 操作是否成功
7594
8147
  */
7595
8148
  highlightNet(net: string): Promise<boolean>;
8149
+ /* Excluded from this release type: unhighlightNet */
8150
+ /* Excluded from this release type: unhighlightAllNets */
7596
8151
  /**
7597
8152
  * 获取网表
7598
8153
  *
@@ -7628,6 +8183,7 @@ declare class PCB_Primitive {
7628
8183
  * PCB & 封装 / 圆弧线图元类
7629
8184
  *
7630
8185
  * @public
8186
+ * @remarks 直线和圆弧线均为导线,对应画布的线条走线和圆弧走线
7631
8187
  */
7632
8188
  declare class PCB_PrimitiveArc implements IPCB_PrimitiveAPI {
7633
8189
  /**
@@ -7787,9 +8343,17 @@ declare class PCB_PrimitiveComponent implements IPCB_PrimitiveAPI {
7787
8343
  *
7788
8344
  * @beta
7789
8345
  * @param primitiveIds - 器件的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
7790
- * @returns 器件图元对象
8346
+ * @returns 器件图元对象,`undefined` 表示获取失败
7791
8347
  */
7792
8348
  get(primitiveIds: string): Promise<IPCB_PrimitiveComponent | undefined>;
8349
+ /**
8350
+ * 获取器件
8351
+ *
8352
+ * @beta
8353
+ * @remarks 如若传入多个图元 ID,任意图元 ID 未匹配到不影响其它图元的返回,即可能返回少于传入的图元 ID 数量的图元对象
8354
+ * @param primitiveIds - 器件的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
8355
+ * @returns 器件图元对象,空数组表示获取失败
8356
+ */
7793
8357
  get(primitiveIds: Array<string>): Promise<Array<IPCB_PrimitiveComponent>>;
7794
8358
  /**
7795
8359
  * 获取所有器件的图元 ID
@@ -7797,7 +8361,7 @@ declare class PCB_PrimitiveComponent implements IPCB_PrimitiveAPI {
7797
8361
  * @beta
7798
8362
  * @param layer - 层
7799
8363
  * @param primitiveLock - 是否锁定
7800
- * @returns 器件��图元 ID 数组
8364
+ * @returns 器件的图元 ID 数组
7801
8365
  */
7802
8366
  getAllPrimitiveId(layer?: TPCB_LayersOfComponent, primitiveLock?: boolean): Promise<Array<string>>;
7803
8367
  /**
@@ -7809,6 +8373,7 @@ declare class PCB_PrimitiveComponent implements IPCB_PrimitiveAPI {
7809
8373
  * @returns 器件图元对象数组
7810
8374
  */
7811
8375
  getAll(layer?: TPCB_LayersOfComponent, primitiveLock?: boolean): Promise<Array<IPCB_PrimitiveComponent>>;
8376
+ /* Excluded from this release type: getAllPinsByPrimitiveId */
7812
8377
  /* Excluded from this release type: placeComponentWithMouse */
7813
8378
  }
7814
8379
 
@@ -7919,6 +8484,7 @@ declare class PCB_PrimitiveImage implements IPCB_PrimitiveAPI {
7919
8484
  * 创建图像
7920
8485
  *
7921
8486
  * @public
8487
+ * @remarks 如需创建彩色丝印图像,请使用 {@link PCB_PrimitiveObject | 二进制内嵌对象图元类}
7922
8488
  * @param x - BBox 左上点坐标 X
7923
8489
  * @param y - BBox 左上点坐标 Y
7924
8490
  * @param complexPolygon - 图像源数据(复杂多边形),可以使用 {@link PCB_MathPolygon.convertImageToComplexPolygon} 方法将图像文件转换为复杂多边形数据
@@ -7995,13 +8561,14 @@ declare class PCB_PrimitiveImage implements IPCB_PrimitiveAPI {
7995
8561
  }
7996
8562
 
7997
8563
  /**
7998
- * PCB & 封装 / 导线图元类
8564
+ * PCB & 封装 / 直线图元类
7999
8565
  *
8000
8566
  * @public
8567
+ * @remarks 直线和圆弧线均为导线,对应画布的线条走线和圆弧走线
8001
8568
  */
8002
8569
  declare class PCB_PrimitiveLine implements IPCB_PrimitiveAPI {
8003
8570
  /**
8004
- * 创建导线
8571
+ * 创建直线
8005
8572
  *
8006
8573
  * @public
8007
8574
  * @param net - 网络名称
@@ -8012,24 +8579,24 @@ declare class PCB_PrimitiveLine implements IPCB_PrimitiveAPI {
8012
8579
  * @param endY - 终止位置 Y
8013
8580
  * @param lineWidth - 线宽
8014
8581
  * @param primitiveLock - 是否锁定
8015
- * @returns 导线图元对象
8582
+ * @returns 直线图元对象
8016
8583
  */
8017
8584
  create(net: string, layer: TPCB_LayersOfLine, startX: number, startY: number, endX: number, endY: number, lineWidth?: number, primitiveLock?: boolean): Promise<IPCB_PrimitiveLine | undefined>;
8018
8585
  /**
8019
- * 删除导线
8586
+ * 删除直线
8020
8587
  *
8021
8588
  * @beta
8022
- * @param primitiveIds - 导线的图元 ID 或导线图元对象
8589
+ * @param primitiveIds - 直线的图元 ID 或直线图元对象
8023
8590
  * @returns 删除操作是否成功
8024
8591
  */
8025
8592
  delete(primitiveIds: string | IPCB_PrimitiveLine | Array<string> | Array<IPCB_PrimitiveLine>): Promise<boolean>;
8026
8593
  /**
8027
- * 修改导线
8594
+ * 修改直线
8028
8595
  *
8029
8596
  * @beta
8030
8597
  * @param primitiveId - 图元 ID
8031
8598
  * @param property - 修改参数
8032
- * @returns 导线图元对象
8599
+ * @returns 直线图元对象
8033
8600
  */
8034
8601
  modify(primitiveId: string | IPCB_PrimitiveLine, property: {
8035
8602
  net?: string;
@@ -8042,24 +8609,24 @@ declare class PCB_PrimitiveLine implements IPCB_PrimitiveAPI {
8042
8609
  primitiveLock?: boolean;
8043
8610
  }): Promise<IPCB_PrimitiveLine | undefined>;
8044
8611
  /**
8045
- * 获取导线
8612
+ * 获取直线
8046
8613
  *
8047
8614
  * @beta
8048
- * @param primitiveIds - 导线的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
8049
- * @returns 导线图元对象,`undefined` 表示获取失败
8615
+ * @param primitiveIds - 直线的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
8616
+ * @returns 直线图元对象,`undefined` 表示获取失败
8050
8617
  */
8051
8618
  get(primitiveIds: string): Promise<IPCB_PrimitiveLine | undefined>;
8052
8619
  /**
8053
- * 获取导线
8620
+ * 获取直线
8054
8621
  *
8055
8622
  * @beta
8056
8623
  * @remarks 如若传入多个图元 ID,任意图元 ID 未匹配到不影响其它图元的返回,即可能返回少于传入的图元 ID 数量的图元对象
8057
- * @param primitiveIds - 导线的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
8058
- * @returns 导线图元对象,空数组表示获取失败
8624
+ * @param primitiveIds - 直线的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
8625
+ * @returns 直线图元对象,空数组表示获取失败
8059
8626
  */
8060
8627
  get(primitiveIds: Array<string>): Promise<Array<IPCB_PrimitiveLine>>;
8061
8628
  /**
8062
- * 获取所有导线的图元 ID
8629
+ * 获取所有直线的图元 ID
8063
8630
  *
8064
8631
  * @beta
8065
8632
  * @param net - 网络名称
@@ -8069,17 +8636,33 @@ declare class PCB_PrimitiveLine implements IPCB_PrimitiveAPI {
8069
8636
  */
8070
8637
  getAllPrimitiveId(net?: string, layer?: TPCB_LayersOfLine, primitiveLock?: boolean): Promise<Array<string>>;
8071
8638
  /**
8072
- * 获取所有导线
8639
+ * 获取所有直线
8073
8640
  *
8074
8641
  * @beta
8075
8642
  * @param net - 网络名称
8076
8643
  * @param layer - 层
8077
8644
  * @param primitiveLock - 是否锁定
8078
- * @returns 导线图元对象数组
8645
+ * @returns 直线图元对象数组
8079
8646
  */
8080
8647
  getAll(net?: string, layer?: TPCB_LayersOfLine, primitiveLock?: boolean): Promise<Array<IPCB_PrimitiveLine>>;
8081
8648
  }
8082
8649
 
8650
+ /**
8651
+ * PCB & 封装 / 二进制内嵌对象图元类
8652
+ *
8653
+ * @public
8654
+ * @remarks 彩色丝印图像属于二进制内嵌对象,需要使用二进制内嵌对象的方法创建和修改
8655
+ */
8656
+ declare class PCB_PrimitiveObject implements IPCB_PrimitiveAPI {
8657
+ /* Excluded from this release type: create */
8658
+ /* Excluded from this release type: delete */
8659
+ /* Excluded from this release type: modify */
8660
+ /* Excluded from this release type: get */
8661
+ /* Excluded from this release type: get */
8662
+ /* Excluded from this release type: getAllPrimitiveId */
8663
+ /* Excluded from this release type: getAll */
8664
+ }
8665
+
8083
8666
  /**
8084
8667
  * PCB & 封装 / 焊盘图元类
8085
8668
  *
@@ -8423,7 +9006,7 @@ declare class PCB_SelectControl {
8423
9006
  */
8424
9007
  doCrossProbeSelect(components?: Array<string>, pins?: Array<string>, nets?: Array<string>, highlight?: boolean, select?: boolean): Promise<boolean>;
8425
9008
  /**
8426
- * 清除��中
9009
+ * 清除选中
8427
9010
  *
8428
9011
  * @beta
8429
9012
  * @returns 操作是否成功
@@ -8469,6 +9052,10 @@ declare class SCH_Document {
8469
9052
  * @returns 保存操作是否成功,保存失败、上传失败等错误均返回 `false`
8470
9053
  */
8471
9054
  save(): Promise<boolean>;
9055
+ /* Excluded from this release type: navigateToCoordinates */
9056
+ /* Excluded from this release type: navigateToRegion */
9057
+ /* Excluded from this release type: getPrimitiveAtPoint */
9058
+ /* Excluded from this release type: getPrimitivesInRegion */
8472
9059
  }
8473
9060
 
8474
9061
  /**
@@ -8739,7 +9326,7 @@ declare class SCH_PrimitiveBus implements ISCH_PrimitiveAPI {
8739
9326
  * 删除总线
8740
9327
  *
8741
9328
  * @beta
8742
- * @param primitiveIds - 总线的图�� ID 或总线图元对象
9329
+ * @param primitiveIds - 总线的图元 ID 或总线图元对象
8743
9330
  * @returns 删除操作是否成功
8744
9331
  */
8745
9332
  delete(primitiveIds: string | ISCH_PrimitiveBus | Array<string> | Array<ISCH_PrimitiveBus>): boolean;
@@ -8795,7 +9382,7 @@ declare class SCH_PrimitiveCircle implements ISCH_PrimitiveAPI {
8795
9382
  * @param centerY - 圆心 Y
8796
9383
  * @param radius - 半径
8797
9384
  * @param color - 颜色,`null` 表示默认
8798
- * @param fillColor - 填充颜色,`none` 表示无填充,`null` 表示默认
9385
+ * @param fillColor - 填充颜色,`none` 表示无填充,`null` 表示���认
8799
9386
  * @param lineWidth - 线宽,范围 `1-10`,`null` 表示默认
8800
9387
  * @param lineType - 线型,`0` 实线,`1` 短划线,`2` 点线,`3` 点划线,`null` 表示默认
8801
9388
  * @returns 圆图元对象
@@ -9022,7 +9609,7 @@ declare class SCH_PrimitiveComponent implements ISCH_PrimitiveAPI {
9022
9609
  * @param name - 名称,`null` 表示留空
9023
9610
  * @param uniqueId - 唯一 ID,`null` 表示留空
9024
9611
  * @param manufacturer - 制造商,`null` 表示留空
9025
- * @param manufacturerId - 制造商编号,`null` 表示���空
9612
+ * @param manufacturerId - 制造商编号,`null` 表示留空
9026
9613
  * @param supplier - 供应商,`null` 表示留空
9027
9614
  * @param supplierId - 供应商编号,`null` 表示留空
9028
9615
  * @returns 器件图元对象
@@ -9042,7 +9629,7 @@ declare class SCH_PrimitiveComponent implements ISCH_PrimitiveAPI {
9042
9629
  supplier?: string | null;
9043
9630
  supplierId?: string | null;
9044
9631
  otherProperty?: {
9045
- [key: string]: string;
9632
+ [key: string]: string | number | boolean;
9046
9633
  };
9047
9634
  }): Promise<ISCH_PrimitiveComponent | undefined>;
9048
9635
  /**
@@ -9067,6 +9654,7 @@ declare class SCH_PrimitiveComponent implements ISCH_PrimitiveAPI {
9067
9654
  *
9068
9655
  * @beta
9069
9656
  * @param componentType - 器件类型
9657
+ * @param allSchematicPages - 是否获取所有原理图图页的器件
9070
9658
  * @returns 器件的图元 ID 数组
9071
9659
  */
9072
9660
  getAllPrimitiveId(componentType?: string, allSchematicPages?: boolean): Promise<Array<string>>;
@@ -9075,6 +9663,7 @@ declare class SCH_PrimitiveComponent implements ISCH_PrimitiveAPI {
9075
9663
  *
9076
9664
  * @beta
9077
9665
  * @param componentType - 器件类型
9666
+ * @param allSchematicPages - 是否获取所有原理图图页的器件
9078
9667
  * @returns 器件图元对象数组
9079
9668
  */
9080
9669
  getAll(componentType?: string, allSchematicPages?: boolean): Promise<Array<ISCH_PrimitiveComponent>>;
@@ -9123,7 +9712,7 @@ declare class SCH_PrimitivePin implements ISCH_PrimitiveAPI {
9123
9712
  * @param y - 坐标 Y
9124
9713
  * @param pinNumber - 引脚编号
9125
9714
  * @param pinName - 引脚名称
9126
- * @param rotation - 旋转角度,可�� `0` `90` `180` `270`
9715
+ * @param rotation - 旋转角度,可选 `0` `90` `180` `270`
9127
9716
  * @param pinLength - 引脚长度
9128
9717
  * @param pinColor - 引脚颜色,`null` 表示默认
9129
9718
  * @param activeLow - 是否低电平有效
@@ -9264,7 +9853,7 @@ declare class SCH_PrimitiveRectangle implements ISCH_PrimitiveAPI {
9264
9853
  * @param height - 高
9265
9854
  * @param cornerRadius - 圆角半径
9266
9855
  * @param rotation - 旋转角度,绕左上点旋转,可选 `0` `90` `180` `270`
9267
- * @param color - 颜色,`null` 表示默认
9856
+ * @param color - 颜色,`null` ��示默认
9268
9857
  * @param fillColor - 填充颜色,`none` 表示无填充,`null` 表示默认
9269
9858
  * @param lineWidth - 线宽,范围 `1-10`,`null` 表示默认
9270
9859
  * @param lineType - 线型,`0` 实线,`1` 短划线,`2` 点线,`3` 点划线,`null` 表示默认
@@ -9308,7 +9897,7 @@ declare class SCH_PrimitiveText implements ISCH_PrimitiveAPI {
9308
9897
  * @beta
9309
9898
  * @param x - 坐标 X
9310
9899
  * @param y - 坐标 Y
9311
- * @param content - 文���内容
9900
+ * @param content - 文本内容
9312
9901
  * @param rotation - 旋转角度,可选 `0` `90` `180` `270`
9313
9902
  * @param textColor - 文本颜色,`null` 表示默认
9314
9903
  * @param fontName - 字体名称,`null` 表示默认
@@ -9390,7 +9979,7 @@ declare class SCH_PrimitiveWire implements ISCH_PrimitiveAPI {
9390
9979
  *
9391
9980
  * 如若已指定,则遵循:
9392
9981
  * 1. 有一个或多个坐标点在其他网络的图元上,且其他图元并未显式(通常指的是包含网络标签或网络端口)指定网络,则其他图元跟随指定的网络;
9393
- * 2. 如若其他图元指定了网络,则创建失���
9982
+ * 2. 如若其他图元指定了网络,则创建失败
9394
9983
  * @param color - 导线颜色,`null` 表示默认
9395
9984
  * @param lineWidth - 线宽,范围 `1-10`,`null` 表示默认
9396
9985
  * @param lineType - 线型,`0` 实线,`1` 短划线,`2` 点线,`3` 点划线,`null` 表示默认
@@ -9666,7 +10255,7 @@ declare class SYS_FileManager {
9666
10255
  * @remarks 可以使用 {@link SYS_FileSystem.saveFile} 接口将文件导出到本地文件系统
9667
10256
  * @param fileName - 文件名
9668
10257
  * @param password - 加密密码
9669
- * @returns 文档文件数据,`undefined` 表示当前未打开文档或数据获取失败
10258
+ * @returns 文档文件数据,`undefined` 表示当前未打开文档或数据获��失败
9670
10259
  */
9671
10260
  getDocumentFile(fileName?: string, password?: string): Promise<File | undefined>;
9672
10261
  /**
@@ -9706,7 +10295,7 @@ declare class SYS_FileManager {
9706
10295
  */
9707
10296
  getProjectFileByProjectUuid(projectUuid: string, fileName?: string, password?: string): Promise<File | undefined>;
9708
10297
  /**
9709
- * 使用器件 UUID 获取���件文件
10298
+ * 使用器件 UUID 获取器件文件
9710
10299
  *
9711
10300
  * @public
9712
10301
  * @remarks 可以使用 {@link SYS_FileSystem.saveFile} 接口将文件导出到本地文件系统
@@ -9751,7 +10340,7 @@ declare class SYS_FileSystem {
9751
10340
  private extensionUuid?;
9752
10341
  /* Excluded from this release type: __constructor */
9753
10342
  /**
9754
- * 打开读入文件窗口
10343
+ * 打开读入文件���口
9755
10344
  *
9756
10345
  * @beta
9757
10346
  * @param filenameExtensions - 文件扩展名
@@ -9863,7 +10452,7 @@ declare class SYS_I18n {
9863
10452
  * @public
9864
10453
  * @remarks 注意:本接口仅扩展有效,在独立脚本环境内调用将始终 `throw Error`
9865
10454
  * @param language - 语言
9866
- * @param source - 欲导入的多语言数据对象
10455
+ * @param source - 欲导��的多语言数据对象
9867
10456
  * @returns 导入是否成功
9868
10457
  */
9869
10458
  importMultilingual(language: string, source: ISYS_LanguageKeyValuePairs): boolean;
@@ -10031,7 +10620,7 @@ declare class SYS_MessageBox {
10031
10620
  *
10032
10621
  * @public
10033
10622
  * @deprecated 请使用 {@link SYS_Dialog.showConfirmationMessage} 替代
10034
- * @remarks 显示一个拥有确认和取消按钮的���认框
10623
+ * @remarks 显示一个拥有确认和取消按钮的确认框
10035
10624
  * @param content - 消息文本,支持使用 `\n` 换行
10036
10625
  * @param title - 确认框标题
10037
10626
  * @param mainButtonTitle - 主要按钮标题
@@ -10115,7 +10704,7 @@ declare class SYS_PanelControl {
10115
10704
  */
10116
10705
  closeBottomPanel(): void;
10117
10706
  /**
10118
- * 切换底部面板锁定状态
10707
+ * 切换底部面板锁定��态
10119
10708
  *
10120
10709
  * @public
10121
10710
  * @param state - 是否锁定,如若不指定则反置当前状态
@@ -10546,6 +11135,13 @@ declare type TPCB_LayersOfInner = EPCB_LayerId.INNER_1 | EPCB_LayerId.INNER_2 |
10546
11135
  */
10547
11136
  declare type TPCB_LayersOfLine = TPCB_LayersOfCopper | TPCB_LayersOfCustom | EPCB_LayerId.TOP_SILKSCREEN | EPCB_LayerId.TOP_SOLDER_MASK | EPCB_LayerId.TOP_PASTE_MASK | EPCB_LayerId.TOP_ASSEMBLY | EPCB_LayerId.BOTTOM_SILKSCREEN | EPCB_LayerId.BOTTOM_SOLDER_MASK | EPCB_LayerId.BOTTOM_PASTE_MASK | EPCB_LayerId.BOTTOM_ASSEMBLY | EPCB_LayerId.BOARD_OUTLINE | EPCB_LayerId.DOCUMENT | EPCB_LayerId.MECHANICAL | EPCB_LayerId.DRILL_DRAWING;
10548
11137
 
11138
+ /**
11139
+ * 二进制内嵌对象所属层
11140
+ *
11141
+ * @public
11142
+ */
11143
+ declare type TPCB_LayersOfObject = EPCB_LayerId.TOP_SILKSCREEN | EPCB_LayerId.BOTTOM_SILKSCREEN | EPCB_LayerId.DOCUMENT;
11144
+
10549
11145
  /**
10550
11146
  * 焊盘所属层
10551
11147
  *
@@ -10568,7 +11164,7 @@ declare type TPCB_LayersOfRegion = TPCB_LayersOfCopper | EPCB_LayerId.MULTI;
10568
11164
  declare type TPCB_LayerTypesOfInnerLayer = EPCB_LayerType.SIGNAL | EPCB_LayerType.INTERNAL_ELECTRICAL;
10569
11165
 
10570
11166
  /**
10571
- * ��多边形源数组
11167
+ * 单多边形源数组
10572
11168
  *
10573
11169
  * @public
10574
11170
  * @remarks