@jlceda/pro-api-types 0.1.100 → 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.
- package/index.d.ts +778 -199
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -595,7 +595,7 @@ declare class DMT_Schematic {
|
|
|
595
595
|
*/
|
|
596
596
|
getCurrentSchematicInfo(): Promise<IDMT_SchematicItem | undefined>;
|
|
597
597
|
/**
|
|
598
|
-
*
|
|
598
|
+
* 获取当前原��图图页的详细属性
|
|
599
599
|
*
|
|
600
600
|
* @beta
|
|
601
601
|
* @remarks 将会获取当前打开且拥有最后输入焦点的原理图图页的详细属性
|
|
@@ -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
|
|
2474
|
-
getAll: (...args: any[]) => 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
|
/**
|
|
@@ -2760,39 +2763,266 @@ declare class IPCB_PrimitiveComponent implements IPCB_Primitive {
|
|
|
2760
2763
|
/** 其它参数 */
|
|
2761
2764
|
private otherProperty?;
|
|
2762
2765
|
/* Excluded from this release type: __constructor */
|
|
2766
|
+
/* Excluded from this release type: create */
|
|
2763
2767
|
/**
|
|
2764
|
-
*
|
|
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
|
+
* 设置属性状态:层
|
|
2765
2924
|
*
|
|
2766
2925
|
* @beta
|
|
2926
|
+
* @param layer - 层
|
|
2767
2927
|
* @returns 器件图元对象
|
|
2768
2928
|
*/
|
|
2769
|
-
|
|
2929
|
+
setState_Layer(layer: TPCB_LayersOfComponent): IPCB_PrimitiveComponent;
|
|
2770
2930
|
/**
|
|
2771
|
-
*
|
|
2931
|
+
* 设置属性状态:坐标 X
|
|
2772
2932
|
*
|
|
2773
|
-
* @
|
|
2933
|
+
* @beta
|
|
2934
|
+
* @param x - 坐标 X
|
|
2935
|
+
* @returns 器件图元对象
|
|
2774
2936
|
*/
|
|
2775
|
-
|
|
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;
|
|
2776
2946
|
/**
|
|
2777
|
-
*
|
|
2947
|
+
* 设置属性状态:旋转角度
|
|
2778
2948
|
*
|
|
2779
|
-
* @
|
|
2949
|
+
* @beta
|
|
2950
|
+
* @param rotation - 旋转角度
|
|
2951
|
+
* @returns 器件图元对象
|
|
2780
2952
|
*/
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
|
|
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;
|
|
2796
3026
|
/**
|
|
2797
3027
|
* 设置属性状态:其它参数
|
|
2798
3028
|
*
|
|
@@ -2801,38 +3031,67 @@ declare class IPCB_PrimitiveComponent implements IPCB_Primitive {
|
|
|
2801
3031
|
* @returns 器件图元对象
|
|
2802
3032
|
*/
|
|
2803
3033
|
setState_OtherProperty(otherProperty: {
|
|
2804
|
-
[key: string]: string;
|
|
3034
|
+
[key: string]: string | number | boolean;
|
|
2805
3035
|
}): IPCB_PrimitiveComponent;
|
|
2806
3036
|
/**
|
|
2807
3037
|
* 将图元转换为异步图元
|
|
2808
3038
|
*
|
|
3039
|
+
* @public
|
|
3040
|
+
* @returns 器件图元对象
|
|
2809
3041
|
*/
|
|
2810
3042
|
toAsync(): IPCB_PrimitiveComponent;
|
|
2811
3043
|
/**
|
|
2812
3044
|
* 将图元转换为同步图元
|
|
2813
3045
|
*
|
|
3046
|
+
* @public
|
|
3047
|
+
* @returns 器件图元对象
|
|
2814
3048
|
*/
|
|
2815
3049
|
toSync(): IPCB_PrimitiveComponent;
|
|
2816
3050
|
/**
|
|
2817
3051
|
* 查询图元是否为异步图元
|
|
2818
3052
|
*
|
|
3053
|
+
* @public
|
|
3054
|
+
* @returns 是否为异步图元
|
|
2819
3055
|
*/
|
|
2820
3056
|
isAsync(): boolean;
|
|
2821
3057
|
/**
|
|
2822
3058
|
* 将异步图元重置为当前画布状态
|
|
2823
3059
|
*
|
|
2824
3060
|
* @beta
|
|
3061
|
+
* @returns 器件图元对象
|
|
2825
3062
|
*/
|
|
2826
3063
|
reset(): Promise<IPCB_PrimitiveComponent>;
|
|
2827
3064
|
/**
|
|
2828
3065
|
* 将对图元的更改应用到画布
|
|
2829
3066
|
*
|
|
2830
3067
|
* @beta
|
|
3068
|
+
* @returns 器件图元对象
|
|
2831
3069
|
*/
|
|
2832
3070
|
done(): Promise<IPCB_PrimitiveComponent>;
|
|
3071
|
+
/* Excluded from this release type: getAllPins */
|
|
2833
3072
|
/* Excluded from this release type: setState_Component */
|
|
2834
3073
|
}
|
|
2835
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
|
+
|
|
2836
3095
|
/**
|
|
2837
3096
|
* 尺寸标注图元
|
|
2838
3097
|
*
|
|
@@ -3411,16 +3670,223 @@ declare class IPCB_PrimitiveLine implements IPCB_Primitive {
|
|
|
3411
3670
|
private net;
|
|
3412
3671
|
/** 层 */
|
|
3413
3672
|
private layer;
|
|
3414
|
-
/** 起始位置 X */
|
|
3415
|
-
private startX;
|
|
3416
|
-
/** 起始位置 Y */
|
|
3417
|
-
private startY;
|
|
3418
|
-
/** 终止位置 X */
|
|
3419
|
-
private endX;
|
|
3420
|
-
/** 终止位置 Y */
|
|
3421
|
-
private endY;
|
|
3422
|
-
/** 线宽 */
|
|
3423
|
-
private lineWidth;
|
|
3673
|
+
/** 起始位置 X */
|
|
3674
|
+
private startX;
|
|
3675
|
+
/** 起始位置 Y */
|
|
3676
|
+
private startY;
|
|
3677
|
+
/** 终止位置 X */
|
|
3678
|
+
private endX;
|
|
3679
|
+
/** 终止位置 Y */
|
|
3680
|
+
private endY;
|
|
3681
|
+
/** 线宽 */
|
|
3682
|
+
private lineWidth;
|
|
3683
|
+
/** 是否锁定 */
|
|
3684
|
+
private primitiveLock;
|
|
3685
|
+
/* Excluded from this release type: __constructor */
|
|
3686
|
+
/* Excluded from this release type: create */
|
|
3687
|
+
/**
|
|
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;
|
|
3424
3890
|
/** 是否锁定 */
|
|
3425
3891
|
private primitiveLock;
|
|
3426
3892
|
/* Excluded from this release type: __constructor */
|
|
@@ -3436,58 +3902,72 @@ declare class IPCB_PrimitiveLine implements IPCB_Primitive {
|
|
|
3436
3902
|
* 获取属性状态:图元 ID
|
|
3437
3903
|
*
|
|
3438
3904
|
* @public
|
|
3439
|
-
* @returns
|
|
3905
|
+
* @returns 图��� ID
|
|
3440
3906
|
*/
|
|
3441
3907
|
getState_PrimitiveId(): string;
|
|
3442
3908
|
/**
|
|
3443
|
-
*
|
|
3909
|
+
* 获取属性状态:层
|
|
3444
3910
|
*
|
|
3445
3911
|
* @public
|
|
3446
|
-
* @returns
|
|
3912
|
+
* @returns 层
|
|
3447
3913
|
*/
|
|
3448
|
-
|
|
3914
|
+
getState_Layer(): TPCB_LayersOfObject;
|
|
3449
3915
|
/**
|
|
3450
|
-
*
|
|
3916
|
+
* 获取属性状态:左上点 X
|
|
3451
3917
|
*
|
|
3452
3918
|
* @public
|
|
3453
|
-
* @returns
|
|
3919
|
+
* @returns 左上点 X
|
|
3454
3920
|
*/
|
|
3455
|
-
|
|
3921
|
+
getState_TopLeftX(): number;
|
|
3456
3922
|
/**
|
|
3457
|
-
*
|
|
3923
|
+
* 获取属性状态:左上点 Y
|
|
3458
3924
|
*
|
|
3459
3925
|
* @public
|
|
3460
|
-
* @returns
|
|
3926
|
+
* @returns 左上点 Y
|
|
3461
3927
|
*/
|
|
3462
|
-
|
|
3928
|
+
getState_TopLeftY(): number;
|
|
3463
3929
|
/**
|
|
3464
|
-
*
|
|
3930
|
+
* 获取属性状态:二进制数据
|
|
3465
3931
|
*
|
|
3466
3932
|
* @public
|
|
3467
|
-
* @returns
|
|
3933
|
+
* @returns 二进制数据
|
|
3468
3934
|
*/
|
|
3469
|
-
|
|
3935
|
+
getState_BinaryData(): string;
|
|
3470
3936
|
/**
|
|
3471
|
-
*
|
|
3937
|
+
* 获取属性状态:宽
|
|
3472
3938
|
*
|
|
3473
3939
|
* @public
|
|
3474
|
-
* @returns
|
|
3940
|
+
* @returns 宽
|
|
3475
3941
|
*/
|
|
3476
|
-
|
|
3942
|
+
getState_Width(): number;
|
|
3477
3943
|
/**
|
|
3478
|
-
*
|
|
3944
|
+
* 获取属性状态:高
|
|
3479
3945
|
*
|
|
3480
3946
|
* @public
|
|
3481
|
-
* @returns
|
|
3947
|
+
* @returns 高
|
|
3482
3948
|
*/
|
|
3483
|
-
|
|
3949
|
+
getState_Height(): number;
|
|
3484
3950
|
/**
|
|
3485
|
-
*
|
|
3951
|
+
* 获取属性状态:旋转角度
|
|
3486
3952
|
*
|
|
3487
3953
|
* @public
|
|
3488
|
-
* @returns
|
|
3954
|
+
* @returns 旋转角度
|
|
3489
3955
|
*/
|
|
3490
|
-
|
|
3956
|
+
getState_Rotation(): number;
|
|
3957
|
+
/**
|
|
3958
|
+
* 获取属性状态:是否水平镜像
|
|
3959
|
+
*
|
|
3960
|
+
* @public
|
|
3961
|
+
* @returns 是否水平镜像
|
|
3962
|
+
*/
|
|
3963
|
+
getState_Mirror(): boolean;
|
|
3964
|
+
/**
|
|
3965
|
+
* 获取属性状态:文件名
|
|
3966
|
+
*
|
|
3967
|
+
* @public
|
|
3968
|
+
* @returns 文件名
|
|
3969
|
+
*/
|
|
3970
|
+
getState_FileName(): string;
|
|
3491
3971
|
/**
|
|
3492
3972
|
* 获取属性状态:是否锁定
|
|
3493
3973
|
*
|
|
@@ -3496,83 +3976,99 @@ declare class IPCB_PrimitiveLine implements IPCB_Primitive {
|
|
|
3496
3976
|
*/
|
|
3497
3977
|
getState_PrimitiveLock(): boolean;
|
|
3498
3978
|
/**
|
|
3499
|
-
*
|
|
3979
|
+
* 设置属性状态:层
|
|
3500
3980
|
*
|
|
3501
3981
|
* @beta
|
|
3502
|
-
* @param
|
|
3503
|
-
* @returns
|
|
3982
|
+
* @param layer - 层
|
|
3983
|
+
* @returns 二进制内嵌对象图元对象
|
|
3504
3984
|
*/
|
|
3505
|
-
|
|
3985
|
+
setState_Layer(layer: TPCB_LayersOfObject): IPCB_PrimitiveObject;
|
|
3506
3986
|
/**
|
|
3507
|
-
*
|
|
3987
|
+
* 设置属性状态:左上点 X
|
|
3508
3988
|
*
|
|
3509
|
-
* @
|
|
3510
|
-
* @param
|
|
3511
|
-
* @returns
|
|
3989
|
+
* @public
|
|
3990
|
+
* @param topLeftX - 左上点 X
|
|
3991
|
+
* @returns 二进制内嵌对象图元对象
|
|
3512
3992
|
*/
|
|
3513
|
-
|
|
3993
|
+
setState_TopLeftX(topLeftX: number): IPCB_PrimitiveObject;
|
|
3514
3994
|
/**
|
|
3515
|
-
*
|
|
3995
|
+
* 设置属性状态:左上点 Y
|
|
3516
3996
|
*
|
|
3517
|
-
* @
|
|
3518
|
-
* @param
|
|
3519
|
-
* @returns
|
|
3997
|
+
* @public
|
|
3998
|
+
* @param topLeftY - 左上点 Y
|
|
3999
|
+
* @returns 二进制内嵌对象图元对象
|
|
3520
4000
|
*/
|
|
3521
|
-
|
|
4001
|
+
setState_TopLeftY(topLeftY: number): IPCB_PrimitiveObject;
|
|
3522
4002
|
/**
|
|
3523
|
-
*
|
|
4003
|
+
* 设置属性状态:二进制数据
|
|
3524
4004
|
*
|
|
3525
|
-
* @
|
|
3526
|
-
* @param
|
|
3527
|
-
* @returns
|
|
4005
|
+
* @public
|
|
4006
|
+
* @param binaryData - 二进制数据
|
|
4007
|
+
* @returns 二进制内嵌对象图元对象
|
|
3528
4008
|
*/
|
|
3529
|
-
|
|
4009
|
+
setState_BinaryData(binaryData: string): IPCB_PrimitiveObject;
|
|
3530
4010
|
/**
|
|
3531
|
-
*
|
|
4011
|
+
* 设置属性状态:宽
|
|
3532
4012
|
*
|
|
3533
|
-
* @
|
|
3534
|
-
* @param
|
|
3535
|
-
* @returns
|
|
4013
|
+
* @public
|
|
4014
|
+
* @param width - 宽
|
|
4015
|
+
* @returns 二进制内嵌对象图元对象
|
|
3536
4016
|
*/
|
|
3537
|
-
|
|
4017
|
+
setState_Width(width: number): IPCB_PrimitiveObject;
|
|
3538
4018
|
/**
|
|
3539
|
-
*
|
|
4019
|
+
* 设置属性状态:高
|
|
3540
4020
|
*
|
|
3541
|
-
* @
|
|
3542
|
-
* @param
|
|
3543
|
-
* @returns
|
|
4021
|
+
* @public
|
|
4022
|
+
* @param height - 高
|
|
4023
|
+
* @returns 二进制内嵌对象图元对象
|
|
3544
4024
|
*/
|
|
3545
|
-
|
|
4025
|
+
setState_Height(height: number): IPCB_PrimitiveObject;
|
|
3546
4026
|
/**
|
|
3547
|
-
*
|
|
4027
|
+
* 设置属性状态:旋转角度
|
|
3548
4028
|
*
|
|
3549
|
-
* @
|
|
3550
|
-
* @param
|
|
3551
|
-
* @returns
|
|
4029
|
+
* @public
|
|
4030
|
+
* @param rotation - 旋转角度
|
|
4031
|
+
* @returns 二进制内嵌对象图元对象
|
|
3552
4032
|
*/
|
|
3553
|
-
|
|
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;
|
|
3554
4050
|
/**
|
|
3555
4051
|
* 设置属性状态:是否锁定
|
|
3556
4052
|
*
|
|
3557
4053
|
* @beta
|
|
3558
4054
|
* @param primitiveLock - 是否锁定
|
|
3559
|
-
* @returns
|
|
4055
|
+
* @returns 二进制内嵌对象图元对象
|
|
3560
4056
|
*/
|
|
3561
|
-
setState_PrimitiveLock(primitiveLock: boolean):
|
|
4057
|
+
setState_PrimitiveLock(primitiveLock: boolean): IPCB_PrimitiveObject;
|
|
3562
4058
|
/**
|
|
3563
4059
|
* 将图元转换为异步图元
|
|
3564
4060
|
*
|
|
3565
4061
|
* @public
|
|
3566
|
-
* @returns
|
|
4062
|
+
* @returns 二进制内嵌对象图元对象
|
|
3567
4063
|
*/
|
|
3568
|
-
toAsync():
|
|
4064
|
+
toAsync(): IPCB_PrimitiveObject;
|
|
3569
4065
|
/**
|
|
3570
4066
|
* 将图元转换为同步图元
|
|
3571
4067
|
*
|
|
3572
4068
|
* @public
|
|
3573
|
-
* @returns
|
|
4069
|
+
* @returns 二进制内嵌对象图元对象
|
|
3574
4070
|
*/
|
|
3575
|
-
toSync():
|
|
4071
|
+
toSync(): IPCB_PrimitiveObject;
|
|
3576
4072
|
/**
|
|
3577
4073
|
* 查询图元是否为异步图元
|
|
3578
4074
|
*
|
|
@@ -3580,22 +4076,8 @@ declare class IPCB_PrimitiveLine implements IPCB_Primitive {
|
|
|
3580
4076
|
* @returns 是否为异步图元
|
|
3581
4077
|
*/
|
|
3582
4078
|
isAsync(): boolean;
|
|
3583
|
-
|
|
3584
|
-
|
|
3585
|
-
*
|
|
3586
|
-
* @beta
|
|
3587
|
-
* @returns 直线图元对象
|
|
3588
|
-
*/
|
|
3589
|
-
reset(): Promise<IPCB_PrimitiveLine>;
|
|
3590
|
-
/**
|
|
3591
|
-
* 将对图元的更改应用到画布
|
|
3592
|
-
*
|
|
3593
|
-
* @beta
|
|
3594
|
-
* @returns 直线图元对象
|
|
3595
|
-
*/
|
|
3596
|
-
done(): Promise<IPCB_PrimitiveLine>;
|
|
3597
|
-
/* Excluded from this release type: getAdjacentPrimitives */
|
|
3598
|
-
/* Excluded from this release type: getEntireTrack */
|
|
4079
|
+
/* Excluded from this release type: reset */
|
|
4080
|
+
/* Excluded from this release type: done */
|
|
3599
4081
|
}
|
|
3600
4082
|
|
|
3601
4083
|
/**
|
|
@@ -3605,45 +4087,45 @@ declare class IPCB_PrimitiveLine implements IPCB_Primitive {
|
|
|
3605
4087
|
*/
|
|
3606
4088
|
declare class IPCB_PrimitivePad implements IPCB_Primitive {
|
|
3607
4089
|
/** 异步 */
|
|
3608
|
-
|
|
4090
|
+
protected async: boolean;
|
|
3609
4091
|
/** 图元类型 */
|
|
3610
|
-
|
|
4092
|
+
protected readonly primitiveType: EPCB_PrimitiveType;
|
|
3611
4093
|
/** 图元 ID */
|
|
3612
|
-
|
|
4094
|
+
protected primitiveId?: string;
|
|
3613
4095
|
/** 层 */
|
|
3614
|
-
|
|
4096
|
+
protected layer: TPCB_LayersOfPad;
|
|
3615
4097
|
/** 焊盘编号 */
|
|
3616
|
-
|
|
4098
|
+
protected padNumber: string;
|
|
3617
4099
|
/** 位置 X */
|
|
3618
|
-
|
|
4100
|
+
protected x: number;
|
|
3619
4101
|
/** 位置 Y */
|
|
3620
|
-
|
|
4102
|
+
protected y: number;
|
|
3621
4103
|
/** 旋转角度 */
|
|
3622
|
-
|
|
4104
|
+
protected rotation: number;
|
|
3623
4105
|
/** 焊盘外形 */
|
|
3624
|
-
|
|
4106
|
+
protected pad?: TPCB_PrimitivePadShape;
|
|
3625
4107
|
/** 网络名称 */
|
|
3626
|
-
|
|
4108
|
+
protected net?: string;
|
|
3627
4109
|
/** 孔 */
|
|
3628
|
-
|
|
4110
|
+
protected hole: TPCB_PrimitivePadHole | null;
|
|
3629
4111
|
/** 孔偏移 X */
|
|
3630
|
-
|
|
4112
|
+
protected holeOffsetX: number;
|
|
3631
4113
|
/** 孔偏移 Y */
|
|
3632
|
-
|
|
4114
|
+
protected holeOffsetY: number;
|
|
3633
4115
|
/** 孔相对于焊盘的旋转角度 */
|
|
3634
|
-
|
|
4116
|
+
protected holeRotation: number;
|
|
3635
4117
|
/** 是否金属化孔壁 */
|
|
3636
|
-
|
|
4118
|
+
protected metallization: boolean;
|
|
3637
4119
|
/** 焊盘功能 */
|
|
3638
|
-
|
|
4120
|
+
protected padFunction: EPCB_PrimitivePadFunction;
|
|
3639
4121
|
/** 特殊焊盘外形 */
|
|
3640
|
-
|
|
4122
|
+
protected specialPad?: TPCB_PrimitiveSpecialPadShape;
|
|
3641
4123
|
/** 阻焊/助焊扩展 */
|
|
3642
|
-
|
|
4124
|
+
protected solderMaskAndPasteMaskExpansion: IPCB_PrimitiveSolderMaskAndPasteMaskExpansion | null;
|
|
3643
4125
|
/** 热焊优化参数 */
|
|
3644
|
-
|
|
4126
|
+
protected heatWelding: IPCB_PrimitivePadHeatWelding | null;
|
|
3645
4127
|
/** 是否锁定 */
|
|
3646
|
-
|
|
4128
|
+
protected primitiveLock: boolean;
|
|
3647
4129
|
/* Excluded from this release type: __constructor */
|
|
3648
4130
|
/**
|
|
3649
4131
|
* 在 PCB 画布中创建图元
|
|
@@ -3994,7 +4476,7 @@ declare class IPCB_PrimitivePad implements IPCB_Primitive {
|
|
|
3994
4476
|
*
|
|
3995
4477
|
* @public
|
|
3996
4478
|
* @remarks
|
|
3997
|
-
* 当连接方式({@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})时,发散间距、发散线宽、发散角度��设置将被忽略
|
|
3998
4480
|
*/
|
|
3999
4481
|
declare interface IPCB_PrimitivePadHeatWelding {
|
|
4000
4482
|
/** 连接方式 */
|
|
@@ -4805,8 +5287,8 @@ declare interface ISCH_PrimitiveAPI {
|
|
|
4805
5287
|
(primitiveIds: string): ISCH_Primitive | undefined | Promise<ISCH_Primitive | undefined>;
|
|
4806
5288
|
(primitiveIds: Array<string>): Array<ISCH_Primitive> | Promise<Array<ISCH_Primitive>>;
|
|
4807
5289
|
};
|
|
4808
|
-
getAllPrimitiveId: (...args: any[]) => Array<string> | Promise<Array<string
|
|
4809
|
-
getAll: (...args: any[]) => 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>>;
|
|
4810
5292
|
}
|
|
4811
5293
|
|
|
4812
5294
|
/**
|
|
@@ -5215,7 +5697,7 @@ declare class ISCH_PrimitiveComponent implements ISCH_Primitive {
|
|
|
5215
5697
|
uuid: string;
|
|
5216
5698
|
} | undefined;
|
|
5217
5699
|
/**
|
|
5218
|
-
*
|
|
5700
|
+
* 获取属性状态:关联库��装
|
|
5219
5701
|
*
|
|
5220
5702
|
* @public
|
|
5221
5703
|
* @returns 关联库封装
|
|
@@ -5280,7 +5762,7 @@ declare class ISCH_PrimitiveComponent implements ISCH_Primitive {
|
|
|
5280
5762
|
* @returns 其它参数
|
|
5281
5763
|
*/
|
|
5282
5764
|
getState_OtherProperty(): {
|
|
5283
|
-
[key: string]: string;
|
|
5765
|
+
[key: string]: string | number | boolean;
|
|
5284
5766
|
} | undefined;
|
|
5285
5767
|
/**
|
|
5286
5768
|
* 设置属性状态:坐标 X
|
|
@@ -5402,7 +5884,7 @@ declare class ISCH_PrimitiveComponent implements ISCH_Primitive {
|
|
|
5402
5884
|
* @returns 器件图元对象
|
|
5403
5885
|
*/
|
|
5404
5886
|
setState_OtherProperty(otherProperty: {
|
|
5405
|
-
[key: string]: string;
|
|
5887
|
+
[key: string]: string | number | boolean;
|
|
5406
5888
|
}): ISCH_PrimitiveComponent;
|
|
5407
5889
|
/**
|
|
5408
5890
|
* 将图元转换为异步图元
|
|
@@ -5439,65 +5921,73 @@ declare class ISCH_PrimitiveComponent implements ISCH_Primitive {
|
|
|
5439
5921
|
* @returns 器件图元对象
|
|
5440
5922
|
*/
|
|
5441
5923
|
done(): Promise<ISCH_PrimitiveComponent>;
|
|
5924
|
+
/* Excluded from this release type: getAllPins */
|
|
5442
5925
|
/* Excluded from this release type: setState_Component */
|
|
5443
5926
|
/* Excluded from this release type: setState_SubPartName */
|
|
5444
5927
|
}
|
|
5445
5928
|
|
|
5446
5929
|
/**
|
|
5447
|
-
*
|
|
5930
|
+
* 器件引脚图元
|
|
5448
5931
|
*
|
|
5449
5932
|
* @public
|
|
5933
|
+
* @remarks
|
|
5934
|
+
* 器件引脚图元是一个特殊的图元,它指的是在原理图画布上关联到符号的引脚
|
|
5935
|
+
*
|
|
5936
|
+
* 器件引脚图元仅可更改 `pinNumber` 属性,其它所有属性均为只读,
|
|
5937
|
+
* 并且你只能通过 {@link SCH_PrimitiveComponent.getAllPinsByPrimitiveId | 器件类的 getAllPinsByPrimitiveId 方法} 或 {@link ISCH_PrimitiveComponent.getAllPins | 器件图元的 getAllPins 方法} 获取到器件引脚图元
|
|
5450
5938
|
*/
|
|
5451
|
-
declare
|
|
5452
|
-
|
|
5453
|
-
readonly
|
|
5454
|
-
|
|
5455
|
-
|
|
5456
|
-
|
|
5457
|
-
|
|
5458
|
-
|
|
5459
|
-
|
|
5460
|
-
|
|
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 */
|
|
5461
5954
|
}
|
|
5462
5955
|
|
|
5463
5956
|
/**
|
|
5464
5957
|
* 引脚图元
|
|
5465
5958
|
*
|
|
5466
5959
|
* @public
|
|
5960
|
+
* @remarks 引脚图元仅符号编辑器可用,在原理图图页内,关联到符号的引脚被称为 {@link ISCH_PrimitiveComponentPin | 器件引脚图元}
|
|
5467
5961
|
*/
|
|
5468
5962
|
declare class ISCH_PrimitivePin implements ISCH_Primitive {
|
|
5469
5963
|
/** 异步 */
|
|
5470
|
-
|
|
5964
|
+
protected async: boolean;
|
|
5471
5965
|
/** 图元类型 */
|
|
5472
|
-
|
|
5966
|
+
protected readonly primitiveType: ESCH_PrimitiveType;
|
|
5473
5967
|
/** 图元 ID */
|
|
5474
|
-
|
|
5968
|
+
protected primitiveId?: string;
|
|
5475
5969
|
/** 坐标 X */
|
|
5476
|
-
|
|
5970
|
+
protected x: number;
|
|
5477
5971
|
/** 坐标 Y */
|
|
5478
|
-
|
|
5972
|
+
protected y: number;
|
|
5479
5973
|
/** 引脚编号 */
|
|
5480
|
-
|
|
5974
|
+
protected pinNumber: string;
|
|
5481
5975
|
/** 引脚名称 */
|
|
5482
|
-
|
|
5976
|
+
protected pinName: string;
|
|
5483
5977
|
/** 旋转角度 */
|
|
5484
|
-
|
|
5978
|
+
protected rotation: number;
|
|
5485
5979
|
/** 引脚长度 */
|
|
5486
|
-
|
|
5980
|
+
protected pinLength: number;
|
|
5487
5981
|
/** 引脚颜色 */
|
|
5488
|
-
|
|
5982
|
+
protected pinColor: string | null;
|
|
5489
5983
|
/** 引脚外形 */
|
|
5490
|
-
|
|
5984
|
+
protected pinShape: string;
|
|
5491
5985
|
/** 引脚类型 */
|
|
5492
|
-
|
|
5986
|
+
protected pinType: ESCH_PrimitivePinType;
|
|
5987
|
+
/** 其它参数 */
|
|
5988
|
+
private otherProperty?;
|
|
5493
5989
|
/* Excluded from this release type: __constructor */
|
|
5494
|
-
|
|
5495
|
-
* 在原理图画布中创建图元
|
|
5496
|
-
*
|
|
5497
|
-
* @beta
|
|
5498
|
-
* @returns 引脚图元对象
|
|
5499
|
-
*/
|
|
5500
|
-
create(): Promise<ISCH_PrimitivePin>;
|
|
5990
|
+
/* Excluded from this release type: create */
|
|
5501
5991
|
getState_PrimitiveType(): ESCH_PrimitiveType;
|
|
5502
5992
|
getState_PrimitiveId(): string;
|
|
5503
5993
|
getState_X(): number;
|
|
@@ -5509,6 +5999,15 @@ declare class ISCH_PrimitivePin implements ISCH_Primitive {
|
|
|
5509
5999
|
getState_PinColor(): string | null;
|
|
5510
6000
|
getState_PinShape(): string;
|
|
5511
6001
|
getState_pinType(): ESCH_PrimitivePinType;
|
|
6002
|
+
/**
|
|
6003
|
+
* 获取属性状态:其它参数
|
|
6004
|
+
*
|
|
6005
|
+
* @public
|
|
6006
|
+
* @returns 其它参数
|
|
6007
|
+
*/
|
|
6008
|
+
getState_OtherProperty(): {
|
|
6009
|
+
[key: string]: string | number | boolean;
|
|
6010
|
+
} | undefined;
|
|
5512
6011
|
setState_X(x: number): ISCH_PrimitivePin;
|
|
5513
6012
|
setState_Y(y: number): ISCH_PrimitivePin;
|
|
5514
6013
|
setState_PinNumber(pinNumber: string): ISCH_PrimitivePin;
|
|
@@ -5516,8 +6015,18 @@ declare class ISCH_PrimitivePin implements ISCH_Primitive {
|
|
|
5516
6015
|
setState_Rotation(rotation: number): ISCH_PrimitivePin;
|
|
5517
6016
|
setState_PinLength(pinLength: number): ISCH_PrimitivePin;
|
|
5518
6017
|
setState_PinColor(pinColor: string | null): ISCH_PrimitivePin;
|
|
5519
|
-
setState_PinShape(pinShape: string):
|
|
6018
|
+
setState_PinShape(pinShape: string): ISCH_PrimitivePin;
|
|
5520
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;
|
|
5521
6030
|
/**
|
|
5522
6031
|
* 将图元转换为异步图元
|
|
5523
6032
|
*/
|
|
@@ -5541,7 +6050,7 @@ declare class ISCH_PrimitivePin implements ISCH_Primitive {
|
|
|
5541
6050
|
*
|
|
5542
6051
|
* @beta
|
|
5543
6052
|
*/
|
|
5544
|
-
done(): ISCH_PrimitivePin
|
|
6053
|
+
done(): Promise<ISCH_PrimitivePin>;
|
|
5545
6054
|
}
|
|
5546
6055
|
|
|
5547
6056
|
/**
|
|
@@ -5878,7 +6387,7 @@ declare interface ISYS_FileSystemFileList {
|
|
|
5878
6387
|
isDirectory: boolean;
|
|
5879
6388
|
/** 目录子文件 */
|
|
5880
6389
|
subFiles?: Array<ISYS_FileSystemFileList>;
|
|
5881
|
-
/**
|
|
6390
|
+
/** 相对路径���不包含前面的传入路径和文件名(当没有传入路径时,不存在相对路径),且前后均无斜杠 */
|
|
5882
6391
|
relativePath?: string;
|
|
5883
6392
|
/** 完整路径,包含文件名的绝对路径 */
|
|
5884
6393
|
fullPath: string;
|
|
@@ -5998,7 +6507,7 @@ declare class LIB_3DModel {
|
|
|
5998
6507
|
*
|
|
5999
6508
|
* @beta
|
|
6000
6509
|
* @param key - 搜索关键字
|
|
6001
|
-
* @param libraryUuid - 库 UUID
|
|
6510
|
+
* @param libraryUuid - 库 UUID,默认为系统库��可以使用 {@link LIB_LibrariesList} 内的接口获取
|
|
6002
6511
|
* @param classification - 分类,默认为全部
|
|
6003
6512
|
* @param itemsOfPage - 一页搜索结果的数量
|
|
6004
6513
|
* @param page - 页数
|
|
@@ -6092,7 +6601,7 @@ declare class LIB_Cbb {
|
|
|
6092
6601
|
* 在编辑器打开复用模块符号
|
|
6093
6602
|
*
|
|
6094
6603
|
* @beta
|
|
6095
|
-
* @param cbbUuid -
|
|
6604
|
+
* @param cbbUuid - 复��模块 UUID
|
|
6096
6605
|
* @param libraryUuid - 库 UUID,可以使用 {@link LIB_LibrariesList} 内的接口获取
|
|
6097
6606
|
* @param splitScreenId - 分屏 ID,不填写则默认在最后输入焦点的分屏内打开,可以使用 {@link DMT_EditorControl} 内的接口获取
|
|
6098
6607
|
* @returns 标签页 ID,对应 {@link IDMT_EditorTabItem.tabId},可使用 {@link DMT_EditorControl.getSplitScreenIdByTabId} 获取到分屏 ID
|
|
@@ -6192,7 +6701,7 @@ declare class LIB_Classification {
|
|
|
6192
6701
|
*/
|
|
6193
6702
|
deleteByUuid(libraryUuid: string, classificationUuid: string): Promise<boolean>;
|
|
6194
6703
|
/**
|
|
6195
|
-
*
|
|
6704
|
+
* 删除指定索���的分类
|
|
6196
6705
|
*
|
|
6197
6706
|
* @beta
|
|
6198
6707
|
* @param classificationIndex - 分类索引
|
|
@@ -6289,7 +6798,7 @@ declare class LIB_Device {
|
|
|
6289
6798
|
*
|
|
6290
6799
|
* @beta
|
|
6291
6800
|
* @param key - 搜索关键字
|
|
6292
|
-
* @param libraryUuid - 库 UUID
|
|
6801
|
+
* @param libraryUuid - 库 UUID,默认为系统库,可以��用 {@link LIB_LibrariesList} 内的接口获取
|
|
6293
6802
|
* @param classification - 分类,默认为全部
|
|
6294
6803
|
* @param symbolType - 符号类型,默认为全部
|
|
6295
6804
|
* @param itemsOfPage - 一页搜索结果的数量
|
|
@@ -6437,7 +6946,14 @@ declare class LIB_LibrariesList {
|
|
|
6437
6946
|
* @returns 个人库的 UUID
|
|
6438
6947
|
*/
|
|
6439
6948
|
getPersonalLibraryUuid(): Promise<string | undefined>;
|
|
6440
|
-
|
|
6949
|
+
/**
|
|
6950
|
+
* 获取工程库的 UUID
|
|
6951
|
+
*
|
|
6952
|
+
* @beta
|
|
6953
|
+
* @remarks 在未打开工程的情况下调用将返回 `undefined`
|
|
6954
|
+
* @returns 工程库的 UUID
|
|
6955
|
+
*/
|
|
6956
|
+
getProjectLibraryUuid(): Promise<string | undefined>;
|
|
6441
6957
|
/**
|
|
6442
6958
|
* 获取收藏库的 UUID
|
|
6443
6959
|
*
|
|
@@ -6637,9 +7153,10 @@ declare class PCB_Document {
|
|
|
6637
7153
|
* 从原理图导入变更
|
|
6638
7154
|
*
|
|
6639
7155
|
* @public
|
|
6640
|
-
* @
|
|
7156
|
+
* @param uuid - 原理图 UUID,默认为关联在同一个 Board 下的原理图
|
|
7157
|
+
* @returns 导入操作是否成功,导入失败或未传入原理图 UUID 的游离 PCB 将返回 `false`
|
|
6641
7158
|
*/
|
|
6642
|
-
importChanges(uuid
|
|
7159
|
+
importChanges(uuid?: string): Promise<boolean>;
|
|
6643
7160
|
/**
|
|
6644
7161
|
* 导入旧版自动布线文件(JSON)
|
|
6645
7162
|
*
|
|
@@ -6756,7 +7273,7 @@ declare class PCB_Document {
|
|
|
6756
7273
|
* 即 `setCanvasOrigin(0, 0)`;
|
|
6757
7274
|
*
|
|
6758
7275
|
* 此处的单位为数据层面单位,在跨度上等同于画布层面的 mil
|
|
6759
|
-
* @param offsetX -
|
|
7276
|
+
* @param offsetX - ��布原点相对于数据原点的 X 坐标偏移
|
|
6760
7277
|
* @param offsetY - 画布原点相对于数据原点的 Y 坐标偏移
|
|
6761
7278
|
* @returns 操作是否成功
|
|
6762
7279
|
*/
|
|
@@ -6769,13 +7286,17 @@ declare class PCB_Document {
|
|
|
6769
7286
|
* 本接口在前端画布上定位到指定的数据层面坐标;
|
|
6770
7287
|
*
|
|
6771
7288
|
* 如果希望在进行本操作时前端画布坐标能与传入数据一致,
|
|
6772
|
-
* 建议调用 {@link PCB_Document.setCanvasOrigin}
|
|
7289
|
+
* 建议调用 {@link PCB_Document.setCanvasOrigin} 方法并设置偏移量为零;
|
|
7290
|
+
*
|
|
7291
|
+
* 此处的单位为数据层面单位,在跨度上等同于画布层面的 mil
|
|
6773
7292
|
* @param x - 坐标 X
|
|
6774
7293
|
* @param y - 坐标 Y
|
|
6775
7294
|
* @returns 操作是否成功
|
|
6776
7295
|
*/
|
|
6777
7296
|
navigateToCoordinates(x: number, y: number): Promise<boolean>;
|
|
6778
7297
|
/* Excluded from this release type: navigateToRegion */
|
|
7298
|
+
/* Excluded from this release type: getPrimitiveAtPoint */
|
|
7299
|
+
/* Excluded from this release type: getPrimitivesInRegion */
|
|
6779
7300
|
}
|
|
6780
7301
|
|
|
6781
7302
|
/**
|
|
@@ -6989,7 +7510,7 @@ declare class PCB_Drc {
|
|
|
6989
7510
|
*/
|
|
6990
7511
|
getAllNetClasses(): Promise<Array<IPCB_NetClassItem>>;
|
|
6991
7512
|
/**
|
|
6992
|
-
*
|
|
7513
|
+
* 创建���分对
|
|
6993
7514
|
*
|
|
6994
7515
|
* @beta
|
|
6995
7516
|
* @param differentialPairName - 差分对名称
|
|
@@ -7600,14 +8121,33 @@ declare class PCB_Net {
|
|
|
7600
8121
|
* @returns 操作是否成功
|
|
7601
8122
|
*/
|
|
7602
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>;
|
|
7603
8140
|
/**
|
|
7604
8141
|
* 高亮网络
|
|
7605
8142
|
*
|
|
7606
8143
|
* @beta
|
|
8144
|
+
* @remarks 本接口的返回值为结果导向,如果该网络原先已高亮,也将返回 `true`
|
|
7607
8145
|
* @param net - 网络名称
|
|
7608
8146
|
* @returns 操作是否成功
|
|
7609
8147
|
*/
|
|
7610
8148
|
highlightNet(net: string): Promise<boolean>;
|
|
8149
|
+
/* Excluded from this release type: unhighlightNet */
|
|
8150
|
+
/* Excluded from this release type: unhighlightAllNets */
|
|
7611
8151
|
/**
|
|
7612
8152
|
* 获取网表
|
|
7613
8153
|
*
|
|
@@ -7803,9 +8343,17 @@ declare class PCB_PrimitiveComponent implements IPCB_PrimitiveAPI {
|
|
|
7803
8343
|
*
|
|
7804
8344
|
* @beta
|
|
7805
8345
|
* @param primitiveIds - 器件的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
|
|
7806
|
-
* @returns
|
|
8346
|
+
* @returns 器件图元对象,`undefined` 表示获取失败
|
|
7807
8347
|
*/
|
|
7808
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
|
+
*/
|
|
7809
8357
|
get(primitiveIds: Array<string>): Promise<Array<IPCB_PrimitiveComponent>>;
|
|
7810
8358
|
/**
|
|
7811
8359
|
* 获取所有器件的图元 ID
|
|
@@ -7825,6 +8373,7 @@ declare class PCB_PrimitiveComponent implements IPCB_PrimitiveAPI {
|
|
|
7825
8373
|
* @returns 器件图元对象数组
|
|
7826
8374
|
*/
|
|
7827
8375
|
getAll(layer?: TPCB_LayersOfComponent, primitiveLock?: boolean): Promise<Array<IPCB_PrimitiveComponent>>;
|
|
8376
|
+
/* Excluded from this release type: getAllPinsByPrimitiveId */
|
|
7828
8377
|
/* Excluded from this release type: placeComponentWithMouse */
|
|
7829
8378
|
}
|
|
7830
8379
|
|
|
@@ -7935,6 +8484,7 @@ declare class PCB_PrimitiveImage implements IPCB_PrimitiveAPI {
|
|
|
7935
8484
|
* 创建图像
|
|
7936
8485
|
*
|
|
7937
8486
|
* @public
|
|
8487
|
+
* @remarks 如需创建彩色丝印图像,请使用 {@link PCB_PrimitiveObject | 二进制内嵌对象图元类}
|
|
7938
8488
|
* @param x - BBox 左上点坐标 X
|
|
7939
8489
|
* @param y - BBox 左上点坐标 Y
|
|
7940
8490
|
* @param complexPolygon - 图像源数据(复杂多边形),可以使用 {@link PCB_MathPolygon.convertImageToComplexPolygon} 方法将图像文件转换为复杂多边形数据
|
|
@@ -8097,6 +8647,22 @@ declare class PCB_PrimitiveLine implements IPCB_PrimitiveAPI {
|
|
|
8097
8647
|
getAll(net?: string, layer?: TPCB_LayersOfLine, primitiveLock?: boolean): Promise<Array<IPCB_PrimitiveLine>>;
|
|
8098
8648
|
}
|
|
8099
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
|
+
|
|
8100
8666
|
/**
|
|
8101
8667
|
* PCB & 封装 / 焊盘图元类
|
|
8102
8668
|
*
|
|
@@ -8486,6 +9052,10 @@ declare class SCH_Document {
|
|
|
8486
9052
|
* @returns 保存操作是否成功,保存失败、上传失败等错误均返回 `false`
|
|
8487
9053
|
*/
|
|
8488
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 */
|
|
8489
9059
|
}
|
|
8490
9060
|
|
|
8491
9061
|
/**
|
|
@@ -8812,7 +9382,7 @@ declare class SCH_PrimitiveCircle implements ISCH_PrimitiveAPI {
|
|
|
8812
9382
|
* @param centerY - 圆心 Y
|
|
8813
9383
|
* @param radius - 半径
|
|
8814
9384
|
* @param color - 颜色,`null` 表示默认
|
|
8815
|
-
* @param fillColor - 填充颜色,`none` 表示无填充,`null`
|
|
9385
|
+
* @param fillColor - 填充颜色,`none` 表示无填充,`null` 表示���认
|
|
8816
9386
|
* @param lineWidth - 线宽,范围 `1-10`,`null` 表示默认
|
|
8817
9387
|
* @param lineType - 线型,`0` 实线,`1` 短划线,`2` 点线,`3` 点划线,`null` 表示默认
|
|
8818
9388
|
* @returns 圆图元对象
|
|
@@ -9059,7 +9629,7 @@ declare class SCH_PrimitiveComponent implements ISCH_PrimitiveAPI {
|
|
|
9059
9629
|
supplier?: string | null;
|
|
9060
9630
|
supplierId?: string | null;
|
|
9061
9631
|
otherProperty?: {
|
|
9062
|
-
[key: string]: string;
|
|
9632
|
+
[key: string]: string | number | boolean;
|
|
9063
9633
|
};
|
|
9064
9634
|
}): Promise<ISCH_PrimitiveComponent | undefined>;
|
|
9065
9635
|
/**
|
|
@@ -9084,6 +9654,7 @@ declare class SCH_PrimitiveComponent implements ISCH_PrimitiveAPI {
|
|
|
9084
9654
|
*
|
|
9085
9655
|
* @beta
|
|
9086
9656
|
* @param componentType - 器件类型
|
|
9657
|
+
* @param allSchematicPages - 是否获取所有原理图图页的器件
|
|
9087
9658
|
* @returns 器件的图元 ID 数组
|
|
9088
9659
|
*/
|
|
9089
9660
|
getAllPrimitiveId(componentType?: string, allSchematicPages?: boolean): Promise<Array<string>>;
|
|
@@ -9092,6 +9663,7 @@ declare class SCH_PrimitiveComponent implements ISCH_PrimitiveAPI {
|
|
|
9092
9663
|
*
|
|
9093
9664
|
* @beta
|
|
9094
9665
|
* @param componentType - 器件类型
|
|
9666
|
+
* @param allSchematicPages - 是否获取所有原理图图页的器件
|
|
9095
9667
|
* @returns 器件图元对象数组
|
|
9096
9668
|
*/
|
|
9097
9669
|
getAll(componentType?: string, allSchematicPages?: boolean): Promise<Array<ISCH_PrimitiveComponent>>;
|
|
@@ -9281,7 +9853,7 @@ declare class SCH_PrimitiveRectangle implements ISCH_PrimitiveAPI {
|
|
|
9281
9853
|
* @param height - 高
|
|
9282
9854
|
* @param cornerRadius - 圆角半径
|
|
9283
9855
|
* @param rotation - 旋转角度,绕左上点旋转,可选 `0` `90` `180` `270`
|
|
9284
|
-
* @param color - 颜色,`null`
|
|
9856
|
+
* @param color - 颜色,`null` ��示默认
|
|
9285
9857
|
* @param fillColor - 填充颜色,`none` 表示无填充,`null` 表示默认
|
|
9286
9858
|
* @param lineWidth - 线宽,范围 `1-10`,`null` 表示默认
|
|
9287
9859
|
* @param lineType - 线型,`0` 实线,`1` 短划线,`2` 点线,`3` 点划线,`null` 表示默认
|
|
@@ -9683,7 +10255,7 @@ declare class SYS_FileManager {
|
|
|
9683
10255
|
* @remarks 可以使用 {@link SYS_FileSystem.saveFile} 接口将文件导出到本地文件系统
|
|
9684
10256
|
* @param fileName - 文件名
|
|
9685
10257
|
* @param password - 加密密码
|
|
9686
|
-
* @returns 文档文件数据,`undefined`
|
|
10258
|
+
* @returns 文档文件数据,`undefined` 表示当前未打开文档或数据获��失败
|
|
9687
10259
|
*/
|
|
9688
10260
|
getDocumentFile(fileName?: string, password?: string): Promise<File | undefined>;
|
|
9689
10261
|
/**
|
|
@@ -9768,7 +10340,7 @@ declare class SYS_FileSystem {
|
|
|
9768
10340
|
private extensionUuid?;
|
|
9769
10341
|
/* Excluded from this release type: __constructor */
|
|
9770
10342
|
/**
|
|
9771
|
-
*
|
|
10343
|
+
* 打开读入文件���口
|
|
9772
10344
|
*
|
|
9773
10345
|
* @beta
|
|
9774
10346
|
* @param filenameExtensions - 文件扩展名
|
|
@@ -9779,7 +10351,7 @@ declare class SYS_FileSystem {
|
|
|
9779
10351
|
* 保存文件
|
|
9780
10352
|
*
|
|
9781
10353
|
* @public
|
|
9782
|
-
* @remarks 调用浏览器下载接口或 Electron
|
|
10354
|
+
* @remarks 调用浏览器下载接口或 Electron 保存文件接口,将传入的文件流保存到本地
|
|
9783
10355
|
* @param fileData - 文件数据
|
|
9784
10356
|
* @param fileName - 文件名称
|
|
9785
10357
|
*/
|
|
@@ -9880,7 +10452,7 @@ declare class SYS_I18n {
|
|
|
9880
10452
|
* @public
|
|
9881
10453
|
* @remarks 注意:本接口仅扩展有效,在独立脚本环境内调用将始终 `throw Error`
|
|
9882
10454
|
* @param language - 语言
|
|
9883
|
-
* @param source -
|
|
10455
|
+
* @param source - 欲导��的多语言数据对象
|
|
9884
10456
|
* @returns 导入是否成功
|
|
9885
10457
|
*/
|
|
9886
10458
|
importMultilingual(language: string, source: ISYS_LanguageKeyValuePairs): boolean;
|
|
@@ -10132,7 +10704,7 @@ declare class SYS_PanelControl {
|
|
|
10132
10704
|
*/
|
|
10133
10705
|
closeBottomPanel(): void;
|
|
10134
10706
|
/**
|
|
10135
|
-
*
|
|
10707
|
+
* 切换底部面板锁定��态
|
|
10136
10708
|
*
|
|
10137
10709
|
* @public
|
|
10138
10710
|
* @param state - 是否锁定,如若不指定则反置当前状态
|
|
@@ -10563,6 +11135,13 @@ declare type TPCB_LayersOfInner = EPCB_LayerId.INNER_1 | EPCB_LayerId.INNER_2 |
|
|
|
10563
11135
|
*/
|
|
10564
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;
|
|
10565
11137
|
|
|
11138
|
+
/**
|
|
11139
|
+
* 二进制内嵌对象所属层
|
|
11140
|
+
*
|
|
11141
|
+
* @public
|
|
11142
|
+
*/
|
|
11143
|
+
declare type TPCB_LayersOfObject = EPCB_LayerId.TOP_SILKSCREEN | EPCB_LayerId.BOTTOM_SILKSCREEN | EPCB_LayerId.DOCUMENT;
|
|
11144
|
+
|
|
10566
11145
|
/**
|
|
10567
11146
|
* 焊盘所属层
|
|
10568
11147
|
*
|