@jlceda/pro-api-types 0.1.112 → 0.1.120
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 +2372 -549
- package/package.json +10 -10
package/index.d.ts
CHANGED
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
declare interface BusNetGroupCreateOptions {
|
|
2
|
-
net: string;
|
|
3
|
-
line: Array<number> | Array<Array<number>>;
|
|
4
|
-
color: string | null;
|
|
5
|
-
lineWidth: number | null;
|
|
6
|
-
lineType: number | null;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
1
|
/**
|
|
10
2
|
* 文档树 / 板子管理类
|
|
11
3
|
*
|
|
@@ -505,7 +497,7 @@ declare class DMT_Schematic {
|
|
|
505
497
|
* 修改原理图名称
|
|
506
498
|
*
|
|
507
499
|
* @beta
|
|
508
|
-
* @remarks 如若原理图已关联复用模块(在工程库内存在同名的复用模块符号),则修改名称时将同步修改复用模块符号名称与关联 PCB
|
|
500
|
+
* @remarks 如若原理图已关联复用模块(在工程库内存在同名的复用模块符号),则修改名称时将同步修改复用模块符号名称与关联 PCB 名称
|
|
509
501
|
* @param schematicUuid - 原理图 UUID
|
|
510
502
|
* @param schematicName - 原理图名称
|
|
511
503
|
* @returns 是否修改成功
|
|
@@ -772,6 +764,7 @@ declare class EDA {
|
|
|
772
764
|
sch_PrimitiveBus: SCH_PrimitiveBus;
|
|
773
765
|
sch_PrimitiveCircle: SCH_PrimitiveCircle;
|
|
774
766
|
sch_PrimitiveComponent: SCH_PrimitiveComponent;
|
|
767
|
+
sch_PrimitiveComponent3: SCH_PrimitiveComponent3;
|
|
775
768
|
sch_PrimitivePin: SCH_PrimitivePin;
|
|
776
769
|
sch_PrimitivePolygon: SCH_PrimitivePolygon;
|
|
777
770
|
sch_PrimitiveRectangle: SCH_PrimitiveRectangle;
|
|
@@ -792,10 +785,12 @@ declare class EDA {
|
|
|
792
785
|
sys_Message: SYS_Message;
|
|
793
786
|
sys_MessageBox: SYS_MessageBox;
|
|
794
787
|
sys_PanelControl: SYS_PanelControl;
|
|
788
|
+
sys_Setting: SYS_Setting;
|
|
795
789
|
sys_ShortcutKey: SYS_ShortcutKey;
|
|
796
790
|
sys_Storage: SYS_Storage;
|
|
797
791
|
sys_Timer: SYS_Timer;
|
|
798
792
|
sys_ToastMessage: SYS_ToastMessage;
|
|
793
|
+
sys_Tool: SYS_Tool;
|
|
799
794
|
sys_Unit: SYS_Unit;
|
|
800
795
|
sys_WebSocket: SYS_WebSocket;
|
|
801
796
|
sys_Window: SYS_Window;
|
|
@@ -1186,7 +1181,7 @@ declare enum EPCB_LayerId {
|
|
|
1186
1181
|
CUSTOM_28 = 98,
|
|
1187
1182
|
/** 自定义层 29 */
|
|
1188
1183
|
CUSTOM_29 = 99,
|
|
1189
|
-
/**
|
|
1184
|
+
/** 自定义层 30 */
|
|
1190
1185
|
CUSTOM_30 = 100,
|
|
1191
1186
|
/** 夹层(介电基板)1 */
|
|
1192
1187
|
SUBSTRATE_1 = 101,
|
|
@@ -1468,6 +1463,68 @@ declare enum ESCH_PrimitiveComponentType {
|
|
|
1468
1463
|
NET_LABEL = "netlabel"
|
|
1469
1464
|
}
|
|
1470
1465
|
|
|
1466
|
+
/**
|
|
1467
|
+
* 器件类型
|
|
1468
|
+
*
|
|
1469
|
+
* @public
|
|
1470
|
+
*/
|
|
1471
|
+
declare enum ESCH_PrimitiveComponentType_2 {
|
|
1472
|
+
/** 元件 */
|
|
1473
|
+
COMPONENT = "part",
|
|
1474
|
+
/** 图纸 */
|
|
1475
|
+
DRAWING = "Drawing",
|
|
1476
|
+
/** 网络标识 */
|
|
1477
|
+
NET_FLAG = "netflag",
|
|
1478
|
+
/** 网络端口 */
|
|
1479
|
+
NET_PORT = "netport",
|
|
1480
|
+
/** 无电气标识 */
|
|
1481
|
+
NON_ELECTRICAL_FLAG = "nonElectrical_symbol",
|
|
1482
|
+
/** 短接标识 */
|
|
1483
|
+
SHORT_CIRCUIT_FLAG = "short_symbol",
|
|
1484
|
+
/** 网络标签 */
|
|
1485
|
+
NET_LABEL = "netlabel"
|
|
1486
|
+
}
|
|
1487
|
+
|
|
1488
|
+
/**
|
|
1489
|
+
* 填充样式
|
|
1490
|
+
*
|
|
1491
|
+
* @public
|
|
1492
|
+
*/
|
|
1493
|
+
declare enum ESCH_PrimitiveFillStyle {
|
|
1494
|
+
/** 无 */
|
|
1495
|
+
NONE = "None",
|
|
1496
|
+
/** 实心 */
|
|
1497
|
+
SOLID = "Solid",
|
|
1498
|
+
/** 网格 */
|
|
1499
|
+
GRID = "Grid",
|
|
1500
|
+
/** 横线 */
|
|
1501
|
+
HORIZONTAL_LINE = "Horizontal Line",
|
|
1502
|
+
/** 竖线 */
|
|
1503
|
+
VERTICAL_LINE = "Vertical Line",
|
|
1504
|
+
/** 菱形网格 */
|
|
1505
|
+
RHOMBIC_GRID = "Rhombic Grid",
|
|
1506
|
+
/** 左斜线 */
|
|
1507
|
+
LEFT_SLASH_LINE = "Left Slash Line",
|
|
1508
|
+
/** 右斜线 */
|
|
1509
|
+
RIGHT_SLASH_LINE = "Right Slash Line"
|
|
1510
|
+
}
|
|
1511
|
+
|
|
1512
|
+
/**
|
|
1513
|
+
* 线型
|
|
1514
|
+
*
|
|
1515
|
+
* @public
|
|
1516
|
+
*/
|
|
1517
|
+
declare enum ESCH_PrimitiveLineType {
|
|
1518
|
+
/** 实线 */
|
|
1519
|
+
SOLID = 0,
|
|
1520
|
+
/** 短划线 */
|
|
1521
|
+
DASHED = 1,
|
|
1522
|
+
/** 点线 */
|
|
1523
|
+
DOTTED = 2,
|
|
1524
|
+
/** 点划线 */
|
|
1525
|
+
DOT_DASHED = 3
|
|
1526
|
+
}
|
|
1527
|
+
|
|
1471
1528
|
/**
|
|
1472
1529
|
* 引脚形状
|
|
1473
1530
|
*
|
|
@@ -2537,7 +2594,12 @@ declare interface IPCB_EqualLengthNetGroupItem {
|
|
|
2537
2594
|
/** 网络名称数组 */
|
|
2538
2595
|
nets: Array<string>;
|
|
2539
2596
|
/** 等长网络组颜色 */
|
|
2540
|
-
color:
|
|
2597
|
+
color: {
|
|
2598
|
+
r: number;
|
|
2599
|
+
g: number;
|
|
2600
|
+
b: number;
|
|
2601
|
+
alpha: number;
|
|
2602
|
+
} | null;
|
|
2541
2603
|
}
|
|
2542
2604
|
|
|
2543
2605
|
/**
|
|
@@ -2569,7 +2631,12 @@ declare interface IPCB_NetClassItem {
|
|
|
2569
2631
|
/** 网络名称数组 */
|
|
2570
2632
|
nets: Array<string>;
|
|
2571
2633
|
/** 网络类颜色 */
|
|
2572
|
-
color:
|
|
2634
|
+
color: {
|
|
2635
|
+
r: number;
|
|
2636
|
+
g: number;
|
|
2637
|
+
b: number;
|
|
2638
|
+
alpha: number;
|
|
2639
|
+
} | null;
|
|
2573
2640
|
}
|
|
2574
2641
|
|
|
2575
2642
|
/**
|
|
@@ -2581,7 +2648,12 @@ declare interface IPCB_NetInfo {
|
|
|
2581
2648
|
/** 网络名称 */
|
|
2582
2649
|
net: string;
|
|
2583
2650
|
/** 颜色 */
|
|
2584
|
-
color:
|
|
2651
|
+
color: {
|
|
2652
|
+
r: number;
|
|
2653
|
+
g: number;
|
|
2654
|
+
b: number;
|
|
2655
|
+
alpha: number;
|
|
2656
|
+
} | null;
|
|
2585
2657
|
/** 长度 */
|
|
2586
2658
|
length: number;
|
|
2587
2659
|
}
|
|
@@ -2665,6 +2737,7 @@ declare interface IPCB_PrimitiveAPI {
|
|
|
2665
2737
|
* 圆弧线图元
|
|
2666
2738
|
*
|
|
2667
2739
|
* @public
|
|
2740
|
+
* @remarks 直线和圆弧线均为导线,对应画布的线条走线和圆弧走线
|
|
2668
2741
|
*/
|
|
2669
2742
|
declare class IPCB_PrimitiveArc implements IPCB_Primitive {
|
|
2670
2743
|
/** 异步 */
|
|
@@ -3110,7 +3183,7 @@ declare class IPCB_PrimitiveComponent implements IPCB_Primitive {
|
|
|
3110
3183
|
*/
|
|
3111
3184
|
getState_Supplier(): string | undefined;
|
|
3112
3185
|
/**
|
|
3113
|
-
*
|
|
3186
|
+
* 获取属性状态:供应商编号
|
|
3114
3187
|
*
|
|
3115
3188
|
* @public
|
|
3116
3189
|
* @returns 供应商编号
|
|
@@ -3261,7 +3334,7 @@ declare class IPCB_PrimitiveComponent implements IPCB_Primitive {
|
|
|
3261
3334
|
*/
|
|
3262
3335
|
isAsync(): boolean;
|
|
3263
3336
|
/**
|
|
3264
|
-
*
|
|
3337
|
+
* 将异步图元重置为当前画布状态
|
|
3265
3338
|
*
|
|
3266
3339
|
* @beta
|
|
3267
3340
|
* @returns 器件图元对象
|
|
@@ -3309,7 +3382,7 @@ declare class IPCB_PrimitiveComponentPad extends IPCB_PrimitivePad {
|
|
|
3309
3382
|
*/
|
|
3310
3383
|
done(): Promise<IPCB_PrimitiveComponentPad>;
|
|
3311
3384
|
/* Excluded from this release type: getConnectedPrimitives */
|
|
3312
|
-
getConnectedPrimitives(onlyCentreConnection: false): Array<IPCB_PrimitiveLine | IPCB_PrimitiveArc | IPCB_PrimitiveVia | IPCB_PrimitivePolyline | IPCB_PrimitiveFill
|
|
3385
|
+
getConnectedPrimitives(onlyCentreConnection: false): Promise<Array<IPCB_PrimitiveLine | IPCB_PrimitiveArc | IPCB_PrimitiveVia | IPCB_PrimitivePolyline | IPCB_PrimitiveFill>>;
|
|
3313
3386
|
}
|
|
3314
3387
|
|
|
3315
3388
|
/**
|
|
@@ -3908,6 +3981,7 @@ declare class IPCB_PrimitiveImage implements IPCB_Primitive {
|
|
|
3908
3981
|
* 直线图元
|
|
3909
3982
|
*
|
|
3910
3983
|
* @public
|
|
3984
|
+
* @remarks 直线和圆弧线均为导线,对应画布的线条走线和圆弧走线
|
|
3911
3985
|
*/
|
|
3912
3986
|
declare class IPCB_PrimitiveLine implements IPCB_Primitive {
|
|
3913
3987
|
/** 异步 */
|
|
@@ -4057,7 +4131,7 @@ declare class IPCB_PrimitiveLine implements IPCB_Primitive {
|
|
|
4057
4131
|
*
|
|
4058
4132
|
* @beta
|
|
4059
4133
|
* @param lineWidth - 线宽
|
|
4060
|
-
* @returns
|
|
4134
|
+
* @returns 直线图元对象
|
|
4061
4135
|
*/
|
|
4062
4136
|
setState_LineWidth(lineWidth: number): IPCB_PrimitiveLine;
|
|
4063
4137
|
/**
|
|
@@ -5693,69 +5767,206 @@ declare class ISCH_PrimitiveArc implements ISCH_Primitive {
|
|
|
5693
5767
|
/** 线型 */
|
|
5694
5768
|
private lineType;
|
|
5695
5769
|
/* Excluded from this release type: __constructor */
|
|
5770
|
+
/* Excluded from this release type: create */
|
|
5696
5771
|
/**
|
|
5697
|
-
*
|
|
5772
|
+
* 获取属性状态:图元类型
|
|
5698
5773
|
*
|
|
5699
|
-
* @
|
|
5700
|
-
* @returns
|
|
5774
|
+
* @public
|
|
5775
|
+
* @returns 图元类型
|
|
5701
5776
|
*/
|
|
5702
|
-
create(): Promise<ISCH_PrimitiveArc>;
|
|
5703
5777
|
getState_PrimitiveType(): ESCH_PrimitiveType;
|
|
5778
|
+
/**
|
|
5779
|
+
* 获取属性状态:图元 ID
|
|
5780
|
+
*
|
|
5781
|
+
* @public
|
|
5782
|
+
* @returns 图元 ID
|
|
5783
|
+
*/
|
|
5704
5784
|
getState_PrimitiveId(): string;
|
|
5705
|
-
|
|
5785
|
+
/**
|
|
5786
|
+
* 获取属性状态:起始点 X
|
|
5787
|
+
*
|
|
5788
|
+
* @public
|
|
5789
|
+
* @returns 起始点 X
|
|
5790
|
+
*/
|
|
5706
5791
|
getState_StartX(): number;
|
|
5792
|
+
/**
|
|
5793
|
+
* 获取属性状态:起始点 Y
|
|
5794
|
+
*
|
|
5795
|
+
* @public
|
|
5796
|
+
* @returns 起始点 Y
|
|
5797
|
+
*/
|
|
5798
|
+
getState_StartY(): number;
|
|
5799
|
+
/**
|
|
5800
|
+
* 获取属性状态:参考点 X
|
|
5801
|
+
*
|
|
5802
|
+
* @public
|
|
5803
|
+
* @returns 参考点 X
|
|
5804
|
+
*/
|
|
5707
5805
|
getState_ReferenceX(): number;
|
|
5806
|
+
/**
|
|
5807
|
+
* 获取属性状态:参考点 Y
|
|
5808
|
+
*
|
|
5809
|
+
* @public
|
|
5810
|
+
* @returns 参考点 Y
|
|
5811
|
+
*/
|
|
5708
5812
|
getState_ReferenceY(): number;
|
|
5813
|
+
/**
|
|
5814
|
+
* 获取属性状态:终止点 X
|
|
5815
|
+
*
|
|
5816
|
+
* @public
|
|
5817
|
+
* @returns 终止点 X
|
|
5818
|
+
*/
|
|
5709
5819
|
getState_EndX(): number;
|
|
5820
|
+
/**
|
|
5821
|
+
* 获取属性状态:终止点 Y
|
|
5822
|
+
*
|
|
5823
|
+
* @public
|
|
5824
|
+
* @returns 终止点 Y
|
|
5825
|
+
*/
|
|
5710
5826
|
getState_EndY(): number;
|
|
5827
|
+
/**
|
|
5828
|
+
* 获取属性状态:颜色
|
|
5829
|
+
*
|
|
5830
|
+
* @public
|
|
5831
|
+
* @returns 颜色
|
|
5832
|
+
*/
|
|
5711
5833
|
getState_Color(): string | null;
|
|
5834
|
+
/**
|
|
5835
|
+
* 获取属性状态:填充颜色
|
|
5836
|
+
*
|
|
5837
|
+
* @public
|
|
5838
|
+
* @returns 填充颜色
|
|
5839
|
+
*/
|
|
5712
5840
|
getState_FillColor(): string | null;
|
|
5841
|
+
/**
|
|
5842
|
+
* 获取属性状态:线宽
|
|
5843
|
+
*
|
|
5844
|
+
* @public
|
|
5845
|
+
* @returns 线宽
|
|
5846
|
+
*/
|
|
5713
5847
|
getState_LineWidth(): number | null;
|
|
5714
|
-
|
|
5715
|
-
|
|
5848
|
+
/**
|
|
5849
|
+
* 获取属性状态:线型
|
|
5850
|
+
*
|
|
5851
|
+
* @public
|
|
5852
|
+
* @returns 线型
|
|
5853
|
+
*/
|
|
5854
|
+
getState_LineType(): ESCH_PrimitiveLineType | null;
|
|
5855
|
+
/**
|
|
5856
|
+
* 设置属性状态:起始点 X
|
|
5857
|
+
*
|
|
5858
|
+
* @beta
|
|
5859
|
+
* @param startX - 起始点 X
|
|
5860
|
+
* @returns 圆弧图元对象
|
|
5861
|
+
*/
|
|
5716
5862
|
setState_StartX(startX: number): ISCH_PrimitiveArc;
|
|
5717
|
-
/**
|
|
5863
|
+
/**
|
|
5864
|
+
* 设置属性状态:起始点 Y
|
|
5865
|
+
*
|
|
5866
|
+
* @beta
|
|
5867
|
+
* @param startY - 起始点 Y
|
|
5868
|
+
* @returns 圆弧图元对象
|
|
5869
|
+
*/
|
|
5718
5870
|
setState_StartY(startY: number): ISCH_PrimitiveArc;
|
|
5719
|
-
/**
|
|
5871
|
+
/**
|
|
5872
|
+
* 设置属性状态:参考点 X
|
|
5873
|
+
*
|
|
5874
|
+
* @beta
|
|
5875
|
+
* @param referenceX - 参考点 X
|
|
5876
|
+
* @returns 圆弧图元对象
|
|
5877
|
+
*/
|
|
5720
5878
|
setState_ReferenceX(referenceX: number): ISCH_PrimitiveArc;
|
|
5721
|
-
/**
|
|
5879
|
+
/**
|
|
5880
|
+
* 设置属性状态:参考点 Y
|
|
5881
|
+
*
|
|
5882
|
+
* @beta
|
|
5883
|
+
* @param referenceY - 参考点 Y
|
|
5884
|
+
* @returns 圆弧图元对象
|
|
5885
|
+
*/
|
|
5722
5886
|
setState_ReferenceY(referenceY: number): ISCH_PrimitiveArc;
|
|
5723
|
-
/**
|
|
5887
|
+
/**
|
|
5888
|
+
* 设置属性状态:终止点 X
|
|
5889
|
+
*
|
|
5890
|
+
* @beta
|
|
5891
|
+
* @param endX - 终止点 X
|
|
5892
|
+
* @returns 圆弧图元对象
|
|
5893
|
+
*/
|
|
5724
5894
|
setState_EndX(endX: number): ISCH_PrimitiveArc;
|
|
5725
|
-
/**
|
|
5895
|
+
/**
|
|
5896
|
+
* 设置属性状态:终止点 Y
|
|
5897
|
+
*
|
|
5898
|
+
* @beta
|
|
5899
|
+
* @param endY - 终止点 Y
|
|
5900
|
+
* @returns 圆弧图元对象
|
|
5901
|
+
*/
|
|
5726
5902
|
setState_EndY(endY: number): ISCH_PrimitiveArc;
|
|
5727
|
-
/**
|
|
5903
|
+
/**
|
|
5904
|
+
* 设置属性状态:颜色
|
|
5905
|
+
*
|
|
5906
|
+
* @beta
|
|
5907
|
+
* @param color - 颜色
|
|
5908
|
+
* @returns 圆弧图元对象
|
|
5909
|
+
*/
|
|
5728
5910
|
setState_Color(color: string | null): ISCH_PrimitiveArc;
|
|
5729
|
-
/**
|
|
5911
|
+
/**
|
|
5912
|
+
* 设置属性状态:填充颜色
|
|
5913
|
+
*
|
|
5914
|
+
* @beta
|
|
5915
|
+
* @param fillColor - 填充颜色
|
|
5916
|
+
* @returns 圆弧图元对象
|
|
5917
|
+
*/
|
|
5730
5918
|
setState_FillColor(fillColor: string | null): ISCH_PrimitiveArc;
|
|
5731
|
-
/**
|
|
5919
|
+
/**
|
|
5920
|
+
* 设置属性状态:线宽
|
|
5921
|
+
*
|
|
5922
|
+
* @beta
|
|
5923
|
+
* @param lineWidth - 线宽
|
|
5924
|
+
* @returns 圆弧图元对象
|
|
5925
|
+
*/
|
|
5732
5926
|
setState_LineWidth(lineWidth: number | null): ISCH_PrimitiveArc;
|
|
5733
|
-
/**
|
|
5734
|
-
|
|
5927
|
+
/**
|
|
5928
|
+
* 设置属性状态:线型
|
|
5929
|
+
*
|
|
5930
|
+
* @beta
|
|
5931
|
+
* @param lineType - 线型
|
|
5932
|
+
* @returns 圆弧图元对象
|
|
5933
|
+
*/
|
|
5934
|
+
setState_LineType(lineType: ESCH_PrimitiveLineType | null): ISCH_PrimitiveArc;
|
|
5735
5935
|
/**
|
|
5736
5936
|
* 将图元转换为异步图元
|
|
5937
|
+
*
|
|
5938
|
+
* @public
|
|
5939
|
+
* @returns 圆弧图元对象
|
|
5737
5940
|
*/
|
|
5738
5941
|
toAsync(): ISCH_PrimitiveArc;
|
|
5739
5942
|
/**
|
|
5740
5943
|
* 将图元转换为同步图元
|
|
5944
|
+
*
|
|
5945
|
+
* @public
|
|
5946
|
+
* @returns 圆弧图元对象
|
|
5741
5947
|
*/
|
|
5742
5948
|
toSync(): ISCH_PrimitiveArc;
|
|
5743
5949
|
/**
|
|
5744
5950
|
* 查询图元是否为异步图元
|
|
5951
|
+
*
|
|
5952
|
+
* @public
|
|
5953
|
+
* @returns 是否为异步图元
|
|
5745
5954
|
*/
|
|
5746
5955
|
isAsync(): boolean;
|
|
5747
5956
|
/**
|
|
5748
5957
|
* 将异步图元重置为当前画布状态
|
|
5749
5958
|
*
|
|
5750
5959
|
* @beta
|
|
5960
|
+
* @returns 圆弧图元对象
|
|
5751
5961
|
*/
|
|
5752
5962
|
reset(): Promise<ISCH_PrimitiveArc>;
|
|
5753
5963
|
/**
|
|
5754
5964
|
* 将对图元的更改应用到画布
|
|
5755
5965
|
*
|
|
5756
5966
|
* @beta
|
|
5967
|
+
* @returns 圆弧图元对象
|
|
5757
5968
|
*/
|
|
5758
|
-
done(): ISCH_PrimitiveArc
|
|
5969
|
+
done(): Promise<ISCH_PrimitiveArc>;
|
|
5759
5970
|
}
|
|
5760
5971
|
|
|
5761
5972
|
/**
|
|
@@ -5781,54 +5992,125 @@ declare class ISCH_PrimitiveBus implements ISCH_Primitive {
|
|
|
5781
5992
|
/** 线型 */
|
|
5782
5993
|
private lineType;
|
|
5783
5994
|
/* Excluded from this release type: __constructor */
|
|
5995
|
+
/* Excluded from this release type: create */
|
|
5784
5996
|
/**
|
|
5785
|
-
*
|
|
5997
|
+
* 获取属性状态:图元类型
|
|
5786
5998
|
*
|
|
5787
|
-
* @
|
|
5788
|
-
* @returns
|
|
5999
|
+
* @public
|
|
6000
|
+
* @returns 图元类型
|
|
5789
6001
|
*/
|
|
5790
|
-
create(): ISCH_PrimitiveBus;
|
|
5791
6002
|
getState_PrimitiveType(): ESCH_PrimitiveType;
|
|
6003
|
+
/**
|
|
6004
|
+
* 获取属性状态:图元 ID
|
|
6005
|
+
*
|
|
6006
|
+
* @public
|
|
6007
|
+
* @returns 图元 ID
|
|
6008
|
+
*/
|
|
5792
6009
|
getState_PrimitiveId(): string;
|
|
5793
|
-
getState_BusName(): BusNetGroupCreateOptions['net'];
|
|
5794
|
-
getState_Line(): BusNetGroupCreateOptions['line'];
|
|
5795
|
-
getState_Color(): BusNetGroupCreateOptions['color'];
|
|
5796
|
-
getState_LineWidth(): BusNetGroupCreateOptions['lineWidth'];
|
|
5797
|
-
getState_LineType(): BusNetGroupCreateOptions['lineType'];
|
|
5798
|
-
/** @beta 数据校验 */
|
|
5799
|
-
setState_BusName(busName: BusNetGroupCreateOptions['net']): ISCH_PrimitiveBus;
|
|
5800
|
-
/** @beta 数据校验 */
|
|
5801
|
-
setState_Line(line: BusNetGroupCreateOptions['line']): ISCH_PrimitiveBus;
|
|
5802
|
-
/** @beta 数据校验 */
|
|
5803
|
-
setState_Color(color: BusNetGroupCreateOptions['color']): ISCH_PrimitiveBus;
|
|
5804
|
-
/** @beta 数据校验 */
|
|
5805
|
-
setState_LineWidth(lineWidth: BusNetGroupCreateOptions['lineWidth']): ISCH_PrimitiveBus;
|
|
5806
|
-
/** @beta 数据校验 */
|
|
5807
|
-
setState_LineType(lineType: BusNetGroupCreateOptions['lineType']): ISCH_PrimitiveBus;
|
|
5808
6010
|
/**
|
|
5809
|
-
*
|
|
6011
|
+
* 获取属性状态:总线名称
|
|
6012
|
+
*
|
|
6013
|
+
* @public
|
|
6014
|
+
* @returns 总线名称
|
|
6015
|
+
*/
|
|
6016
|
+
getState_BusName(): string;
|
|
6017
|
+
/**
|
|
6018
|
+
* 获取属性状态:多段线坐标组
|
|
6019
|
+
*
|
|
6020
|
+
* @public
|
|
6021
|
+
* @returns 多段线坐标组
|
|
6022
|
+
*/
|
|
6023
|
+
getState_Line(): Array<number> | Array<Array<number>>;
|
|
6024
|
+
/**
|
|
6025
|
+
* 获取属性状态:总线颜色
|
|
6026
|
+
*
|
|
6027
|
+
* @public
|
|
6028
|
+
* @returns 总线颜色
|
|
6029
|
+
*/
|
|
6030
|
+
getState_Color(): string | null;
|
|
6031
|
+
/**
|
|
6032
|
+
* 获取属性状态:线宽
|
|
6033
|
+
*
|
|
6034
|
+
* @public
|
|
6035
|
+
* @returns 线宽
|
|
6036
|
+
*/
|
|
6037
|
+
getState_LineWidth(): number | null;
|
|
6038
|
+
/**
|
|
6039
|
+
* 获取属性状态:线型
|
|
6040
|
+
*
|
|
6041
|
+
* @public
|
|
6042
|
+
* @returns 线型
|
|
6043
|
+
*/
|
|
6044
|
+
getState_LineType(): ESCH_PrimitiveLineType | null;
|
|
6045
|
+
/**
|
|
6046
|
+
* 设置属性状态:总线名称
|
|
6047
|
+
*
|
|
6048
|
+
* @beta
|
|
6049
|
+
* @param busName - 总线名称
|
|
6050
|
+
* @returns 总线图元对象
|
|
6051
|
+
*/
|
|
6052
|
+
setState_BusName(busName: string): ISCH_PrimitiveBus;
|
|
6053
|
+
/**
|
|
6054
|
+
* 设置属性状态:多段线坐标组
|
|
6055
|
+
*
|
|
6056
|
+
* @beta
|
|
6057
|
+
* @param line - 多段线坐标组
|
|
6058
|
+
* @returns 总线图元对象
|
|
6059
|
+
*/
|
|
6060
|
+
setState_Line(line: Array<number> | Array<Array<number>>): ISCH_PrimitiveBus;
|
|
6061
|
+
/**
|
|
6062
|
+
* 设置属性状态:总线颜色
|
|
6063
|
+
*
|
|
6064
|
+
* @beta
|
|
6065
|
+
* @param color - 总线颜色
|
|
6066
|
+
* @returns 总线图元对象
|
|
6067
|
+
*/
|
|
6068
|
+
setState_Color(color: string | null): ISCH_PrimitiveBus;
|
|
6069
|
+
/**
|
|
6070
|
+
* 设置属性状态:线宽
|
|
6071
|
+
*
|
|
6072
|
+
* @beta
|
|
6073
|
+
* @param lineWidth - 线宽
|
|
6074
|
+
* @returns 总线图元对象
|
|
6075
|
+
*/
|
|
6076
|
+
setState_LineWidth(lineWidth: number | null): ISCH_PrimitiveBus;
|
|
6077
|
+
/**
|
|
6078
|
+
* 设置属性状态:线型
|
|
6079
|
+
*
|
|
6080
|
+
* @beta
|
|
6081
|
+
* @param lineType - 线型
|
|
6082
|
+
* @returns 总线图元对象
|
|
6083
|
+
*/
|
|
6084
|
+
setState_LineType(lineType: ESCH_PrimitiveLineType | null): ISCH_PrimitiveBus;
|
|
6085
|
+
/**
|
|
6086
|
+
* 将图元转��为异步图元
|
|
6087
|
+
*
|
|
6088
|
+
* @public
|
|
6089
|
+
* @returns 总线图元对象
|
|
5810
6090
|
*/
|
|
5811
6091
|
toAsync(): ISCH_PrimitiveBus;
|
|
5812
6092
|
/**
|
|
5813
6093
|
* 将图元转换为同步图元
|
|
6094
|
+
*
|
|
6095
|
+
* @public
|
|
6096
|
+
* @returns 总线图元对象
|
|
5814
6097
|
*/
|
|
5815
6098
|
toSync(): ISCH_PrimitiveBus;
|
|
5816
6099
|
/**
|
|
5817
6100
|
* 查询图元是否为异步图元
|
|
5818
|
-
*/
|
|
5819
|
-
isAsync(): boolean;
|
|
5820
|
-
/**
|
|
5821
|
-
* 将异步图元重置为当前画布状态
|
|
5822
6101
|
*
|
|
5823
|
-
* @
|
|
6102
|
+
* @public
|
|
6103
|
+
* @returns 是否为异步图元
|
|
5824
6104
|
*/
|
|
5825
|
-
|
|
6105
|
+
isAsync(): boolean;
|
|
6106
|
+
/* Excluded from this release type: reset */
|
|
5826
6107
|
/**
|
|
5827
6108
|
* 将对图元的更改应用到画布
|
|
5828
6109
|
*
|
|
5829
6110
|
* @beta
|
|
6111
|
+
* @returns 总线图元对象
|
|
5830
6112
|
*/
|
|
5831
|
-
done(): ISCH_PrimitiveBus
|
|
6113
|
+
done(): Promise<ISCH_PrimitiveBus>;
|
|
5832
6114
|
}
|
|
5833
6115
|
|
|
5834
6116
|
/**
|
|
@@ -5857,59 +6139,177 @@ declare class ISCH_PrimitiveCircle implements ISCH_Primitive {
|
|
|
5857
6139
|
private lineWidth;
|
|
5858
6140
|
/** 线型 */
|
|
5859
6141
|
private lineType;
|
|
6142
|
+
/** 填充样式 */
|
|
6143
|
+
private fillStyle;
|
|
5860
6144
|
/* Excluded from this release type: __constructor */
|
|
6145
|
+
/* Excluded from this release type: create */
|
|
5861
6146
|
/**
|
|
5862
|
-
*
|
|
6147
|
+
* 获取属性状态:图元类型
|
|
5863
6148
|
*
|
|
5864
|
-
* @
|
|
5865
|
-
* @returns
|
|
6149
|
+
* @public
|
|
6150
|
+
* @returns 图元类型
|
|
5866
6151
|
*/
|
|
5867
|
-
create(): Promise<ISCH_PrimitiveCircle>;
|
|
5868
6152
|
getState_PrimitiveType(): ESCH_PrimitiveType;
|
|
6153
|
+
/**
|
|
6154
|
+
* 获取属性状态:图元 ID
|
|
6155
|
+
*
|
|
6156
|
+
* @public
|
|
6157
|
+
* @returns 图元 ID
|
|
6158
|
+
*/
|
|
5869
6159
|
getState_PrimitiveId(): string;
|
|
6160
|
+
/**
|
|
6161
|
+
* 获取属性状态:圆心 X
|
|
6162
|
+
*
|
|
6163
|
+
* @public
|
|
6164
|
+
* @returns 圆心 X
|
|
6165
|
+
*/
|
|
5870
6166
|
getState_CenterX(): number;
|
|
6167
|
+
/**
|
|
6168
|
+
* 获取属性状态:圆心 Y
|
|
6169
|
+
*
|
|
6170
|
+
* @public
|
|
6171
|
+
* @returns 圆心 Y
|
|
6172
|
+
*/
|
|
5871
6173
|
getState_CenterY(): number;
|
|
6174
|
+
/**
|
|
6175
|
+
* 获取属性状态:半径
|
|
6176
|
+
*
|
|
6177
|
+
* @public
|
|
6178
|
+
* @returns 半径
|
|
6179
|
+
*/
|
|
5872
6180
|
getState_Radius(): number;
|
|
6181
|
+
/**
|
|
6182
|
+
* 获取属性状态:颜色
|
|
6183
|
+
*
|
|
6184
|
+
* @public
|
|
6185
|
+
* @returns 颜色
|
|
6186
|
+
*/
|
|
5873
6187
|
getState_Color(): string | null;
|
|
6188
|
+
/**
|
|
6189
|
+
* 获取属性状态:填充颜色
|
|
6190
|
+
*
|
|
6191
|
+
* @public
|
|
6192
|
+
* @returns 填充颜色
|
|
6193
|
+
*/
|
|
5874
6194
|
getState_FillColor(): string | null;
|
|
6195
|
+
/**
|
|
6196
|
+
* 获取属性状态:线宽
|
|
6197
|
+
*
|
|
6198
|
+
* @public
|
|
6199
|
+
* @returns 线宽
|
|
6200
|
+
*/
|
|
5875
6201
|
getState_LineWidth(): number | null;
|
|
5876
|
-
|
|
5877
|
-
|
|
6202
|
+
/**
|
|
6203
|
+
* 获取属性状态:线型
|
|
6204
|
+
*
|
|
6205
|
+
* @public
|
|
6206
|
+
* @returns 线型
|
|
6207
|
+
*/
|
|
6208
|
+
getState_LineType(): ESCH_PrimitiveLineType | null;
|
|
6209
|
+
/**
|
|
6210
|
+
* 获取属性状态:填充样式
|
|
6211
|
+
*
|
|
6212
|
+
* @public
|
|
6213
|
+
* @returns 填充样式
|
|
6214
|
+
*/
|
|
6215
|
+
getState_FillStyle(): ESCH_PrimitiveFillStyle | null;
|
|
6216
|
+
/**
|
|
6217
|
+
* 设置属性状态:圆心 X
|
|
6218
|
+
*
|
|
6219
|
+
* @beta
|
|
6220
|
+
* @param centerX - 圆心 X
|
|
6221
|
+
* @returns 圆图元对象
|
|
6222
|
+
*/
|
|
5878
6223
|
setState_CenterX(centerX: number): ISCH_PrimitiveCircle;
|
|
5879
|
-
/**
|
|
6224
|
+
/**
|
|
6225
|
+
* 设置属性状态:圆心 Y
|
|
6226
|
+
*
|
|
6227
|
+
* @beta
|
|
6228
|
+
* @param centerY - 圆心 Y
|
|
6229
|
+
* @returns 圆图元对象
|
|
6230
|
+
*/
|
|
5880
6231
|
setState_CenterY(centerY: number): ISCH_PrimitiveCircle;
|
|
5881
|
-
/**
|
|
6232
|
+
/**
|
|
6233
|
+
* 设置属性状态:半径
|
|
6234
|
+
*
|
|
6235
|
+
* @beta
|
|
6236
|
+
* @param radius - 半径
|
|
6237
|
+
* @returns 圆图元对象
|
|
6238
|
+
*/
|
|
5882
6239
|
setState_Radius(radius: number): ISCH_PrimitiveCircle;
|
|
5883
|
-
/**
|
|
6240
|
+
/**
|
|
6241
|
+
* 设置属性状态:颜色
|
|
6242
|
+
*
|
|
6243
|
+
* @beta
|
|
6244
|
+
* @param color - 颜色
|
|
6245
|
+
* @returns 圆图元对象
|
|
6246
|
+
*/
|
|
5884
6247
|
setState_Color(color: string | null): ISCH_PrimitiveCircle;
|
|
5885
|
-
/**
|
|
6248
|
+
/**
|
|
6249
|
+
* 设置属性状态:填充颜色
|
|
6250
|
+
*
|
|
6251
|
+
* @beta
|
|
6252
|
+
* @param fillColor - 填充颜色
|
|
6253
|
+
* @returns 圆图元对象
|
|
6254
|
+
*/
|
|
5886
6255
|
setState_FillColor(fillColor: string | null): ISCH_PrimitiveCircle;
|
|
5887
|
-
/**
|
|
6256
|
+
/**
|
|
6257
|
+
* 设置属性状态:线宽
|
|
6258
|
+
*
|
|
6259
|
+
* @beta
|
|
6260
|
+
* @param lineWidth - 线宽
|
|
6261
|
+
* @returns 圆图元对象
|
|
6262
|
+
*/
|
|
5888
6263
|
setState_LineWidth(lineWidth: number | null): ISCH_PrimitiveCircle;
|
|
5889
|
-
/**
|
|
5890
|
-
|
|
6264
|
+
/**
|
|
6265
|
+
* 设置属性状态:线型
|
|
6266
|
+
*
|
|
6267
|
+
* @beta
|
|
6268
|
+
* @param lineType - 线型
|
|
6269
|
+
* @returns 圆图元对象
|
|
6270
|
+
*/
|
|
6271
|
+
setState_LineType(lineType: ESCH_PrimitiveLineType | null): ISCH_PrimitiveCircle;
|
|
6272
|
+
/**
|
|
6273
|
+
* 设置属性状态:填充样式
|
|
6274
|
+
*
|
|
6275
|
+
* @beta
|
|
6276
|
+
* @param fillStyle - 填充样式
|
|
6277
|
+
* @returns 圆图元对象
|
|
6278
|
+
*/
|
|
6279
|
+
setState_FillStyle(fillStyle: ESCH_PrimitiveFillStyle | null): ISCH_PrimitiveCircle;
|
|
5891
6280
|
/**
|
|
5892
6281
|
* 将图元转换为异步图元
|
|
6282
|
+
*
|
|
6283
|
+
* @public
|
|
6284
|
+
* @returns 圆图元对象
|
|
5893
6285
|
*/
|
|
5894
6286
|
toAsync(): ISCH_PrimitiveCircle;
|
|
5895
6287
|
/**
|
|
5896
6288
|
* 将图元转换为同步图元
|
|
6289
|
+
*
|
|
6290
|
+
* @public
|
|
6291
|
+
* @returns 圆图元对象
|
|
5897
6292
|
*/
|
|
5898
6293
|
toSync(): ISCH_PrimitiveCircle;
|
|
5899
6294
|
/**
|
|
5900
6295
|
* 查询图元是否为异步图元
|
|
6296
|
+
*
|
|
6297
|
+
* @public
|
|
6298
|
+
* @returns 是否为异步图元
|
|
5901
6299
|
*/
|
|
5902
6300
|
isAsync(): boolean;
|
|
5903
6301
|
/**
|
|
5904
6302
|
* 将异步图元重置为当前画布状态
|
|
5905
6303
|
*
|
|
5906
6304
|
* @beta
|
|
6305
|
+
* @returns 圆图元对象
|
|
5907
6306
|
*/
|
|
5908
6307
|
reset(): Promise<ISCH_PrimitiveCircle>;
|
|
5909
6308
|
/**
|
|
5910
6309
|
* 将对图元的更改应用到画布
|
|
5911
6310
|
*
|
|
5912
6311
|
* @beta
|
|
6312
|
+
* @returns 圆图元对象
|
|
5913
6313
|
*/
|
|
5914
6314
|
done(): ISCH_PrimitiveCircle;
|
|
5915
6315
|
}
|
|
@@ -6296,134 +6696,655 @@ declare class ISCH_PrimitiveComponent implements ISCH_Primitive {
|
|
|
6296
6696
|
}
|
|
6297
6697
|
|
|
6298
6698
|
/**
|
|
6299
|
-
*
|
|
6300
|
-
*
|
|
6301
|
-
* @public
|
|
6302
|
-
* @remarks
|
|
6303
|
-
* 器件引脚图元是一个特殊的图元,它指的是在原理图画布上关联到符号的引脚
|
|
6304
|
-
*
|
|
6305
|
-
* 器件引脚图元仅可更改 `pinNumber` 属性,其它所有属性均为只读,
|
|
6306
|
-
* 并且你只能通过 {@link SCH_PrimitiveComponent.getAllPinsByPrimitiveId | 器件类的 getAllPinsByPrimitiveId 方法} 或 {@link ISCH_PrimitiveComponent.getAllPins | 器件图元的 getAllPins 方法} 获取到器件引脚图元
|
|
6307
|
-
*/
|
|
6308
|
-
declare class ISCH_PrimitiveComponentPin extends ISCH_PrimitivePin {
|
|
6309
|
-
/** 图元类型 */
|
|
6310
|
-
protected readonly primitiveType: ESCH_PrimitiveType.COMPONENT_PIN;
|
|
6311
|
-
/* Excluded from this release type: __constructor */
|
|
6312
|
-
/* Excluded from this release type: create */
|
|
6313
|
-
/* Excluded from this release type: setState_X */
|
|
6314
|
-
/* Excluded from this release type: setState_Y */
|
|
6315
|
-
/* Excluded from this release type: setState_PinName */
|
|
6316
|
-
/* Excluded from this release type: setState_Rotation */
|
|
6317
|
-
/* Excluded from this release type: setState_PinLength */
|
|
6318
|
-
/* Excluded from this release type: setState_PinColor */
|
|
6319
|
-
/* Excluded from this release type: setState_PinShape */
|
|
6320
|
-
/* Excluded from this release type: setState_PinType */
|
|
6321
|
-
/* Excluded from this release type: reset */
|
|
6322
|
-
/* Excluded from this release type: done */
|
|
6323
|
-
}
|
|
6324
|
-
|
|
6325
|
-
/**
|
|
6326
|
-
* 引脚图元
|
|
6699
|
+
* 器件图元
|
|
6327
6700
|
*
|
|
6328
6701
|
* @public
|
|
6329
|
-
* @remarks 引脚图元仅符号编辑器可用,在原理图图页内,关联到符号的引脚被称为 {@link ISCH_PrimitiveComponentPin | 器件引脚图元}
|
|
6330
6702
|
*/
|
|
6331
|
-
declare class
|
|
6703
|
+
declare class ISCH_PrimitiveComponent_2 implements ISCH_Primitive {
|
|
6332
6704
|
/** 异步 */
|
|
6333
|
-
|
|
6705
|
+
private async;
|
|
6334
6706
|
/** 图元类型 */
|
|
6335
|
-
|
|
6707
|
+
private readonly primitiveType;
|
|
6708
|
+
/** 器件类型 */
|
|
6709
|
+
private componentType;
|
|
6336
6710
|
/** 图元 ID */
|
|
6337
|
-
|
|
6711
|
+
private primitiveId?;
|
|
6712
|
+
/** 关联库器件 */
|
|
6713
|
+
private component;
|
|
6338
6714
|
/** 坐标 X */
|
|
6339
|
-
|
|
6715
|
+
private x;
|
|
6340
6716
|
/** 坐标 Y */
|
|
6341
|
-
|
|
6342
|
-
/**
|
|
6343
|
-
|
|
6344
|
-
/** 引脚名称 */
|
|
6345
|
-
protected pinName: string;
|
|
6717
|
+
private y;
|
|
6718
|
+
/** 子图块名称 */
|
|
6719
|
+
private partId?;
|
|
6346
6720
|
/** 旋转角度 */
|
|
6347
|
-
|
|
6348
|
-
/**
|
|
6349
|
-
|
|
6350
|
-
/**
|
|
6351
|
-
|
|
6352
|
-
/**
|
|
6353
|
-
|
|
6354
|
-
/**
|
|
6355
|
-
|
|
6721
|
+
private rotation;
|
|
6722
|
+
/** 是否镜像 */
|
|
6723
|
+
private mirror;
|
|
6724
|
+
/** Component 属性:是否加入 BOM */
|
|
6725
|
+
private addIntoBom?;
|
|
6726
|
+
/** Component 属性:是否转到 PCB */
|
|
6727
|
+
private addIntoPcb?;
|
|
6728
|
+
/** NetPort 和 NetFlag 属性:网络名称 */
|
|
6729
|
+
private net?;
|
|
6730
|
+
/** 关联库符号 UUID */
|
|
6731
|
+
private symbol?;
|
|
6732
|
+
/** 关联库封装 UUID */
|
|
6733
|
+
private footprint?;
|
|
6734
|
+
/** Component 属性:位号 */
|
|
6735
|
+
private designator?;
|
|
6736
|
+
/** Component 属性:名称 */
|
|
6737
|
+
private name?;
|
|
6738
|
+
/** Component 属性:唯一 ID */
|
|
6739
|
+
private uniqueId?;
|
|
6740
|
+
/** Component 属性:制造商 */
|
|
6741
|
+
private manufacturer?;
|
|
6742
|
+
/** Component 属性:制造商编号 */
|
|
6743
|
+
private manufacturerId?;
|
|
6744
|
+
/** Component 属性:供应商 */
|
|
6745
|
+
private supplier?;
|
|
6746
|
+
/** Component 属性:供应商编号 */
|
|
6747
|
+
private supplierId?;
|
|
6356
6748
|
/** 其它参数 */
|
|
6357
6749
|
private otherProperty?;
|
|
6358
6750
|
/* Excluded from this release type: __constructor */
|
|
6359
6751
|
/* Excluded from this release type: create */
|
|
6360
|
-
getState_PrimitiveType(): ESCH_PrimitiveType;
|
|
6361
|
-
getState_PrimitiveId(): string;
|
|
6362
|
-
getState_X(): number;
|
|
6363
|
-
getState_Y(): number;
|
|
6364
|
-
getState_PinNumber(): string;
|
|
6365
|
-
getState_PinName(): string;
|
|
6366
|
-
getState_Rotation(): number;
|
|
6367
|
-
getState_PinLength(): number;
|
|
6368
|
-
getState_PinColor(): string | null;
|
|
6369
|
-
getState_PinShape(): string;
|
|
6370
|
-
getState_pinType(): ESCH_PrimitivePinType;
|
|
6371
6752
|
/**
|
|
6372
|
-
*
|
|
6753
|
+
* 获取属性状态:图元类型
|
|
6373
6754
|
*
|
|
6374
6755
|
* @public
|
|
6375
|
-
* @returns
|
|
6756
|
+
* @returns 图元类型
|
|
6376
6757
|
*/
|
|
6377
|
-
|
|
6378
|
-
[key: string]: string | number | boolean;
|
|
6379
|
-
} | undefined;
|
|
6380
|
-
setState_X(x: number): ISCH_PrimitivePin;
|
|
6381
|
-
setState_Y(y: number): ISCH_PrimitivePin;
|
|
6382
|
-
setState_PinNumber(pinNumber: string): ISCH_PrimitivePin;
|
|
6383
|
-
setState_PinName(pinName: string): ISCH_PrimitivePin;
|
|
6384
|
-
setState_Rotation(rotation: number): ISCH_PrimitivePin;
|
|
6385
|
-
setState_PinLength(pinLength: number): ISCH_PrimitivePin;
|
|
6386
|
-
setState_PinColor(pinColor: string | null): ISCH_PrimitivePin;
|
|
6387
|
-
setState_PinShape(pinShape: string): ISCH_PrimitivePin;
|
|
6388
|
-
setState_PinType(pinType: ESCH_PrimitivePinType): ISCH_PrimitivePin;
|
|
6758
|
+
getState_PrimitiveType(): ESCH_PrimitiveType;
|
|
6389
6759
|
/**
|
|
6390
|
-
*
|
|
6760
|
+
* 获取属性状态:器件类型
|
|
6391
6761
|
*
|
|
6392
|
-
* @
|
|
6393
|
-
* @
|
|
6394
|
-
* @returns 引脚图元对象
|
|
6762
|
+
* @public
|
|
6763
|
+
* @returns 器件类型
|
|
6395
6764
|
*/
|
|
6396
|
-
|
|
6397
|
-
[key: string]: string | number | boolean;
|
|
6398
|
-
}): ISCH_PrimitivePin;
|
|
6765
|
+
getState_ComponentType(): ESCH_PrimitiveComponentType_2;
|
|
6399
6766
|
/**
|
|
6400
|
-
*
|
|
6767
|
+
* 获取属性状态:图元 ID
|
|
6768
|
+
*
|
|
6769
|
+
* @public
|
|
6770
|
+
* @returns 图元 ID
|
|
6401
6771
|
*/
|
|
6402
|
-
|
|
6772
|
+
getState_PrimitiveId(): string;
|
|
6403
6773
|
/**
|
|
6404
|
-
*
|
|
6774
|
+
* 获取属性状态:关联库器件
|
|
6775
|
+
*
|
|
6776
|
+
* @public
|
|
6777
|
+
* @returns 关联库器件
|
|
6405
6778
|
*/
|
|
6406
|
-
|
|
6779
|
+
getState_Component(): {
|
|
6780
|
+
libraryUuid: string;
|
|
6781
|
+
uuid: string;
|
|
6782
|
+
};
|
|
6407
6783
|
/**
|
|
6408
|
-
*
|
|
6784
|
+
* 获取属性状态:坐标 X
|
|
6785
|
+
*
|
|
6786
|
+
* @public
|
|
6787
|
+
* @returns 坐标 X
|
|
6409
6788
|
*/
|
|
6410
|
-
|
|
6789
|
+
getState_X(): number;
|
|
6411
6790
|
/**
|
|
6412
|
-
*
|
|
6791
|
+
* 获取属性状态:坐标 Y
|
|
6413
6792
|
*
|
|
6414
|
-
* @
|
|
6793
|
+
* @public
|
|
6794
|
+
* @returns 坐标 Y
|
|
6415
6795
|
*/
|
|
6416
|
-
|
|
6796
|
+
getState_Y(): number;
|
|
6417
6797
|
/**
|
|
6418
|
-
*
|
|
6798
|
+
* 获取属性状态:子图块名称
|
|
6419
6799
|
*
|
|
6420
|
-
* @
|
|
6800
|
+
* @public
|
|
6801
|
+
* @returns 子图块名称
|
|
6421
6802
|
*/
|
|
6422
|
-
|
|
6423
|
-
|
|
6424
|
-
|
|
6803
|
+
getState_SubPartName(): string | undefined;
|
|
6804
|
+
/**
|
|
6805
|
+
* 获取属性状态:旋转角度
|
|
6806
|
+
*
|
|
6807
|
+
* @public
|
|
6808
|
+
* @returns 旋转角度
|
|
6809
|
+
*/
|
|
6810
|
+
getState_Rotation(): number;
|
|
6811
|
+
/**
|
|
6812
|
+
* 获取属性状态:是否镜像
|
|
6813
|
+
*
|
|
6814
|
+
* @public
|
|
6815
|
+
* @returns 是否镜像
|
|
6816
|
+
*/
|
|
6817
|
+
getState_Mirror(): boolean;
|
|
6818
|
+
/**
|
|
6819
|
+
* 获取属性状态:是否加入 BOM
|
|
6820
|
+
*
|
|
6821
|
+
* @public
|
|
6822
|
+
* @returns 是否加入 BOM
|
|
6823
|
+
*/
|
|
6824
|
+
getState_AddIntoBom(): boolean | undefined;
|
|
6825
|
+
/**
|
|
6826
|
+
* 获取属性状态:是否转到 PCB
|
|
6827
|
+
*
|
|
6828
|
+
* @public
|
|
6829
|
+
* @returns 是否转到 PCB
|
|
6830
|
+
*/
|
|
6831
|
+
getState_AddIntoPcb(): boolean | undefined;
|
|
6832
|
+
/**
|
|
6833
|
+
* 获取属性状态:网络名称
|
|
6834
|
+
*
|
|
6835
|
+
* @public
|
|
6836
|
+
* @returns 网络名称
|
|
6837
|
+
*/
|
|
6838
|
+
getState_Net(): string | undefined;
|
|
6839
|
+
/**
|
|
6840
|
+
* 获取属性状态:关联库符号
|
|
6841
|
+
*
|
|
6842
|
+
* @public
|
|
6843
|
+
* @returns 关联库符号
|
|
6844
|
+
*/
|
|
6845
|
+
getState_Symbol(): {
|
|
6846
|
+
libraryUuid: string;
|
|
6847
|
+
uuid: string;
|
|
6848
|
+
} | undefined;
|
|
6849
|
+
/**
|
|
6850
|
+
* 获取属性状态:关联库封装
|
|
6851
|
+
*
|
|
6852
|
+
* @public
|
|
6853
|
+
* @returns 关联库封装
|
|
6854
|
+
*/
|
|
6855
|
+
getState_Footprint(): {
|
|
6856
|
+
libraryUuid: string;
|
|
6857
|
+
uuid: string;
|
|
6858
|
+
} | undefined;
|
|
6859
|
+
/**
|
|
6860
|
+
* 获取属性状态:位号
|
|
6861
|
+
*
|
|
6862
|
+
* @public
|
|
6863
|
+
* @returns 位号
|
|
6864
|
+
*/
|
|
6865
|
+
getState_Designator(): string | undefined;
|
|
6866
|
+
/**
|
|
6867
|
+
* 获取属性状态:名称
|
|
6868
|
+
*
|
|
6869
|
+
* @public
|
|
6870
|
+
* @returns 名称
|
|
6871
|
+
*/
|
|
6872
|
+
getState_Name(): string | undefined;
|
|
6873
|
+
/**
|
|
6874
|
+
* 获取属性状态:唯一 ID
|
|
6875
|
+
*
|
|
6876
|
+
* @public
|
|
6877
|
+
* @returns 唯一 ID
|
|
6878
|
+
*/
|
|
6879
|
+
getState_UniqueId(): string | undefined;
|
|
6880
|
+
/**
|
|
6881
|
+
* 获取属性状态:制造商
|
|
6882
|
+
*
|
|
6883
|
+
* @public
|
|
6884
|
+
* @returns 制造商
|
|
6885
|
+
*/
|
|
6886
|
+
getState_Manufacturer(): string | undefined;
|
|
6887
|
+
/**
|
|
6888
|
+
* 获取属性状态:制造商编号
|
|
6889
|
+
*
|
|
6890
|
+
* @public
|
|
6891
|
+
* @returns 制造商编号
|
|
6892
|
+
*/
|
|
6893
|
+
getState_ManufacturerId(): string | undefined;
|
|
6894
|
+
/**
|
|
6895
|
+
* 获取属性状态:供应商
|
|
6896
|
+
*
|
|
6897
|
+
* @public
|
|
6898
|
+
* @returns 供应商
|
|
6899
|
+
*/
|
|
6900
|
+
getState_Supplier(): string | undefined;
|
|
6901
|
+
/**
|
|
6902
|
+
* 获取属性状态:供应商编号
|
|
6903
|
+
*
|
|
6904
|
+
* @public
|
|
6905
|
+
* @returns 供应商编号
|
|
6906
|
+
*/
|
|
6907
|
+
getState_SupplierId(): string | undefined;
|
|
6908
|
+
/**
|
|
6909
|
+
* 获取属性状态:其它参数
|
|
6910
|
+
*
|
|
6911
|
+
* @public
|
|
6912
|
+
* @returns 其它参数
|
|
6913
|
+
*/
|
|
6914
|
+
getState_OtherProperty(): {
|
|
6915
|
+
[key: string]: string | number | boolean;
|
|
6916
|
+
} | undefined;
|
|
6917
|
+
/**
|
|
6918
|
+
* 设置属性状态:坐标 X
|
|
6919
|
+
*
|
|
6920
|
+
* @beta
|
|
6921
|
+
* @param x - 坐标 X
|
|
6922
|
+
* @returns 器件图元对象
|
|
6923
|
+
*/
|
|
6924
|
+
setState_X(x: number): ISCH_PrimitiveComponent_2;
|
|
6925
|
+
/**
|
|
6926
|
+
* 设置属性状态:坐标 Y
|
|
6927
|
+
*
|
|
6928
|
+
* @beta
|
|
6929
|
+
* @param y - 坐标 Y
|
|
6930
|
+
* @returns 器件图元对象
|
|
6931
|
+
*/
|
|
6932
|
+
setState_Y(y: number): ISCH_PrimitiveComponent_2;
|
|
6933
|
+
/**
|
|
6934
|
+
* 设置属性状态:旋转角度
|
|
6935
|
+
*
|
|
6936
|
+
* @beta
|
|
6937
|
+
* @param rotation - 旋转角度
|
|
6938
|
+
* @returns 器件图元对象
|
|
6939
|
+
*/
|
|
6940
|
+
setState_Rotation(rotation: number): ISCH_PrimitiveComponent_2;
|
|
6941
|
+
/**
|
|
6942
|
+
* 设置属性状态:是否镜像
|
|
6943
|
+
*
|
|
6944
|
+
* @beta
|
|
6945
|
+
* @param mirror - 是否镜像
|
|
6946
|
+
* @returns 器件图元对象
|
|
6947
|
+
*/
|
|
6948
|
+
setState_Mirror(mirror: boolean): ISCH_PrimitiveComponent_2;
|
|
6949
|
+
/**
|
|
6950
|
+
* 设置属性状态:是否加入 BOM
|
|
6951
|
+
*
|
|
6952
|
+
* @beta
|
|
6953
|
+
* @param addIntoBom - 是否加入 BOM
|
|
6954
|
+
* @returns 器件图元对象
|
|
6955
|
+
*/
|
|
6956
|
+
setState_AddIntoBom(addIntoBom: boolean | undefined): ISCH_PrimitiveComponent_2;
|
|
6957
|
+
/**
|
|
6958
|
+
* 设置属性状态:是否转到 PCB
|
|
6959
|
+
*
|
|
6960
|
+
* @beta
|
|
6961
|
+
* @param addIntoPcb - 是否转到 PCB
|
|
6962
|
+
* @returns 器件图元对象
|
|
6963
|
+
*/
|
|
6964
|
+
setState_AddIntoPcb(addIntoPcb: boolean | undefined): ISCH_PrimitiveComponent_2;
|
|
6965
|
+
/**
|
|
6966
|
+
* 设置属性状态:网络名称
|
|
6967
|
+
*
|
|
6968
|
+
* @beta
|
|
6969
|
+
* @param net - 网络名称
|
|
6970
|
+
* @returns 器件图元对象
|
|
6971
|
+
*/
|
|
6972
|
+
setState_Net(net: string | undefined): ISCH_PrimitiveComponent_2;
|
|
6973
|
+
/**
|
|
6974
|
+
* 设置属性状态:位号
|
|
6975
|
+
*
|
|
6976
|
+
* @beta
|
|
6977
|
+
* @param designator - 位号
|
|
6978
|
+
* @returns 器件图元对象
|
|
6979
|
+
*/
|
|
6980
|
+
setState_Designator(designator: string | undefined): ISCH_PrimitiveComponent_2;
|
|
6981
|
+
/**
|
|
6982
|
+
* 设置属性状态:名称
|
|
6983
|
+
*
|
|
6984
|
+
* @beta
|
|
6985
|
+
* @param name - 名称
|
|
6986
|
+
* @returns 器件图元对象
|
|
6987
|
+
*/
|
|
6988
|
+
setState_Name(name: string | undefined): ISCH_PrimitiveComponent_2;
|
|
6989
|
+
/**
|
|
6990
|
+
* 设置属性状态:唯一 ID
|
|
6991
|
+
*
|
|
6992
|
+
* @beta
|
|
6993
|
+
* @param uniqueId - 唯一 ID
|
|
6994
|
+
* @returns 器件图元对象
|
|
6995
|
+
*/
|
|
6996
|
+
setState_UniqueId(uniqueId: string | undefined): ISCH_PrimitiveComponent_2;
|
|
6997
|
+
/**
|
|
6998
|
+
* 设置属性状态:制造商
|
|
6999
|
+
*
|
|
7000
|
+
* @beta
|
|
7001
|
+
* @param manufacturer - 制造商
|
|
7002
|
+
* @returns 器件图元对象
|
|
7003
|
+
*/
|
|
7004
|
+
setState_Manufacturer(manufacturer: string | undefined): ISCH_PrimitiveComponent_2;
|
|
7005
|
+
/**
|
|
7006
|
+
* 设置属性状态:制造商编号
|
|
7007
|
+
*
|
|
7008
|
+
* @beta
|
|
7009
|
+
* @param manufacturerId - 制造商编号
|
|
7010
|
+
* @returns 器件图元对象
|
|
7011
|
+
*/
|
|
7012
|
+
setState_ManufacturerId(manufacturerId: string | undefined): ISCH_PrimitiveComponent_2;
|
|
7013
|
+
/**
|
|
7014
|
+
* 设置属性状态:供应商
|
|
7015
|
+
*
|
|
7016
|
+
* @beta
|
|
7017
|
+
* @param supplier - 供应商
|
|
7018
|
+
* @returns 器件图元对象
|
|
7019
|
+
*/
|
|
7020
|
+
setState_Supplier(supplier: string | undefined): ISCH_PrimitiveComponent_2;
|
|
7021
|
+
/**
|
|
7022
|
+
* 设置属性状态:供应商编号
|
|
7023
|
+
*
|
|
7024
|
+
* @beta
|
|
7025
|
+
* @param supplierId - 供应商编号
|
|
7026
|
+
* @returns 器件图元对象
|
|
7027
|
+
*/
|
|
7028
|
+
setState_SupplierId(supplierId: string | undefined): ISCH_PrimitiveComponent_2;
|
|
7029
|
+
/**
|
|
7030
|
+
* 设置属性状态:其它参数
|
|
7031
|
+
*
|
|
7032
|
+
* @beta
|
|
7033
|
+
* @param otherProperty - 其它参数
|
|
7034
|
+
* @returns 器件图元对象
|
|
7035
|
+
*/
|
|
7036
|
+
setState_OtherProperty(otherProperty: {
|
|
7037
|
+
[key: string]: string | number | boolean;
|
|
7038
|
+
}): ISCH_PrimitiveComponent_2;
|
|
7039
|
+
/**
|
|
7040
|
+
* 将图元转换为异步图元
|
|
7041
|
+
*
|
|
7042
|
+
* @public
|
|
7043
|
+
* @returns 圆弧线图元对象
|
|
7044
|
+
*/
|
|
7045
|
+
toAsync(): ISCH_PrimitiveComponent_2;
|
|
7046
|
+
/**
|
|
7047
|
+
* 将图元转换为同步图元
|
|
7048
|
+
*
|
|
7049
|
+
* @public
|
|
7050
|
+
* @returns 圆弧线图元对象
|
|
7051
|
+
*/
|
|
7052
|
+
toSync(): ISCH_PrimitiveComponent_2;
|
|
7053
|
+
/**
|
|
7054
|
+
* 查询图元是否为异步图元
|
|
7055
|
+
*
|
|
7056
|
+
* @public
|
|
7057
|
+
* @returns 是否为异步图元
|
|
7058
|
+
*/
|
|
7059
|
+
isAsync(): boolean;
|
|
7060
|
+
/**
|
|
7061
|
+
* 将异步图元重置为当前画布状态
|
|
7062
|
+
*
|
|
7063
|
+
* @beta
|
|
7064
|
+
* @returns 器件图元对象
|
|
7065
|
+
*/
|
|
7066
|
+
reset(): Promise<ISCH_PrimitiveComponent_2>;
|
|
7067
|
+
/**
|
|
7068
|
+
* 将对图元的更改应用到画布
|
|
7069
|
+
*
|
|
7070
|
+
* @beta
|
|
7071
|
+
* @returns 器件图元对象
|
|
7072
|
+
*/
|
|
7073
|
+
done(): Promise<ISCH_PrimitiveComponent_2>;
|
|
7074
|
+
/* Excluded from this release type: getAllPins */
|
|
7075
|
+
/* Excluded from this release type: setState_Component */
|
|
7076
|
+
/* Excluded from this release type: setState_SubPartName */
|
|
7077
|
+
}
|
|
7078
|
+
|
|
7079
|
+
/**
|
|
7080
|
+
* 器件引脚图元
|
|
7081
|
+
*
|
|
7082
|
+
* @public
|
|
7083
|
+
* @remarks
|
|
7084
|
+
* 器件引脚图元是一个特殊的图元,它指的是在原理图画布上关联到符号的引脚
|
|
7085
|
+
*
|
|
7086
|
+
* 器件引脚图元仅可更改 `pinNumber` 属性,其它所有属性均为只读,
|
|
7087
|
+
* 并且你只能通过 {@link SCH_PrimitiveComponent.getAllPinsByPrimitiveId | 器件类的 getAllPinsByPrimitiveId 方法} 或 {@link ISCH_PrimitiveComponent.getAllPins | 器件图元的 getAllPins 方法} 获取到器件引脚图元
|
|
7088
|
+
*/
|
|
7089
|
+
declare class ISCH_PrimitiveComponentPin extends ISCH_PrimitivePin {
|
|
7090
|
+
/** 图元类型 */
|
|
7091
|
+
protected readonly primitiveType: ESCH_PrimitiveType.COMPONENT_PIN;
|
|
7092
|
+
/* Excluded from this release type: __constructor */
|
|
7093
|
+
/* Excluded from this release type: create */
|
|
7094
|
+
/* Excluded from this release type: setState_X */
|
|
7095
|
+
/* Excluded from this release type: setState_Y */
|
|
7096
|
+
/* Excluded from this release type: setState_PinName */
|
|
7097
|
+
/* Excluded from this release type: setState_Rotation */
|
|
7098
|
+
/* Excluded from this release type: setState_PinLength */
|
|
7099
|
+
/* Excluded from this release type: setState_PinColor */
|
|
7100
|
+
/* Excluded from this release type: setState_PinShape */
|
|
7101
|
+
/* Excluded from this release type: setState_PinType */
|
|
7102
|
+
/* Excluded from this release type: reset */
|
|
7103
|
+
/* Excluded from this release type: done */
|
|
7104
|
+
}
|
|
7105
|
+
|
|
7106
|
+
/**
|
|
7107
|
+
* 引脚图元
|
|
7108
|
+
*
|
|
7109
|
+
* @public
|
|
7110
|
+
* @remarks 引脚图元仅符号编辑器可用,在原理图图页内,关联到符号的引脚被称为 {@link ISCH_PrimitiveComponentPin | 器件引脚图元}
|
|
7111
|
+
*/
|
|
7112
|
+
declare class ISCH_PrimitivePin implements ISCH_Primitive {
|
|
7113
|
+
/** 异步 */
|
|
7114
|
+
protected async: boolean;
|
|
7115
|
+
/** 图元类型 */
|
|
7116
|
+
protected readonly primitiveType: ESCH_PrimitiveType;
|
|
7117
|
+
/** 图元 ID */
|
|
7118
|
+
protected primitiveId?: string;
|
|
7119
|
+
/** 坐标 X */
|
|
7120
|
+
protected x: number;
|
|
7121
|
+
/** 坐标 Y */
|
|
7122
|
+
protected y: number;
|
|
7123
|
+
/** 引脚编号 */
|
|
7124
|
+
protected pinNumber: string;
|
|
7125
|
+
/** 引脚名称 */
|
|
7126
|
+
protected pinName: string;
|
|
7127
|
+
/** 旋转角度 */
|
|
7128
|
+
protected rotation: number;
|
|
7129
|
+
/** 引脚长度 */
|
|
7130
|
+
protected pinLength: number;
|
|
7131
|
+
/** 引脚颜色 */
|
|
7132
|
+
protected pinColor: string | null;
|
|
7133
|
+
/** 引脚形状 */
|
|
7134
|
+
protected pinShape: ESCH_PrimitivePinShape;
|
|
7135
|
+
/** 引脚类型 */
|
|
7136
|
+
protected pinType: ESCH_PrimitivePinType;
|
|
7137
|
+
/** 其它参数 */
|
|
7138
|
+
private otherProperty?;
|
|
7139
|
+
/* Excluded from this release type: __constructor */
|
|
7140
|
+
/* Excluded from this release type: create */
|
|
7141
|
+
/**
|
|
7142
|
+
* 获取属性状态:图元类型
|
|
7143
|
+
*
|
|
7144
|
+
* @public
|
|
7145
|
+
* @returns 图元类型
|
|
7146
|
+
*/
|
|
7147
|
+
getState_PrimitiveType(): ESCH_PrimitiveType;
|
|
7148
|
+
/**
|
|
7149
|
+
* 获取属性状态:图元 ID
|
|
7150
|
+
*
|
|
7151
|
+
* @public
|
|
7152
|
+
* @returns 图元 ID
|
|
7153
|
+
*/
|
|
7154
|
+
getState_PrimitiveId(): string;
|
|
7155
|
+
/**
|
|
7156
|
+
* 获取属性状态:坐标 X
|
|
7157
|
+
*
|
|
7158
|
+
* @public
|
|
7159
|
+
* @returns 坐标 X
|
|
7160
|
+
*/
|
|
7161
|
+
getState_X(): number;
|
|
7162
|
+
/**
|
|
7163
|
+
* 获取属性状态:坐标 Y
|
|
7164
|
+
*
|
|
7165
|
+
* @public
|
|
7166
|
+
* @returns 坐标 Y
|
|
7167
|
+
*/
|
|
7168
|
+
getState_Y(): number;
|
|
7169
|
+
/**
|
|
7170
|
+
* 获取属性状态:引脚编号
|
|
7171
|
+
*
|
|
7172
|
+
* @public
|
|
7173
|
+
* @returns 引脚编号
|
|
7174
|
+
*/
|
|
7175
|
+
getState_PinNumber(): string;
|
|
7176
|
+
/**
|
|
7177
|
+
* 获取属性状态:引脚名称
|
|
7178
|
+
*
|
|
7179
|
+
* @public
|
|
7180
|
+
* @returns 引脚名称
|
|
7181
|
+
*/
|
|
7182
|
+
getState_PinName(): string;
|
|
7183
|
+
/**
|
|
7184
|
+
* 获取属性状态:旋转角度
|
|
7185
|
+
*
|
|
7186
|
+
* @public
|
|
7187
|
+
* @returns 旋转角度
|
|
7188
|
+
*/
|
|
7189
|
+
getState_Rotation(): number;
|
|
7190
|
+
/**
|
|
7191
|
+
* 获取属性状态:引脚长度
|
|
7192
|
+
*
|
|
7193
|
+
* @public
|
|
7194
|
+
* @returns 引脚长度
|
|
7195
|
+
*/
|
|
7196
|
+
getState_PinLength(): number;
|
|
7197
|
+
/**
|
|
7198
|
+
* 获取属性状态:引脚颜色
|
|
7199
|
+
*
|
|
7200
|
+
* @public
|
|
7201
|
+
* @returns 引脚颜色
|
|
7202
|
+
*/
|
|
7203
|
+
getState_PinColor(): string | null;
|
|
7204
|
+
/**
|
|
7205
|
+
* 获取属性状态:引脚形状
|
|
7206
|
+
*
|
|
7207
|
+
* @public
|
|
7208
|
+
* @returns 引脚形状
|
|
7209
|
+
*/
|
|
7210
|
+
getState_PinShape(): ESCH_PrimitivePinShape;
|
|
7211
|
+
/**
|
|
7212
|
+
* 获取属性状态:引脚类型
|
|
7213
|
+
*
|
|
7214
|
+
* @public
|
|
7215
|
+
* @returns 引脚类型
|
|
7216
|
+
*/
|
|
7217
|
+
getState_pinType(): ESCH_PrimitivePinType;
|
|
7218
|
+
/**
|
|
7219
|
+
* 获取属性状态:其它参数
|
|
7220
|
+
*
|
|
7221
|
+
* @public
|
|
7222
|
+
* @returns 其它参数
|
|
7223
|
+
*/
|
|
7224
|
+
getState_OtherProperty(): {
|
|
7225
|
+
[key: string]: string | number | boolean;
|
|
7226
|
+
} | undefined;
|
|
7227
|
+
/**
|
|
7228
|
+
* 设置属性状态:坐标 X
|
|
7229
|
+
*
|
|
7230
|
+
* @beta
|
|
7231
|
+
* @param x - 坐标 X
|
|
7232
|
+
* @returns 引脚图元对象
|
|
7233
|
+
*/
|
|
7234
|
+
setState_X(x: number): ISCH_PrimitivePin;
|
|
7235
|
+
/**
|
|
7236
|
+
* 设置属性状态:坐标 Y
|
|
7237
|
+
*
|
|
7238
|
+
* @beta
|
|
7239
|
+
* @param y - 坐标 Y
|
|
7240
|
+
* @returns 引脚图元对象
|
|
7241
|
+
*/
|
|
7242
|
+
setState_Y(y: number): ISCH_PrimitivePin;
|
|
7243
|
+
/**
|
|
7244
|
+
* 设置属性状态:引脚编号
|
|
7245
|
+
*
|
|
7246
|
+
* @beta
|
|
7247
|
+
* @param pinNumber - 引脚编号
|
|
7248
|
+
* @returns 引脚图元对象
|
|
7249
|
+
*/
|
|
7250
|
+
setState_PinNumber(pinNumber: string): ISCH_PrimitivePin;
|
|
7251
|
+
/**
|
|
7252
|
+
* 设置属性状态:引脚名称
|
|
7253
|
+
*
|
|
7254
|
+
* @beta
|
|
7255
|
+
* @param pinName - 引脚名称
|
|
7256
|
+
* @returns 引脚图元对象
|
|
7257
|
+
*/
|
|
7258
|
+
setState_PinName(pinName: string): ISCH_PrimitivePin;
|
|
7259
|
+
/**
|
|
7260
|
+
* 设置属性状态:旋转角度
|
|
7261
|
+
*
|
|
7262
|
+
* @beta
|
|
7263
|
+
* @param rotation - 旋转角度
|
|
7264
|
+
* @returns 引脚图元对象
|
|
7265
|
+
*/
|
|
7266
|
+
setState_Rotation(rotation: number): ISCH_PrimitivePin;
|
|
7267
|
+
/**
|
|
7268
|
+
* 设置属性状态:引脚长度
|
|
7269
|
+
*
|
|
7270
|
+
* @beta
|
|
7271
|
+
* @param pinLength - 引脚长度
|
|
7272
|
+
* @returns 引脚图元对象
|
|
7273
|
+
*/
|
|
7274
|
+
setState_PinLength(pinLength: number): ISCH_PrimitivePin;
|
|
7275
|
+
/**
|
|
7276
|
+
* 设置属性状态:引脚颜色
|
|
7277
|
+
*
|
|
7278
|
+
* @beta
|
|
7279
|
+
* @param pinColor - 引脚颜色
|
|
7280
|
+
* @returns 引脚图元对象
|
|
7281
|
+
*/
|
|
7282
|
+
setState_PinColor(pinColor: string | null): ISCH_PrimitivePin;
|
|
7283
|
+
/**
|
|
7284
|
+
* 设置属性状态:引脚形状
|
|
7285
|
+
*
|
|
7286
|
+
* @beta
|
|
7287
|
+
* @param pinShape - 引脚形状
|
|
7288
|
+
* @returns 引脚图元对象
|
|
7289
|
+
*/
|
|
7290
|
+
setState_PinShape(pinShape: ESCH_PrimitivePinShape): ISCH_PrimitivePin;
|
|
7291
|
+
/**
|
|
7292
|
+
* 设置属性状态:引脚类型
|
|
7293
|
+
*
|
|
7294
|
+
* @beta
|
|
7295
|
+
* @param pinType - 引脚类型
|
|
7296
|
+
* @returns 引脚图元对象
|
|
7297
|
+
*/
|
|
7298
|
+
setState_PinType(pinType: ESCH_PrimitivePinType): ISCH_PrimitivePin;
|
|
7299
|
+
/**
|
|
7300
|
+
* 设置属性状态:其它参数
|
|
7301
|
+
*
|
|
7302
|
+
* @beta
|
|
7303
|
+
* @param otherProperty - 其它参数
|
|
7304
|
+
* @returns 引脚图元对象
|
|
7305
|
+
*/
|
|
7306
|
+
setState_OtherProperty(otherProperty: {
|
|
7307
|
+
[key: string]: string | number | boolean;
|
|
7308
|
+
}): ISCH_PrimitivePin;
|
|
7309
|
+
/**
|
|
7310
|
+
* 将图元转换为异步图元
|
|
7311
|
+
*
|
|
7312
|
+
* @public
|
|
7313
|
+
* @returns 引脚图元对象
|
|
7314
|
+
*/
|
|
7315
|
+
toAsync(): ISCH_PrimitivePin;
|
|
7316
|
+
/**
|
|
7317
|
+
* 将图元转换为同步图元
|
|
7318
|
+
*
|
|
7319
|
+
* @public
|
|
7320
|
+
* @returns 引脚图元对象
|
|
7321
|
+
*/
|
|
7322
|
+
toSync(): ISCH_PrimitivePin;
|
|
7323
|
+
/**
|
|
7324
|
+
* 查询图元是否为异步图元
|
|
7325
|
+
*
|
|
7326
|
+
* @public
|
|
7327
|
+
* @returns 是否为异步图元
|
|
7328
|
+
*/
|
|
7329
|
+
isAsync(): boolean;
|
|
7330
|
+
/**
|
|
7331
|
+
* 将异步图元重置为当前画布状态
|
|
7332
|
+
*
|
|
7333
|
+
* @beta
|
|
7334
|
+
* @returns 引脚图元对象
|
|
7335
|
+
*/
|
|
7336
|
+
reset(): Promise<ISCH_PrimitivePin>;
|
|
7337
|
+
/**
|
|
7338
|
+
* 将对图元的更改应用到画布
|
|
7339
|
+
*
|
|
7340
|
+
* @beta
|
|
7341
|
+
* @returns 引脚图元对象
|
|
7342
|
+
*/
|
|
7343
|
+
done(): Promise<ISCH_PrimitivePin>;
|
|
7344
|
+
}
|
|
7345
|
+
|
|
6425
7346
|
/**
|
|
6426
|
-
*
|
|
7347
|
+
* 多边形(折线)图元
|
|
6427
7348
|
*
|
|
6428
7349
|
* @public
|
|
6429
7350
|
*/
|
|
@@ -6433,7 +7354,7 @@ declare class ISCH_PrimitivePolygon implements ISCH_Primitive {
|
|
|
6433
7354
|
/** 图元类型 */
|
|
6434
7355
|
private readonly primitiveType;
|
|
6435
7356
|
/** 图元 ID */
|
|
6436
|
-
private primitiveId
|
|
7357
|
+
private primitiveId?;
|
|
6437
7358
|
/** 坐标组 */
|
|
6438
7359
|
private line;
|
|
6439
7360
|
/** 颜色 */
|
|
@@ -6445,130 +7366,381 @@ declare class ISCH_PrimitivePolygon implements ISCH_Primitive {
|
|
|
6445
7366
|
/** 线型 */
|
|
6446
7367
|
private lineType;
|
|
6447
7368
|
/* Excluded from this release type: __constructor */
|
|
7369
|
+
/* Excluded from this release type: create */
|
|
7370
|
+
/**
|
|
7371
|
+
* 获取属性状态:图元类型
|
|
7372
|
+
*
|
|
7373
|
+
* @public
|
|
7374
|
+
* @returns 图元类型
|
|
7375
|
+
*/
|
|
7376
|
+
getState_PrimitiveType(): ESCH_PrimitiveType;
|
|
7377
|
+
/**
|
|
7378
|
+
* 获取属性状态:图元 ID
|
|
7379
|
+
*
|
|
7380
|
+
* @public
|
|
7381
|
+
* @returns 图元 ID
|
|
7382
|
+
*/
|
|
7383
|
+
getState_PrimitiveId(): string;
|
|
7384
|
+
/**
|
|
7385
|
+
* 获取属性状态:坐标组
|
|
7386
|
+
*
|
|
7387
|
+
* @public
|
|
7388
|
+
* @returns 坐标组
|
|
7389
|
+
*/
|
|
7390
|
+
getState_Line(): Array<number>;
|
|
7391
|
+
/**
|
|
7392
|
+
* 获取属性状态:颜色
|
|
7393
|
+
*
|
|
7394
|
+
* @public
|
|
7395
|
+
* @returns 颜色
|
|
7396
|
+
*/
|
|
7397
|
+
getState_Color(): string | null;
|
|
7398
|
+
/**
|
|
7399
|
+
* 获取属性状态:填充颜色
|
|
7400
|
+
*
|
|
7401
|
+
* @public
|
|
7402
|
+
* @returns 填充颜色
|
|
7403
|
+
*/
|
|
7404
|
+
getState_FillColor(): string | null;
|
|
7405
|
+
/**
|
|
7406
|
+
* 获取属性状态:线宽
|
|
7407
|
+
*
|
|
7408
|
+
* @public
|
|
7409
|
+
* @returns 线宽
|
|
7410
|
+
*/
|
|
7411
|
+
getState_LineWidth(): number | null;
|
|
7412
|
+
/**
|
|
7413
|
+
* 获取属性状态:线型
|
|
7414
|
+
*
|
|
7415
|
+
* @public
|
|
7416
|
+
* @returns 线型
|
|
7417
|
+
*/
|
|
7418
|
+
getState_LineType(): ESCH_PrimitiveLineType | null;
|
|
7419
|
+
/**
|
|
7420
|
+
* 设置属性状态:坐标组
|
|
7421
|
+
*
|
|
7422
|
+
* @beta
|
|
7423
|
+
* @param line - 坐标组
|
|
7424
|
+
* @returns 多边形图元对象
|
|
7425
|
+
*/
|
|
7426
|
+
setState_Line(line: Array<number>): ISCH_PrimitivePolygon;
|
|
7427
|
+
/**
|
|
7428
|
+
* 设置属性状态:颜色
|
|
7429
|
+
*
|
|
7430
|
+
* @beta
|
|
7431
|
+
* @param color - 颜色
|
|
7432
|
+
* @returns 多边形图元对象
|
|
7433
|
+
*/
|
|
7434
|
+
setState_Color(color: string | null): ISCH_PrimitivePolygon;
|
|
7435
|
+
/**
|
|
7436
|
+
* 设置属性状态:填充颜色
|
|
7437
|
+
*
|
|
7438
|
+
* @beta
|
|
7439
|
+
* @param fillColor - 填充颜色
|
|
7440
|
+
* @returns 多边形图元对象
|
|
7441
|
+
*/
|
|
7442
|
+
setState_FillColor(fillColor: string | null): ISCH_PrimitivePolygon;
|
|
7443
|
+
/**
|
|
7444
|
+
* 设置属性状态:线宽
|
|
7445
|
+
*
|
|
7446
|
+
* @beta
|
|
7447
|
+
* @param lineWidth - 线宽
|
|
7448
|
+
* @returns 多边形图元对象
|
|
7449
|
+
*/
|
|
7450
|
+
setState_LineWidth(lineWidth: number | null): ISCH_PrimitivePolygon;
|
|
7451
|
+
/**
|
|
7452
|
+
* 设置属性状态:线型
|
|
7453
|
+
*
|
|
7454
|
+
* @beta
|
|
7455
|
+
* @param lineType - 线型
|
|
7456
|
+
* @returns 多边形图元对象
|
|
7457
|
+
*/
|
|
7458
|
+
setState_LineType(lineType: ESCH_PrimitiveLineType | null): ISCH_PrimitivePolygon;
|
|
7459
|
+
/**
|
|
7460
|
+
* 将图元转换为异步图元
|
|
7461
|
+
*
|
|
7462
|
+
* @public
|
|
7463
|
+
* @returns 多边形图元对象
|
|
7464
|
+
*/
|
|
7465
|
+
toAsync(): ISCH_PrimitivePolygon;
|
|
7466
|
+
/**
|
|
7467
|
+
* 将图元转换为同步图元
|
|
7468
|
+
*
|
|
7469
|
+
* @public
|
|
7470
|
+
* @returns 多边形图元对象
|
|
7471
|
+
*/
|
|
7472
|
+
toSync(): ISCH_PrimitivePolygon;
|
|
7473
|
+
/**
|
|
7474
|
+
* 查询图元是否为异步图元
|
|
7475
|
+
*
|
|
7476
|
+
* @public
|
|
7477
|
+
* @returns 是否为异步图元
|
|
7478
|
+
*/
|
|
7479
|
+
isAsync(): boolean;
|
|
7480
|
+
/**
|
|
7481
|
+
* 将异步图元重置为当前画布状态
|
|
7482
|
+
*
|
|
7483
|
+
* @beta
|
|
7484
|
+
* @returns 多边形图元对象
|
|
7485
|
+
*/
|
|
7486
|
+
reset(): Promise<ISCH_PrimitivePolygon>;
|
|
7487
|
+
/**
|
|
7488
|
+
* 将对图元的更改应用到画布
|
|
7489
|
+
*
|
|
7490
|
+
* @beta
|
|
7491
|
+
* @returns 多边形图元对象
|
|
7492
|
+
*/
|
|
7493
|
+
done(): ISCH_PrimitivePolygon;
|
|
7494
|
+
}
|
|
7495
|
+
|
|
7496
|
+
/**
|
|
7497
|
+
* 矩形图元
|
|
7498
|
+
*
|
|
7499
|
+
* @public
|
|
7500
|
+
*/
|
|
7501
|
+
declare class ISCH_PrimitiveRectangle implements ISCH_Primitive {
|
|
7502
|
+
/** 异步 */
|
|
7503
|
+
private async;
|
|
7504
|
+
/** 图元类型 */
|
|
7505
|
+
private readonly primitiveType;
|
|
7506
|
+
/** 图元 ID */
|
|
7507
|
+
private primitiveId?;
|
|
7508
|
+
/** 左上点 X */
|
|
7509
|
+
private topLeftX;
|
|
7510
|
+
/** 左上点 Y */
|
|
7511
|
+
private topLeftY;
|
|
7512
|
+
/** 宽 */
|
|
7513
|
+
private width;
|
|
7514
|
+
/** 高 */
|
|
7515
|
+
private height;
|
|
7516
|
+
/** 圆角半径 */
|
|
7517
|
+
private cornerRadius;
|
|
7518
|
+
/** 旋转角度 */
|
|
7519
|
+
private rotation;
|
|
7520
|
+
/** 边框颜色 */
|
|
7521
|
+
private color;
|
|
7522
|
+
/** 填充颜色 */
|
|
7523
|
+
private fillColor;
|
|
7524
|
+
/** 线宽 */
|
|
7525
|
+
private lineWidth;
|
|
7526
|
+
/** 线型 */
|
|
7527
|
+
private lineType;
|
|
7528
|
+
/** 填充样式 */
|
|
7529
|
+
private fillStyle;
|
|
7530
|
+
/* Excluded from this release type: __constructor */
|
|
7531
|
+
/* Excluded from this release type: create */
|
|
7532
|
+
/**
|
|
7533
|
+
* 获取属性状态:图元类型
|
|
7534
|
+
*
|
|
7535
|
+
* @public
|
|
7536
|
+
* @returns 图元类型
|
|
7537
|
+
*/
|
|
7538
|
+
getState_PrimitiveType(): ESCH_PrimitiveType;
|
|
7539
|
+
/**
|
|
7540
|
+
* 获取属性状态:图元 ID
|
|
7541
|
+
*
|
|
7542
|
+
* @public
|
|
7543
|
+
* @returns 图元 ID
|
|
7544
|
+
*/
|
|
7545
|
+
getState_PrimitiveId(): string;
|
|
7546
|
+
/**
|
|
7547
|
+
* 获取属性状态:左上点 X
|
|
7548
|
+
*
|
|
7549
|
+
* @public
|
|
7550
|
+
* @returns 左上点 X
|
|
7551
|
+
*/
|
|
7552
|
+
getState_TopLeftX(): number;
|
|
7553
|
+
/**
|
|
7554
|
+
* 获取属性状态:左上点 Y
|
|
7555
|
+
*
|
|
7556
|
+
* @public
|
|
7557
|
+
* @returns 左上点 Y
|
|
7558
|
+
*/
|
|
7559
|
+
getState_TopLeftY(): number;
|
|
7560
|
+
/**
|
|
7561
|
+
* 获取属性状态:宽
|
|
7562
|
+
*
|
|
7563
|
+
* @public
|
|
7564
|
+
* @returns 宽
|
|
7565
|
+
*/
|
|
7566
|
+
getState_Width(): number;
|
|
7567
|
+
/**
|
|
7568
|
+
* 获取属性状态:高
|
|
7569
|
+
*
|
|
7570
|
+
* @public
|
|
7571
|
+
* @returns 高
|
|
7572
|
+
*/
|
|
7573
|
+
getState_Height(): number;
|
|
7574
|
+
/**
|
|
7575
|
+
* 获取属性状态:圆角半径
|
|
7576
|
+
*
|
|
7577
|
+
* @public
|
|
7578
|
+
* @returns 圆角半径
|
|
7579
|
+
*/
|
|
7580
|
+
getState_CornerRadius(): number;
|
|
7581
|
+
/**
|
|
7582
|
+
* 获取属性状态:旋转角度
|
|
7583
|
+
*
|
|
7584
|
+
* @public
|
|
7585
|
+
* @returns 旋转角度
|
|
7586
|
+
*/
|
|
7587
|
+
getState_Rotation(): number;
|
|
7588
|
+
/**
|
|
7589
|
+
* 获取属性状态:边框颜色
|
|
7590
|
+
*
|
|
7591
|
+
* @public
|
|
7592
|
+
* @returns 边框颜色
|
|
7593
|
+
*/
|
|
7594
|
+
getState_Color(): string | null;
|
|
7595
|
+
/**
|
|
7596
|
+
* 获取属性状态:填充颜色
|
|
7597
|
+
*
|
|
7598
|
+
* @public
|
|
7599
|
+
* @returns 填充颜色
|
|
7600
|
+
*/
|
|
7601
|
+
getState_FillColor(): string | null;
|
|
6448
7602
|
/**
|
|
6449
|
-
*
|
|
7603
|
+
* 获取属性状态:线宽
|
|
6450
7604
|
*
|
|
6451
|
-
* @
|
|
7605
|
+
* @public
|
|
7606
|
+
* @returns 线宽
|
|
6452
7607
|
*/
|
|
6453
|
-
create(): Promise<ISCH_PrimitivePolygon>;
|
|
6454
|
-
getState_PrimitiveType(): ESCH_PrimitiveType;
|
|
6455
|
-
getState_PrimitiveId(): string;
|
|
6456
|
-
getState_Line(): Number[];
|
|
6457
|
-
getState_Color(): string | null;
|
|
6458
|
-
getState_FillColor(): string | null;
|
|
6459
7608
|
getState_LineWidth(): number | null;
|
|
6460
|
-
getState_LineType(): number | null;
|
|
6461
|
-
/** 数据校验 */
|
|
6462
|
-
setState_Line(line: Array<number>): ISCH_PrimitivePolygon;
|
|
6463
|
-
/** 数据校验 */
|
|
6464
|
-
setState_Color(color: string | null): ISCH_PrimitivePolygon;
|
|
6465
|
-
/** 数据校验 */
|
|
6466
|
-
setState_FillColor(fillColor: string | null): ISCH_PrimitivePolygon;
|
|
6467
|
-
/** 数据校验 */
|
|
6468
|
-
setState_LineWidth(lineWidth: number | null): ISCH_PrimitivePolygon;
|
|
6469
|
-
/** 数据校验 */
|
|
6470
|
-
setState_LineType(lineType: number | null): ISCH_PrimitivePolygon;
|
|
6471
7609
|
/**
|
|
6472
|
-
*
|
|
7610
|
+
* 获取属性状态:线型
|
|
7611
|
+
*
|
|
7612
|
+
* @public
|
|
7613
|
+
* @returns 线型
|
|
6473
7614
|
*/
|
|
6474
|
-
|
|
7615
|
+
getState_LineType(): ESCH_PrimitiveLineType | null;
|
|
6475
7616
|
/**
|
|
6476
|
-
*
|
|
7617
|
+
* 获取属性状态:填充样式
|
|
7618
|
+
*
|
|
7619
|
+
* @public
|
|
7620
|
+
* @returns 填充样式
|
|
6477
7621
|
*/
|
|
6478
|
-
|
|
7622
|
+
getState_FillStyle(): ESCH_PrimitiveFillStyle | null;
|
|
6479
7623
|
/**
|
|
6480
|
-
*
|
|
7624
|
+
* 设置属性状态:左上点 X
|
|
7625
|
+
*
|
|
7626
|
+
* @beta
|
|
7627
|
+
* @param topLeftX - 左上点 X
|
|
7628
|
+
* @returns 矩形图元对象
|
|
6481
7629
|
*/
|
|
6482
|
-
|
|
7630
|
+
setState_TopLeftX(topLeftX: number): ISCH_PrimitiveRectangle;
|
|
6483
7631
|
/**
|
|
6484
|
-
*
|
|
7632
|
+
* 设置属性状态:左上点 Y
|
|
7633
|
+
*
|
|
7634
|
+
* @beta
|
|
7635
|
+
* @param topLeftY - 左上点 Y
|
|
7636
|
+
* @returns 矩形图元对象
|
|
6485
7637
|
*/
|
|
6486
|
-
|
|
7638
|
+
setState_TopLeftY(topLeftY: number): ISCH_PrimitiveRectangle;
|
|
6487
7639
|
/**
|
|
6488
|
-
*
|
|
7640
|
+
* 设置属性状态:宽
|
|
7641
|
+
*
|
|
7642
|
+
* @beta
|
|
7643
|
+
* @param width - 宽
|
|
7644
|
+
* @returns 矩形图元对象
|
|
6489
7645
|
*/
|
|
6490
|
-
|
|
6491
|
-
}
|
|
6492
|
-
|
|
6493
|
-
/**
|
|
6494
|
-
* 矩形图元
|
|
6495
|
-
*
|
|
6496
|
-
* @public
|
|
6497
|
-
*/
|
|
6498
|
-
declare class ISCH_PrimitiveRectangle implements ISCH_Primitive {
|
|
6499
|
-
/** 异步 */
|
|
6500
|
-
private async;
|
|
6501
|
-
/** 图元类型 */
|
|
6502
|
-
private readonly primitiveType;
|
|
6503
|
-
/** 图元 ID */
|
|
6504
|
-
private primitiveId?;
|
|
6505
|
-
/** 左上点 X */
|
|
6506
|
-
private topLeftX;
|
|
6507
|
-
/** 左上点 Y */
|
|
6508
|
-
private topLeftY;
|
|
6509
|
-
/** 宽 */
|
|
6510
|
-
private width;
|
|
6511
|
-
/** 高 */
|
|
6512
|
-
private height;
|
|
6513
|
-
/** 圆角半径 */
|
|
6514
|
-
private cornerRadius;
|
|
6515
|
-
/** 旋转角度 */
|
|
6516
|
-
private rotation;
|
|
6517
|
-
/** 边框颜色 */
|
|
6518
|
-
private color;
|
|
6519
|
-
/** 填充颜色 */
|
|
6520
|
-
private fillColor;
|
|
6521
|
-
/** 线宽 */
|
|
6522
|
-
private lineWidth;
|
|
6523
|
-
/** 线型 */
|
|
6524
|
-
private lineType;
|
|
6525
|
-
/* Excluded from this release type: __constructor */
|
|
7646
|
+
setState_Width(width: number): ISCH_PrimitiveRectangle;
|
|
6526
7647
|
/**
|
|
6527
|
-
*
|
|
7648
|
+
* 设置属性状态:高
|
|
6528
7649
|
*
|
|
7650
|
+
* @beta
|
|
7651
|
+
* @param height - 高
|
|
6529
7652
|
* @returns 矩形图元对象
|
|
6530
7653
|
*/
|
|
6531
|
-
create(): Promise<ISCH_PrimitiveRectangle>;
|
|
6532
|
-
getState_PrimitiveType(): ESCH_PrimitiveType;
|
|
6533
|
-
getState_PrimitiveId(): string;
|
|
6534
|
-
getState_TopLeftX(): number;
|
|
6535
|
-
getState_TopLeftY(): number;
|
|
6536
|
-
getState_Width(): number;
|
|
6537
|
-
getState_Height(): number;
|
|
6538
|
-
getState_CornerRadius(): number;
|
|
6539
|
-
getState_Rotation(): number;
|
|
6540
|
-
getState_Color(): null | string;
|
|
6541
|
-
getState_FillColor(): null | string;
|
|
6542
|
-
getState_LineWidth(): null | number;
|
|
6543
|
-
getState_LineType(): null | number;
|
|
6544
|
-
setState_TopLeftX(topLeftX: number): ISCH_PrimitiveRectangle;
|
|
6545
|
-
setState_TopLeftY(topLeftY: number): ISCH_PrimitiveRectangle;
|
|
6546
|
-
setState_Width(width: number): ISCH_PrimitiveRectangle;
|
|
6547
7654
|
setState_Height(height: number): ISCH_PrimitiveRectangle;
|
|
7655
|
+
/**
|
|
7656
|
+
* 设置属性状态:圆角半径
|
|
7657
|
+
*
|
|
7658
|
+
* @beta
|
|
7659
|
+
* @param cornerRadius - 圆角半径
|
|
7660
|
+
* @returns 矩形图元对象
|
|
7661
|
+
*/
|
|
6548
7662
|
setState_CornerRadius(cornerRadius: number): ISCH_PrimitiveRectangle;
|
|
7663
|
+
/**
|
|
7664
|
+
* 设置属性状态:旋转角度
|
|
7665
|
+
*
|
|
7666
|
+
* @beta
|
|
7667
|
+
* @param rotation - 旋转角度
|
|
7668
|
+
* @returns 矩形图元对象
|
|
7669
|
+
*/
|
|
6549
7670
|
setState_Rotation(rotation: number): ISCH_PrimitiveRectangle;
|
|
7671
|
+
/**
|
|
7672
|
+
* 设置属性状态:边框颜色
|
|
7673
|
+
*
|
|
7674
|
+
* @beta
|
|
7675
|
+
* @param color - 边框颜色
|
|
7676
|
+
* @returns 矩形图元对象
|
|
7677
|
+
*/
|
|
6550
7678
|
setState_Color(color: string | null): ISCH_PrimitiveRectangle;
|
|
7679
|
+
/**
|
|
7680
|
+
* 设置属性状态:填充颜色
|
|
7681
|
+
*
|
|
7682
|
+
* @beta
|
|
7683
|
+
* @param fillColor - 填充颜色
|
|
7684
|
+
* @returns 矩形图元对象
|
|
7685
|
+
*/
|
|
6551
7686
|
setState_FillColor(fillColor: string | null): ISCH_PrimitiveRectangle;
|
|
7687
|
+
/**
|
|
7688
|
+
* 设置属性状态:线宽
|
|
7689
|
+
*
|
|
7690
|
+
* @beta
|
|
7691
|
+
* @param lineWidth - 线宽
|
|
7692
|
+
* @returns 矩形图元对象
|
|
7693
|
+
*/
|
|
6552
7694
|
setState_LineWidth(lineWidth: number | null): ISCH_PrimitiveRectangle;
|
|
6553
|
-
|
|
7695
|
+
/**
|
|
7696
|
+
* 设置属性状态:线型
|
|
7697
|
+
*
|
|
7698
|
+
* @beta
|
|
7699
|
+
* @param lineType - 线型
|
|
7700
|
+
* @returns 矩形图元对象
|
|
7701
|
+
*/
|
|
7702
|
+
setState_LineType(lineType: ESCH_PrimitiveLineType | null): ISCH_PrimitiveRectangle;
|
|
7703
|
+
/**
|
|
7704
|
+
* 设置属性状态:填充样式
|
|
7705
|
+
*
|
|
7706
|
+
* @beta
|
|
7707
|
+
* @param fillStyle - 填充样式
|
|
7708
|
+
* @returns 矩形图元对象
|
|
7709
|
+
*/
|
|
7710
|
+
setState_FillStyle(fillStyle: ESCH_PrimitiveFillStyle | null): ISCH_PrimitiveRectangle;
|
|
6554
7711
|
/**
|
|
6555
7712
|
* 将图元转换为异步图元
|
|
7713
|
+
*
|
|
7714
|
+
* @public
|
|
7715
|
+
* @returns 矩形图元对象
|
|
6556
7716
|
*/
|
|
6557
7717
|
toAsync(): ISCH_PrimitiveRectangle;
|
|
6558
7718
|
/**
|
|
6559
7719
|
* 将图元转换为同步图元
|
|
7720
|
+
*
|
|
7721
|
+
* @public
|
|
7722
|
+
* @returns 矩形图元对象
|
|
6560
7723
|
*/
|
|
6561
7724
|
toSync(): ISCH_PrimitiveRectangle;
|
|
6562
7725
|
/**
|
|
6563
7726
|
* 查询图元是否为异步图元
|
|
7727
|
+
*
|
|
7728
|
+
* @public
|
|
7729
|
+
* @returns 是否为异步图元
|
|
6564
7730
|
*/
|
|
6565
7731
|
isAsync(): boolean;
|
|
6566
7732
|
/**
|
|
6567
7733
|
* 将异步图元重置为当前画布状态
|
|
7734
|
+
*
|
|
7735
|
+
* @beta
|
|
7736
|
+
* @returns 矩形图元对象
|
|
6568
7737
|
*/
|
|
6569
7738
|
reset(): Promise<ISCH_PrimitiveRectangle>;
|
|
6570
7739
|
/**
|
|
6571
7740
|
* 将对图元的更改应用到画布
|
|
7741
|
+
*
|
|
7742
|
+
* @beta
|
|
7743
|
+
* @returns 矩形图元对象
|
|
6572
7744
|
*/
|
|
6573
7745
|
done(): ISCH_PrimitiveRectangle;
|
|
6574
7746
|
}
|
|
@@ -6608,72 +7780,221 @@ declare class ISCH_PrimitiveText implements ISCH_Primitive {
|
|
|
6608
7780
|
/** 对齐模式 */
|
|
6609
7781
|
private alignMode;
|
|
6610
7782
|
/* Excluded from this release type: __constructor */
|
|
7783
|
+
/* Excluded from this release type: create */
|
|
6611
7784
|
/**
|
|
6612
|
-
*
|
|
7785
|
+
* 获取属性状态:图元类型
|
|
6613
7786
|
*
|
|
6614
|
-
* @
|
|
6615
|
-
* @returns
|
|
7787
|
+
* @public
|
|
7788
|
+
* @returns 图元类型
|
|
6616
7789
|
*/
|
|
6617
|
-
create(): Promise<ISCH_PrimitiveText>;
|
|
6618
7790
|
getState_PrimitiveType(): ESCH_PrimitiveType;
|
|
7791
|
+
/**
|
|
7792
|
+
* 获取属性状态:图元 ID
|
|
7793
|
+
*
|
|
7794
|
+
* @public
|
|
7795
|
+
* @returns 图元 ID
|
|
7796
|
+
*/
|
|
6619
7797
|
getState_PrimitiveId(): string;
|
|
7798
|
+
/**
|
|
7799
|
+
* 获取属性状态:坐标 X
|
|
7800
|
+
*
|
|
7801
|
+
* @public
|
|
7802
|
+
* @returns 坐标 X
|
|
7803
|
+
*/
|
|
6620
7804
|
getState_X(): number;
|
|
7805
|
+
/**
|
|
7806
|
+
* 获取属性状态:坐标 Y
|
|
7807
|
+
*
|
|
7808
|
+
* @public
|
|
7809
|
+
* @returns 坐标 Y
|
|
7810
|
+
*/
|
|
6621
7811
|
getState_Y(): number;
|
|
7812
|
+
/**
|
|
7813
|
+
* 获取属性状态:文本内容
|
|
7814
|
+
*
|
|
7815
|
+
* @public
|
|
7816
|
+
* @returns 文本内容
|
|
7817
|
+
*/
|
|
6622
7818
|
getState_Content(): string;
|
|
7819
|
+
/**
|
|
7820
|
+
* 获取属性状态:旋转角度
|
|
7821
|
+
*
|
|
7822
|
+
* @public
|
|
7823
|
+
* @returns 旋转角度
|
|
7824
|
+
*/
|
|
6623
7825
|
getState_Rotation(): number;
|
|
7826
|
+
/**
|
|
7827
|
+
* 获取属性状态:文本颜色
|
|
7828
|
+
*
|
|
7829
|
+
* @public
|
|
7830
|
+
* @returns 文本颜色
|
|
7831
|
+
*/
|
|
6624
7832
|
getState_TextColor(): string | null;
|
|
7833
|
+
/**
|
|
7834
|
+
* 获取属性状态:字体名称
|
|
7835
|
+
*
|
|
7836
|
+
* @public
|
|
7837
|
+
* @returns 字体名称
|
|
7838
|
+
*/
|
|
6625
7839
|
getState_FontName(): string | null;
|
|
7840
|
+
/**
|
|
7841
|
+
* 获取属性状态:字体大小
|
|
7842
|
+
*
|
|
7843
|
+
* @public
|
|
7844
|
+
* @returns 字体大小
|
|
7845
|
+
*/
|
|
6626
7846
|
getState_FontSize(): number | null;
|
|
7847
|
+
/**
|
|
7848
|
+
* 获取属性状态:是否加粗
|
|
7849
|
+
*
|
|
7850
|
+
* @public
|
|
7851
|
+
* @returns 是否加粗
|
|
7852
|
+
*/
|
|
6627
7853
|
getState_Bold(): boolean;
|
|
7854
|
+
/**
|
|
7855
|
+
* 获取属性状态:是否斜体
|
|
7856
|
+
*
|
|
7857
|
+
* @public
|
|
7858
|
+
* @returns 是否斜体
|
|
7859
|
+
*/
|
|
6628
7860
|
getState_Italic(): boolean;
|
|
7861
|
+
/**
|
|
7862
|
+
* 获取属性状态:是否加下划线
|
|
7863
|
+
*
|
|
7864
|
+
* @public
|
|
7865
|
+
* @returns 是否加下划线
|
|
7866
|
+
*/
|
|
6629
7867
|
getState_UnderLine(): boolean;
|
|
7868
|
+
/**
|
|
7869
|
+
* 获取属性状态:对齐模式
|
|
7870
|
+
*
|
|
7871
|
+
* @public
|
|
7872
|
+
* @returns 对齐模式
|
|
7873
|
+
*/
|
|
6630
7874
|
getState_AlignMode(): number;
|
|
6631
|
-
/**
|
|
7875
|
+
/**
|
|
7876
|
+
* 设置属性状态:坐标 X
|
|
7877
|
+
*
|
|
7878
|
+
* @beta
|
|
7879
|
+
* @param x - 坐标 X
|
|
7880
|
+
* @returns 文本图元对象
|
|
7881
|
+
*/
|
|
6632
7882
|
setState_X(x: number): ISCH_PrimitiveText;
|
|
6633
|
-
/**
|
|
7883
|
+
/**
|
|
7884
|
+
* 设置属性状态:坐标 Y
|
|
7885
|
+
*
|
|
7886
|
+
* @beta
|
|
7887
|
+
* @param y - 坐标 Y
|
|
7888
|
+
* @returns 文本图元对象
|
|
7889
|
+
*/
|
|
6634
7890
|
setState_Y(y: number): ISCH_PrimitiveText;
|
|
6635
|
-
/**
|
|
7891
|
+
/**
|
|
7892
|
+
* 设置属性状态:文本内容
|
|
7893
|
+
*
|
|
7894
|
+
* @beta
|
|
7895
|
+
* @param content - 文本内容
|
|
7896
|
+
* @returns 文本图元对象
|
|
7897
|
+
*/
|
|
6636
7898
|
setState_Content(content: string): ISCH_PrimitiveText;
|
|
6637
|
-
/**
|
|
7899
|
+
/**
|
|
7900
|
+
* 设置属性状态:旋转角度
|
|
7901
|
+
*
|
|
7902
|
+
* @beta
|
|
7903
|
+
* @param rotation - 旋转角度
|
|
7904
|
+
* @returns 文本图元对象
|
|
7905
|
+
*/
|
|
6638
7906
|
setState_Rotation(rotation: number): ISCH_PrimitiveText;
|
|
6639
|
-
/**
|
|
7907
|
+
/**
|
|
7908
|
+
* 设置属性状态:文本颜色
|
|
7909
|
+
*
|
|
7910
|
+
* @beta
|
|
7911
|
+
* @param textColor - 文本颜色
|
|
7912
|
+
* @returns 文本图元对象
|
|
7913
|
+
*/
|
|
6640
7914
|
setState_TextColor(textColor: string | null): ISCH_PrimitiveText;
|
|
6641
|
-
/**
|
|
7915
|
+
/**
|
|
7916
|
+
* 设置属性状态:字体名称
|
|
7917
|
+
*
|
|
7918
|
+
* @beta
|
|
7919
|
+
* @param fontName - 字体名称
|
|
7920
|
+
* @returns 文本图元对象
|
|
7921
|
+
*/
|
|
6642
7922
|
setState_FontName(fontName: string | null): ISCH_PrimitiveText;
|
|
6643
|
-
/**
|
|
7923
|
+
/**
|
|
7924
|
+
* 设置属性状态:字体大小
|
|
7925
|
+
*
|
|
7926
|
+
* @beta
|
|
7927
|
+
* @param fontSize - 字体大小
|
|
7928
|
+
* @returns 文本图元对象
|
|
7929
|
+
*/
|
|
6644
7930
|
setState_FontSize(fontSize: number | null): ISCH_PrimitiveText;
|
|
6645
|
-
/**
|
|
7931
|
+
/**
|
|
7932
|
+
* 设置属性状态:是否加粗
|
|
7933
|
+
*
|
|
7934
|
+
* @beta
|
|
7935
|
+
* @param bold - 是否加粗
|
|
7936
|
+
* @returns 文本图元对象
|
|
7937
|
+
*/
|
|
6646
7938
|
setState_Bold(bold: boolean): ISCH_PrimitiveText;
|
|
6647
|
-
/**
|
|
7939
|
+
/**
|
|
7940
|
+
* 设置属性状态:是否斜体
|
|
7941
|
+
*
|
|
7942
|
+
* @beta
|
|
7943
|
+
* @param italic - 是否斜体
|
|
7944
|
+
* @returns 文本图元对象
|
|
7945
|
+
*/
|
|
6648
7946
|
setState_Italic(italic: boolean): ISCH_PrimitiveText;
|
|
6649
|
-
/**
|
|
7947
|
+
/**
|
|
7948
|
+
* 设置属性状态:是否加下划线
|
|
7949
|
+
*
|
|
7950
|
+
* @beta
|
|
7951
|
+
* @param underLine - 是否加下划线
|
|
7952
|
+
* @returns 文本图元对象
|
|
7953
|
+
*/
|
|
6650
7954
|
setState_UnderLine(underLine: boolean): ISCH_PrimitiveText;
|
|
6651
|
-
/**
|
|
7955
|
+
/**
|
|
7956
|
+
* 设置属性状态:对齐模式
|
|
7957
|
+
*
|
|
7958
|
+
* @beta
|
|
7959
|
+
* @param alignMode - 对齐模式
|
|
7960
|
+
* @returns 文本图元对象
|
|
7961
|
+
*/
|
|
6652
7962
|
setState_AlignMode(alignMode: number): ISCH_PrimitiveText;
|
|
6653
7963
|
/**
|
|
6654
7964
|
* 将图元转换为异步图元
|
|
7965
|
+
*
|
|
7966
|
+
* @public
|
|
7967
|
+
* @returns 文本图元对象
|
|
6655
7968
|
*/
|
|
6656
7969
|
toAsync(): ISCH_PrimitiveText;
|
|
6657
7970
|
/**
|
|
6658
7971
|
* 将图元转换为同步图元
|
|
7972
|
+
*
|
|
7973
|
+
* @public
|
|
7974
|
+
* @returns 文本图元对象
|
|
6659
7975
|
*/
|
|
6660
7976
|
toSync(): ISCH_PrimitiveText;
|
|
6661
7977
|
/**
|
|
6662
7978
|
* 查询图元是否为异步图元
|
|
7979
|
+
*
|
|
7980
|
+
* @public
|
|
7981
|
+
* @returns 是否为异步图元
|
|
6663
7982
|
*/
|
|
6664
7983
|
isAsync(): boolean;
|
|
6665
7984
|
/**
|
|
6666
7985
|
* 将异步图元重置为当前画布状态
|
|
6667
7986
|
*
|
|
6668
7987
|
* @beta
|
|
7988
|
+
* @returns 文本图元对象
|
|
6669
7989
|
*/
|
|
6670
|
-
reset(): ISCH_PrimitiveText
|
|
7990
|
+
reset(): Promise<ISCH_PrimitiveText>;
|
|
6671
7991
|
/**
|
|
6672
7992
|
* 将对图元的更改应用到画布
|
|
6673
7993
|
*
|
|
6674
7994
|
* @beta
|
|
7995
|
+
* @returns 文本图元对象
|
|
6675
7996
|
*/
|
|
6676
|
-
done(): ISCH_PrimitiveText
|
|
7997
|
+
done(): Promise<ISCH_PrimitiveText>;
|
|
6677
7998
|
}
|
|
6678
7999
|
|
|
6679
8000
|
/**
|
|
@@ -6699,49 +8020,125 @@ declare class ISCH_PrimitiveWire implements ISCH_Primitive {
|
|
|
6699
8020
|
/** 线型 */
|
|
6700
8021
|
private lineType;
|
|
6701
8022
|
/* Excluded from this release type: __constructor */
|
|
8023
|
+
/* Excluded from this release type: create */
|
|
6702
8024
|
/**
|
|
6703
|
-
*
|
|
8025
|
+
* 获取属性状态:图元类型
|
|
6704
8026
|
*
|
|
6705
|
-
* @
|
|
6706
|
-
* @returns
|
|
8027
|
+
* @public
|
|
8028
|
+
* @returns 图元类型
|
|
6707
8029
|
*/
|
|
6708
|
-
create(): ISCH_PrimitiveWire;
|
|
6709
8030
|
getState_PrimitiveType(): ESCH_PrimitiveType;
|
|
8031
|
+
/**
|
|
8032
|
+
* 获取属性状态:图元 ID
|
|
8033
|
+
*
|
|
8034
|
+
* @public
|
|
8035
|
+
* @returns 图元 ID
|
|
8036
|
+
*/
|
|
6710
8037
|
getState_PrimitiveId(): string;
|
|
6711
|
-
|
|
6712
|
-
|
|
6713
|
-
|
|
6714
|
-
|
|
6715
|
-
|
|
6716
|
-
|
|
6717
|
-
|
|
6718
|
-
|
|
6719
|
-
|
|
6720
|
-
|
|
8038
|
+
/**
|
|
8039
|
+
* 获取属性状态:多段线坐标组
|
|
8040
|
+
*
|
|
8041
|
+
* @public
|
|
8042
|
+
* @returns 多段线坐标组
|
|
8043
|
+
*/
|
|
8044
|
+
getState_Line(): Array<number> | Array<Array<number>>;
|
|
8045
|
+
/**
|
|
8046
|
+
* 获取属性状态:网络名称
|
|
8047
|
+
*
|
|
8048
|
+
* @public
|
|
8049
|
+
* @returns 网络名称
|
|
8050
|
+
*/
|
|
8051
|
+
getState_Net(): string;
|
|
8052
|
+
/**
|
|
8053
|
+
* 获取属性状态:总线颜色
|
|
8054
|
+
*
|
|
8055
|
+
* @public
|
|
8056
|
+
* @returns 总线颜色
|
|
8057
|
+
*/
|
|
8058
|
+
getState_Color(): string | null;
|
|
8059
|
+
/**
|
|
8060
|
+
* 获取属性状态:线宽
|
|
8061
|
+
*
|
|
8062
|
+
* @public
|
|
8063
|
+
* @returns 线宽
|
|
8064
|
+
*/
|
|
8065
|
+
getState_LineWidth(): number | null;
|
|
8066
|
+
/**
|
|
8067
|
+
* 获取属性状态:线型
|
|
8068
|
+
*
|
|
8069
|
+
* @public
|
|
8070
|
+
* @returns 线型
|
|
8071
|
+
*/
|
|
8072
|
+
getState_LineType(): ESCH_PrimitiveLineType | null;
|
|
8073
|
+
/**
|
|
8074
|
+
* 设置属性状态:多段线坐标组
|
|
8075
|
+
*
|
|
8076
|
+
* @beta
|
|
8077
|
+
* @param line - 多段线坐标组
|
|
8078
|
+
* @returns 导线图元对象
|
|
8079
|
+
*/
|
|
8080
|
+
setState_Line(line: Array<number> | Array<Array<number>>): ISCH_PrimitiveWire;
|
|
8081
|
+
/**
|
|
8082
|
+
* 设置属性状态:网络名称
|
|
8083
|
+
*
|
|
8084
|
+
* @beta
|
|
8085
|
+
* @param net - 网络名称
|
|
8086
|
+
* @returns 导线图元对象
|
|
8087
|
+
*/
|
|
8088
|
+
setState_Net(net: string): ISCH_PrimitiveWire;
|
|
8089
|
+
/**
|
|
8090
|
+
* 设置属性状态:导线颜色
|
|
8091
|
+
*
|
|
8092
|
+
* @beta
|
|
8093
|
+
* @param color - 导线颜色
|
|
8094
|
+
* @returns 导线图元对象
|
|
8095
|
+
*/
|
|
8096
|
+
setState_Color(color: string | null): ISCH_PrimitiveWire;
|
|
8097
|
+
/**
|
|
8098
|
+
* 设置属性状态:线宽
|
|
8099
|
+
*
|
|
8100
|
+
* @beta
|
|
8101
|
+
* @param lineWidth - 线宽
|
|
8102
|
+
* @returns 导线图元对象
|
|
8103
|
+
*/
|
|
8104
|
+
setState_LineWidth(lineWidth: number | null): ISCH_PrimitiveWire;
|
|
8105
|
+
/**
|
|
8106
|
+
* 设置属性状态:线型
|
|
8107
|
+
*
|
|
8108
|
+
* @beta
|
|
8109
|
+
* @param lineType - 线型
|
|
8110
|
+
* @returns 导线图元对象
|
|
8111
|
+
*/
|
|
8112
|
+
setState_LineType(lineType: ESCH_PrimitiveLineType | null): ISCH_PrimitiveWire;
|
|
6721
8113
|
/**
|
|
6722
8114
|
* 将图元转换为异步图元
|
|
8115
|
+
*
|
|
8116
|
+
* @public
|
|
8117
|
+
* @returns 导线图元对象
|
|
6723
8118
|
*/
|
|
6724
8119
|
toAsync(): ISCH_PrimitiveWire;
|
|
6725
8120
|
/**
|
|
6726
8121
|
* 将图元转换为同步图元
|
|
8122
|
+
*
|
|
8123
|
+
* @public
|
|
8124
|
+
* @returns 导线图元对象
|
|
6727
8125
|
*/
|
|
6728
8126
|
toSync(): ISCH_PrimitiveWire;
|
|
6729
8127
|
/**
|
|
6730
8128
|
* 查询图元是否为异步图元
|
|
6731
|
-
*/
|
|
6732
|
-
isAsync(): boolean;
|
|
6733
|
-
/**
|
|
6734
|
-
* 将异步图元重置为当前画布状态
|
|
6735
8129
|
*
|
|
6736
|
-
* @
|
|
8130
|
+
* @public
|
|
8131
|
+
* @returns 是否为异步图元
|
|
6737
8132
|
*/
|
|
6738
|
-
|
|
8133
|
+
isAsync(): boolean;
|
|
8134
|
+
/* Excluded from this release type: reset */
|
|
6739
8135
|
/**
|
|
6740
8136
|
* 将对图元的更改应用到画布
|
|
6741
8137
|
*
|
|
6742
8138
|
* @beta
|
|
8139
|
+
* @returns 导线图元对象
|
|
6743
8140
|
*/
|
|
6744
|
-
done(): ISCH_PrimitiveWire
|
|
8141
|
+
done(): Promise<ISCH_PrimitiveWire>;
|
|
6745
8142
|
}
|
|
6746
8143
|
|
|
6747
8144
|
/**
|
|
@@ -6810,6 +8207,13 @@ declare interface ISYS_WindowEventListenerRemovableObject {
|
|
|
6810
8207
|
};
|
|
6811
8208
|
}
|
|
6812
8209
|
|
|
8210
|
+
declare interface ITableColum {
|
|
8211
|
+
property: string;
|
|
8212
|
+
title?: string;
|
|
8213
|
+
sort?: null | 'asc' | 'desc';
|
|
8214
|
+
group?: null | 'Yes' | 'No';
|
|
8215
|
+
}
|
|
8216
|
+
|
|
6813
8217
|
/**
|
|
6814
8218
|
* 综合库 / 3D 模型类
|
|
6815
8219
|
*
|
|
@@ -6995,7 +8399,7 @@ declare class LIB_Classification {
|
|
|
6995
8399
|
*/
|
|
6996
8400
|
createPrimary(libraryUuid: string, libraryType: ELIB_LibraryType, primaryClassificationName: string): Promise<ILIB_ClassificationIndex | undefined>;
|
|
6997
8401
|
/**
|
|
6998
|
-
*
|
|
8402
|
+
* 创建二��分类
|
|
6999
8403
|
*
|
|
7000
8404
|
* @beta
|
|
7001
8405
|
* @param libraryUuid - 库 UUID
|
|
@@ -7705,7 +9109,7 @@ declare class PCB_Document {
|
|
|
7705
9109
|
*/
|
|
7706
9110
|
setCanvasOrigin(offsetX: number, offsetY: number): Promise<boolean>;
|
|
7707
9111
|
/**
|
|
7708
|
-
*
|
|
9112
|
+
* 定位到画布坐标
|
|
7709
9113
|
*
|
|
7710
9114
|
* @public
|
|
7711
9115
|
* @remarks
|
|
@@ -7796,7 +9200,7 @@ declare class PCB_Drc {
|
|
|
7796
9200
|
* @remarks 只有自定义配置可以覆盖保存,系统配置不允许修改和覆盖
|
|
7797
9201
|
* @param ruleConfiguration - 设计规则配置
|
|
7798
9202
|
* @param configurationName - 配置名称
|
|
7799
|
-
* @param allowOverwrite -
|
|
9203
|
+
* @param allowOverwrite - 是否允许覆写同名设计规则配置,`false` 则将在遇到同名设计规则配置时返回 `false`,请注意可能的数据丢失风险
|
|
7800
9204
|
* @returns 保存是否成功
|
|
7801
9205
|
*/
|
|
7802
9206
|
saveRuleConfiguration(ruleConfiguration: {
|
|
@@ -7906,7 +9310,7 @@ declare class PCB_Drc {
|
|
|
7906
9310
|
* @param color - 网络类颜色
|
|
7907
9311
|
* @returns 操作是否成功
|
|
7908
9312
|
*/
|
|
7909
|
-
createNetClass(netClassName: string, nets: Array<string>, color
|
|
9313
|
+
createNetClass(netClassName: string, nets: Array<string>, color: IPCB_EqualLengthNetGroupItem['color']): Promise<boolean>;
|
|
7910
9314
|
/**
|
|
7911
9315
|
* 删除网络类
|
|
7912
9316
|
*
|
|
@@ -7919,7 +9323,7 @@ declare class PCB_Drc {
|
|
|
7919
9323
|
* 修改网络类的名称
|
|
7920
9324
|
*
|
|
7921
9325
|
* @beta
|
|
7922
|
-
* @param originalNetClassName -
|
|
9326
|
+
* @param originalNetClassName - 原网络类名称
|
|
7923
9327
|
* @param netClassName - 新网络类名称
|
|
7924
9328
|
* @returns 操作是否成功
|
|
7925
9329
|
*/
|
|
@@ -8010,7 +9414,7 @@ declare class PCB_Drc {
|
|
|
8010
9414
|
* @param color - 等长网络组颜色
|
|
8011
9415
|
* @returns 操作是否成功
|
|
8012
9416
|
*/
|
|
8013
|
-
createEqualLengthNetGroup(equalLengthNetGroupName: string, nets: Array<string>, color
|
|
9417
|
+
createEqualLengthNetGroup(equalLengthNetGroupName: string, nets: Array<string>, color: IPCB_EqualLengthNetGroupItem['color']): Promise<boolean>;
|
|
8014
9418
|
/**
|
|
8015
9419
|
* 删除等长网络组
|
|
8016
9420
|
*
|
|
@@ -8188,7 +9592,7 @@ declare class PCB_Layer {
|
|
|
8188
9592
|
* 将层设置为不可见
|
|
8189
9593
|
*
|
|
8190
9594
|
* @beta
|
|
8191
|
-
* @param layer -
|
|
9595
|
+
* @param layer - ���,如若不指定任何层则默认为所有层
|
|
8192
9596
|
* @param setOtherLayerVisible - 是否将其它层设置为可见
|
|
8193
9597
|
* @returns 操作是否成功
|
|
8194
9598
|
*/
|
|
@@ -8307,7 +9711,7 @@ declare class PCB_ManufactureData {
|
|
|
8307
9711
|
* @param colorSilkscreen - 是否生成彩色丝印制造文件(嘉立创专用文件)
|
|
8308
9712
|
* @param unit - 单位
|
|
8309
9713
|
* @param digitalFormat - 数字格式
|
|
8310
|
-
* @param
|
|
9714
|
+
* @param other - 其它
|
|
8311
9715
|
* @param layers - 导出层,默认则按照嘉立创生产需求导出
|
|
8312
9716
|
* @param objects - 导出对象,默认则按照嘉立创生产需求导出
|
|
8313
9717
|
* @returns PCB 制版文件数据
|
|
@@ -8315,14 +9719,15 @@ declare class PCB_ManufactureData {
|
|
|
8315
9719
|
getGerberFile(fileName?: string, colorSilkscreen?: boolean, unit?: ESYS_Unit.MILLIMETER | ESYS_Unit.INCH, digitalFormat?: {
|
|
8316
9720
|
integerNumber: number;
|
|
8317
9721
|
decimalNumber: number;
|
|
8318
|
-
},
|
|
8319
|
-
|
|
8320
|
-
|
|
8321
|
-
|
|
9722
|
+
}, other?: {
|
|
9723
|
+
metallicDrillingInformation: boolean;
|
|
9724
|
+
nonMetallicDrillingInformation: boolean;
|
|
9725
|
+
drillTable: boolean;
|
|
9726
|
+
flyingProbeTestingFile: boolean;
|
|
8322
9727
|
}, layers?: Array<{
|
|
8323
9728
|
layerId: number;
|
|
8324
|
-
|
|
8325
|
-
}>, objects?: Array<
|
|
9729
|
+
isMirror: boolean;
|
|
9730
|
+
}>, objects?: Array<'Pad' | 'Via' | 'Track' | 'Text' | 'Image' | 'Dimension' | 'BoardOutline' | 'BoardCutout' | 'CopperFilled' | 'SolidRegion' | 'FPCStiffener' | 'Line' | 'PlaneZone' | 'ComponentProperty' | 'ComponentSilkscreen' | 'TearDrop'>): Promise<File | undefined>;
|
|
8326
9731
|
/**
|
|
8327
9732
|
* 获取 3D 模型文件
|
|
8328
9733
|
*
|
|
@@ -8368,6 +9773,10 @@ declare class PCB_ManufactureData {
|
|
|
8368
9773
|
* @returns 飞针测试文件数据
|
|
8369
9774
|
*/
|
|
8370
9775
|
getFlyingProbeTestFile(fileName?: string): Promise<File | undefined>;
|
|
9776
|
+
/* Excluded from this release type: getBomTemplates */
|
|
9777
|
+
/* Excluded from this release type: uploadBomTemplateFile */
|
|
9778
|
+
/* Excluded from this release type: getBomTemplateFile */
|
|
9779
|
+
/* Excluded from this release type: deleteBomTemplate */
|
|
8371
9780
|
/**
|
|
8372
9781
|
* 获取 BOM 文件
|
|
8373
9782
|
*
|
|
@@ -8375,9 +9784,17 @@ declare class PCB_ManufactureData {
|
|
|
8375
9784
|
* @remarks 可以使用 {@link SYS_FileSystem.saveFile} 接口将文件导出到本地文件系统
|
|
8376
9785
|
* @param fileName - 文件名
|
|
8377
9786
|
* @param fileType - 文件类型
|
|
9787
|
+
* @param template - 模板名称
|
|
9788
|
+
* @param filterOptions - 过滤规则,仅应包含需要启用的规则,`property` 为规则名称,`includeValue` 为匹配的值
|
|
9789
|
+
* @param statistics - 统计,包含所有需要启用的统计项的名称
|
|
9790
|
+
* @param property - 属性,包含所有需要启用的属性的名称
|
|
9791
|
+
* @param columns - 列的属性及排序,`title`、`sort`、`group`、`orderWeight` 不传入则取默认值,`null` 代表 **无** 或 **空**
|
|
8378
9792
|
* @returns BOM 文件数据
|
|
8379
9793
|
*/
|
|
8380
|
-
getBomFile(fileName?: string, fileType?: 'xlsx' | 'csv'
|
|
9794
|
+
getBomFile(fileName?: string, fileType?: 'xlsx' | 'csv', template?: string, filterOptions?: Array<{
|
|
9795
|
+
property: string;
|
|
9796
|
+
includeValue: boolean | string;
|
|
9797
|
+
}>, statistics?: Array<string>, property?: Array<string>, columns?: ITableColum[]): Promise<File | undefined>;
|
|
8381
9798
|
/**
|
|
8382
9799
|
* 获取测试点报告文件
|
|
8383
9800
|
*
|
|
@@ -8662,7 +10079,9 @@ declare class PCB_MathPolygon {
|
|
|
8662
10079
|
*/
|
|
8663
10080
|
splitPolygon(...complexPolygons: Array<IPCB_ComplexPolygon>): Array<IPCB_Polygon>;
|
|
8664
10081
|
/* Excluded from this release type: calculateWidth */
|
|
10082
|
+
calculateBBoxWidth(complexPolygon: TPCB_PolygonSourceArray | Array<TPCB_PolygonSourceArray>): number;
|
|
8665
10083
|
/* Excluded from this release type: calculateHeight */
|
|
10084
|
+
calculateBBoxHeight(complexPolygon: TPCB_PolygonSourceArray | Array<TPCB_PolygonSourceArray>): number;
|
|
8666
10085
|
/**
|
|
8667
10086
|
* 将图像转换为复杂多边形对象
|
|
8668
10087
|
*
|
|
@@ -8675,7 +10094,7 @@ declare class PCB_MathPolygon {
|
|
|
8675
10094
|
* @param smoothing - 平滑,取值范围 `0`-`1.33`
|
|
8676
10095
|
* @param despeckling - 去斑,取值范围 `0`-`5`
|
|
8677
10096
|
* @param inversion - 是否反相
|
|
8678
|
-
* @returns
|
|
10097
|
+
* @returns 复杂多边形对象
|
|
8679
10098
|
*/
|
|
8680
10099
|
convertImageToComplexPolygon(imageBlob: Blob, imageWidth: number, imageHeight: number, tolerance?: number, simplification?: number, smoothing?: number, despeckling?: number, inversion?: boolean): Promise<IPCB_ComplexPolygon | undefined>;
|
|
8681
10100
|
}
|
|
@@ -8997,6 +10416,7 @@ declare class PCB_PrimitiveComponent implements IPCB_PrimitiveAPI {
|
|
|
8997
10416
|
*/
|
|
8998
10417
|
getAllPinsByPrimitiveId(primitiveId: string): Promise<Array<IPCB_PrimitiveComponentPad> | undefined>;
|
|
8999
10418
|
/* Excluded from this release type: placeComponentWithMouse */
|
|
10419
|
+
/* Excluded from this release type: getAllPropertyNames */
|
|
9000
10420
|
}
|
|
9001
10421
|
|
|
9002
10422
|
/**
|
|
@@ -9710,7 +11130,7 @@ declare class PCB_PrimitiveRegion implements IPCB_PrimitiveAPI {
|
|
|
9710
11130
|
* @param layer - 层
|
|
9711
11131
|
* @param complexPolygon - 复杂多边形对象
|
|
9712
11132
|
* @param ruleType - 区域规则类型
|
|
9713
|
-
* @param
|
|
11133
|
+
* @param regionName - 区域名称
|
|
9714
11134
|
* @param lineWidth - 线宽
|
|
9715
11135
|
* @param primitiveLock - 是否锁定
|
|
9716
11136
|
* @returns 区域图元对象
|
|
@@ -9903,7 +11323,7 @@ declare class PCB_SelectControl {
|
|
|
9903
11323
|
*/
|
|
9904
11324
|
doSelectPrimitives(primitiveIds: string | Array<string>): Promise<boolean>;
|
|
9905
11325
|
/**
|
|
9906
|
-
*
|
|
11326
|
+
* 进行交叉选择
|
|
9907
11327
|
*
|
|
9908
11328
|
* @beta
|
|
9909
11329
|
* @param components - 器件位号
|
|
@@ -10129,241 +11549,532 @@ declare class SCH_Netlist {
|
|
|
10129
11549
|
*/
|
|
10130
11550
|
declare class SCH_Primitive {
|
|
10131
11551
|
/**
|
|
10132
|
-
* 获取指定 ID 的图元的图元类型
|
|
11552
|
+
* 获取指定 ID 的图元的图元类型
|
|
11553
|
+
*
|
|
11554
|
+
* @beta
|
|
11555
|
+
* @param id - 图元 ID
|
|
11556
|
+
* @returns 图元类型
|
|
11557
|
+
*/
|
|
11558
|
+
getPrimitiveTypeByPrimitiveId(id: string): Promise<ESCH_PrimitiveType | undefined>;
|
|
11559
|
+
/**
|
|
11560
|
+
* 获取指定 ID 的图元的所有属性
|
|
11561
|
+
*
|
|
11562
|
+
* @public
|
|
11563
|
+
* @param id - 图元 ID
|
|
11564
|
+
* @returns 图元的所有属性
|
|
11565
|
+
*/
|
|
11566
|
+
getPrimitiveByPrimitiveId(id: string): Promise<ISCH_Primitive | undefined>;
|
|
11567
|
+
/* Excluded from this release type: getPrimitivesByPrimitiveId */
|
|
11568
|
+
/**
|
|
11569
|
+
* 获取图��的 BBox
|
|
11570
|
+
*
|
|
11571
|
+
* @beta
|
|
11572
|
+
* @param primitiveIds - 图元 ID 数组或图元对象数组
|
|
11573
|
+
* @returns 图元的 BBox,如若图元不存在或没有 BBox,将会返回 `undefined` 的结果
|
|
11574
|
+
*/
|
|
11575
|
+
getPrimitivesBBox(primitiveIds: Array<string | ISCH_Primitive>): Promise<{
|
|
11576
|
+
minX: number;
|
|
11577
|
+
minY: number;
|
|
11578
|
+
maxX: number;
|
|
11579
|
+
maxY: number;
|
|
11580
|
+
} | undefined>;
|
|
11581
|
+
}
|
|
11582
|
+
|
|
11583
|
+
/**
|
|
11584
|
+
* 原理图 & 符号 / 圆弧图元类
|
|
11585
|
+
*
|
|
11586
|
+
* @public
|
|
11587
|
+
*/
|
|
11588
|
+
declare class SCH_PrimitiveArc implements ISCH_PrimitiveAPI {
|
|
11589
|
+
/**
|
|
11590
|
+
* 创建圆弧
|
|
11591
|
+
*
|
|
11592
|
+
* @beta
|
|
11593
|
+
* @param startX - 起始点 X
|
|
11594
|
+
* @param startY - 起始点 Y
|
|
11595
|
+
* @param referenceX - 参考点 X
|
|
11596
|
+
* @param referenceY - 参考点 Y
|
|
11597
|
+
* @param endX - 终止点 X
|
|
11598
|
+
* @param endY - 终止点 Y
|
|
11599
|
+
* @param color - 颜色,`null` 表示默认
|
|
11600
|
+
* @param fillColor - 填充颜色,`none` 表示无填充,`null` 表示默认
|
|
11601
|
+
* @param lineWidth - 线宽,范围 `1-10`,`null` 表示默认
|
|
11602
|
+
* @param lineType - 线型,`null` 表示默认
|
|
11603
|
+
* @returns 圆弧图元对象
|
|
11604
|
+
*/
|
|
11605
|
+
create(startX: number, startY: number, referenceX: number, referenceY: number, endX: number, endY: number, color?: string | null, fillColor?: string | null, lineWidth?: number | null, lineType?: ESCH_PrimitiveLineType | null): Promise<ISCH_PrimitiveArc | undefined>;
|
|
11606
|
+
/**
|
|
11607
|
+
* 删除圆弧
|
|
11608
|
+
*
|
|
11609
|
+
* @beta
|
|
11610
|
+
* @param primitiveIds - 圆弧的图元 ID 或圆弧图元对象
|
|
11611
|
+
* @returns 删除操作是否成功
|
|
11612
|
+
*/
|
|
11613
|
+
delete(primitiveIds: string | ISCH_PrimitiveArc | Array<string> | Array<ISCH_PrimitiveArc>): Promise<boolean>;
|
|
11614
|
+
/**
|
|
11615
|
+
* 修改圆弧
|
|
11616
|
+
*
|
|
11617
|
+
* @beta
|
|
11618
|
+
* @param primitiveId - 图元 ID
|
|
11619
|
+
* @param property - 修改参数
|
|
11620
|
+
* @returns 圆弧图元对象
|
|
11621
|
+
*/
|
|
11622
|
+
modify(primitiveId: string | ISCH_PrimitiveArc, property: {
|
|
11623
|
+
startX?: number;
|
|
11624
|
+
startY?: number;
|
|
11625
|
+
referenceX?: number;
|
|
11626
|
+
referenceY?: number;
|
|
11627
|
+
endX?: number;
|
|
11628
|
+
endY?: number;
|
|
11629
|
+
color?: string | null;
|
|
11630
|
+
fillColor?: string | null;
|
|
11631
|
+
lineWidth?: number | null;
|
|
11632
|
+
lineType?: ESCH_PrimitiveLineType | null;
|
|
11633
|
+
}): Promise<ISCH_PrimitiveArc | undefined>;
|
|
11634
|
+
/**
|
|
11635
|
+
* 获取圆弧
|
|
11636
|
+
*
|
|
11637
|
+
* @beta
|
|
11638
|
+
* @param primitiveIds - 圆弧的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
|
|
11639
|
+
* @returns 圆弧图元对象,`undefined` 表示获取失败
|
|
11640
|
+
*/
|
|
11641
|
+
get(primitiveIds: string): Promise<ISCH_PrimitiveArc | undefined>;
|
|
11642
|
+
/**
|
|
11643
|
+
* 获取圆弧
|
|
11644
|
+
*
|
|
11645
|
+
* @beta
|
|
11646
|
+
* @remarks 如若传入多个图元 ID,任意图元 ID 未匹配到不影响其它图元的返回,即可能返回少于传入的图元 ID 数量的图元对象
|
|
11647
|
+
* @param primitiveIds - 圆弧的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
|
|
11648
|
+
* @returns 圆弧图元对象,空数组表示获取失败
|
|
11649
|
+
*/
|
|
11650
|
+
get(primitiveIds: Array<string>): Promise<Array<ISCH_PrimitiveArc>>;
|
|
11651
|
+
/**
|
|
11652
|
+
* 获取所有圆弧的图元 ID
|
|
11653
|
+
*
|
|
11654
|
+
* @beta
|
|
11655
|
+
* @returns 圆弧的图元 ID 数组
|
|
11656
|
+
*/
|
|
11657
|
+
getAllPrimitiveId(): Promise<Array<string>>;
|
|
11658
|
+
/**
|
|
11659
|
+
* 获取所有圆弧
|
|
11660
|
+
*
|
|
11661
|
+
* @beta
|
|
11662
|
+
* @returns 圆弧图元对象数组
|
|
11663
|
+
*/
|
|
11664
|
+
getAll(): Promise<Array<ISCH_PrimitiveArc>>;
|
|
11665
|
+
}
|
|
11666
|
+
|
|
11667
|
+
/**
|
|
11668
|
+
* 原理图 & 符号 / 总线图元类
|
|
11669
|
+
*
|
|
11670
|
+
* @public
|
|
11671
|
+
*/
|
|
11672
|
+
declare class SCH_PrimitiveBus implements ISCH_PrimitiveAPI {
|
|
11673
|
+
/**
|
|
11674
|
+
* 创建总线
|
|
11675
|
+
*
|
|
11676
|
+
* @beta
|
|
11677
|
+
* @param busName - 总线名称
|
|
11678
|
+
* @param line - 多段线坐标组,每段都是连续的一组 `[x1, y1, x2, y2, x3, y3]` 所描述的线,如若多段线彼此无任何连接则创建将会失败
|
|
11679
|
+
* @param color - 总线颜色,`null` 表示默认
|
|
11680
|
+
* @param lineWidth - 线宽,范围 `1-10`,`null` 表示默认
|
|
11681
|
+
* @param lineType - 线型,`null` 表示默认
|
|
11682
|
+
* @returns 总线图元对象
|
|
11683
|
+
*/
|
|
11684
|
+
create(busName: string, line: Array<number> | Array<Array<number>>, color?: string | null, lineWidth?: number | null, lineType?: ESCH_PrimitiveLineType | null): Promise<ISCH_PrimitiveBus | undefined>;
|
|
11685
|
+
/**
|
|
11686
|
+
* 删除总线
|
|
11687
|
+
*
|
|
11688
|
+
* @beta
|
|
11689
|
+
* @param primitiveIds - 总线的图元 ID 或总线图元对象
|
|
11690
|
+
* @returns 删除操作是否成功
|
|
11691
|
+
*/
|
|
11692
|
+
delete(primitiveIds: string | ISCH_PrimitiveBus | Array<string> | Array<ISCH_PrimitiveBus>): Promise<boolean>;
|
|
11693
|
+
/**
|
|
11694
|
+
* 修改总线
|
|
11695
|
+
*
|
|
11696
|
+
* @beta
|
|
11697
|
+
* @param primitiveId - 总线的图元 ID 或总线图元对象
|
|
11698
|
+
* @param property - 修改参数
|
|
11699
|
+
* @returns 总线图元对象
|
|
11700
|
+
*/
|
|
11701
|
+
modify(primitiveId: string | ISCH_PrimitiveBus, property: {
|
|
11702
|
+
busName?: string;
|
|
11703
|
+
line?: Array<number> | Array<Array<number>>;
|
|
11704
|
+
color?: string | null;
|
|
11705
|
+
lineWidth?: number | null;
|
|
11706
|
+
lineType?: ESCH_PrimitiveLineType | null;
|
|
11707
|
+
}): Promise<ISCH_PrimitiveBus | undefined>;
|
|
11708
|
+
/**
|
|
11709
|
+
* 获取总线
|
|
10133
11710
|
*
|
|
10134
11711
|
* @beta
|
|
10135
|
-
* @param
|
|
10136
|
-
* @returns
|
|
11712
|
+
* @param primitiveIds - 总线的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
|
|
11713
|
+
* @returns 总线图元对象,`undefined` 表示获取失败
|
|
10137
11714
|
*/
|
|
10138
|
-
|
|
11715
|
+
get(primitiveIds: string): Promise<ISCH_PrimitiveBus | undefined>;
|
|
10139
11716
|
/**
|
|
10140
|
-
*
|
|
11717
|
+
* 获取总线
|
|
10141
11718
|
*
|
|
10142
|
-
* @
|
|
10143
|
-
* @
|
|
10144
|
-
* @
|
|
11719
|
+
* @beta
|
|
11720
|
+
* @remarks 如若传入多个图元 ID,任意图元 ID 未匹配到不影响其它图元的返回,即可能返回少于传入的图元 ID 数量的图元对象
|
|
11721
|
+
* @param primitiveIds - 总线的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
|
|
11722
|
+
* @returns 总线图元对象,空数组表示获取失败
|
|
10145
11723
|
*/
|
|
10146
|
-
|
|
10147
|
-
/* Excluded from this release type: getPrimitivesByPrimitiveId */
|
|
11724
|
+
get(primitiveIds: Array<string>): Promise<Array<ISCH_PrimitiveBus>>;
|
|
10148
11725
|
/**
|
|
10149
|
-
*
|
|
11726
|
+
* 获取所有总线的图元 ID
|
|
10150
11727
|
*
|
|
10151
11728
|
* @beta
|
|
10152
|
-
* @
|
|
10153
|
-
* @returns 图元的 BBox,如若图元不存在或没有 BBox,将会返回 `undefined` 的结果
|
|
11729
|
+
* @returns 总线的图元 ID 数组
|
|
10154
11730
|
*/
|
|
10155
|
-
|
|
10156
|
-
|
|
10157
|
-
|
|
10158
|
-
|
|
10159
|
-
|
|
10160
|
-
|
|
11731
|
+
getAllPrimitiveId(): Promise<Array<string>>;
|
|
11732
|
+
/**
|
|
11733
|
+
* 获取所有总线
|
|
11734
|
+
*
|
|
11735
|
+
* @beta
|
|
11736
|
+
* @returns 总线图元对象数组
|
|
11737
|
+
*/
|
|
11738
|
+
getAll(): Promise<Array<ISCH_PrimitiveBus>>;
|
|
10161
11739
|
}
|
|
10162
11740
|
|
|
10163
11741
|
/**
|
|
10164
|
-
* 原理图 & 符号 /
|
|
11742
|
+
* 原理图 & 符号 / 圆图元类
|
|
10165
11743
|
*
|
|
10166
11744
|
* @public
|
|
10167
11745
|
*/
|
|
10168
|
-
declare class
|
|
11746
|
+
declare class SCH_PrimitiveCircle implements ISCH_PrimitiveAPI {
|
|
10169
11747
|
/**
|
|
10170
|
-
*
|
|
11748
|
+
* 创建圆
|
|
10171
11749
|
*
|
|
10172
11750
|
* @beta
|
|
10173
|
-
* @param
|
|
10174
|
-
* @param
|
|
10175
|
-
* @param
|
|
10176
|
-
* @param referenceY - 参考点 Y
|
|
10177
|
-
* @param endX - 终止点 X
|
|
10178
|
-
* @param endY - 终止点 Y
|
|
11751
|
+
* @param centerX - 圆心 X
|
|
11752
|
+
* @param centerY - 圆心 Y
|
|
11753
|
+
* @param radius - 半径
|
|
10179
11754
|
* @param color - 颜色,`null` 表示默认
|
|
10180
11755
|
* @param fillColor - 填充颜色,`none` 表示无填充,`null` 表示默认
|
|
10181
11756
|
* @param lineWidth - 线宽,范围 `1-10`,`null` 表示默认
|
|
10182
|
-
* @param lineType - 线型,`
|
|
10183
|
-
* @
|
|
11757
|
+
* @param lineType - 线型,`null` 表示默认
|
|
11758
|
+
* @param fillStyle - 填充样式,`null` 表示默认
|
|
11759
|
+
* @returns 圆图元对象
|
|
10184
11760
|
*/
|
|
10185
|
-
create(
|
|
11761
|
+
create(centerX: number, centerY: number, radius: number, color?: string | null, fillColor?: string | null, lineWidth?: number | null, lineType?: ESCH_PrimitiveLineType | null, fillStyle?: ESCH_PrimitiveFillStyle | null): Promise<ISCH_PrimitiveCircle>;
|
|
10186
11762
|
/**
|
|
10187
|
-
*
|
|
11763
|
+
* 删除圆
|
|
10188
11764
|
*
|
|
10189
11765
|
* @beta
|
|
10190
|
-
* @param primitiveIds -
|
|
11766
|
+
* @param primitiveIds - 圆的图元 ID 或圆图元对象
|
|
10191
11767
|
* @returns 删除操作是否成功
|
|
10192
11768
|
*/
|
|
10193
|
-
delete(primitiveIds: string |
|
|
11769
|
+
delete(primitiveIds: string | ISCH_PrimitiveCircle | Array<string> | Array<ISCH_PrimitiveCircle>): Promise<boolean>;
|
|
10194
11770
|
/**
|
|
10195
|
-
*
|
|
11771
|
+
* 修改圆
|
|
10196
11772
|
*
|
|
10197
11773
|
* @beta
|
|
10198
11774
|
* @param primitiveId - 图元 ID
|
|
10199
|
-
* @param
|
|
10200
|
-
* @
|
|
10201
|
-
* @param referenceX - 参考点 X
|
|
10202
|
-
* @param referenceY - 参考点 Y
|
|
10203
|
-
* @param endX - 终止点 X
|
|
10204
|
-
* @param endY - 终止点 Y
|
|
10205
|
-
* @param color - 颜色,`null` 表示默认
|
|
10206
|
-
* @param fillColor - 填充颜色,`none` 表示无填充,`null` 表示默认
|
|
10207
|
-
* @param lineWidth - 线宽,范围 `1-10`,`null` 表示默认
|
|
10208
|
-
* @param lineType - 线型,`0` 实线,`1` 短划线,`2` 点线,`3` 点划线,`null` 表示默认
|
|
10209
|
-
* @returns 圆弧图元对象
|
|
11775
|
+
* @param property - 修改参数
|
|
11776
|
+
* @returns 圆图元对象
|
|
10210
11777
|
*/
|
|
10211
|
-
modify(primitiveId: string |
|
|
11778
|
+
modify(primitiveId: string | ISCH_PrimitiveCircle, property: {
|
|
11779
|
+
centerX?: number;
|
|
11780
|
+
centerY?: number;
|
|
11781
|
+
radius?: number;
|
|
11782
|
+
color?: string | null;
|
|
11783
|
+
fillColor?: string | null;
|
|
11784
|
+
lineWidth?: number | null;
|
|
11785
|
+
lineType?: ESCH_PrimitiveLineType | null;
|
|
11786
|
+
fillStyle?: ESCH_PrimitiveFillStyle | null;
|
|
11787
|
+
}): Promise<ISCH_PrimitiveCircle | undefined>;
|
|
10212
11788
|
/**
|
|
10213
|
-
*
|
|
11789
|
+
* 获取圆
|
|
10214
11790
|
*
|
|
10215
11791
|
* @beta
|
|
10216
|
-
* @param primitiveIds -
|
|
10217
|
-
* @returns
|
|
11792
|
+
* @param primitiveIds - 圆的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
|
|
11793
|
+
* @returns 圆图元对象,`undefined` 表示获取失败
|
|
10218
11794
|
*/
|
|
10219
|
-
get(primitiveIds: string): Promise<
|
|
10220
|
-
get(primitiveIds: Array<string>): Promise<Array<ISCH_PrimitiveArc>>;
|
|
11795
|
+
get(primitiveIds: string): Promise<ISCH_PrimitiveCircle | undefined>;
|
|
10221
11796
|
/**
|
|
10222
|
-
*
|
|
11797
|
+
* 获取圆
|
|
10223
11798
|
*
|
|
10224
11799
|
* @beta
|
|
10225
|
-
* @
|
|
11800
|
+
* @remarks 如若传入多个图元 ID,任意图元 ID 未匹配到不影响其它图元的返回,即可能返回少于传入的图元 ID 数量的图元对象
|
|
11801
|
+
* @param primitiveIds - 圆的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
|
|
11802
|
+
* @returns 圆图元对象,空数组表示获取失败
|
|
11803
|
+
*/
|
|
11804
|
+
get(primitiveIds: Array<string>): Promise<Array<ISCH_PrimitiveCircle>>;
|
|
11805
|
+
/**
|
|
11806
|
+
* 获取所有圆的图元 ID
|
|
11807
|
+
*
|
|
11808
|
+
* @beta
|
|
11809
|
+
* @returns 圆的图元 ID 数组
|
|
10226
11810
|
*/
|
|
10227
11811
|
getAllPrimitiveId(): Promise<Array<string>>;
|
|
10228
11812
|
/**
|
|
10229
|
-
*
|
|
11813
|
+
* 获取所有圆
|
|
10230
11814
|
*
|
|
10231
11815
|
* @beta
|
|
10232
|
-
* @returns
|
|
11816
|
+
* @returns 圆图元对象数组
|
|
10233
11817
|
*/
|
|
10234
|
-
getAll(): Promise<Array<
|
|
11818
|
+
getAll(): Promise<Array<ISCH_PrimitiveCircle>>;
|
|
10235
11819
|
}
|
|
10236
11820
|
|
|
10237
11821
|
/**
|
|
10238
|
-
* 原理图 & 符号 /
|
|
11822
|
+
* 原理图 & 符号 / 器件图元类
|
|
10239
11823
|
*
|
|
10240
11824
|
* @public
|
|
10241
11825
|
*/
|
|
10242
|
-
declare class
|
|
11826
|
+
declare class SCH_PrimitiveComponent implements ISCH_PrimitiveAPI {
|
|
11827
|
+
private netFlagComponentUuid_Power;
|
|
11828
|
+
private netFlagComponentUuid_Ground;
|
|
11829
|
+
private netFlagComponentUuid_AnalogGround;
|
|
11830
|
+
private netFlagComponentUuid_ProtectGround;
|
|
11831
|
+
private netPortComponentUuid_IN;
|
|
11832
|
+
private netPortComponentUuid_OUT;
|
|
11833
|
+
private netPortComponentUuid_BI;
|
|
11834
|
+
private shortCircuitFlagComponentUuid;
|
|
11835
|
+
private defaultLibraryUuid;
|
|
11836
|
+
/* Excluded from this release type: __constructor */
|
|
10243
11837
|
/**
|
|
10244
|
-
*
|
|
11838
|
+
* 设置在扩展 API 中 Power 网络标识关联的器件 UUID
|
|
10245
11839
|
*
|
|
10246
11840
|
* @beta
|
|
10247
|
-
* @param
|
|
10248
|
-
* @
|
|
10249
|
-
* @param color - 总线颜色,`null` 表示默认
|
|
10250
|
-
* @param lineWidth - 线宽,范围 `1-10`,`null` 表示默认
|
|
10251
|
-
* @param lineType - 线型,`0` 实线,`1` 短划线,`2` 点线,`3` 点划线,`null` 表示默认
|
|
10252
|
-
* @returns 总线图元对象
|
|
11841
|
+
* @param component - 关联库器件
|
|
11842
|
+
* @returns 操作是否成功
|
|
10253
11843
|
*/
|
|
10254
|
-
|
|
11844
|
+
setNetFlagComponentUuid_Power(component: {
|
|
11845
|
+
libraryUuid: string;
|
|
11846
|
+
uuid: string;
|
|
11847
|
+
} | ILIB_DeviceItem | ILIB_DeviceSearchItem): Promise<boolean>;
|
|
10255
11848
|
/**
|
|
10256
|
-
*
|
|
11849
|
+
* 设置在扩展 API 中 Ground 网络标识关联的器件 UUID
|
|
10257
11850
|
*
|
|
10258
11851
|
* @beta
|
|
10259
|
-
* @param
|
|
10260
|
-
* @returns
|
|
11852
|
+
* @param component - 关联库器件
|
|
11853
|
+
* @returns 操作是否成功
|
|
10261
11854
|
*/
|
|
10262
|
-
|
|
11855
|
+
setNetFlagComponentUuid_Ground(component: {
|
|
11856
|
+
libraryUuid: string;
|
|
11857
|
+
uuid: string;
|
|
11858
|
+
} | ILIB_DeviceItem | ILIB_DeviceSearchItem): Promise<boolean>;
|
|
10263
11859
|
/**
|
|
10264
|
-
*
|
|
11860
|
+
* 设置在扩展 API 中 AnalogGround 网络标识关联的器件 UUID
|
|
10265
11861
|
*
|
|
10266
11862
|
* @beta
|
|
10267
|
-
* @param
|
|
10268
|
-
* @
|
|
10269
|
-
* @param line - 多段线坐标组,每段都是连续的一组 `[x1, y1, x2, y2, x3, y3]` 所描述的线
|
|
10270
|
-
* @param color - 总线颜色,`null` 表示默认
|
|
10271
|
-
* @param lineWidth - 线宽,范围 `1-10`,`null` 表示默认
|
|
10272
|
-
* @param lineType - 线型,`0` 实线,`1` 短划线,`2` 点线,`3` 点划线,`null` 表示默认
|
|
10273
|
-
* @returns 总线图元对象
|
|
11863
|
+
* @param component - 关联库器件
|
|
11864
|
+
* @returns 操作是否成功
|
|
10274
11865
|
*/
|
|
10275
|
-
|
|
11866
|
+
setNetFlagComponentUuid_AnalogGround(component: {
|
|
11867
|
+
libraryUuid: string;
|
|
11868
|
+
uuid: string;
|
|
11869
|
+
} | ILIB_DeviceItem | ILIB_DeviceSearchItem): Promise<boolean>;
|
|
10276
11870
|
/**
|
|
10277
|
-
*
|
|
11871
|
+
* 设置在扩展 API 中 ProtectGround 网络标识关联的器件 UUID
|
|
10278
11872
|
*
|
|
10279
11873
|
* @beta
|
|
10280
|
-
* @param
|
|
10281
|
-
* @returns
|
|
11874
|
+
* @param component - 关联库器件
|
|
11875
|
+
* @returns 操作是否成功
|
|
10282
11876
|
*/
|
|
10283
|
-
|
|
10284
|
-
|
|
11877
|
+
setNetFlagComponentUuid_ProtectGround(component: {
|
|
11878
|
+
libraryUuid: string;
|
|
11879
|
+
uuid: string;
|
|
11880
|
+
} | ILIB_DeviceItem | ILIB_DeviceSearchItem): Promise<boolean>;
|
|
10285
11881
|
/**
|
|
10286
|
-
*
|
|
11882
|
+
* 设置在扩展 API 中 IN 网络端口关联的器件 UUID
|
|
10287
11883
|
*
|
|
10288
11884
|
* @beta
|
|
10289
|
-
* @
|
|
11885
|
+
* @param component - 关联库器件
|
|
11886
|
+
* @returns 操作是否成功
|
|
11887
|
+
*/
|
|
11888
|
+
setNetPortComponentUuid_IN(component: {
|
|
11889
|
+
libraryUuid: string;
|
|
11890
|
+
uuid: string;
|
|
11891
|
+
} | ILIB_DeviceItem | ILIB_DeviceSearchItem): Promise<boolean>;
|
|
11892
|
+
/**
|
|
11893
|
+
* 设置在扩展 API 中 OUT 网络端口关联的器件 UUID
|
|
11894
|
+
*
|
|
11895
|
+
* @beta
|
|
11896
|
+
* @param component - 关联库器件
|
|
11897
|
+
* @returns 操作是否成功
|
|
11898
|
+
*/
|
|
11899
|
+
setNetPortComponentUuid_OUT(component: {
|
|
11900
|
+
libraryUuid: string;
|
|
11901
|
+
uuid: string;
|
|
11902
|
+
} | ILIB_DeviceItem | ILIB_DeviceSearchItem): Promise<boolean>;
|
|
11903
|
+
/**
|
|
11904
|
+
* 设置在扩展 API 中 BI 网络端口关联的器件 UUID
|
|
11905
|
+
*
|
|
11906
|
+
* @beta
|
|
11907
|
+
* @param component - 关联库器件
|
|
11908
|
+
* @returns 操作是否成功
|
|
11909
|
+
*/
|
|
11910
|
+
setNetPortComponentUuid_BI(component: {
|
|
11911
|
+
libraryUuid: string;
|
|
11912
|
+
uuid: string;
|
|
11913
|
+
} | ILIB_DeviceItem | ILIB_DeviceSearchItem): Promise<boolean>;
|
|
11914
|
+
/**
|
|
11915
|
+
* 创建器件
|
|
11916
|
+
*
|
|
11917
|
+
* @beta
|
|
11918
|
+
* @param component - 关联库器件
|
|
11919
|
+
* @param subPartName - 子图块名称
|
|
11920
|
+
* @param x - 坐标 X
|
|
11921
|
+
* @param y - 坐标 Y
|
|
11922
|
+
* @param rotation - 旋转角度
|
|
11923
|
+
* @param mirror - 是否镜像
|
|
11924
|
+
* @param addIntoBom - 是否加入 BOM
|
|
11925
|
+
* @param addIntoPcb - 是否转到 PCB
|
|
11926
|
+
* @returns 器件图元对象
|
|
11927
|
+
*/
|
|
11928
|
+
create(component: {
|
|
11929
|
+
libraryUuid: string;
|
|
11930
|
+
uuid: string;
|
|
11931
|
+
} | ILIB_DeviceItem | ILIB_DeviceSearchItem, x: number, y: number, subPartName?: string, rotation?: number, mirror?: boolean, addIntoBom?: boolean, addIntoPcb?: boolean): Promise<ISCH_PrimitiveComponent | undefined>;
|
|
11932
|
+
/**
|
|
11933
|
+
* 创建网络标识
|
|
11934
|
+
*
|
|
11935
|
+
* @beta
|
|
11936
|
+
* @param identification - 标识类型
|
|
11937
|
+
* @param net - 网络名称
|
|
11938
|
+
* @param x - 坐标 X
|
|
11939
|
+
* @param y - 坐标 Y
|
|
11940
|
+
* @param rotation - 旋转角度
|
|
11941
|
+
* @param mirror - 是否镜像
|
|
11942
|
+
* @returns 器件图元对象
|
|
11943
|
+
*/
|
|
11944
|
+
createNetFlag(identification: 'Power' | 'Ground' | 'AnalogGround' | 'ProtectGround', net: string, x: number, y: number, rotation?: number, mirror?: boolean): Promise<ISCH_PrimitiveComponent | undefined>;
|
|
11945
|
+
/**
|
|
11946
|
+
* 创建网络端口
|
|
11947
|
+
*
|
|
11948
|
+
* @beta
|
|
11949
|
+
* @param direction - 端口方向
|
|
11950
|
+
* @param net - 网络名称
|
|
11951
|
+
* @param x - 坐标 X
|
|
11952
|
+
* @param y - 坐��� Y
|
|
11953
|
+
* @param rotation - 旋转角度
|
|
11954
|
+
* @param mirror - 是否镜像
|
|
11955
|
+
* @returns 器件图元对象
|
|
11956
|
+
*/
|
|
11957
|
+
createNetPort(direction: 'IN' | 'OUT' | 'BI', net: string, x: number, y: number, rotation?: number, mirror?: boolean): Promise<ISCH_PrimitiveComponent | undefined>;
|
|
11958
|
+
/**
|
|
11959
|
+
* 创建短接标识
|
|
11960
|
+
*
|
|
11961
|
+
* @beta
|
|
11962
|
+
* @param x - 坐标 X
|
|
11963
|
+
* @param y - 坐标 Y
|
|
11964
|
+
* @param rotation - 旋转角度
|
|
11965
|
+
* @param mirror - 是否镜像
|
|
11966
|
+
* @returns 器件图元对象
|
|
11967
|
+
*/
|
|
11968
|
+
createShortCircuitFlag(x: number, y: number, rotation?: number, mirror?: boolean): Promise<ISCH_PrimitiveComponent | undefined>;
|
|
11969
|
+
/**
|
|
11970
|
+
* 删除器件
|
|
11971
|
+
*
|
|
11972
|
+
* @beta
|
|
11973
|
+
* @param primitiveIds - 器件的图元 ID 或器件图元对象
|
|
11974
|
+
* @returns 删除操作是否成功
|
|
11975
|
+
*/
|
|
11976
|
+
delete(primitiveIds: string | ISCH_PrimitiveComponent | Array<string> | Array<ISCH_PrimitiveComponent>): Promise<boolean>;
|
|
11977
|
+
/**
|
|
11978
|
+
* 修改器件
|
|
11979
|
+
*
|
|
11980
|
+
* @beta
|
|
11981
|
+
* @remarks 仅当器件类型为 {@link ESCH_PrimitiveComponentType.COMPONENT | COMPONENT} 时允许使用该方法进行修改
|
|
11982
|
+
* @param primitiveId - 图元 ID
|
|
11983
|
+
* @param x - 坐标 X
|
|
11984
|
+
* @param y - 坐标 Y
|
|
11985
|
+
* @param rotation - 旋转角度
|
|
11986
|
+
* @param mirror - 是否镜像
|
|
11987
|
+
* @param libraryPath - 库路径,默认为系统库
|
|
11988
|
+
* @param addIntoBom - 是否加入 BOM
|
|
11989
|
+
* @param addIntoPcb - 是否转到 PCB
|
|
11990
|
+
* @param designator - 位号
|
|
11991
|
+
* @param name - 名称,`null` 表示留空
|
|
11992
|
+
* @param uniqueId - 唯一 ID,`null` 表示留空
|
|
11993
|
+
* @param manufacturer - 制造商,`null` 表示留空
|
|
11994
|
+
* @param manufacturerId - 制造商编号,`null` 表示留空
|
|
11995
|
+
* @param supplier - 供应商,`null` 表示留空
|
|
11996
|
+
* @param supplierId - 供应商编号,`null` 表示留空
|
|
11997
|
+
* @returns 器件图元对象
|
|
10290
11998
|
*/
|
|
10291
|
-
|
|
11999
|
+
modify(primitiveId: string | ISCH_PrimitiveComponent, property: {
|
|
12000
|
+
x?: number;
|
|
12001
|
+
y?: number;
|
|
12002
|
+
rotation?: number;
|
|
12003
|
+
mirror?: boolean;
|
|
12004
|
+
addIntoBom?: boolean;
|
|
12005
|
+
addIntoPcb?: boolean;
|
|
12006
|
+
designator?: string | null;
|
|
12007
|
+
name?: string | null;
|
|
12008
|
+
uniqueId?: string | null;
|
|
12009
|
+
manufacturer?: string | null;
|
|
12010
|
+
manufacturerId?: string | null;
|
|
12011
|
+
supplier?: string | null;
|
|
12012
|
+
supplierId?: string | null;
|
|
12013
|
+
otherProperty?: {
|
|
12014
|
+
[key: string]: string | number | boolean;
|
|
12015
|
+
};
|
|
12016
|
+
}): Promise<ISCH_PrimitiveComponent | undefined>;
|
|
10292
12017
|
/**
|
|
10293
|
-
*
|
|
12018
|
+
* 获取器件
|
|
10294
12019
|
*
|
|
10295
12020
|
* @beta
|
|
10296
|
-
* @
|
|
12021
|
+
* @param primitiveIds - 器件的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
|
|
12022
|
+
* @returns 器件图元对象,`undefined` 表示获取失败
|
|
10297
12023
|
*/
|
|
10298
|
-
|
|
10299
|
-
}
|
|
10300
|
-
|
|
10301
|
-
/**
|
|
10302
|
-
* 原理图 & 符号 / 圆图元类
|
|
10303
|
-
*
|
|
10304
|
-
* @public
|
|
10305
|
-
*/
|
|
10306
|
-
declare class SCH_PrimitiveCircle implements ISCH_PrimitiveAPI {
|
|
12024
|
+
get(primitiveIds: string): Promise<ISCH_PrimitiveComponent | undefined>;
|
|
10307
12025
|
/**
|
|
10308
|
-
*
|
|
12026
|
+
* 获取器件
|
|
10309
12027
|
*
|
|
10310
12028
|
* @beta
|
|
10311
|
-
* @
|
|
10312
|
-
* @param
|
|
10313
|
-
* @
|
|
10314
|
-
* @param color - 颜色,`null` 表示默认
|
|
10315
|
-
* @param fillColor - 填充颜色,`none` 表示无填充,`null` 表示默认
|
|
10316
|
-
* @param lineWidth - 线宽,范围 `1-10`,`null` 表示默认
|
|
10317
|
-
* @param lineType - 线型,`0` 实线,`1` 短划线,`2` 点线,`3` 点划线,`null` 表示默认
|
|
10318
|
-
* @returns 圆图元对象
|
|
12029
|
+
* @remarks 如若传入多个图元 ID,任意图元 ID 未匹配到不影响其它图元的返回,即可能返回少于传入的图元 ID 数量的图元对象
|
|
12030
|
+
* @param primitiveIds - 器件的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
|
|
12031
|
+
* @returns 器件图元对象,空数组表示获取失败
|
|
10319
12032
|
*/
|
|
10320
|
-
|
|
12033
|
+
get(primitiveIds: Array<string>): Promise<Array<ISCH_PrimitiveComponent>>;
|
|
10321
12034
|
/**
|
|
10322
|
-
*
|
|
12035
|
+
* 获取所有器件的图元 ID
|
|
10323
12036
|
*
|
|
10324
12037
|
* @beta
|
|
10325
|
-
* @param
|
|
10326
|
-
* @
|
|
12038
|
+
* @param componentType - 器件类型
|
|
12039
|
+
* @param allSchematicPages - 是否获取所有原理图图页的器件
|
|
12040
|
+
* @returns 器件的图元 ID 数组
|
|
10327
12041
|
*/
|
|
10328
|
-
|
|
12042
|
+
getAllPrimitiveId(componentType?: string, allSchematicPages?: boolean): Promise<Array<string>>;
|
|
10329
12043
|
/**
|
|
10330
|
-
*
|
|
12044
|
+
* 获取所有器件
|
|
10331
12045
|
*
|
|
10332
12046
|
* @beta
|
|
10333
|
-
* @param
|
|
10334
|
-
* @param
|
|
10335
|
-
* @
|
|
10336
|
-
* @param radius - 半径
|
|
10337
|
-
* @param color - 颜色,`null` 表示默认
|
|
10338
|
-
* @param fillColor - 填充颜色,`none` 表示无填充,`null` 表示默认
|
|
10339
|
-
* @param lineWidth - 线宽,范围 `1-10`,`null` 表示默认
|
|
10340
|
-
* @param lineType - 线型,`0` 实线,`1` 短划线,`2` 点线,`3` 点划线,`null` 表示默认
|
|
10341
|
-
* @returns 圆图元对象
|
|
12047
|
+
* @param componentType - 器件类型
|
|
12048
|
+
* @param allSchematicPages - 是否获取所有原理图图页的器件
|
|
12049
|
+
* @returns 器件图元对象数组
|
|
10342
12050
|
*/
|
|
10343
|
-
|
|
12051
|
+
getAll(componentType?: string, allSchematicPages?: boolean): Promise<Array<ISCH_PrimitiveComponent>>;
|
|
10344
12052
|
/**
|
|
10345
|
-
*
|
|
12053
|
+
* 获取器件关联的所有引脚
|
|
10346
12054
|
*
|
|
10347
12055
|
* @beta
|
|
10348
|
-
* @param
|
|
10349
|
-
* @returns
|
|
12056
|
+
* @param primitiveId - 器件图元 ID
|
|
12057
|
+
* @returns 器件引脚图元数组
|
|
10350
12058
|
*/
|
|
10351
|
-
|
|
10352
|
-
get(primitiveIds: Array<string>): Promise<Array<ISCH_PrimitiveCircle>>;
|
|
12059
|
+
getAllPinsByPrimitiveId(primitiveId: string): Promise<Array<ISCH_PrimitiveComponentPin> | undefined>;
|
|
10353
12060
|
/**
|
|
10354
|
-
*
|
|
12061
|
+
* 使用鼠标放置器件
|
|
10355
12062
|
*
|
|
10356
12063
|
* @beta
|
|
10357
|
-
* @
|
|
10358
|
-
|
|
10359
|
-
getAllPrimitiveId(): Promise<Array<string>>;
|
|
10360
|
-
/**
|
|
10361
|
-
* 获取所有圆
|
|
12064
|
+
* @remarks
|
|
12065
|
+
* 本接口模拟前端点击放置按钮,指定的器件将绑定到当前鼠标,并在用户后续点击时放置于画布
|
|
10362
12066
|
*
|
|
10363
|
-
*
|
|
10364
|
-
* @
|
|
12067
|
+
* 本接口的返回时机并不会等待用户的放置操作,一旦器件被绑定到鼠标,本接口将立即返回 `true` 的结果
|
|
12068
|
+
* @param component - 关联库器件
|
|
12069
|
+
* @returns 是否找到器件
|
|
10365
12070
|
*/
|
|
10366
|
-
|
|
12071
|
+
placeComponentWithMouse(component: {
|
|
12072
|
+
libraryUuid: string;
|
|
12073
|
+
uuid: string;
|
|
12074
|
+
} | ILIB_DeviceItem, subPartName?: string): Promise<boolean>;
|
|
12075
|
+
/* Excluded from this release type: getAllPropertyNames */
|
|
12076
|
+
/* Excluded from this release type: getComponentDetail */
|
|
12077
|
+
/* Excluded from this release type: checkComponentType */
|
|
10367
12078
|
}
|
|
10368
12079
|
|
|
10369
12080
|
/**
|
|
@@ -10371,7 +12082,7 @@ declare class SCH_PrimitiveCircle implements ISCH_PrimitiveAPI {
|
|
|
10371
12082
|
*
|
|
10372
12083
|
* @public
|
|
10373
12084
|
*/
|
|
10374
|
-
declare class
|
|
12085
|
+
declare class SCH_PrimitiveComponent3 implements ISCH_PrimitiveAPI {
|
|
10375
12086
|
private netFlagComponentUuid_Power;
|
|
10376
12087
|
private netFlagComponentUuid_Ground;
|
|
10377
12088
|
private netFlagComponentUuid_AnalogGround;
|
|
@@ -10392,7 +12103,7 @@ declare class SCH_PrimitiveComponent implements ISCH_PrimitiveAPI {
|
|
|
10392
12103
|
setNetFlagComponentUuid_Power(component: {
|
|
10393
12104
|
libraryUuid: string;
|
|
10394
12105
|
uuid: string;
|
|
10395
|
-
} | ILIB_DeviceItem): Promise<boolean>;
|
|
12106
|
+
} | ILIB_DeviceItem | ILIB_DeviceSearchItem): Promise<boolean>;
|
|
10396
12107
|
/**
|
|
10397
12108
|
* 设置在扩展 API 中 Ground 网络标识关联的器件 UUID
|
|
10398
12109
|
*
|
|
@@ -10403,7 +12114,7 @@ declare class SCH_PrimitiveComponent implements ISCH_PrimitiveAPI {
|
|
|
10403
12114
|
setNetFlagComponentUuid_Ground(component: {
|
|
10404
12115
|
libraryUuid: string;
|
|
10405
12116
|
uuid: string;
|
|
10406
|
-
} | ILIB_DeviceItem): Promise<boolean>;
|
|
12117
|
+
} | ILIB_DeviceItem | ILIB_DeviceSearchItem): Promise<boolean>;
|
|
10407
12118
|
/**
|
|
10408
12119
|
* 设置在扩展 API 中 AnalogGround 网络标识关联的器件 UUID
|
|
10409
12120
|
*
|
|
@@ -10414,7 +12125,7 @@ declare class SCH_PrimitiveComponent implements ISCH_PrimitiveAPI {
|
|
|
10414
12125
|
setNetFlagComponentUuid_AnalogGround(component: {
|
|
10415
12126
|
libraryUuid: string;
|
|
10416
12127
|
uuid: string;
|
|
10417
|
-
} | ILIB_DeviceItem): Promise<boolean>;
|
|
12128
|
+
} | ILIB_DeviceItem | ILIB_DeviceSearchItem): Promise<boolean>;
|
|
10418
12129
|
/**
|
|
10419
12130
|
* 设置在扩展 API 中 ProtectGround 网络标识关联的器件 UUID
|
|
10420
12131
|
*
|
|
@@ -10425,7 +12136,7 @@ declare class SCH_PrimitiveComponent implements ISCH_PrimitiveAPI {
|
|
|
10425
12136
|
setNetFlagComponentUuid_ProtectGround(component: {
|
|
10426
12137
|
libraryUuid: string;
|
|
10427
12138
|
uuid: string;
|
|
10428
|
-
} | ILIB_DeviceItem): Promise<boolean>;
|
|
12139
|
+
} | ILIB_DeviceItem | ILIB_DeviceSearchItem): Promise<boolean>;
|
|
10429
12140
|
/**
|
|
10430
12141
|
* 设置在扩展 API 中 IN 网络端口关联的器件 UUID
|
|
10431
12142
|
*
|
|
@@ -10436,7 +12147,7 @@ declare class SCH_PrimitiveComponent implements ISCH_PrimitiveAPI {
|
|
|
10436
12147
|
setNetPortComponentUuid_IN(component: {
|
|
10437
12148
|
libraryUuid: string;
|
|
10438
12149
|
uuid: string;
|
|
10439
|
-
} | ILIB_DeviceItem): Promise<boolean>;
|
|
12150
|
+
} | ILIB_DeviceItem | ILIB_DeviceSearchItem): Promise<boolean>;
|
|
10440
12151
|
/**
|
|
10441
12152
|
* 设置在扩展 API 中 OUT 网络端口关联的器件 UUID
|
|
10442
12153
|
*
|
|
@@ -10447,7 +12158,7 @@ declare class SCH_PrimitiveComponent implements ISCH_PrimitiveAPI {
|
|
|
10447
12158
|
setNetPortComponentUuid_OUT(component: {
|
|
10448
12159
|
libraryUuid: string;
|
|
10449
12160
|
uuid: string;
|
|
10450
|
-
} | ILIB_DeviceItem): Promise<boolean>;
|
|
12161
|
+
} | ILIB_DeviceItem | ILIB_DeviceSearchItem): Promise<boolean>;
|
|
10451
12162
|
/**
|
|
10452
12163
|
* 设置在扩展 API 中 BI 网络端口关联的器件 UUID
|
|
10453
12164
|
*
|
|
@@ -10458,7 +12169,7 @@ declare class SCH_PrimitiveComponent implements ISCH_PrimitiveAPI {
|
|
|
10458
12169
|
setNetPortComponentUuid_BI(component: {
|
|
10459
12170
|
libraryUuid: string;
|
|
10460
12171
|
uuid: string;
|
|
10461
|
-
} | ILIB_DeviceItem): Promise<boolean>;
|
|
12172
|
+
} | ILIB_DeviceItem | ILIB_DeviceSearchItem): Promise<boolean>;
|
|
10462
12173
|
/**
|
|
10463
12174
|
* 创建器件
|
|
10464
12175
|
*
|
|
@@ -10476,7 +12187,7 @@ declare class SCH_PrimitiveComponent implements ISCH_PrimitiveAPI {
|
|
|
10476
12187
|
create(component: {
|
|
10477
12188
|
libraryUuid: string;
|
|
10478
12189
|
uuid: string;
|
|
10479
|
-
} | ILIB_DeviceItem, x: number, y: number, subPartName?: string, rotation?: number, mirror?: boolean, addIntoBom?: boolean, addIntoPcb?: boolean): Promise<
|
|
12190
|
+
} | ILIB_DeviceItem | ILIB_DeviceSearchItem, x: number, y: number, subPartName?: string, rotation?: number, mirror?: boolean, addIntoBom?: boolean, addIntoPcb?: boolean): Promise<ISCH_PrimitiveComponent_2 | undefined>;
|
|
10480
12191
|
/**
|
|
10481
12192
|
* 创建网络标识
|
|
10482
12193
|
*
|
|
@@ -10489,7 +12200,7 @@ declare class SCH_PrimitiveComponent implements ISCH_PrimitiveAPI {
|
|
|
10489
12200
|
* @param mirror - 是否镜像
|
|
10490
12201
|
* @returns 器件图元对象
|
|
10491
12202
|
*/
|
|
10492
|
-
createNetFlag(identification: 'Power' | 'Ground' | 'AnalogGround' | 'ProtectGround', net: string, x: number, y: number, rotation?: number, mirror?: boolean): Promise<
|
|
12203
|
+
createNetFlag(identification: 'Power' | 'Ground' | 'AnalogGround' | 'ProtectGround', net: string, x: number, y: number, rotation?: number, mirror?: boolean): Promise<ISCH_PrimitiveComponent_2 | undefined>;
|
|
10493
12204
|
/**
|
|
10494
12205
|
* 创建网络端口
|
|
10495
12206
|
*
|
|
@@ -10502,7 +12213,7 @@ declare class SCH_PrimitiveComponent implements ISCH_PrimitiveAPI {
|
|
|
10502
12213
|
* @param mirror - 是否镜像
|
|
10503
12214
|
* @returns 器件图元对象
|
|
10504
12215
|
*/
|
|
10505
|
-
createNetPort(direction: 'IN' | 'OUT' | 'BI', net: string, x: number, y: number, rotation?: number, mirror?: boolean): Promise<
|
|
12216
|
+
createNetPort(direction: 'IN' | 'OUT' | 'BI', net: string, x: number, y: number, rotation?: number, mirror?: boolean): Promise<ISCH_PrimitiveComponent_2 | undefined>;
|
|
10506
12217
|
/**
|
|
10507
12218
|
* 创建短接标识
|
|
10508
12219
|
*
|
|
@@ -10513,7 +12224,7 @@ declare class SCH_PrimitiveComponent implements ISCH_PrimitiveAPI {
|
|
|
10513
12224
|
* @param mirror - 是否镜像
|
|
10514
12225
|
* @returns 器件图元对象
|
|
10515
12226
|
*/
|
|
10516
|
-
createShortCircuitFlag(x: number, y: number, rotation?: number, mirror?: boolean): Promise<
|
|
12227
|
+
createShortCircuitFlag(x: number, y: number, rotation?: number, mirror?: boolean): Promise<ISCH_PrimitiveComponent_2 | undefined>;
|
|
10517
12228
|
/**
|
|
10518
12229
|
* 删除器件
|
|
10519
12230
|
*
|
|
@@ -10521,7 +12232,7 @@ declare class SCH_PrimitiveComponent implements ISCH_PrimitiveAPI {
|
|
|
10521
12232
|
* @param primitiveIds - 器件的图元 ID 或器件图元对象
|
|
10522
12233
|
* @returns 删除操作是否成功
|
|
10523
12234
|
*/
|
|
10524
|
-
delete(primitiveIds: string |
|
|
12235
|
+
delete(primitiveIds: string | ISCH_PrimitiveComponent_2 | Array<string> | Array<ISCH_PrimitiveComponent_2>): Promise<boolean>;
|
|
10525
12236
|
/**
|
|
10526
12237
|
* 修改器件
|
|
10527
12238
|
*
|
|
@@ -10544,7 +12255,7 @@ declare class SCH_PrimitiveComponent implements ISCH_PrimitiveAPI {
|
|
|
10544
12255
|
* @param supplierId - 供应商编号,`null` 表示留空
|
|
10545
12256
|
* @returns 器件图元对象
|
|
10546
12257
|
*/
|
|
10547
|
-
modify(primitiveId: string |
|
|
12258
|
+
modify(primitiveId: string | ISCH_PrimitiveComponent_2, property: {
|
|
10548
12259
|
x?: number;
|
|
10549
12260
|
y?: number;
|
|
10550
12261
|
rotation?: number;
|
|
@@ -10561,7 +12272,7 @@ declare class SCH_PrimitiveComponent implements ISCH_PrimitiveAPI {
|
|
|
10561
12272
|
otherProperty?: {
|
|
10562
12273
|
[key: string]: string | number | boolean;
|
|
10563
12274
|
};
|
|
10564
|
-
}): Promise<
|
|
12275
|
+
}): Promise<ISCH_PrimitiveComponent_2 | undefined>;
|
|
10565
12276
|
/**
|
|
10566
12277
|
* 获取器件
|
|
10567
12278
|
*
|
|
@@ -10569,7 +12280,7 @@ declare class SCH_PrimitiveComponent implements ISCH_PrimitiveAPI {
|
|
|
10569
12280
|
* @param primitiveIds - 器件的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
|
|
10570
12281
|
* @returns 器件图元对象,`undefined` 表示获取失败
|
|
10571
12282
|
*/
|
|
10572
|
-
get(primitiveIds: string): Promise<
|
|
12283
|
+
get(primitiveIds: string): Promise<ISCH_PrimitiveComponent_2 | undefined>;
|
|
10573
12284
|
/**
|
|
10574
12285
|
* 获取器件
|
|
10575
12286
|
*
|
|
@@ -10578,7 +12289,7 @@ declare class SCH_PrimitiveComponent implements ISCH_PrimitiveAPI {
|
|
|
10578
12289
|
* @param primitiveIds - 器件的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
|
|
10579
12290
|
* @returns 器件图元对象,空数组表示获取失败
|
|
10580
12291
|
*/
|
|
10581
|
-
get(primitiveIds: Array<string>): Promise<Array<
|
|
12292
|
+
get(primitiveIds: Array<string>): Promise<Array<ISCH_PrimitiveComponent_2>>;
|
|
10582
12293
|
/**
|
|
10583
12294
|
* 获取所有器件的图元 ID
|
|
10584
12295
|
*
|
|
@@ -10596,9 +12307,31 @@ declare class SCH_PrimitiveComponent implements ISCH_PrimitiveAPI {
|
|
|
10596
12307
|
* @param allSchematicPages - 是否获取所有原理图图页的器件
|
|
10597
12308
|
* @returns 器件图元对象数组
|
|
10598
12309
|
*/
|
|
10599
|
-
getAll(componentType?: string, allSchematicPages?: boolean): Promise<Array<
|
|
10600
|
-
|
|
10601
|
-
|
|
12310
|
+
getAll(componentType?: string, allSchematicPages?: boolean): Promise<Array<ISCH_PrimitiveComponent_2>>;
|
|
12311
|
+
/**
|
|
12312
|
+
* 获取器件关联的所有引脚
|
|
12313
|
+
*
|
|
12314
|
+
* @beta
|
|
12315
|
+
* @param primitiveId - 器件图元 ID
|
|
12316
|
+
* @returns 器件引脚图元数组
|
|
12317
|
+
*/
|
|
12318
|
+
getAllPinsByPrimitiveId(primitiveId: string): Promise<Array<ISCH_PrimitiveComponentPin> | undefined>;
|
|
12319
|
+
/**
|
|
12320
|
+
* 使用鼠标放置器件
|
|
12321
|
+
*
|
|
12322
|
+
* @beta
|
|
12323
|
+
* @remarks
|
|
12324
|
+
* 本接口模拟前端点击放置按钮,指定的器件将绑定到当前鼠标,并在用户后续点击时放置于画布
|
|
12325
|
+
*
|
|
12326
|
+
* 本接口的返回时机并不会等待用户的放置操作,一旦器件被绑定到��标,本接口将立即返回 `true` 的结果
|
|
12327
|
+
* @param component - 关联库器件
|
|
12328
|
+
* @returns 是否找到器件
|
|
12329
|
+
*/
|
|
12330
|
+
placeComponentWithMouse(component: {
|
|
12331
|
+
libraryUuid: string;
|
|
12332
|
+
uuid: string;
|
|
12333
|
+
} | ILIB_DeviceItem, subPartName?: string): Promise<boolean>;
|
|
12334
|
+
/* Excluded from this release type: getAllPropertyNames */
|
|
10602
12335
|
/* Excluded from this release type: getComponentDetail */
|
|
10603
12336
|
/* Excluded from this release type: checkComponentType */
|
|
10604
12337
|
}
|
|
@@ -10625,7 +12358,7 @@ declare class SCH_PrimitivePin implements ISCH_PrimitiveAPI {
|
|
|
10625
12358
|
* @param pinType - 引脚类型
|
|
10626
12359
|
* @returns 引脚图元对象
|
|
10627
12360
|
*/
|
|
10628
|
-
create(x: number, y: number, pinNumber: string, pinName?: string, rotation?: number, pinLength?: number, pinColor?: string | null, pinShape?:
|
|
12361
|
+
create(x: number, y: number, pinNumber: string, pinName?: string, rotation?: number, pinLength?: number, pinColor?: string | null, pinShape?: ESCH_PrimitivePinShape, pinType?: ESCH_PrimitivePinType): Promise<ISCH_PrimitivePin | undefined>;
|
|
10629
12362
|
/**
|
|
10630
12363
|
* 删除引脚
|
|
10631
12364
|
*
|
|
@@ -10639,26 +12372,36 @@ declare class SCH_PrimitivePin implements ISCH_PrimitiveAPI {
|
|
|
10639
12372
|
*
|
|
10640
12373
|
* @beta
|
|
10641
12374
|
* @param primitiveId - 图元 ID
|
|
10642
|
-
* @param
|
|
10643
|
-
* @param y - 坐标 Y
|
|
10644
|
-
* @param pinNumber - 引脚编号
|
|
10645
|
-
* @param pinName - 引脚名称
|
|
10646
|
-
* @param rotation - 旋转角度,可选 `0` `90` `180` `270`
|
|
10647
|
-
* @param pinLength - 引脚长度
|
|
10648
|
-
* @param pinColor - 引脚颜色,`null` 表示默认
|
|
10649
|
-
* @param pinShape - 引脚形状
|
|
10650
|
-
* @param pinType - 引脚类型
|
|
12375
|
+
* @param property - 修改参数
|
|
10651
12376
|
* @returns 引脚图元对象
|
|
10652
12377
|
*/
|
|
10653
|
-
modify(primitiveId: string | ISCH_PrimitivePin,
|
|
12378
|
+
modify(primitiveId: string | ISCH_PrimitivePin, property: {
|
|
12379
|
+
x?: number;
|
|
12380
|
+
y?: number;
|
|
12381
|
+
pinNumber?: string;
|
|
12382
|
+
pinName?: string;
|
|
12383
|
+
rotation?: number;
|
|
12384
|
+
pinLength?: number;
|
|
12385
|
+
pinColor?: string | null;
|
|
12386
|
+
pinShape?: ESCH_PrimitivePinShape;
|
|
12387
|
+
pinType?: ESCH_PrimitivePinType;
|
|
12388
|
+
}): Promise<ISCH_PrimitivePin | undefined>;
|
|
10654
12389
|
/**
|
|
10655
12390
|
* 获取引脚
|
|
10656
12391
|
*
|
|
10657
12392
|
* @beta
|
|
10658
12393
|
* @param primitiveIds - 引脚的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
|
|
10659
|
-
* @returns
|
|
12394
|
+
* @returns 引脚图元对象,`undefined` 表示获取失败
|
|
10660
12395
|
*/
|
|
10661
12396
|
get(primitiveIds: string): Promise<ISCH_PrimitivePin | undefined>;
|
|
12397
|
+
/**
|
|
12398
|
+
* 获取引脚
|
|
12399
|
+
*
|
|
12400
|
+
* @beta
|
|
12401
|
+
* @remarks 如若传入多个图元 ID,任意图元 ID 未匹配到不影响其它图元的返回,即可能返回少于传入的图元 ID 数量的图元对象
|
|
12402
|
+
* @param primitiveIds - 引脚的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
|
|
12403
|
+
* @returns 引脚图元对象,空数组表示获取失败
|
|
12404
|
+
*/
|
|
10662
12405
|
get(primitiveIds: Array<string>): Promise<Array<ISCH_PrimitivePin>>;
|
|
10663
12406
|
/**
|
|
10664
12407
|
* 获取所有引脚的图元 ID
|
|
@@ -10677,7 +12420,7 @@ declare class SCH_PrimitivePin implements ISCH_PrimitiveAPI {
|
|
|
10677
12420
|
}
|
|
10678
12421
|
|
|
10679
12422
|
/**
|
|
10680
|
-
* 原理图 & 符号 /
|
|
12423
|
+
* 原理图 & 符号 / 多边形(折线)图元类
|
|
10681
12424
|
*
|
|
10682
12425
|
* @public
|
|
10683
12426
|
*/
|
|
@@ -10690,10 +12433,10 @@ declare class SCH_PrimitivePolygon implements ISCH_PrimitiveAPI {
|
|
|
10690
12433
|
* @param color - 颜色,`null` 表示默认
|
|
10691
12434
|
* @param fillColor - 填充颜色,`none` 表示无填充,`null` 表示默认
|
|
10692
12435
|
* @param lineWidth - 线宽,范围 `1-10`,`null` 表示默认
|
|
10693
|
-
* @param lineType - 线型,`
|
|
12436
|
+
* @param lineType - 线型,`null` 表示默认
|
|
10694
12437
|
* @returns 多边形图元对象
|
|
10695
12438
|
*/
|
|
10696
|
-
create(line: Array<number>, color?: string | null, fillColor?: string | null, lineWidth?: number | null, lineType?:
|
|
12439
|
+
create(line: Array<number>, color?: string | null, fillColor?: string | null, lineWidth?: number | null, lineType?: ESCH_PrimitiveLineType | null): Promise<ISCH_PrimitivePolygon | undefined>;
|
|
10697
12440
|
/**
|
|
10698
12441
|
* 删除多边形
|
|
10699
12442
|
*
|
|
@@ -10707,22 +12450,32 @@ declare class SCH_PrimitivePolygon implements ISCH_PrimitiveAPI {
|
|
|
10707
12450
|
*
|
|
10708
12451
|
* @beta
|
|
10709
12452
|
* @param primitiveId - 图元 ID
|
|
10710
|
-
* @param
|
|
10711
|
-
* @param color - 颜色,`null` 表示默认
|
|
10712
|
-
* @param fillColor - 填充颜色,`none` 表示无填充,`null` 表示默认
|
|
10713
|
-
* @param lineWidth - 线宽,范围 `1-10`,`null` 表示默认
|
|
10714
|
-
* @param lineType - 线型,`0` 实线,`1` 短划线,`2` 点线,`3` 点划线,`null` 表示默认
|
|
12453
|
+
* @param property - 修改参数
|
|
10715
12454
|
* @returns 多边形图元对象
|
|
10716
12455
|
*/
|
|
10717
|
-
modify(primitiveId: string | ISCH_PrimitivePolygon,
|
|
12456
|
+
modify(primitiveId: string | ISCH_PrimitivePolygon, property: {
|
|
12457
|
+
line?: Array<number>;
|
|
12458
|
+
color?: string | null;
|
|
12459
|
+
fillColor?: string | null;
|
|
12460
|
+
lineWidth?: number | null;
|
|
12461
|
+
lineType?: ESCH_PrimitiveLineType | null;
|
|
12462
|
+
}): Promise<ISCH_PrimitivePolygon | undefined>;
|
|
10718
12463
|
/**
|
|
10719
12464
|
* 获取多边形
|
|
10720
12465
|
*
|
|
10721
12466
|
* @beta
|
|
10722
12467
|
* @param primitiveIds - 多边形的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
|
|
10723
|
-
* @returns
|
|
12468
|
+
* @returns 多边形图元对象,`undefined` 表示获取失败
|
|
10724
12469
|
*/
|
|
10725
12470
|
get(primitiveIds: string): Promise<ISCH_PrimitivePolygon | undefined>;
|
|
12471
|
+
/**
|
|
12472
|
+
* 获取多边形
|
|
12473
|
+
*
|
|
12474
|
+
* @beta
|
|
12475
|
+
* @remarks 如若传入多个图元 ID,任意图元 ID 未匹配到不影响其它图元的返回,即可能返回少于传入的图元 ID 数量的图元对象
|
|
12476
|
+
* @param primitiveIds - 多边形的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
|
|
12477
|
+
* @returns 多边形图元对象,空数组表示获取失败
|
|
12478
|
+
*/
|
|
10726
12479
|
get(primitiveIds: Array<string>): Promise<Array<ISCH_PrimitivePolygon>>;
|
|
10727
12480
|
/**
|
|
10728
12481
|
* 获取所有多边形的图元 ID
|
|
@@ -10759,10 +12512,11 @@ declare class SCH_PrimitiveRectangle implements ISCH_PrimitiveAPI {
|
|
|
10759
12512
|
* @param color - 颜色,`null` 表示默认
|
|
10760
12513
|
* @param fillColor - 填充颜色,`none` 表示无填充,`null` 表示默认
|
|
10761
12514
|
* @param lineWidth - 线宽,范围 `1-10`,`null` 表示默认
|
|
10762
|
-
* @param lineType - 线型,`
|
|
12515
|
+
* @param lineType - 线型,`null` 表示默认
|
|
12516
|
+
* @param fillStyle - 填充样式,`null` 表示默认
|
|
10763
12517
|
* @returns 矩形图元对象
|
|
10764
12518
|
*/
|
|
10765
|
-
create(topLeftX: number, topLeftY: number, width: number, height: number, cornerRadius?: number, rotation?: number, color?: string | null, fillColor?: string | null, lineWidth?: number | null, lineType?:
|
|
12519
|
+
create(topLeftX: number, topLeftY: number, width: number, height: number, cornerRadius?: number, rotation?: number, color?: string | null, fillColor?: string | null, lineWidth?: number | null, lineType?: ESCH_PrimitiveLineType | null, fillStyle?: ESCH_PrimitiveFillStyle | null): Promise<ISCH_PrimitiveRectangle | undefined>;
|
|
10766
12520
|
/**
|
|
10767
12521
|
* 删除矩形
|
|
10768
12522
|
*
|
|
@@ -10774,29 +12528,40 @@ declare class SCH_PrimitiveRectangle implements ISCH_PrimitiveAPI {
|
|
|
10774
12528
|
/**
|
|
10775
12529
|
* 修改矩形
|
|
10776
12530
|
*
|
|
10777
|
-
* @
|
|
12531
|
+
* @beta
|
|
10778
12532
|
* @param primitiveId - 图元 ID
|
|
10779
|
-
* @param
|
|
10780
|
-
* @param topLeftY - 左上点 Y
|
|
10781
|
-
* @param width - 宽
|
|
10782
|
-
* @param height - 高
|
|
10783
|
-
* @param cornerRadius - 圆角半径
|
|
10784
|
-
* @param rotation - 旋转角度,绕左上点旋转,可选 `0` `90` `180` `270`
|
|
10785
|
-
* @param color - 颜色,`null` 表示默认
|
|
10786
|
-
* @param fillColor - 填充颜色,`none` 表示无填充,`null` 表示默认
|
|
10787
|
-
* @param lineWidth - 线宽,范围 `1-10`,`null` 表示默认
|
|
10788
|
-
* @param lineType - 线型,`0` 实线,`1` 短划线,`2` 点线,`3` 点划线,`null` 表示默认
|
|
12533
|
+
* @param property - 修改参数
|
|
10789
12534
|
* @returns 矩形图元对象
|
|
10790
12535
|
*/
|
|
10791
|
-
modify(primitiveId: string | ISCH_PrimitiveRectangle,
|
|
12536
|
+
modify(primitiveId: string | ISCH_PrimitiveRectangle, property: {
|
|
12537
|
+
topLeftX?: number;
|
|
12538
|
+
topLeftY?: number;
|
|
12539
|
+
width?: number;
|
|
12540
|
+
height?: number;
|
|
12541
|
+
cornerRadius?: number;
|
|
12542
|
+
rotation?: number;
|
|
12543
|
+
color?: string | null;
|
|
12544
|
+
fillColor?: string | null;
|
|
12545
|
+
lineWidth?: number | null;
|
|
12546
|
+
lineType?: ESCH_PrimitiveLineType | null;
|
|
12547
|
+
fillStyle?: ESCH_PrimitiveFillStyle | null;
|
|
12548
|
+
}): Promise<ISCH_PrimitiveRectangle | undefined>;
|
|
10792
12549
|
/**
|
|
10793
12550
|
* 获取矩形
|
|
10794
12551
|
*
|
|
10795
|
-
* @
|
|
12552
|
+
* @beta
|
|
10796
12553
|
* @param primitiveIds - 矩形的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
|
|
10797
|
-
* @returns
|
|
12554
|
+
* @returns 矩形图元对象,`undefined` 表示获取失败
|
|
10798
12555
|
*/
|
|
10799
12556
|
get(primitiveIds: string): Promise<ISCH_PrimitiveRectangle | undefined>;
|
|
12557
|
+
/**
|
|
12558
|
+
* 获取矩形
|
|
12559
|
+
*
|
|
12560
|
+
* @beta
|
|
12561
|
+
* @remarks 如若传入多个图元 ID,任意图元 ID 未匹配到不影响其它图元的返回,即可能返回少于传入的图元 ID 数量的图元对象
|
|
12562
|
+
* @param primitiveIds - 矩形的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
|
|
12563
|
+
* @returns 矩形图元对象,空数组表示获取失败
|
|
12564
|
+
*/
|
|
10800
12565
|
get(primitiveIds: Array<string>): Promise<Array<ISCH_PrimitiveRectangle>>;
|
|
10801
12566
|
/**
|
|
10802
12567
|
* 获取所有矩形的图元 ID
|
|
@@ -10837,7 +12602,7 @@ declare class SCH_PrimitiveText implements ISCH_PrimitiveAPI {
|
|
|
10837
12602
|
* @param alignMode - 对齐模式,`0` 左顶,`1` 中顶,`2` 右顶,`3` 左中,`4` 中中,`5` 右中,`6` 左底,`7` 中底,`8` 右底
|
|
10838
12603
|
* @returns 文本图元对象
|
|
10839
12604
|
*/
|
|
10840
|
-
create(x: number, y: number, content: string, rotation?: number, textColor?: string | null, fontName?: string | null, fontSize?: number | null, bold?: boolean, italic?: boolean, underLine?: boolean, alignMode?: number): ISCH_PrimitiveText | undefined
|
|
12605
|
+
create(x: number, y: number, content: string, rotation?: number, textColor?: string | null, fontName?: string | null, fontSize?: number | null, bold?: boolean, italic?: boolean, underLine?: boolean, alignMode?: number): Promise<ISCH_PrimitiveText | undefined>;
|
|
10841
12606
|
/**
|
|
10842
12607
|
* 删除文本
|
|
10843
12608
|
*
|
|
@@ -10845,49 +12610,59 @@ declare class SCH_PrimitiveText implements ISCH_PrimitiveAPI {
|
|
|
10845
12610
|
* @param primitiveIds - 文本的图元 ID 或文本图元对象
|
|
10846
12611
|
* @returns 删除操作是否成功
|
|
10847
12612
|
*/
|
|
10848
|
-
delete(primitiveIds: string | ISCH_PrimitiveText | Array<string> | Array<ISCH_PrimitiveText>): boolean
|
|
12613
|
+
delete(primitiveIds: string | ISCH_PrimitiveText | Array<string> | Array<ISCH_PrimitiveText>): Promise<boolean>;
|
|
10849
12614
|
/**
|
|
10850
12615
|
* 修改文本
|
|
10851
12616
|
*
|
|
10852
12617
|
* @beta
|
|
10853
12618
|
* @param primitiveId - 图元 ID
|
|
10854
|
-
* @param
|
|
10855
|
-
* @param y - 坐标 Y
|
|
10856
|
-
* @param content - 文本内容
|
|
10857
|
-
* @param rotation - 旋转角度,可选 `0` `90` `180` `270`
|
|
10858
|
-
* @param textColor - 文本颜色,`null` 表示默认
|
|
10859
|
-
* @param fontName - 字体名称,`null` 表示默认
|
|
10860
|
-
* @param fontSize - 字体大小,`null` 表示默认
|
|
10861
|
-
* @param bold - 是否加粗
|
|
10862
|
-
* @param italic - 是否斜体
|
|
10863
|
-
* @param underLine - 是否加下划线
|
|
10864
|
-
* @param alignMode - 对齐模式,`0` 左顶,`1` 中顶,`2` 右顶,`3` 左中,`4` 中中,`5` 右中,`6` 左底,`7` 中底,`8` 右底
|
|
12619
|
+
* @param property - 修改参数
|
|
10865
12620
|
* @returns 文本图元对象
|
|
10866
12621
|
*/
|
|
10867
|
-
modify(primitiveId: string | ISCH_PrimitiveText,
|
|
12622
|
+
modify(primitiveId: string | ISCH_PrimitiveText, property: {
|
|
12623
|
+
x?: number;
|
|
12624
|
+
y?: number;
|
|
12625
|
+
content?: string;
|
|
12626
|
+
rotation?: number;
|
|
12627
|
+
textColor?: string | null;
|
|
12628
|
+
fontName?: string | null;
|
|
12629
|
+
fontSize?: number | null;
|
|
12630
|
+
bold?: boolean;
|
|
12631
|
+
italic?: boolean;
|
|
12632
|
+
underLine?: boolean;
|
|
12633
|
+
alignMode?: number;
|
|
12634
|
+
}): Promise<ISCH_PrimitiveText | undefined>;
|
|
10868
12635
|
/**
|
|
10869
12636
|
* 获取文本
|
|
10870
12637
|
*
|
|
10871
12638
|
* @beta
|
|
10872
12639
|
* @param primitiveIds - 文本的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
|
|
10873
|
-
* @returns
|
|
12640
|
+
* @returns 文本图元对象,`undefined` 表示获取失败
|
|
12641
|
+
*/
|
|
12642
|
+
get(primitiveIds: string): Promise<ISCH_PrimitiveText | undefined>;
|
|
12643
|
+
/**
|
|
12644
|
+
* 获取文本
|
|
12645
|
+
*
|
|
12646
|
+
* @beta
|
|
12647
|
+
* @remarks 如若传入多个图元 ID,任意图元 ID 未匹配到不影响其它图元的返回,即可能返回少于传入的图元 ID 数量的图元对象
|
|
12648
|
+
* @param primitiveIds - 文本的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
|
|
12649
|
+
* @returns 文本图元对象,空数组表示获取失败
|
|
10874
12650
|
*/
|
|
10875
|
-
get(primitiveIds: string): ISCH_PrimitiveText
|
|
10876
|
-
get(primitiveIds: Array<string>): Array<ISCH_PrimitiveText>;
|
|
12651
|
+
get(primitiveIds: Array<string>): Promise<Array<ISCH_PrimitiveText>>;
|
|
10877
12652
|
/**
|
|
10878
12653
|
* 获取所有文本的图元 ID
|
|
10879
12654
|
*
|
|
10880
12655
|
* @beta
|
|
10881
12656
|
* @returns 文本的图元 ID 数组
|
|
10882
12657
|
*/
|
|
10883
|
-
getAllPrimitiveId(): Array<string
|
|
12658
|
+
getAllPrimitiveId(): Promise<Array<string>>;
|
|
10884
12659
|
/**
|
|
10885
12660
|
* 获取所有文本
|
|
10886
12661
|
*
|
|
10887
12662
|
* @beta
|
|
10888
12663
|
* @returns 文本图元对象数组
|
|
10889
12664
|
*/
|
|
10890
|
-
getAll(): Array<ISCH_PrimitiveText
|
|
12665
|
+
getAll(): Promise<Array<ISCH_PrimitiveText>>;
|
|
10891
12666
|
}
|
|
10892
12667
|
|
|
10893
12668
|
/**
|
|
@@ -10911,10 +12686,10 @@ declare class SCH_PrimitiveWire implements ISCH_PrimitiveAPI {
|
|
|
10911
12686
|
* 2. 如若其他图元指定了网络,则创建失败
|
|
10912
12687
|
* @param color - 导线颜色,`null` 表示默认
|
|
10913
12688
|
* @param lineWidth - 线宽,范围 `1-10`,`null` 表示默认
|
|
10914
|
-
* @param lineType - 线型,`
|
|
12689
|
+
* @param lineType - 线型,`null` 表示默认
|
|
10915
12690
|
* @returns 导线图元对象
|
|
10916
12691
|
*/
|
|
10917
|
-
create(line:
|
|
12692
|
+
create(line: Array<number> | Array<Array<number>>, net?: string, color?: string | null, lineWidth?: number | null, lineType?: ESCH_PrimitiveLineType | null): Promise<ISCH_PrimitiveWire | undefined>;
|
|
10918
12693
|
/**
|
|
10919
12694
|
* 删除导线
|
|
10920
12695
|
*
|
|
@@ -10922,29 +12697,39 @@ declare class SCH_PrimitiveWire implements ISCH_PrimitiveAPI {
|
|
|
10922
12697
|
* @param primitiveIds - 导线的图元 ID 或导线图元对象
|
|
10923
12698
|
* @returns 删除操作是否成功
|
|
10924
12699
|
*/
|
|
10925
|
-
delete(primitiveIds: string | ISCH_PrimitiveWire | Array<string> | Array<ISCH_PrimitiveWire>): boolean
|
|
12700
|
+
delete(primitiveIds: string | ISCH_PrimitiveWire | Array<string> | Array<ISCH_PrimitiveWire>): Promise<boolean>;
|
|
10926
12701
|
/**
|
|
10927
12702
|
* 修改导线
|
|
10928
12703
|
*
|
|
10929
12704
|
* @beta
|
|
10930
12705
|
* @param primitiveId - 导线的图元 ID 或导线图元对象
|
|
10931
|
-
* @param
|
|
10932
|
-
* @param net - 网络名称
|
|
10933
|
-
* @param color - 导线颜色,`null` 表示默认
|
|
10934
|
-
* @param lineWidth - 线宽,范围 `1-10`,`null` 表示默认
|
|
10935
|
-
* @param lineType - 线型,`0` 实线,`1` 短划线,`2` 点线,`3` 点划线,`null` 表示默认
|
|
12706
|
+
* @param property - 修改参数
|
|
10936
12707
|
* @returns 导线图元对象
|
|
10937
12708
|
*/
|
|
10938
|
-
modify(primitiveId: string | ISCH_PrimitiveWire,
|
|
12709
|
+
modify(primitiveId: string | ISCH_PrimitiveWire, property: {
|
|
12710
|
+
line?: Array<number> | Array<Array<number>>;
|
|
12711
|
+
net?: string;
|
|
12712
|
+
color?: string | null;
|
|
12713
|
+
lineWidth?: number | null;
|
|
12714
|
+
lineType?: ESCH_PrimitiveLineType | null;
|
|
12715
|
+
}): Promise<ISCH_PrimitiveWire | undefined>;
|
|
10939
12716
|
/**
|
|
10940
12717
|
* 获取导线
|
|
10941
12718
|
*
|
|
10942
12719
|
* @beta
|
|
10943
|
-
* @param primitiveIds -
|
|
10944
|
-
* @returns
|
|
12720
|
+
* @param primitiveIds - 导线的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
|
|
12721
|
+
* @returns 导线图元对象,`undefined` 表示获取失败
|
|
10945
12722
|
*/
|
|
10946
|
-
get(primitiveIds: string): ISCH_PrimitiveWire | undefined
|
|
10947
|
-
|
|
12723
|
+
get(primitiveIds: string): Promise<ISCH_PrimitiveWire | undefined>;
|
|
12724
|
+
/**
|
|
12725
|
+
* 获取导线
|
|
12726
|
+
*
|
|
12727
|
+
* @beta
|
|
12728
|
+
* @remarks 如若传入多个图元 ID,任意图元 ID 未匹配到不影响其它图元的返回,即可能返回少于传入的图元 ID 数量的图元对象
|
|
12729
|
+
* @param primitiveIds - 导线的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
|
|
12730
|
+
* @returns 导线图元对象,空数组表示获取失败
|
|
12731
|
+
*/
|
|
12732
|
+
get(primitiveIds: Array<string>): Promise<Array<ISCH_PrimitiveWire>>;
|
|
10948
12733
|
/**
|
|
10949
12734
|
* 获取所有导线的图元 ID
|
|
10950
12735
|
*
|
|
@@ -10952,7 +12737,7 @@ declare class SCH_PrimitiveWire implements ISCH_PrimitiveAPI {
|
|
|
10952
12737
|
* @param net - 网络名称
|
|
10953
12738
|
* @returns 导线的图元 ID 数组
|
|
10954
12739
|
*/
|
|
10955
|
-
getAllPrimitiveId(net?: string | Array<string>): Array<string
|
|
12740
|
+
getAllPrimitiveId(net?: string | Array<string>): Promise<Array<string>>;
|
|
10956
12741
|
/**
|
|
10957
12742
|
* 获取所有导线
|
|
10958
12743
|
*
|
|
@@ -10960,7 +12745,7 @@ declare class SCH_PrimitiveWire implements ISCH_PrimitiveAPI {
|
|
|
10960
12745
|
* @param net - 网络名称
|
|
10961
12746
|
* @returns 导线图元对象数组
|
|
10962
12747
|
*/
|
|
10963
|
-
getAll(net?: string | Array<string>): Array<ISCH_PrimitiveWire
|
|
12748
|
+
getAll(net?: string | Array<string>): Promise<Array<ISCH_PrimitiveWire>>;
|
|
10964
12749
|
}
|
|
10965
12750
|
|
|
10966
12751
|
/**
|
|
@@ -11109,7 +12894,7 @@ declare class SYS_Dialog {
|
|
|
11109
12894
|
* @param title - 弹出窗口标题
|
|
11110
12895
|
* @param mainButtonTitle - 主要按钮标题
|
|
11111
12896
|
* @param buttonTitle - 主要按钮标题
|
|
11112
|
-
* @param callbackFn -
|
|
12897
|
+
* @param callbackFn - 回调函数
|
|
11113
12898
|
*/
|
|
11114
12899
|
showConfirmationMessage(content: string, title?: string, mainButtonTitle?: string, buttonTitle?: string, callbackFn?: (mainButtonClicked: boolean) => void): void;
|
|
11115
12900
|
/* Excluded from this release type: showInputDialog */
|
|
@@ -11180,6 +12965,20 @@ declare class SYS_Environment {
|
|
|
11180
12965
|
* @returns 是否为全离线模式
|
|
11181
12966
|
*/
|
|
11182
12967
|
isOfflineMode(): boolean;
|
|
12968
|
+
/**
|
|
12969
|
+
* 获取编辑器当前版本
|
|
12970
|
+
*
|
|
12971
|
+
* @public
|
|
12972
|
+
* @returns 编辑器当前版本
|
|
12973
|
+
*/
|
|
12974
|
+
getEditorCurrentVersion(): string;
|
|
12975
|
+
/**
|
|
12976
|
+
* 获取编辑器编译日期
|
|
12977
|
+
*
|
|
12978
|
+
* @public
|
|
12979
|
+
* @returns 编辑器编译日期
|
|
12980
|
+
*/
|
|
12981
|
+
getEditorCompliedDate(): string;
|
|
11183
12982
|
}
|
|
11184
12983
|
|
|
11185
12984
|
/**
|
|
@@ -11319,6 +13118,14 @@ declare class SYS_FileSystem {
|
|
|
11319
13118
|
/** 扩展 UUID */
|
|
11320
13119
|
private extensionUuid?;
|
|
11321
13120
|
/* Excluded from this release type: __constructor */
|
|
13121
|
+
/**
|
|
13122
|
+
* 获取扩展内的文件
|
|
13123
|
+
*
|
|
13124
|
+
* @public
|
|
13125
|
+
* @param uri - 文件路径
|
|
13126
|
+
* @returns File 格式文件
|
|
13127
|
+
*/
|
|
13128
|
+
getExtensionFile(uri: string): Promise<File | undefined>;
|
|
11322
13129
|
/**
|
|
11323
13130
|
* 打开读入文件窗口
|
|
11324
13131
|
*
|
|
@@ -11762,6 +13569,21 @@ declare class SYS_PanelControl {
|
|
|
11762
13569
|
isBottomPanelLocked(): Promise<boolean>;
|
|
11763
13570
|
}
|
|
11764
13571
|
|
|
13572
|
+
/**
|
|
13573
|
+
* 系统 / 设置类
|
|
13574
|
+
*
|
|
13575
|
+
* @public
|
|
13576
|
+
*/
|
|
13577
|
+
declare class SYS_Setting {
|
|
13578
|
+
/**
|
|
13579
|
+
* 全局恢复默认设置
|
|
13580
|
+
*
|
|
13581
|
+
* @remarks 将所有 EDA 设置恢复到默认状态,本操作将会丢失所有设置项,在调用时请特别注意
|
|
13582
|
+
* @returns 操作是否成功
|
|
13583
|
+
*/
|
|
13584
|
+
restoreDefault(): Promise<boolean>;
|
|
13585
|
+
}
|
|
13586
|
+
|
|
11765
13587
|
/**
|
|
11766
13588
|
* 系统 / 快捷键类
|
|
11767
13589
|
*
|
|
@@ -11861,7 +13683,7 @@ declare class SYS_Storage {
|
|
|
11861
13683
|
*
|
|
11862
13684
|
* @public
|
|
11863
13685
|
* @remarks
|
|
11864
|
-
*
|
|
13686
|
+
* 新建扩展用户配置也使用本接口,在设置时如果不存在将会自动新建
|
|
11865
13687
|
*
|
|
11866
13688
|
* 注意:本接口仅扩展有效,在独立脚本环境内调用将始终 `throw Error`
|
|
11867
13689
|
* @param key - 配置项
|
|
@@ -11955,6 +13777,15 @@ declare class SYS_ToastMessage {
|
|
|
11955
13777
|
showMessage(message: string, messageType?: ESYS_ToastMessageType, timer?: number, bottomPanel?: ESYS_BottomPanelTab, buttonTitle?: string, buttonCallbackFn?: string): void;
|
|
11956
13778
|
}
|
|
11957
13779
|
|
|
13780
|
+
/**
|
|
13781
|
+
* 系统 / 工具类
|
|
13782
|
+
*
|
|
13783
|
+
* @public
|
|
13784
|
+
*/
|
|
13785
|
+
declare class SYS_Tool {
|
|
13786
|
+
/* Excluded from this release type: netlistComparison */
|
|
13787
|
+
}
|
|
13788
|
+
|
|
11958
13789
|
/**
|
|
11959
13790
|
* 系统 / 单位类
|
|
11960
13791
|
*
|
|
@@ -12434,12 +14265,4 @@ declare type TPCB_PrimitiveSpecialPadShape = Array<[number, number, TPCB_Primiti
|
|
|
12434
14265
|
*/
|
|
12435
14266
|
declare type TShortcutKeys = Array<'SHIFT' | 'LEFT_SHIFT' | 'RIGHT_SHIFT' | 'FN' | 'ALT' | 'LEFT_ALT' | 'RIGHT_ALT' | 'CONTROL' | 'LEFT_CONTROL' | 'RIGHT_CONTROL' | 'COMMAND' | 'WIN' | 'OPTION' | 'SUPER' | 'TAB' | 'SPACE' | 'UP' | 'DOWN' | 'LEFT' | 'RIGHT' | 'F1' | 'F2' | 'F3' | 'F4' | 'F5' | 'F6' | 'F7' | 'F8' | 'F9' | 'F10' | 'F11' | 'F12' | 'F13' | 'F14' | 'F15' | 'F16' | 'F17' | 'F18' | 'F19' | 'F20' | '`' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '0' | '-' | '=' | 'Q' | 'W' | 'E' | 'R' | 'T' | 'Y' | 'U' | 'I' | 'O' | 'P' | '[' | ']' | 'A' | 'S' | 'D' | 'F' | 'G' | 'H' | 'J' | 'K' | 'L' | ';' | "'" | '\\' | 'Z' | 'X' | 'C' | 'V' | 'B' | 'N' | 'M' | ',' | '.' | '/'>;
|
|
12436
14267
|
|
|
12437
|
-
declare interface WireNetGroupCreateOptions {
|
|
12438
|
-
line: Array<number> | Array<Array<number>>;
|
|
12439
|
-
net: string;
|
|
12440
|
-
color: string | null;
|
|
12441
|
-
lineWidth: number | null;
|
|
12442
|
-
lineType: number | null;
|
|
12443
|
-
}
|
|
12444
|
-
|
|
12445
14268
|
|