@jlceda/pro-api-types 0.1.112 → 0.1.121
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 +2369 -560
- 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
|
*
|
|
@@ -418,7 +410,7 @@ declare class DMT_Project {
|
|
|
418
410
|
*
|
|
419
411
|
* @beta
|
|
420
412
|
* @param projectFriendlyName - 工程友好名称
|
|
421
|
-
* @param projectName - 工程名称,仅支持字母 `a-zA-Z`、数字 `0-9`、中划线
|
|
413
|
+
* @param projectName - 工程名称,仅支持字母 `a-zA-Z`、数字 `0-9`、中划线 `-`,如若不指定,则根据工程友好���称自动生成
|
|
422
414
|
* @param teamUuid - 团队 UUID,如若不指定,则默认为个人;在不存在个人工程的环境下必须指定团队 UUID
|
|
423
415
|
* @param folderUuid - 文件夹 UUID,如若不指定,则为根文件夹
|
|
424
416
|
* @param description - 工程描述
|
|
@@ -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 是否修改成功
|
|
@@ -771,7 +763,7 @@ declare class EDA {
|
|
|
771
763
|
sch_PrimitiveArc: SCH_PrimitiveArc;
|
|
772
764
|
sch_PrimitiveBus: SCH_PrimitiveBus;
|
|
773
765
|
sch_PrimitiveCircle: SCH_PrimitiveCircle;
|
|
774
|
-
sch_PrimitiveComponent: SCH_PrimitiveComponent;
|
|
766
|
+
sch_PrimitiveComponent: SCH_PrimitiveComponent | SCH_PrimitiveComponent3;
|
|
775
767
|
sch_PrimitivePin: SCH_PrimitivePin;
|
|
776
768
|
sch_PrimitivePolygon: SCH_PrimitivePolygon;
|
|
777
769
|
sch_PrimitiveRectangle: SCH_PrimitiveRectangle;
|
|
@@ -792,10 +784,12 @@ declare class EDA {
|
|
|
792
784
|
sys_Message: SYS_Message;
|
|
793
785
|
sys_MessageBox: SYS_MessageBox;
|
|
794
786
|
sys_PanelControl: SYS_PanelControl;
|
|
787
|
+
sys_Setting: SYS_Setting;
|
|
795
788
|
sys_ShortcutKey: SYS_ShortcutKey;
|
|
796
789
|
sys_Storage: SYS_Storage;
|
|
797
790
|
sys_Timer: SYS_Timer;
|
|
798
791
|
sys_ToastMessage: SYS_ToastMessage;
|
|
792
|
+
sys_Tool: SYS_Tool;
|
|
799
793
|
sys_Unit: SYS_Unit;
|
|
800
794
|
sys_WebSocket: SYS_WebSocket;
|
|
801
795
|
sys_Window: SYS_Window;
|
|
@@ -1186,11 +1180,11 @@ declare enum EPCB_LayerId {
|
|
|
1186
1180
|
CUSTOM_28 = 98,
|
|
1187
1181
|
/** 自定义层 29 */
|
|
1188
1182
|
CUSTOM_29 = 99,
|
|
1189
|
-
/**
|
|
1183
|
+
/** 自定义层 30 */
|
|
1190
1184
|
CUSTOM_30 = 100,
|
|
1191
1185
|
/** 夹层(介电基板)1 */
|
|
1192
1186
|
SUBSTRATE_1 = 101,
|
|
1193
|
-
/**
|
|
1187
|
+
/** 孔层(焊���、过孔的内孔) */
|
|
1194
1188
|
HOLE = 47,
|
|
1195
1189
|
/** 元件外形层 */
|
|
1196
1190
|
COMPONENT_SHAPE = 48,
|
|
@@ -1468,6 +1462,68 @@ declare enum ESCH_PrimitiveComponentType {
|
|
|
1468
1462
|
NET_LABEL = "netlabel"
|
|
1469
1463
|
}
|
|
1470
1464
|
|
|
1465
|
+
/**
|
|
1466
|
+
* 器件类型
|
|
1467
|
+
*
|
|
1468
|
+
* @public
|
|
1469
|
+
*/
|
|
1470
|
+
declare enum ESCH_PrimitiveComponentType_2 {
|
|
1471
|
+
/** 元件 */
|
|
1472
|
+
COMPONENT = "part",
|
|
1473
|
+
/** 图纸 */
|
|
1474
|
+
DRAWING = "Drawing",
|
|
1475
|
+
/** 网络标识 */
|
|
1476
|
+
NET_FLAG = "netflag",
|
|
1477
|
+
/** 网络端口 */
|
|
1478
|
+
NET_PORT = "netport",
|
|
1479
|
+
/** 无电气标识 */
|
|
1480
|
+
NON_ELECTRICAL_FLAG = "nonElectrical_symbol",
|
|
1481
|
+
/** 短接标识 */
|
|
1482
|
+
SHORT_CIRCUIT_FLAG = "short_symbol",
|
|
1483
|
+
/** 网络标签 */
|
|
1484
|
+
NET_LABEL = "netlabel"
|
|
1485
|
+
}
|
|
1486
|
+
|
|
1487
|
+
/**
|
|
1488
|
+
* 填充样式
|
|
1489
|
+
*
|
|
1490
|
+
* @public
|
|
1491
|
+
*/
|
|
1492
|
+
declare enum ESCH_PrimitiveFillStyle {
|
|
1493
|
+
/** 无 */
|
|
1494
|
+
NONE = "None",
|
|
1495
|
+
/** 实心 */
|
|
1496
|
+
SOLID = "Solid",
|
|
1497
|
+
/** 网格 */
|
|
1498
|
+
GRID = "Grid",
|
|
1499
|
+
/** 横线 */
|
|
1500
|
+
HORIZONTAL_LINE = "Horizontal Line",
|
|
1501
|
+
/** 竖线 */
|
|
1502
|
+
VERTICAL_LINE = "Vertical Line",
|
|
1503
|
+
/** 菱形网格 */
|
|
1504
|
+
RHOMBIC_GRID = "Rhombic Grid",
|
|
1505
|
+
/** 左斜线 */
|
|
1506
|
+
LEFT_SLASH_LINE = "Left Slash Line",
|
|
1507
|
+
/** 右斜线 */
|
|
1508
|
+
RIGHT_SLASH_LINE = "Right Slash Line"
|
|
1509
|
+
}
|
|
1510
|
+
|
|
1511
|
+
/**
|
|
1512
|
+
* 线型
|
|
1513
|
+
*
|
|
1514
|
+
* @public
|
|
1515
|
+
*/
|
|
1516
|
+
declare enum ESCH_PrimitiveLineType {
|
|
1517
|
+
/** 实线 */
|
|
1518
|
+
SOLID = 0,
|
|
1519
|
+
/** 短划线 */
|
|
1520
|
+
DASHED = 1,
|
|
1521
|
+
/** 点线 */
|
|
1522
|
+
DOTTED = 2,
|
|
1523
|
+
/** 点划线 */
|
|
1524
|
+
DOT_DASHED = 3
|
|
1525
|
+
}
|
|
1526
|
+
|
|
1471
1527
|
/**
|
|
1472
1528
|
* 引脚形状
|
|
1473
1529
|
*
|
|
@@ -1539,20 +1595,7 @@ declare enum ESCH_PrimitiveType {
|
|
|
1539
1595
|
/** 文本 */
|
|
1540
1596
|
TEXT = "Text",
|
|
1541
1597
|
/** 导线 */
|
|
1542
|
-
WIRE = "Wire"
|
|
1543
|
-
NETFLAG = "Netflag",
|
|
1544
|
-
NETPORT = "Netport",
|
|
1545
|
-
NO_CONNECT = "Noconnect",
|
|
1546
|
-
PART = "Part",
|
|
1547
|
-
SHORT_SYMBOL = "Short_symbol",
|
|
1548
|
-
BLOCK_SYMBOL = "Block_symbol",
|
|
1549
|
-
TABLE = "Table",
|
|
1550
|
-
CELL = "Cell",
|
|
1551
|
-
BUSENTRY = "BusEntry",
|
|
1552
|
-
NONELECTRICAL_SYMBOL = "NonElectrical_symbol",
|
|
1553
|
-
OBJ = "Obj",
|
|
1554
|
-
JUNCTION = "Junction",
|
|
1555
|
-
SHEET = "Sheet"
|
|
1598
|
+
WIRE = "Wire"
|
|
1556
1599
|
}
|
|
1557
1600
|
|
|
1558
1601
|
/**
|
|
@@ -2537,7 +2580,12 @@ declare interface IPCB_EqualLengthNetGroupItem {
|
|
|
2537
2580
|
/** 网络名称数组 */
|
|
2538
2581
|
nets: Array<string>;
|
|
2539
2582
|
/** 等长网络组颜色 */
|
|
2540
|
-
color:
|
|
2583
|
+
color: {
|
|
2584
|
+
r: number;
|
|
2585
|
+
g: number;
|
|
2586
|
+
b: number;
|
|
2587
|
+
alpha: number;
|
|
2588
|
+
} | null;
|
|
2541
2589
|
}
|
|
2542
2590
|
|
|
2543
2591
|
/**
|
|
@@ -2569,7 +2617,12 @@ declare interface IPCB_NetClassItem {
|
|
|
2569
2617
|
/** 网络名称数组 */
|
|
2570
2618
|
nets: Array<string>;
|
|
2571
2619
|
/** 网络类颜色 */
|
|
2572
|
-
color:
|
|
2620
|
+
color: {
|
|
2621
|
+
r: number;
|
|
2622
|
+
g: number;
|
|
2623
|
+
b: number;
|
|
2624
|
+
alpha: number;
|
|
2625
|
+
} | null;
|
|
2573
2626
|
}
|
|
2574
2627
|
|
|
2575
2628
|
/**
|
|
@@ -2581,7 +2634,12 @@ declare interface IPCB_NetInfo {
|
|
|
2581
2634
|
/** 网络名称 */
|
|
2582
2635
|
net: string;
|
|
2583
2636
|
/** 颜色 */
|
|
2584
|
-
color:
|
|
2637
|
+
color: {
|
|
2638
|
+
r: number;
|
|
2639
|
+
g: number;
|
|
2640
|
+
b: number;
|
|
2641
|
+
alpha: number;
|
|
2642
|
+
} | null;
|
|
2585
2643
|
/** 长度 */
|
|
2586
2644
|
length: number;
|
|
2587
2645
|
}
|
|
@@ -2665,6 +2723,7 @@ declare interface IPCB_PrimitiveAPI {
|
|
|
2665
2723
|
* 圆弧线图元
|
|
2666
2724
|
*
|
|
2667
2725
|
* @public
|
|
2726
|
+
* @remarks 直线和圆弧线均为导线,对应画布的线条走线和圆弧走线
|
|
2668
2727
|
*/
|
|
2669
2728
|
declare class IPCB_PrimitiveArc implements IPCB_Primitive {
|
|
2670
2729
|
/** 异步 */
|
|
@@ -3110,7 +3169,7 @@ declare class IPCB_PrimitiveComponent implements IPCB_Primitive {
|
|
|
3110
3169
|
*/
|
|
3111
3170
|
getState_Supplier(): string | undefined;
|
|
3112
3171
|
/**
|
|
3113
|
-
*
|
|
3172
|
+
* 获取属性状态:供应商编号
|
|
3114
3173
|
*
|
|
3115
3174
|
* @public
|
|
3116
3175
|
* @returns 供应商编号
|
|
@@ -3261,7 +3320,7 @@ declare class IPCB_PrimitiveComponent implements IPCB_Primitive {
|
|
|
3261
3320
|
*/
|
|
3262
3321
|
isAsync(): boolean;
|
|
3263
3322
|
/**
|
|
3264
|
-
*
|
|
3323
|
+
* 将异步图元重置为当前画布状态
|
|
3265
3324
|
*
|
|
3266
3325
|
* @beta
|
|
3267
3326
|
* @returns 器件图元对象
|
|
@@ -3309,7 +3368,7 @@ declare class IPCB_PrimitiveComponentPad extends IPCB_PrimitivePad {
|
|
|
3309
3368
|
*/
|
|
3310
3369
|
done(): Promise<IPCB_PrimitiveComponentPad>;
|
|
3311
3370
|
/* Excluded from this release type: getConnectedPrimitives */
|
|
3312
|
-
getConnectedPrimitives(onlyCentreConnection: false): Array<IPCB_PrimitiveLine | IPCB_PrimitiveArc | IPCB_PrimitiveVia | IPCB_PrimitivePolyline | IPCB_PrimitiveFill
|
|
3371
|
+
getConnectedPrimitives(onlyCentreConnection: false): Promise<Array<IPCB_PrimitiveLine | IPCB_PrimitiveArc | IPCB_PrimitiveVia | IPCB_PrimitivePolyline | IPCB_PrimitiveFill>>;
|
|
3313
3372
|
}
|
|
3314
3373
|
|
|
3315
3374
|
/**
|
|
@@ -3908,6 +3967,7 @@ declare class IPCB_PrimitiveImage implements IPCB_Primitive {
|
|
|
3908
3967
|
* 直线图元
|
|
3909
3968
|
*
|
|
3910
3969
|
* @public
|
|
3970
|
+
* @remarks 直线和圆弧线均为导线,对应画布的线条走线和圆弧走线
|
|
3911
3971
|
*/
|
|
3912
3972
|
declare class IPCB_PrimitiveLine implements IPCB_Primitive {
|
|
3913
3973
|
/** 异步 */
|
|
@@ -4057,7 +4117,7 @@ declare class IPCB_PrimitiveLine implements IPCB_Primitive {
|
|
|
4057
4117
|
*
|
|
4058
4118
|
* @beta
|
|
4059
4119
|
* @param lineWidth - 线宽
|
|
4060
|
-
* @returns
|
|
4120
|
+
* @returns 直线图元对象
|
|
4061
4121
|
*/
|
|
4062
4122
|
setState_LineWidth(lineWidth: number): IPCB_PrimitiveLine;
|
|
4063
4123
|
/**
|
|
@@ -4617,7 +4677,7 @@ declare class IPCB_PrimitivePad implements IPCB_Primitive {
|
|
|
4617
4677
|
* 设置属性状态:网络
|
|
4618
4678
|
*
|
|
4619
4679
|
* @beta
|
|
4620
|
-
* @remarks
|
|
4680
|
+
* @remarks 本接���仅在 PCB 编辑器可用,空字符串与 `undefined` 均被视为空网络
|
|
4621
4681
|
* @param net - 网络名称
|
|
4622
4682
|
* @returns 焊盘图元对象
|
|
4623
4683
|
*/
|
|
@@ -5693,69 +5753,206 @@ declare class ISCH_PrimitiveArc implements ISCH_Primitive {
|
|
|
5693
5753
|
/** 线型 */
|
|
5694
5754
|
private lineType;
|
|
5695
5755
|
/* Excluded from this release type: __constructor */
|
|
5756
|
+
/* Excluded from this release type: create */
|
|
5696
5757
|
/**
|
|
5697
|
-
*
|
|
5758
|
+
* 获取属性状态:图元类型
|
|
5698
5759
|
*
|
|
5699
|
-
* @
|
|
5700
|
-
* @returns
|
|
5760
|
+
* @public
|
|
5761
|
+
* @returns 图元类型
|
|
5701
5762
|
*/
|
|
5702
|
-
create(): Promise<ISCH_PrimitiveArc>;
|
|
5703
5763
|
getState_PrimitiveType(): ESCH_PrimitiveType;
|
|
5764
|
+
/**
|
|
5765
|
+
* 获取属性状态:图元 ID
|
|
5766
|
+
*
|
|
5767
|
+
* @public
|
|
5768
|
+
* @returns 图元 ID
|
|
5769
|
+
*/
|
|
5704
5770
|
getState_PrimitiveId(): string;
|
|
5705
|
-
|
|
5771
|
+
/**
|
|
5772
|
+
* 获取属性状态:起始点 X
|
|
5773
|
+
*
|
|
5774
|
+
* @public
|
|
5775
|
+
* @returns 起始点 X
|
|
5776
|
+
*/
|
|
5706
5777
|
getState_StartX(): number;
|
|
5778
|
+
/**
|
|
5779
|
+
* 获取属性状态:起始点 Y
|
|
5780
|
+
*
|
|
5781
|
+
* @public
|
|
5782
|
+
* @returns 起始点 Y
|
|
5783
|
+
*/
|
|
5784
|
+
getState_StartY(): number;
|
|
5785
|
+
/**
|
|
5786
|
+
* 获取属性状态:参考点 X
|
|
5787
|
+
*
|
|
5788
|
+
* @public
|
|
5789
|
+
* @returns 参考点 X
|
|
5790
|
+
*/
|
|
5707
5791
|
getState_ReferenceX(): number;
|
|
5792
|
+
/**
|
|
5793
|
+
* 获取属性状态:参考点 Y
|
|
5794
|
+
*
|
|
5795
|
+
* @public
|
|
5796
|
+
* @returns 参考点 Y
|
|
5797
|
+
*/
|
|
5708
5798
|
getState_ReferenceY(): number;
|
|
5799
|
+
/**
|
|
5800
|
+
* 获取属性状态:终止点 X
|
|
5801
|
+
*
|
|
5802
|
+
* @public
|
|
5803
|
+
* @returns 终止点 X
|
|
5804
|
+
*/
|
|
5709
5805
|
getState_EndX(): number;
|
|
5806
|
+
/**
|
|
5807
|
+
* 获取属性状态:终止点 Y
|
|
5808
|
+
*
|
|
5809
|
+
* @public
|
|
5810
|
+
* @returns 终止点 Y
|
|
5811
|
+
*/
|
|
5710
5812
|
getState_EndY(): number;
|
|
5813
|
+
/**
|
|
5814
|
+
* 获取属性状态:颜色
|
|
5815
|
+
*
|
|
5816
|
+
* @public
|
|
5817
|
+
* @returns 颜色
|
|
5818
|
+
*/
|
|
5711
5819
|
getState_Color(): string | null;
|
|
5820
|
+
/**
|
|
5821
|
+
* 获取属性状态:填充颜色
|
|
5822
|
+
*
|
|
5823
|
+
* @public
|
|
5824
|
+
* @returns 填充颜色
|
|
5825
|
+
*/
|
|
5712
5826
|
getState_FillColor(): string | null;
|
|
5827
|
+
/**
|
|
5828
|
+
* 获取属性状态:线宽
|
|
5829
|
+
*
|
|
5830
|
+
* @public
|
|
5831
|
+
* @returns 线宽
|
|
5832
|
+
*/
|
|
5713
5833
|
getState_LineWidth(): number | null;
|
|
5714
|
-
|
|
5715
|
-
|
|
5834
|
+
/**
|
|
5835
|
+
* 获取属性状态:线型
|
|
5836
|
+
*
|
|
5837
|
+
* @public
|
|
5838
|
+
* @returns 线型
|
|
5839
|
+
*/
|
|
5840
|
+
getState_LineType(): ESCH_PrimitiveLineType | null;
|
|
5841
|
+
/**
|
|
5842
|
+
* 设置属性状态:起始点 X
|
|
5843
|
+
*
|
|
5844
|
+
* @beta
|
|
5845
|
+
* @param startX - 起始点 X
|
|
5846
|
+
* @returns 圆弧图元对象
|
|
5847
|
+
*/
|
|
5716
5848
|
setState_StartX(startX: number): ISCH_PrimitiveArc;
|
|
5717
|
-
/**
|
|
5849
|
+
/**
|
|
5850
|
+
* 设置属性状态:起始点 Y
|
|
5851
|
+
*
|
|
5852
|
+
* @beta
|
|
5853
|
+
* @param startY - 起始点 Y
|
|
5854
|
+
* @returns 圆弧图元对象
|
|
5855
|
+
*/
|
|
5718
5856
|
setState_StartY(startY: number): ISCH_PrimitiveArc;
|
|
5719
|
-
/**
|
|
5857
|
+
/**
|
|
5858
|
+
* 设置属性状态:参考点 X
|
|
5859
|
+
*
|
|
5860
|
+
* @beta
|
|
5861
|
+
* @param referenceX - 参考点 X
|
|
5862
|
+
* @returns 圆弧图元对象
|
|
5863
|
+
*/
|
|
5720
5864
|
setState_ReferenceX(referenceX: number): ISCH_PrimitiveArc;
|
|
5721
|
-
/**
|
|
5865
|
+
/**
|
|
5866
|
+
* 设置属性状态:参考点 Y
|
|
5867
|
+
*
|
|
5868
|
+
* @beta
|
|
5869
|
+
* @param referenceY - 参考点 Y
|
|
5870
|
+
* @returns 圆弧图元对象
|
|
5871
|
+
*/
|
|
5722
5872
|
setState_ReferenceY(referenceY: number): ISCH_PrimitiveArc;
|
|
5723
|
-
/**
|
|
5873
|
+
/**
|
|
5874
|
+
* 设置属性状态:终止点 X
|
|
5875
|
+
*
|
|
5876
|
+
* @beta
|
|
5877
|
+
* @param endX - 终止点 X
|
|
5878
|
+
* @returns 圆弧图元对象
|
|
5879
|
+
*/
|
|
5724
5880
|
setState_EndX(endX: number): ISCH_PrimitiveArc;
|
|
5725
|
-
/**
|
|
5881
|
+
/**
|
|
5882
|
+
* 设置属性状态:终止点 Y
|
|
5883
|
+
*
|
|
5884
|
+
* @beta
|
|
5885
|
+
* @param endY - 终止点 Y
|
|
5886
|
+
* @returns 圆弧图元对象
|
|
5887
|
+
*/
|
|
5726
5888
|
setState_EndY(endY: number): ISCH_PrimitiveArc;
|
|
5727
|
-
/**
|
|
5889
|
+
/**
|
|
5890
|
+
* 设置属性状态:颜色
|
|
5891
|
+
*
|
|
5892
|
+
* @beta
|
|
5893
|
+
* @param color - 颜色
|
|
5894
|
+
* @returns 圆弧图元对象
|
|
5895
|
+
*/
|
|
5728
5896
|
setState_Color(color: string | null): ISCH_PrimitiveArc;
|
|
5729
|
-
/**
|
|
5897
|
+
/**
|
|
5898
|
+
* 设置属性状态:填充颜色
|
|
5899
|
+
*
|
|
5900
|
+
* @beta
|
|
5901
|
+
* @param fillColor - 填充颜色
|
|
5902
|
+
* @returns 圆弧图元对象
|
|
5903
|
+
*/
|
|
5730
5904
|
setState_FillColor(fillColor: string | null): ISCH_PrimitiveArc;
|
|
5731
|
-
/**
|
|
5905
|
+
/**
|
|
5906
|
+
* 设置属性状态:线宽
|
|
5907
|
+
*
|
|
5908
|
+
* @beta
|
|
5909
|
+
* @param lineWidth - 线宽
|
|
5910
|
+
* @returns 圆弧图元对象
|
|
5911
|
+
*/
|
|
5732
5912
|
setState_LineWidth(lineWidth: number | null): ISCH_PrimitiveArc;
|
|
5733
|
-
/**
|
|
5734
|
-
|
|
5913
|
+
/**
|
|
5914
|
+
* 设置属性状态:线型
|
|
5915
|
+
*
|
|
5916
|
+
* @beta
|
|
5917
|
+
* @param lineType - 线型
|
|
5918
|
+
* @returns 圆弧图元对象
|
|
5919
|
+
*/
|
|
5920
|
+
setState_LineType(lineType: ESCH_PrimitiveLineType | null): ISCH_PrimitiveArc;
|
|
5735
5921
|
/**
|
|
5736
5922
|
* 将图元转换为异步图元
|
|
5923
|
+
*
|
|
5924
|
+
* @public
|
|
5925
|
+
* @returns 圆弧图元对象
|
|
5737
5926
|
*/
|
|
5738
5927
|
toAsync(): ISCH_PrimitiveArc;
|
|
5739
5928
|
/**
|
|
5740
5929
|
* 将图元转换为同步图元
|
|
5930
|
+
*
|
|
5931
|
+
* @public
|
|
5932
|
+
* @returns 圆弧图元对象
|
|
5741
5933
|
*/
|
|
5742
5934
|
toSync(): ISCH_PrimitiveArc;
|
|
5743
5935
|
/**
|
|
5744
5936
|
* 查询图元是否为异步图元
|
|
5937
|
+
*
|
|
5938
|
+
* @public
|
|
5939
|
+
* @returns 是否为异步图元
|
|
5745
5940
|
*/
|
|
5746
5941
|
isAsync(): boolean;
|
|
5747
5942
|
/**
|
|
5748
5943
|
* 将异步图元重置为当前画布状态
|
|
5749
5944
|
*
|
|
5750
5945
|
* @beta
|
|
5946
|
+
* @returns 圆弧图元对象
|
|
5751
5947
|
*/
|
|
5752
5948
|
reset(): Promise<ISCH_PrimitiveArc>;
|
|
5753
5949
|
/**
|
|
5754
5950
|
* 将对图元的更改应用到画布
|
|
5755
5951
|
*
|
|
5756
5952
|
* @beta
|
|
5953
|
+
* @returns 圆弧图元对象
|
|
5757
5954
|
*/
|
|
5758
|
-
done(): ISCH_PrimitiveArc
|
|
5955
|
+
done(): Promise<ISCH_PrimitiveArc>;
|
|
5759
5956
|
}
|
|
5760
5957
|
|
|
5761
5958
|
/**
|
|
@@ -5781,54 +5978,125 @@ declare class ISCH_PrimitiveBus implements ISCH_Primitive {
|
|
|
5781
5978
|
/** 线型 */
|
|
5782
5979
|
private lineType;
|
|
5783
5980
|
/* Excluded from this release type: __constructor */
|
|
5981
|
+
/* Excluded from this release type: create */
|
|
5784
5982
|
/**
|
|
5785
|
-
*
|
|
5983
|
+
* 获取属性状态:图元类型
|
|
5786
5984
|
*
|
|
5787
|
-
* @
|
|
5788
|
-
* @returns
|
|
5985
|
+
* @public
|
|
5986
|
+
* @returns 图元类型
|
|
5789
5987
|
*/
|
|
5790
|
-
create(): ISCH_PrimitiveBus;
|
|
5791
5988
|
getState_PrimitiveType(): ESCH_PrimitiveType;
|
|
5989
|
+
/**
|
|
5990
|
+
* 获取属性状态:图元 ID
|
|
5991
|
+
*
|
|
5992
|
+
* @public
|
|
5993
|
+
* @returns 图元 ID
|
|
5994
|
+
*/
|
|
5792
5995
|
getState_PrimitiveId(): string;
|
|
5793
|
-
|
|
5794
|
-
|
|
5795
|
-
|
|
5796
|
-
|
|
5797
|
-
|
|
5798
|
-
|
|
5799
|
-
|
|
5800
|
-
/**
|
|
5801
|
-
|
|
5802
|
-
|
|
5803
|
-
|
|
5804
|
-
|
|
5805
|
-
|
|
5806
|
-
|
|
5807
|
-
|
|
5996
|
+
/**
|
|
5997
|
+
* 获取属性状态:总线名称
|
|
5998
|
+
*
|
|
5999
|
+
* @public
|
|
6000
|
+
* @returns 总线名称
|
|
6001
|
+
*/
|
|
6002
|
+
getState_BusName(): string;
|
|
6003
|
+
/**
|
|
6004
|
+
* 获取属性状态:多段线坐标组
|
|
6005
|
+
*
|
|
6006
|
+
* @public
|
|
6007
|
+
* @returns 多段线坐标组
|
|
6008
|
+
*/
|
|
6009
|
+
getState_Line(): Array<number> | Array<Array<number>>;
|
|
6010
|
+
/**
|
|
6011
|
+
* 获取属性状态:总线颜色
|
|
6012
|
+
*
|
|
6013
|
+
* @public
|
|
6014
|
+
* @returns 总线颜色
|
|
6015
|
+
*/
|
|
6016
|
+
getState_Color(): string | null;
|
|
6017
|
+
/**
|
|
6018
|
+
* 获取属性状态:线宽
|
|
6019
|
+
*
|
|
6020
|
+
* @public
|
|
6021
|
+
* @returns 线宽
|
|
6022
|
+
*/
|
|
6023
|
+
getState_LineWidth(): number | null;
|
|
6024
|
+
/**
|
|
6025
|
+
* 获取属性状态:线型
|
|
6026
|
+
*
|
|
6027
|
+
* @public
|
|
6028
|
+
* @returns 线型
|
|
6029
|
+
*/
|
|
6030
|
+
getState_LineType(): ESCH_PrimitiveLineType | null;
|
|
6031
|
+
/**
|
|
6032
|
+
* 设置属性状态:总线名称
|
|
6033
|
+
*
|
|
6034
|
+
* @beta
|
|
6035
|
+
* @param busName - 总线名称
|
|
6036
|
+
* @returns 总线图元对象
|
|
6037
|
+
*/
|
|
6038
|
+
setState_BusName(busName: string): ISCH_PrimitiveBus;
|
|
6039
|
+
/**
|
|
6040
|
+
* 设置属性状态:多段线坐标组
|
|
6041
|
+
*
|
|
6042
|
+
* @beta
|
|
6043
|
+
* @param line - 多段线坐标组
|
|
6044
|
+
* @returns 总线图元对象
|
|
6045
|
+
*/
|
|
6046
|
+
setState_Line(line: Array<number> | Array<Array<number>>): ISCH_PrimitiveBus;
|
|
6047
|
+
/**
|
|
6048
|
+
* 设置属性状态:总线颜色
|
|
6049
|
+
*
|
|
6050
|
+
* @beta
|
|
6051
|
+
* @param color - 总线颜色
|
|
6052
|
+
* @returns 总线图元对象
|
|
6053
|
+
*/
|
|
6054
|
+
setState_Color(color: string | null): ISCH_PrimitiveBus;
|
|
6055
|
+
/**
|
|
6056
|
+
* 设置属性状态:线宽
|
|
6057
|
+
*
|
|
6058
|
+
* @beta
|
|
6059
|
+
* @param lineWidth - 线宽
|
|
6060
|
+
* @returns 总线图元对象
|
|
6061
|
+
*/
|
|
6062
|
+
setState_LineWidth(lineWidth: number | null): ISCH_PrimitiveBus;
|
|
6063
|
+
/**
|
|
6064
|
+
* 设置属性状态:线型
|
|
6065
|
+
*
|
|
6066
|
+
* @beta
|
|
6067
|
+
* @param lineType - 线型
|
|
6068
|
+
* @returns 总线图元对象
|
|
6069
|
+
*/
|
|
6070
|
+
setState_LineType(lineType: ESCH_PrimitiveLineType | null): ISCH_PrimitiveBus;
|
|
5808
6071
|
/**
|
|
5809
6072
|
* 将图元转换为异步图元
|
|
6073
|
+
*
|
|
6074
|
+
* @public
|
|
6075
|
+
* @returns 总线图元对象
|
|
5810
6076
|
*/
|
|
5811
6077
|
toAsync(): ISCH_PrimitiveBus;
|
|
5812
6078
|
/**
|
|
5813
6079
|
* 将图元转换为同步图元
|
|
6080
|
+
*
|
|
6081
|
+
* @public
|
|
6082
|
+
* @returns 总线图元对象
|
|
5814
6083
|
*/
|
|
5815
6084
|
toSync(): ISCH_PrimitiveBus;
|
|
5816
6085
|
/**
|
|
5817
6086
|
* 查询图元是否为异步图元
|
|
5818
|
-
*/
|
|
5819
|
-
isAsync(): boolean;
|
|
5820
|
-
/**
|
|
5821
|
-
* 将异步图元重置为当前画布状态
|
|
5822
6087
|
*
|
|
5823
|
-
* @
|
|
6088
|
+
* @public
|
|
6089
|
+
* @returns 是否为异步图元
|
|
5824
6090
|
*/
|
|
5825
|
-
|
|
6091
|
+
isAsync(): boolean;
|
|
6092
|
+
/* Excluded from this release type: reset */
|
|
5826
6093
|
/**
|
|
5827
6094
|
* 将对图元的更改应用到画布
|
|
5828
6095
|
*
|
|
5829
6096
|
* @beta
|
|
6097
|
+
* @returns 总线图元对象
|
|
5830
6098
|
*/
|
|
5831
|
-
done(): ISCH_PrimitiveBus
|
|
6099
|
+
done(): Promise<ISCH_PrimitiveBus>;
|
|
5832
6100
|
}
|
|
5833
6101
|
|
|
5834
6102
|
/**
|
|
@@ -5857,59 +6125,177 @@ declare class ISCH_PrimitiveCircle implements ISCH_Primitive {
|
|
|
5857
6125
|
private lineWidth;
|
|
5858
6126
|
/** 线型 */
|
|
5859
6127
|
private lineType;
|
|
6128
|
+
/** 填充样式 */
|
|
6129
|
+
private fillStyle;
|
|
5860
6130
|
/* Excluded from this release type: __constructor */
|
|
6131
|
+
/* Excluded from this release type: create */
|
|
5861
6132
|
/**
|
|
5862
|
-
*
|
|
6133
|
+
* 获取属性状态:图元类型
|
|
5863
6134
|
*
|
|
5864
|
-
* @
|
|
5865
|
-
* @returns
|
|
6135
|
+
* @public
|
|
6136
|
+
* @returns 图元类型
|
|
5866
6137
|
*/
|
|
5867
|
-
create(): Promise<ISCH_PrimitiveCircle>;
|
|
5868
6138
|
getState_PrimitiveType(): ESCH_PrimitiveType;
|
|
5869
|
-
|
|
6139
|
+
/**
|
|
6140
|
+
* 获取属性状态:图元 ID
|
|
6141
|
+
*
|
|
6142
|
+
* @public
|
|
6143
|
+
* @returns 图元 ID
|
|
6144
|
+
*/
|
|
6145
|
+
getState_PrimitiveId(): string;
|
|
6146
|
+
/**
|
|
6147
|
+
* 获取属性状态:圆心 X
|
|
6148
|
+
*
|
|
6149
|
+
* @public
|
|
6150
|
+
* @returns 圆心 X
|
|
6151
|
+
*/
|
|
5870
6152
|
getState_CenterX(): number;
|
|
6153
|
+
/**
|
|
6154
|
+
* 获取属性状态:圆心 Y
|
|
6155
|
+
*
|
|
6156
|
+
* @public
|
|
6157
|
+
* @returns 圆心 Y
|
|
6158
|
+
*/
|
|
5871
6159
|
getState_CenterY(): number;
|
|
6160
|
+
/**
|
|
6161
|
+
* 获取属性状态:半径
|
|
6162
|
+
*
|
|
6163
|
+
* @public
|
|
6164
|
+
* @returns 半径
|
|
6165
|
+
*/
|
|
5872
6166
|
getState_Radius(): number;
|
|
6167
|
+
/**
|
|
6168
|
+
* 获取属性状态:颜色
|
|
6169
|
+
*
|
|
6170
|
+
* @public
|
|
6171
|
+
* @returns 颜色
|
|
6172
|
+
*/
|
|
5873
6173
|
getState_Color(): string | null;
|
|
6174
|
+
/**
|
|
6175
|
+
* 获取属性状态:填充颜色
|
|
6176
|
+
*
|
|
6177
|
+
* @public
|
|
6178
|
+
* @returns 填充颜色
|
|
6179
|
+
*/
|
|
5874
6180
|
getState_FillColor(): string | null;
|
|
6181
|
+
/**
|
|
6182
|
+
* 获取属性状态:线宽
|
|
6183
|
+
*
|
|
6184
|
+
* @public
|
|
6185
|
+
* @returns 线宽
|
|
6186
|
+
*/
|
|
5875
6187
|
getState_LineWidth(): number | null;
|
|
5876
|
-
|
|
5877
|
-
|
|
6188
|
+
/**
|
|
6189
|
+
* 获取属性状态:线型
|
|
6190
|
+
*
|
|
6191
|
+
* @public
|
|
6192
|
+
* @returns 线型
|
|
6193
|
+
*/
|
|
6194
|
+
getState_LineType(): ESCH_PrimitiveLineType | null;
|
|
6195
|
+
/**
|
|
6196
|
+
* 获取属性状态:填充样式
|
|
6197
|
+
*
|
|
6198
|
+
* @public
|
|
6199
|
+
* @returns 填充样式
|
|
6200
|
+
*/
|
|
6201
|
+
getState_FillStyle(): ESCH_PrimitiveFillStyle | null;
|
|
6202
|
+
/**
|
|
6203
|
+
* 设置属性状态:圆心 X
|
|
6204
|
+
*
|
|
6205
|
+
* @beta
|
|
6206
|
+
* @param centerX - 圆心 X
|
|
6207
|
+
* @returns 圆图元对象
|
|
6208
|
+
*/
|
|
5878
6209
|
setState_CenterX(centerX: number): ISCH_PrimitiveCircle;
|
|
5879
|
-
/**
|
|
6210
|
+
/**
|
|
6211
|
+
* 设置属性状态:圆心 Y
|
|
6212
|
+
*
|
|
6213
|
+
* @beta
|
|
6214
|
+
* @param centerY - 圆心 Y
|
|
6215
|
+
* @returns 圆图元对象
|
|
6216
|
+
*/
|
|
5880
6217
|
setState_CenterY(centerY: number): ISCH_PrimitiveCircle;
|
|
5881
|
-
/**
|
|
6218
|
+
/**
|
|
6219
|
+
* 设置属性状态:半径
|
|
6220
|
+
*
|
|
6221
|
+
* @beta
|
|
6222
|
+
* @param radius - 半径
|
|
6223
|
+
* @returns 圆图元对象
|
|
6224
|
+
*/
|
|
5882
6225
|
setState_Radius(radius: number): ISCH_PrimitiveCircle;
|
|
5883
|
-
/**
|
|
6226
|
+
/**
|
|
6227
|
+
* 设置属性状态:颜色
|
|
6228
|
+
*
|
|
6229
|
+
* @beta
|
|
6230
|
+
* @param color - 颜色
|
|
6231
|
+
* @returns 圆图元对象
|
|
6232
|
+
*/
|
|
5884
6233
|
setState_Color(color: string | null): ISCH_PrimitiveCircle;
|
|
5885
|
-
/**
|
|
6234
|
+
/**
|
|
6235
|
+
* 设置属性状态:填充颜色
|
|
6236
|
+
*
|
|
6237
|
+
* @beta
|
|
6238
|
+
* @param fillColor - 填充颜色
|
|
6239
|
+
* @returns 圆图元对象
|
|
6240
|
+
*/
|
|
5886
6241
|
setState_FillColor(fillColor: string | null): ISCH_PrimitiveCircle;
|
|
5887
|
-
/**
|
|
6242
|
+
/**
|
|
6243
|
+
* 设置属性状态:线宽
|
|
6244
|
+
*
|
|
6245
|
+
* @beta
|
|
6246
|
+
* @param lineWidth - 线宽
|
|
6247
|
+
* @returns 圆图元对象
|
|
6248
|
+
*/
|
|
5888
6249
|
setState_LineWidth(lineWidth: number | null): ISCH_PrimitiveCircle;
|
|
5889
|
-
/**
|
|
5890
|
-
|
|
6250
|
+
/**
|
|
6251
|
+
* 设置属性状态:线型
|
|
6252
|
+
*
|
|
6253
|
+
* @beta
|
|
6254
|
+
* @param lineType - 线型
|
|
6255
|
+
* @returns 圆图元对象
|
|
6256
|
+
*/
|
|
6257
|
+
setState_LineType(lineType: ESCH_PrimitiveLineType | null): ISCH_PrimitiveCircle;
|
|
6258
|
+
/**
|
|
6259
|
+
* 设置属性状态:填充样式
|
|
6260
|
+
*
|
|
6261
|
+
* @beta
|
|
6262
|
+
* @param fillStyle - 填充样式
|
|
6263
|
+
* @returns 圆图元对象
|
|
6264
|
+
*/
|
|
6265
|
+
setState_FillStyle(fillStyle: ESCH_PrimitiveFillStyle | null): ISCH_PrimitiveCircle;
|
|
5891
6266
|
/**
|
|
5892
6267
|
* 将图元转换为异步图元
|
|
6268
|
+
*
|
|
6269
|
+
* @public
|
|
6270
|
+
* @returns 圆图元对象
|
|
5893
6271
|
*/
|
|
5894
6272
|
toAsync(): ISCH_PrimitiveCircle;
|
|
5895
6273
|
/**
|
|
5896
6274
|
* 将图元转换为同步图元
|
|
6275
|
+
*
|
|
6276
|
+
* @public
|
|
6277
|
+
* @returns 圆图元对象
|
|
5897
6278
|
*/
|
|
5898
6279
|
toSync(): ISCH_PrimitiveCircle;
|
|
5899
6280
|
/**
|
|
5900
6281
|
* 查询图元是否为异步图元
|
|
6282
|
+
*
|
|
6283
|
+
* @public
|
|
6284
|
+
* @returns 是否为异步图元
|
|
5901
6285
|
*/
|
|
5902
6286
|
isAsync(): boolean;
|
|
5903
6287
|
/**
|
|
5904
6288
|
* 将异步图元重置为当前画布状态
|
|
5905
6289
|
*
|
|
5906
6290
|
* @beta
|
|
6291
|
+
* @returns 圆图元对象
|
|
5907
6292
|
*/
|
|
5908
6293
|
reset(): Promise<ISCH_PrimitiveCircle>;
|
|
5909
6294
|
/**
|
|
5910
6295
|
* 将对图元的更改应用到画布
|
|
5911
6296
|
*
|
|
5912
6297
|
* @beta
|
|
6298
|
+
* @returns 圆图元对象
|
|
5913
6299
|
*/
|
|
5914
6300
|
done(): ISCH_PrimitiveCircle;
|
|
5915
6301
|
}
|
|
@@ -6296,134 +6682,655 @@ declare class ISCH_PrimitiveComponent implements ISCH_Primitive {
|
|
|
6296
6682
|
}
|
|
6297
6683
|
|
|
6298
6684
|
/**
|
|
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
|
-
* 引脚图元
|
|
6685
|
+
* 器件图元
|
|
6327
6686
|
*
|
|
6328
6687
|
* @public
|
|
6329
|
-
* @remarks 引脚图元仅符号编辑器可用,在原理图图页内,关联到符号的引脚被称为 {@link ISCH_PrimitiveComponentPin | 器件引脚图元}
|
|
6330
6688
|
*/
|
|
6331
|
-
declare class
|
|
6689
|
+
declare class ISCH_PrimitiveComponent_2 implements ISCH_Primitive {
|
|
6332
6690
|
/** 异步 */
|
|
6333
|
-
|
|
6691
|
+
private async;
|
|
6334
6692
|
/** 图元类型 */
|
|
6335
|
-
|
|
6693
|
+
private readonly primitiveType;
|
|
6694
|
+
/** 器件类型 */
|
|
6695
|
+
private componentType;
|
|
6336
6696
|
/** 图元 ID */
|
|
6337
|
-
|
|
6697
|
+
private primitiveId?;
|
|
6698
|
+
/** 关联库器件 */
|
|
6699
|
+
private component;
|
|
6338
6700
|
/** 坐标 X */
|
|
6339
|
-
|
|
6701
|
+
private x;
|
|
6340
6702
|
/** 坐标 Y */
|
|
6341
|
-
|
|
6342
|
-
/**
|
|
6343
|
-
|
|
6344
|
-
/** 引脚名称 */
|
|
6345
|
-
protected pinName: string;
|
|
6703
|
+
private y;
|
|
6704
|
+
/** 子图块名称 */
|
|
6705
|
+
private partId?;
|
|
6346
6706
|
/** 旋转角度 */
|
|
6347
|
-
|
|
6348
|
-
/**
|
|
6349
|
-
|
|
6350
|
-
/**
|
|
6351
|
-
|
|
6352
|
-
/**
|
|
6353
|
-
|
|
6354
|
-
/**
|
|
6355
|
-
|
|
6707
|
+
private rotation;
|
|
6708
|
+
/** 是否镜像 */
|
|
6709
|
+
private mirror;
|
|
6710
|
+
/** Component 属性:是否加入 BOM */
|
|
6711
|
+
private addIntoBom?;
|
|
6712
|
+
/** Component 属性:是否转到 PCB */
|
|
6713
|
+
private addIntoPcb?;
|
|
6714
|
+
/** NetPort 和 NetFlag 属性:网络名称 */
|
|
6715
|
+
private net?;
|
|
6716
|
+
/** 关联库符号 UUID */
|
|
6717
|
+
private symbol?;
|
|
6718
|
+
/** 关联库封装 UUID */
|
|
6719
|
+
private footprint?;
|
|
6720
|
+
/** Component 属性:位号 */
|
|
6721
|
+
private designator?;
|
|
6722
|
+
/** Component 属性:名称 */
|
|
6723
|
+
private name?;
|
|
6724
|
+
/** Component 属性:唯一 ID */
|
|
6725
|
+
private uniqueId?;
|
|
6726
|
+
/** Component 属性:制造商 */
|
|
6727
|
+
private manufacturer?;
|
|
6728
|
+
/** Component 属性:制造商编号 */
|
|
6729
|
+
private manufacturerId?;
|
|
6730
|
+
/** Component 属性:供应商 */
|
|
6731
|
+
private supplier?;
|
|
6732
|
+
/** Component 属性:供应商编号 */
|
|
6733
|
+
private supplierId?;
|
|
6356
6734
|
/** 其它参数 */
|
|
6357
6735
|
private otherProperty?;
|
|
6358
6736
|
/* Excluded from this release type: __constructor */
|
|
6359
6737
|
/* 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
6738
|
/**
|
|
6372
|
-
*
|
|
6739
|
+
* 获取属性状态:图元类型
|
|
6373
6740
|
*
|
|
6374
6741
|
* @public
|
|
6375
|
-
* @returns
|
|
6742
|
+
* @returns 图元类型
|
|
6376
6743
|
*/
|
|
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;
|
|
6744
|
+
getState_PrimitiveType(): ESCH_PrimitiveType;
|
|
6389
6745
|
/**
|
|
6390
|
-
*
|
|
6746
|
+
* 获取属性状态:器件类型
|
|
6391
6747
|
*
|
|
6392
|
-
* @
|
|
6393
|
-
* @
|
|
6394
|
-
* @returns 引脚图元对象
|
|
6748
|
+
* @public
|
|
6749
|
+
* @returns 器件类型
|
|
6395
6750
|
*/
|
|
6396
|
-
|
|
6397
|
-
[key: string]: string | number | boolean;
|
|
6398
|
-
}): ISCH_PrimitivePin;
|
|
6751
|
+
getState_ComponentType(): ESCH_PrimitiveComponentType_2;
|
|
6399
6752
|
/**
|
|
6400
|
-
*
|
|
6753
|
+
* 获取属性状态:图元 ID
|
|
6754
|
+
*
|
|
6755
|
+
* @public
|
|
6756
|
+
* @returns 图元 ID
|
|
6401
6757
|
*/
|
|
6402
|
-
|
|
6758
|
+
getState_PrimitiveId(): string;
|
|
6403
6759
|
/**
|
|
6404
|
-
*
|
|
6760
|
+
* 获取属性状态:关联库器件
|
|
6761
|
+
*
|
|
6762
|
+
* @public
|
|
6763
|
+
* @returns 关联库器件
|
|
6405
6764
|
*/
|
|
6406
|
-
|
|
6765
|
+
getState_Component(): {
|
|
6766
|
+
libraryUuid: string;
|
|
6767
|
+
uuid: string;
|
|
6768
|
+
};
|
|
6407
6769
|
/**
|
|
6408
|
-
*
|
|
6770
|
+
* 获取属性状态:坐标 X
|
|
6771
|
+
*
|
|
6772
|
+
* @public
|
|
6773
|
+
* @returns 坐标 X
|
|
6409
6774
|
*/
|
|
6410
|
-
|
|
6775
|
+
getState_X(): number;
|
|
6411
6776
|
/**
|
|
6412
|
-
*
|
|
6777
|
+
* 获取属性状态:坐标 Y
|
|
6413
6778
|
*
|
|
6414
|
-
* @
|
|
6779
|
+
* @public
|
|
6780
|
+
* @returns 坐标 Y
|
|
6415
6781
|
*/
|
|
6416
|
-
|
|
6782
|
+
getState_Y(): number;
|
|
6417
6783
|
/**
|
|
6418
|
-
*
|
|
6784
|
+
* 获取属性状态:子图块名称
|
|
6419
6785
|
*
|
|
6420
|
-
* @
|
|
6786
|
+
* @public
|
|
6787
|
+
* @returns 子图块名称
|
|
6421
6788
|
*/
|
|
6422
|
-
|
|
6423
|
-
|
|
6789
|
+
getState_SubPartName(): string | undefined;
|
|
6790
|
+
/**
|
|
6791
|
+
* 获取属性状态:旋转角度
|
|
6792
|
+
*
|
|
6793
|
+
* @public
|
|
6794
|
+
* @returns 旋转角度
|
|
6795
|
+
*/
|
|
6796
|
+
getState_Rotation(): number;
|
|
6797
|
+
/**
|
|
6798
|
+
* 获取属性状态:是否镜像
|
|
6799
|
+
*
|
|
6800
|
+
* @public
|
|
6801
|
+
* @returns 是否镜像
|
|
6802
|
+
*/
|
|
6803
|
+
getState_Mirror(): boolean;
|
|
6804
|
+
/**
|
|
6805
|
+
* 获取属性状态:是否加入 BOM
|
|
6806
|
+
*
|
|
6807
|
+
* @public
|
|
6808
|
+
* @returns 是否加入 BOM
|
|
6809
|
+
*/
|
|
6810
|
+
getState_AddIntoBom(): boolean | undefined;
|
|
6811
|
+
/**
|
|
6812
|
+
* 获取属性状态:是否转到 PCB
|
|
6813
|
+
*
|
|
6814
|
+
* @public
|
|
6815
|
+
* @returns 是否转到 PCB
|
|
6816
|
+
*/
|
|
6817
|
+
getState_AddIntoPcb(): boolean | undefined;
|
|
6818
|
+
/**
|
|
6819
|
+
* 获取属性状态:网络名称
|
|
6820
|
+
*
|
|
6821
|
+
* @public
|
|
6822
|
+
* @returns 网络名称
|
|
6823
|
+
*/
|
|
6824
|
+
getState_Net(): string | undefined;
|
|
6825
|
+
/**
|
|
6826
|
+
* 获取属性状态:关联库符号
|
|
6827
|
+
*
|
|
6828
|
+
* @public
|
|
6829
|
+
* @returns 关联库符号
|
|
6830
|
+
*/
|
|
6831
|
+
getState_Symbol(): {
|
|
6832
|
+
libraryUuid: string;
|
|
6833
|
+
uuid: string;
|
|
6834
|
+
} | undefined;
|
|
6835
|
+
/**
|
|
6836
|
+
* 获取属性状态:关联库封装
|
|
6837
|
+
*
|
|
6838
|
+
* @public
|
|
6839
|
+
* @returns 关联库封装
|
|
6840
|
+
*/
|
|
6841
|
+
getState_Footprint(): {
|
|
6842
|
+
libraryUuid: string;
|
|
6843
|
+
uuid: string;
|
|
6844
|
+
} | undefined;
|
|
6845
|
+
/**
|
|
6846
|
+
* 获取属性状态:位号
|
|
6847
|
+
*
|
|
6848
|
+
* @public
|
|
6849
|
+
* @returns 位号
|
|
6850
|
+
*/
|
|
6851
|
+
getState_Designator(): string | undefined;
|
|
6852
|
+
/**
|
|
6853
|
+
* 获取属性状态:名称
|
|
6854
|
+
*
|
|
6855
|
+
* @public
|
|
6856
|
+
* @returns 名称
|
|
6857
|
+
*/
|
|
6858
|
+
getState_Name(): string | undefined;
|
|
6859
|
+
/**
|
|
6860
|
+
* 获取属性状态:唯一 ID
|
|
6861
|
+
*
|
|
6862
|
+
* @public
|
|
6863
|
+
* @returns 唯一 ID
|
|
6864
|
+
*/
|
|
6865
|
+
getState_UniqueId(): string | undefined;
|
|
6866
|
+
/**
|
|
6867
|
+
* 获取属性状态:制造商
|
|
6868
|
+
*
|
|
6869
|
+
* @public
|
|
6870
|
+
* @returns 制造商
|
|
6871
|
+
*/
|
|
6872
|
+
getState_Manufacturer(): string | undefined;
|
|
6873
|
+
/**
|
|
6874
|
+
* 获取属性状态:制造商编号
|
|
6875
|
+
*
|
|
6876
|
+
* @public
|
|
6877
|
+
* @returns 制造商编号
|
|
6878
|
+
*/
|
|
6879
|
+
getState_ManufacturerId(): string | undefined;
|
|
6880
|
+
/**
|
|
6881
|
+
* 获取属性状态:供应商
|
|
6882
|
+
*
|
|
6883
|
+
* @public
|
|
6884
|
+
* @returns 供应商
|
|
6885
|
+
*/
|
|
6886
|
+
getState_Supplier(): string | undefined;
|
|
6887
|
+
/**
|
|
6888
|
+
* 获取属性状态:供应商编号
|
|
6889
|
+
*
|
|
6890
|
+
* @public
|
|
6891
|
+
* @returns 供应商编号
|
|
6892
|
+
*/
|
|
6893
|
+
getState_SupplierId(): string | undefined;
|
|
6894
|
+
/**
|
|
6895
|
+
* 获取属性状态:其它参数
|
|
6896
|
+
*
|
|
6897
|
+
* @public
|
|
6898
|
+
* @returns 其它参数
|
|
6899
|
+
*/
|
|
6900
|
+
getState_OtherProperty(): {
|
|
6901
|
+
[key: string]: string | number | boolean;
|
|
6902
|
+
} | undefined;
|
|
6903
|
+
/**
|
|
6904
|
+
* 设置属性状态:坐标 X
|
|
6905
|
+
*
|
|
6906
|
+
* @beta
|
|
6907
|
+
* @param x - 坐标 X
|
|
6908
|
+
* @returns 器件图元对象
|
|
6909
|
+
*/
|
|
6910
|
+
setState_X(x: number): ISCH_PrimitiveComponent_2;
|
|
6911
|
+
/**
|
|
6912
|
+
* 设置属性状态:坐标 Y
|
|
6913
|
+
*
|
|
6914
|
+
* @beta
|
|
6915
|
+
* @param y - 坐标 Y
|
|
6916
|
+
* @returns 器件图元对象
|
|
6917
|
+
*/
|
|
6918
|
+
setState_Y(y: number): ISCH_PrimitiveComponent_2;
|
|
6919
|
+
/**
|
|
6920
|
+
* 设置属性状态:旋转角度
|
|
6921
|
+
*
|
|
6922
|
+
* @beta
|
|
6923
|
+
* @param rotation - 旋转角度
|
|
6924
|
+
* @returns 器件图元对象
|
|
6925
|
+
*/
|
|
6926
|
+
setState_Rotation(rotation: number): ISCH_PrimitiveComponent_2;
|
|
6927
|
+
/**
|
|
6928
|
+
* 设置属性状态:是否镜像
|
|
6929
|
+
*
|
|
6930
|
+
* @beta
|
|
6931
|
+
* @param mirror - 是否镜像
|
|
6932
|
+
* @returns 器件图元对象
|
|
6933
|
+
*/
|
|
6934
|
+
setState_Mirror(mirror: boolean): ISCH_PrimitiveComponent_2;
|
|
6935
|
+
/**
|
|
6936
|
+
* 设置属性状态:是否加入 BOM
|
|
6937
|
+
*
|
|
6938
|
+
* @beta
|
|
6939
|
+
* @param addIntoBom - 是否加入 BOM
|
|
6940
|
+
* @returns 器件图元对象
|
|
6941
|
+
*/
|
|
6942
|
+
setState_AddIntoBom(addIntoBom: boolean | undefined): ISCH_PrimitiveComponent_2;
|
|
6943
|
+
/**
|
|
6944
|
+
* 设置属性状态:是否转到 PCB
|
|
6945
|
+
*
|
|
6946
|
+
* @beta
|
|
6947
|
+
* @param addIntoPcb - 是否转到 PCB
|
|
6948
|
+
* @returns 器件图元对象
|
|
6949
|
+
*/
|
|
6950
|
+
setState_AddIntoPcb(addIntoPcb: boolean | undefined): ISCH_PrimitiveComponent_2;
|
|
6951
|
+
/**
|
|
6952
|
+
* 设置属性状态:网络名称
|
|
6953
|
+
*
|
|
6954
|
+
* @beta
|
|
6955
|
+
* @param net - 网络名称
|
|
6956
|
+
* @returns 器件图元对象
|
|
6957
|
+
*/
|
|
6958
|
+
setState_Net(net: string | undefined): ISCH_PrimitiveComponent_2;
|
|
6959
|
+
/**
|
|
6960
|
+
* 设置属性状态:位号
|
|
6961
|
+
*
|
|
6962
|
+
* @beta
|
|
6963
|
+
* @param designator - 位号
|
|
6964
|
+
* @returns 器件图元对象
|
|
6965
|
+
*/
|
|
6966
|
+
setState_Designator(designator: string | undefined): ISCH_PrimitiveComponent_2;
|
|
6967
|
+
/**
|
|
6968
|
+
* 设置属性状态:名称
|
|
6969
|
+
*
|
|
6970
|
+
* @beta
|
|
6971
|
+
* @param name - 名称
|
|
6972
|
+
* @returns 器件图元对象
|
|
6973
|
+
*/
|
|
6974
|
+
setState_Name(name: string | undefined): ISCH_PrimitiveComponent_2;
|
|
6975
|
+
/**
|
|
6976
|
+
* 设置属性状态:唯一 ID
|
|
6977
|
+
*
|
|
6978
|
+
* @beta
|
|
6979
|
+
* @param uniqueId - 唯一 ID
|
|
6980
|
+
* @returns 器件图元对象
|
|
6981
|
+
*/
|
|
6982
|
+
setState_UniqueId(uniqueId: string | undefined): ISCH_PrimitiveComponent_2;
|
|
6983
|
+
/**
|
|
6984
|
+
* 设置属性状态:制造商
|
|
6985
|
+
*
|
|
6986
|
+
* @beta
|
|
6987
|
+
* @param manufacturer - 制造商
|
|
6988
|
+
* @returns 器件图元对象
|
|
6989
|
+
*/
|
|
6990
|
+
setState_Manufacturer(manufacturer: string | undefined): ISCH_PrimitiveComponent_2;
|
|
6991
|
+
/**
|
|
6992
|
+
* 设置属性状态:制造商编号
|
|
6993
|
+
*
|
|
6994
|
+
* @beta
|
|
6995
|
+
* @param manufacturerId - 制造商编号
|
|
6996
|
+
* @returns 器件图元对象
|
|
6997
|
+
*/
|
|
6998
|
+
setState_ManufacturerId(manufacturerId: string | undefined): ISCH_PrimitiveComponent_2;
|
|
6999
|
+
/**
|
|
7000
|
+
* 设置属性状态:供应商
|
|
7001
|
+
*
|
|
7002
|
+
* @beta
|
|
7003
|
+
* @param supplier - 供应商
|
|
7004
|
+
* @returns 器件图元对象
|
|
7005
|
+
*/
|
|
7006
|
+
setState_Supplier(supplier: string | undefined): ISCH_PrimitiveComponent_2;
|
|
7007
|
+
/**
|
|
7008
|
+
* 设置属性状态:供应商编号
|
|
7009
|
+
*
|
|
7010
|
+
* @beta
|
|
7011
|
+
* @param supplierId - 供应商编号
|
|
7012
|
+
* @returns 器件图元对象
|
|
7013
|
+
*/
|
|
7014
|
+
setState_SupplierId(supplierId: string | undefined): ISCH_PrimitiveComponent_2;
|
|
7015
|
+
/**
|
|
7016
|
+
* 设置属性状态:其它参数
|
|
7017
|
+
*
|
|
7018
|
+
* @beta
|
|
7019
|
+
* @param otherProperty - 其它参数
|
|
7020
|
+
* @returns 器件图元对象
|
|
7021
|
+
*/
|
|
7022
|
+
setState_OtherProperty(otherProperty: {
|
|
7023
|
+
[key: string]: string | number | boolean;
|
|
7024
|
+
}): ISCH_PrimitiveComponent_2;
|
|
7025
|
+
/**
|
|
7026
|
+
* 将图元转换为异步图元
|
|
7027
|
+
*
|
|
7028
|
+
* @public
|
|
7029
|
+
* @returns 圆弧线图元对象
|
|
7030
|
+
*/
|
|
7031
|
+
toAsync(): ISCH_PrimitiveComponent_2;
|
|
7032
|
+
/**
|
|
7033
|
+
* 将图元转换为同步图元
|
|
7034
|
+
*
|
|
7035
|
+
* @public
|
|
7036
|
+
* @returns 圆弧线图元对象
|
|
7037
|
+
*/
|
|
7038
|
+
toSync(): ISCH_PrimitiveComponent_2;
|
|
7039
|
+
/**
|
|
7040
|
+
* 查询图元是否为异步图元
|
|
7041
|
+
*
|
|
7042
|
+
* @public
|
|
7043
|
+
* @returns 是否为异步图元
|
|
7044
|
+
*/
|
|
7045
|
+
isAsync(): boolean;
|
|
7046
|
+
/**
|
|
7047
|
+
* 将异步图元重置为当前画布状态
|
|
7048
|
+
*
|
|
7049
|
+
* @beta
|
|
7050
|
+
* @returns 器件图元对象
|
|
7051
|
+
*/
|
|
7052
|
+
reset(): Promise<ISCH_PrimitiveComponent_2>;
|
|
7053
|
+
/**
|
|
7054
|
+
* 将对图元的更改应用到画布
|
|
7055
|
+
*
|
|
7056
|
+
* @beta
|
|
7057
|
+
* @returns 器件图元对象
|
|
7058
|
+
*/
|
|
7059
|
+
done(): Promise<ISCH_PrimitiveComponent_2>;
|
|
7060
|
+
/* Excluded from this release type: getAllPins */
|
|
7061
|
+
/* Excluded from this release type: setState_Component */
|
|
7062
|
+
/* Excluded from this release type: setState_SubPartName */
|
|
7063
|
+
}
|
|
7064
|
+
|
|
7065
|
+
/**
|
|
7066
|
+
* 器件引脚图元
|
|
7067
|
+
*
|
|
7068
|
+
* @public
|
|
7069
|
+
* @remarks
|
|
7070
|
+
* 器件引脚图元是一个特殊的图元,它指的是在原理图画布上关联到符号的引脚
|
|
7071
|
+
*
|
|
7072
|
+
* 器件引脚图元仅可更改 `pinNumber` 属性,其它所有属性均为只读,
|
|
7073
|
+
* 并且你只能通过 {@link SCH_PrimitiveComponent.getAllPinsByPrimitiveId | 器件类的 getAllPinsByPrimitiveId 方法} 或 {@link ISCH_PrimitiveComponent.getAllPins | 器件图元的 getAllPins 方法} 获取到器件引脚图元
|
|
7074
|
+
*/
|
|
7075
|
+
declare class ISCH_PrimitiveComponentPin extends ISCH_PrimitivePin {
|
|
7076
|
+
/** 图元类型 */
|
|
7077
|
+
protected readonly primitiveType: ESCH_PrimitiveType.COMPONENT_PIN;
|
|
7078
|
+
/* Excluded from this release type: __constructor */
|
|
7079
|
+
/* Excluded from this release type: create */
|
|
7080
|
+
/* Excluded from this release type: setState_X */
|
|
7081
|
+
/* Excluded from this release type: setState_Y */
|
|
7082
|
+
/* Excluded from this release type: setState_PinName */
|
|
7083
|
+
/* Excluded from this release type: setState_Rotation */
|
|
7084
|
+
/* Excluded from this release type: setState_PinLength */
|
|
7085
|
+
/* Excluded from this release type: setState_PinColor */
|
|
7086
|
+
/* Excluded from this release type: setState_PinShape */
|
|
7087
|
+
/* Excluded from this release type: setState_PinType */
|
|
7088
|
+
/* Excluded from this release type: reset */
|
|
7089
|
+
/* Excluded from this release type: done */
|
|
7090
|
+
}
|
|
7091
|
+
|
|
7092
|
+
/**
|
|
7093
|
+
* 引脚图元
|
|
7094
|
+
*
|
|
7095
|
+
* @public
|
|
7096
|
+
* @remarks 引脚图元仅符号编辑器可用,在原理图图页内,关联到符号的引脚被称为 {@link ISCH_PrimitiveComponentPin | 器件引脚图元}
|
|
7097
|
+
*/
|
|
7098
|
+
declare class ISCH_PrimitivePin implements ISCH_Primitive {
|
|
7099
|
+
/** 异步 */
|
|
7100
|
+
protected async: boolean;
|
|
7101
|
+
/** 图元类型 */
|
|
7102
|
+
protected readonly primitiveType: ESCH_PrimitiveType;
|
|
7103
|
+
/** 图元 ID */
|
|
7104
|
+
protected primitiveId?: string;
|
|
7105
|
+
/** 坐标 X */
|
|
7106
|
+
protected x: number;
|
|
7107
|
+
/** 坐标 Y */
|
|
7108
|
+
protected y: number;
|
|
7109
|
+
/** 引脚编号 */
|
|
7110
|
+
protected pinNumber: string;
|
|
7111
|
+
/** 引脚名称 */
|
|
7112
|
+
protected pinName: string;
|
|
7113
|
+
/** 旋转角度 */
|
|
7114
|
+
protected rotation: number;
|
|
7115
|
+
/** 引脚长度 */
|
|
7116
|
+
protected pinLength: number;
|
|
7117
|
+
/** 引脚颜色 */
|
|
7118
|
+
protected pinColor: string | null;
|
|
7119
|
+
/** 引脚形状 */
|
|
7120
|
+
protected pinShape: ESCH_PrimitivePinShape;
|
|
7121
|
+
/** 引脚类型 */
|
|
7122
|
+
protected pinType: ESCH_PrimitivePinType;
|
|
7123
|
+
/** 其它参数 */
|
|
7124
|
+
private otherProperty?;
|
|
7125
|
+
/* Excluded from this release type: __constructor */
|
|
7126
|
+
/* Excluded from this release type: create */
|
|
7127
|
+
/**
|
|
7128
|
+
* 获取属性状态:图元类型
|
|
7129
|
+
*
|
|
7130
|
+
* @public
|
|
7131
|
+
* @returns 图元类型
|
|
7132
|
+
*/
|
|
7133
|
+
getState_PrimitiveType(): ESCH_PrimitiveType;
|
|
7134
|
+
/**
|
|
7135
|
+
* 获取属性状态:图元 ID
|
|
7136
|
+
*
|
|
7137
|
+
* @public
|
|
7138
|
+
* @returns 图元 ID
|
|
7139
|
+
*/
|
|
7140
|
+
getState_PrimitiveId(): string;
|
|
7141
|
+
/**
|
|
7142
|
+
* 获取属性状态:坐标 X
|
|
7143
|
+
*
|
|
7144
|
+
* @public
|
|
7145
|
+
* @returns 坐标 X
|
|
7146
|
+
*/
|
|
7147
|
+
getState_X(): number;
|
|
7148
|
+
/**
|
|
7149
|
+
* 获取属性状态:坐标 Y
|
|
7150
|
+
*
|
|
7151
|
+
* @public
|
|
7152
|
+
* @returns 坐标 Y
|
|
7153
|
+
*/
|
|
7154
|
+
getState_Y(): number;
|
|
7155
|
+
/**
|
|
7156
|
+
* 获取属性状态:引脚编号
|
|
7157
|
+
*
|
|
7158
|
+
* @public
|
|
7159
|
+
* @returns 引脚编号
|
|
7160
|
+
*/
|
|
7161
|
+
getState_PinNumber(): string;
|
|
7162
|
+
/**
|
|
7163
|
+
* 获取属性状态:引脚名称
|
|
7164
|
+
*
|
|
7165
|
+
* @public
|
|
7166
|
+
* @returns 引脚名称
|
|
7167
|
+
*/
|
|
7168
|
+
getState_PinName(): string;
|
|
7169
|
+
/**
|
|
7170
|
+
* 获取属性状态:旋转角度
|
|
7171
|
+
*
|
|
7172
|
+
* @public
|
|
7173
|
+
* @returns 旋转角度
|
|
7174
|
+
*/
|
|
7175
|
+
getState_Rotation(): number;
|
|
7176
|
+
/**
|
|
7177
|
+
* 获取属性状态:引脚长度
|
|
7178
|
+
*
|
|
7179
|
+
* @public
|
|
7180
|
+
* @returns 引脚长度
|
|
7181
|
+
*/
|
|
7182
|
+
getState_PinLength(): number;
|
|
7183
|
+
/**
|
|
7184
|
+
* 获取属性状态:引脚颜色
|
|
7185
|
+
*
|
|
7186
|
+
* @public
|
|
7187
|
+
* @returns 引脚颜色
|
|
7188
|
+
*/
|
|
7189
|
+
getState_PinColor(): string | null;
|
|
7190
|
+
/**
|
|
7191
|
+
* 获取属性状态:引脚形状
|
|
7192
|
+
*
|
|
7193
|
+
* @public
|
|
7194
|
+
* @returns 引脚形状
|
|
7195
|
+
*/
|
|
7196
|
+
getState_PinShape(): ESCH_PrimitivePinShape;
|
|
7197
|
+
/**
|
|
7198
|
+
* 获取属性状态:引脚类型
|
|
7199
|
+
*
|
|
7200
|
+
* @public
|
|
7201
|
+
* @returns 引脚类型
|
|
7202
|
+
*/
|
|
7203
|
+
getState_pinType(): ESCH_PrimitivePinType;
|
|
7204
|
+
/**
|
|
7205
|
+
* 获取属性状态:其它参数
|
|
7206
|
+
*
|
|
7207
|
+
* @public
|
|
7208
|
+
* @returns 其它参数
|
|
7209
|
+
*/
|
|
7210
|
+
getState_OtherProperty(): {
|
|
7211
|
+
[key: string]: string | number | boolean;
|
|
7212
|
+
} | undefined;
|
|
7213
|
+
/**
|
|
7214
|
+
* 设置属性状态:坐标 X
|
|
7215
|
+
*
|
|
7216
|
+
* @beta
|
|
7217
|
+
* @param x - 坐标 X
|
|
7218
|
+
* @returns 引脚图元对象
|
|
7219
|
+
*/
|
|
7220
|
+
setState_X(x: number): ISCH_PrimitivePin;
|
|
7221
|
+
/**
|
|
7222
|
+
* 设置属性状态:坐标 Y
|
|
7223
|
+
*
|
|
7224
|
+
* @beta
|
|
7225
|
+
* @param y - 坐标 Y
|
|
7226
|
+
* @returns 引脚图元对象
|
|
7227
|
+
*/
|
|
7228
|
+
setState_Y(y: number): ISCH_PrimitivePin;
|
|
7229
|
+
/**
|
|
7230
|
+
* 设置属性状态:引脚编号
|
|
7231
|
+
*
|
|
7232
|
+
* @beta
|
|
7233
|
+
* @param pinNumber - 引脚编号
|
|
7234
|
+
* @returns 引脚图元对象
|
|
7235
|
+
*/
|
|
7236
|
+
setState_PinNumber(pinNumber: string): ISCH_PrimitivePin;
|
|
7237
|
+
/**
|
|
7238
|
+
* 设置属性状态:引脚名称
|
|
7239
|
+
*
|
|
7240
|
+
* @beta
|
|
7241
|
+
* @param pinName - 引脚名称
|
|
7242
|
+
* @returns 引脚图元对象
|
|
7243
|
+
*/
|
|
7244
|
+
setState_PinName(pinName: string): ISCH_PrimitivePin;
|
|
7245
|
+
/**
|
|
7246
|
+
* 设置属性状态:旋转角度
|
|
7247
|
+
*
|
|
7248
|
+
* @beta
|
|
7249
|
+
* @param rotation - 旋转角度
|
|
7250
|
+
* @returns 引脚图元对象
|
|
7251
|
+
*/
|
|
7252
|
+
setState_Rotation(rotation: number): ISCH_PrimitivePin;
|
|
7253
|
+
/**
|
|
7254
|
+
* 设置属性状态:引脚长度
|
|
7255
|
+
*
|
|
7256
|
+
* @beta
|
|
7257
|
+
* @param pinLength - 引脚长度
|
|
7258
|
+
* @returns 引脚图元对象
|
|
7259
|
+
*/
|
|
7260
|
+
setState_PinLength(pinLength: number): ISCH_PrimitivePin;
|
|
7261
|
+
/**
|
|
7262
|
+
* 设置属性状态:引脚颜色
|
|
7263
|
+
*
|
|
7264
|
+
* @beta
|
|
7265
|
+
* @param pinColor - 引脚颜色
|
|
7266
|
+
* @returns 引脚图元对象
|
|
7267
|
+
*/
|
|
7268
|
+
setState_PinColor(pinColor: string | null): ISCH_PrimitivePin;
|
|
7269
|
+
/**
|
|
7270
|
+
* 设置属性状态:引脚形状
|
|
7271
|
+
*
|
|
7272
|
+
* @beta
|
|
7273
|
+
* @param pinShape - 引脚形状
|
|
7274
|
+
* @returns 引脚图元对象
|
|
7275
|
+
*/
|
|
7276
|
+
setState_PinShape(pinShape: ESCH_PrimitivePinShape): ISCH_PrimitivePin;
|
|
7277
|
+
/**
|
|
7278
|
+
* 设置属性状态:引脚类型
|
|
7279
|
+
*
|
|
7280
|
+
* @beta
|
|
7281
|
+
* @param pinType - 引脚类型
|
|
7282
|
+
* @returns 引脚图元对象
|
|
7283
|
+
*/
|
|
7284
|
+
setState_PinType(pinType: ESCH_PrimitivePinType): ISCH_PrimitivePin;
|
|
7285
|
+
/**
|
|
7286
|
+
* 设置属性状态:其它参数
|
|
7287
|
+
*
|
|
7288
|
+
* @beta
|
|
7289
|
+
* @param otherProperty - 其它参数
|
|
7290
|
+
* @returns 引脚图元对象
|
|
7291
|
+
*/
|
|
7292
|
+
setState_OtherProperty(otherProperty: {
|
|
7293
|
+
[key: string]: string | number | boolean;
|
|
7294
|
+
}): ISCH_PrimitivePin;
|
|
7295
|
+
/**
|
|
7296
|
+
* 将图元转换为异步图元
|
|
7297
|
+
*
|
|
7298
|
+
* @public
|
|
7299
|
+
* @returns 引脚图元对象
|
|
7300
|
+
*/
|
|
7301
|
+
toAsync(): ISCH_PrimitivePin;
|
|
7302
|
+
/**
|
|
7303
|
+
* 将图元转换为同步图元
|
|
7304
|
+
*
|
|
7305
|
+
* @public
|
|
7306
|
+
* @returns 引脚图元对象
|
|
7307
|
+
*/
|
|
7308
|
+
toSync(): ISCH_PrimitivePin;
|
|
7309
|
+
/**
|
|
7310
|
+
* 查询图元是否为异步图元
|
|
7311
|
+
*
|
|
7312
|
+
* @public
|
|
7313
|
+
* @returns 是否为异步图元
|
|
7314
|
+
*/
|
|
7315
|
+
isAsync(): boolean;
|
|
7316
|
+
/**
|
|
7317
|
+
* 将异步图元重置为当前画布状态
|
|
7318
|
+
*
|
|
7319
|
+
* @beta
|
|
7320
|
+
* @returns 引脚图元对象
|
|
7321
|
+
*/
|
|
7322
|
+
reset(): Promise<ISCH_PrimitivePin>;
|
|
7323
|
+
/**
|
|
7324
|
+
* 将对图元的更改应用到画布
|
|
7325
|
+
*
|
|
7326
|
+
* @beta
|
|
7327
|
+
* @returns 引脚图元对象
|
|
7328
|
+
*/
|
|
7329
|
+
done(): Promise<ISCH_PrimitivePin>;
|
|
7330
|
+
}
|
|
6424
7331
|
|
|
6425
7332
|
/**
|
|
6426
|
-
*
|
|
7333
|
+
* 多边形(折线)图元
|
|
6427
7334
|
*
|
|
6428
7335
|
* @public
|
|
6429
7336
|
*/
|
|
@@ -6433,7 +7340,7 @@ declare class ISCH_PrimitivePolygon implements ISCH_Primitive {
|
|
|
6433
7340
|
/** 图元类型 */
|
|
6434
7341
|
private readonly primitiveType;
|
|
6435
7342
|
/** 图元 ID */
|
|
6436
|
-
private primitiveId
|
|
7343
|
+
private primitiveId?;
|
|
6437
7344
|
/** 坐标组 */
|
|
6438
7345
|
private line;
|
|
6439
7346
|
/** 颜色 */
|
|
@@ -6445,130 +7352,381 @@ declare class ISCH_PrimitivePolygon implements ISCH_Primitive {
|
|
|
6445
7352
|
/** 线型 */
|
|
6446
7353
|
private lineType;
|
|
6447
7354
|
/* Excluded from this release type: __constructor */
|
|
7355
|
+
/* Excluded from this release type: create */
|
|
6448
7356
|
/**
|
|
6449
|
-
*
|
|
7357
|
+
* 获取属性状态:图元类型
|
|
6450
7358
|
*
|
|
6451
|
-
* @
|
|
7359
|
+
* @public
|
|
7360
|
+
* @returns 图元类型
|
|
6452
7361
|
*/
|
|
6453
|
-
create(): Promise<ISCH_PrimitivePolygon>;
|
|
6454
7362
|
getState_PrimitiveType(): ESCH_PrimitiveType;
|
|
7363
|
+
/**
|
|
7364
|
+
* 获取属性状态:图元 ID
|
|
7365
|
+
*
|
|
7366
|
+
* @public
|
|
7367
|
+
* @returns 图元 ID
|
|
7368
|
+
*/
|
|
6455
7369
|
getState_PrimitiveId(): string;
|
|
6456
|
-
|
|
7370
|
+
/**
|
|
7371
|
+
* 获取属性状态:坐标组
|
|
7372
|
+
*
|
|
7373
|
+
* @public
|
|
7374
|
+
* @returns 坐标组
|
|
7375
|
+
*/
|
|
7376
|
+
getState_Line(): Array<number>;
|
|
7377
|
+
/**
|
|
7378
|
+
* 获取属性状态:颜色
|
|
7379
|
+
*
|
|
7380
|
+
* @public
|
|
7381
|
+
* @returns 颜色
|
|
7382
|
+
*/
|
|
6457
7383
|
getState_Color(): string | null;
|
|
7384
|
+
/**
|
|
7385
|
+
* 获取属性状态:填充颜色
|
|
7386
|
+
*
|
|
7387
|
+
* @public
|
|
7388
|
+
* @returns 填充颜色
|
|
7389
|
+
*/
|
|
6458
7390
|
getState_FillColor(): string | null;
|
|
7391
|
+
/**
|
|
7392
|
+
* 获取属性状态:线宽
|
|
7393
|
+
*
|
|
7394
|
+
* @public
|
|
7395
|
+
* @returns 线宽
|
|
7396
|
+
*/
|
|
6459
7397
|
getState_LineWidth(): number | null;
|
|
6460
|
-
|
|
6461
|
-
|
|
7398
|
+
/**
|
|
7399
|
+
* 获取属性状态:线型
|
|
7400
|
+
*
|
|
7401
|
+
* @public
|
|
7402
|
+
* @returns 线型
|
|
7403
|
+
*/
|
|
7404
|
+
getState_LineType(): ESCH_PrimitiveLineType | null;
|
|
7405
|
+
/**
|
|
7406
|
+
* 设置属性状态:坐标组
|
|
7407
|
+
*
|
|
7408
|
+
* @beta
|
|
7409
|
+
* @param line - 坐标组
|
|
7410
|
+
* @returns 多边形图元对象
|
|
7411
|
+
*/
|
|
6462
7412
|
setState_Line(line: Array<number>): ISCH_PrimitivePolygon;
|
|
6463
|
-
/**
|
|
7413
|
+
/**
|
|
7414
|
+
* 设置属性状态:颜色
|
|
7415
|
+
*
|
|
7416
|
+
* @beta
|
|
7417
|
+
* @param color - 颜色
|
|
7418
|
+
* @returns 多边形图元对象
|
|
7419
|
+
*/
|
|
6464
7420
|
setState_Color(color: string | null): ISCH_PrimitivePolygon;
|
|
6465
|
-
/**
|
|
7421
|
+
/**
|
|
7422
|
+
* 设置属性状态:填充颜色
|
|
7423
|
+
*
|
|
7424
|
+
* @beta
|
|
7425
|
+
* @param fillColor - 填充颜色
|
|
7426
|
+
* @returns 多边形图元对象
|
|
7427
|
+
*/
|
|
6466
7428
|
setState_FillColor(fillColor: string | null): ISCH_PrimitivePolygon;
|
|
6467
|
-
/**
|
|
7429
|
+
/**
|
|
7430
|
+
* 设置属性状态:线宽
|
|
7431
|
+
*
|
|
7432
|
+
* @beta
|
|
7433
|
+
* @param lineWidth - 线宽
|
|
7434
|
+
* @returns 多边形图元对象
|
|
7435
|
+
*/
|
|
6468
7436
|
setState_LineWidth(lineWidth: number | null): ISCH_PrimitivePolygon;
|
|
6469
|
-
/**
|
|
6470
|
-
|
|
7437
|
+
/**
|
|
7438
|
+
* 设置属性状态:线型
|
|
7439
|
+
*
|
|
7440
|
+
* @beta
|
|
7441
|
+
* @param lineType - 线型
|
|
7442
|
+
* @returns 多边形图元对象
|
|
7443
|
+
*/
|
|
7444
|
+
setState_LineType(lineType: ESCH_PrimitiveLineType | null): ISCH_PrimitivePolygon;
|
|
6471
7445
|
/**
|
|
6472
7446
|
* 将图元转换为异步图元
|
|
7447
|
+
*
|
|
7448
|
+
* @public
|
|
7449
|
+
* @returns 多边形图元对象
|
|
7450
|
+
*/
|
|
7451
|
+
toAsync(): ISCH_PrimitivePolygon;
|
|
7452
|
+
/**
|
|
7453
|
+
* 将图元转换为同步图元
|
|
7454
|
+
*
|
|
7455
|
+
* @public
|
|
7456
|
+
* @returns 多边形图元对象
|
|
7457
|
+
*/
|
|
7458
|
+
toSync(): ISCH_PrimitivePolygon;
|
|
7459
|
+
/**
|
|
7460
|
+
* 查询图元是否为异步图元
|
|
7461
|
+
*
|
|
7462
|
+
* @public
|
|
7463
|
+
* @returns 是否为异步图元
|
|
7464
|
+
*/
|
|
7465
|
+
isAsync(): boolean;
|
|
7466
|
+
/**
|
|
7467
|
+
* 将异步图元重置为当前画布状态
|
|
7468
|
+
*
|
|
7469
|
+
* @beta
|
|
7470
|
+
* @returns 多边形图元对象
|
|
7471
|
+
*/
|
|
7472
|
+
reset(): Promise<ISCH_PrimitivePolygon>;
|
|
7473
|
+
/**
|
|
7474
|
+
* 将对图元的更改应用到画布
|
|
7475
|
+
*
|
|
7476
|
+
* @beta
|
|
7477
|
+
* @returns 多边形图元对象
|
|
7478
|
+
*/
|
|
7479
|
+
done(): ISCH_PrimitivePolygon;
|
|
7480
|
+
}
|
|
7481
|
+
|
|
7482
|
+
/**
|
|
7483
|
+
* 矩形图元
|
|
7484
|
+
*
|
|
7485
|
+
* @public
|
|
7486
|
+
*/
|
|
7487
|
+
declare class ISCH_PrimitiveRectangle implements ISCH_Primitive {
|
|
7488
|
+
/** 异步 */
|
|
7489
|
+
private async;
|
|
7490
|
+
/** 图元类型 */
|
|
7491
|
+
private readonly primitiveType;
|
|
7492
|
+
/** 图元 ID */
|
|
7493
|
+
private primitiveId?;
|
|
7494
|
+
/** 左上点 X */
|
|
7495
|
+
private topLeftX;
|
|
7496
|
+
/** 左上点 Y */
|
|
7497
|
+
private topLeftY;
|
|
7498
|
+
/** 宽 */
|
|
7499
|
+
private width;
|
|
7500
|
+
/** 高 */
|
|
7501
|
+
private height;
|
|
7502
|
+
/** 圆角半径 */
|
|
7503
|
+
private cornerRadius;
|
|
7504
|
+
/** 旋转角度 */
|
|
7505
|
+
private rotation;
|
|
7506
|
+
/** 边框颜色 */
|
|
7507
|
+
private color;
|
|
7508
|
+
/** 填充颜色 */
|
|
7509
|
+
private fillColor;
|
|
7510
|
+
/** 线宽 */
|
|
7511
|
+
private lineWidth;
|
|
7512
|
+
/** 线型 */
|
|
7513
|
+
private lineType;
|
|
7514
|
+
/** 填充样式 */
|
|
7515
|
+
private fillStyle;
|
|
7516
|
+
/* Excluded from this release type: __constructor */
|
|
7517
|
+
/* Excluded from this release type: create */
|
|
7518
|
+
/**
|
|
7519
|
+
* 获取属性状态:图元类型
|
|
7520
|
+
*
|
|
7521
|
+
* @public
|
|
7522
|
+
* @returns 图元类型
|
|
7523
|
+
*/
|
|
7524
|
+
getState_PrimitiveType(): ESCH_PrimitiveType;
|
|
7525
|
+
/**
|
|
7526
|
+
* 获取属性状态:图元 ID
|
|
7527
|
+
*
|
|
7528
|
+
* @public
|
|
7529
|
+
* @returns 图元 ID
|
|
7530
|
+
*/
|
|
7531
|
+
getState_PrimitiveId(): string;
|
|
7532
|
+
/**
|
|
7533
|
+
* 获取属性状态:左上点 X
|
|
7534
|
+
*
|
|
7535
|
+
* @public
|
|
7536
|
+
* @returns 左上点 X
|
|
7537
|
+
*/
|
|
7538
|
+
getState_TopLeftX(): number;
|
|
7539
|
+
/**
|
|
7540
|
+
* 获取属性状态:左上点 Y
|
|
7541
|
+
*
|
|
7542
|
+
* @public
|
|
7543
|
+
* @returns 左上点 Y
|
|
7544
|
+
*/
|
|
7545
|
+
getState_TopLeftY(): number;
|
|
7546
|
+
/**
|
|
7547
|
+
* 获取属性状态:宽
|
|
7548
|
+
*
|
|
7549
|
+
* @public
|
|
7550
|
+
* @returns 宽
|
|
7551
|
+
*/
|
|
7552
|
+
getState_Width(): number;
|
|
7553
|
+
/**
|
|
7554
|
+
* 获取属性状态:高
|
|
7555
|
+
*
|
|
7556
|
+
* @public
|
|
7557
|
+
* @returns 高
|
|
7558
|
+
*/
|
|
7559
|
+
getState_Height(): number;
|
|
7560
|
+
/**
|
|
7561
|
+
* 获取属性状态:圆角半径
|
|
7562
|
+
*
|
|
7563
|
+
* @public
|
|
7564
|
+
* @returns 圆角半径
|
|
7565
|
+
*/
|
|
7566
|
+
getState_CornerRadius(): number;
|
|
7567
|
+
/**
|
|
7568
|
+
* 获取属性状态:旋转角度
|
|
7569
|
+
*
|
|
7570
|
+
* @public
|
|
7571
|
+
* @returns 旋转角度
|
|
7572
|
+
*/
|
|
7573
|
+
getState_Rotation(): number;
|
|
7574
|
+
/**
|
|
7575
|
+
* 获取属性状态:边框颜色
|
|
7576
|
+
*
|
|
7577
|
+
* @public
|
|
7578
|
+
* @returns 边框颜色
|
|
6473
7579
|
*/
|
|
6474
|
-
|
|
7580
|
+
getState_Color(): string | null;
|
|
6475
7581
|
/**
|
|
6476
|
-
*
|
|
7582
|
+
* 获取属性状态:填充颜色
|
|
7583
|
+
*
|
|
7584
|
+
* @public
|
|
7585
|
+
* @returns 填充颜色
|
|
6477
7586
|
*/
|
|
6478
|
-
|
|
7587
|
+
getState_FillColor(): string | null;
|
|
6479
7588
|
/**
|
|
6480
|
-
*
|
|
7589
|
+
* 获取属性状态:线宽
|
|
7590
|
+
*
|
|
7591
|
+
* @public
|
|
7592
|
+
* @returns 线宽
|
|
6481
7593
|
*/
|
|
6482
|
-
|
|
7594
|
+
getState_LineWidth(): number | null;
|
|
6483
7595
|
/**
|
|
6484
|
-
*
|
|
7596
|
+
* 获取属性状态:线型
|
|
7597
|
+
*
|
|
7598
|
+
* @public
|
|
7599
|
+
* @returns 线型
|
|
6485
7600
|
*/
|
|
6486
|
-
|
|
7601
|
+
getState_LineType(): ESCH_PrimitiveLineType | null;
|
|
6487
7602
|
/**
|
|
6488
|
-
*
|
|
7603
|
+
* 获取属性状态:填充样式
|
|
7604
|
+
*
|
|
7605
|
+
* @public
|
|
7606
|
+
* @returns 填充样式
|
|
6489
7607
|
*/
|
|
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 */
|
|
7608
|
+
getState_FillStyle(): ESCH_PrimitiveFillStyle | null;
|
|
6526
7609
|
/**
|
|
6527
|
-
*
|
|
7610
|
+
* 设置属性状态:左上点 X
|
|
6528
7611
|
*
|
|
7612
|
+
* @beta
|
|
7613
|
+
* @param topLeftX - 左上点 X
|
|
6529
7614
|
* @returns 矩形图元对象
|
|
6530
7615
|
*/
|
|
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
7616
|
setState_TopLeftX(topLeftX: number): ISCH_PrimitiveRectangle;
|
|
7617
|
+
/**
|
|
7618
|
+
* 设置属性状态:左上点 Y
|
|
7619
|
+
*
|
|
7620
|
+
* @beta
|
|
7621
|
+
* @param topLeftY - 左上点 Y
|
|
7622
|
+
* @returns 矩形图元对象
|
|
7623
|
+
*/
|
|
6545
7624
|
setState_TopLeftY(topLeftY: number): ISCH_PrimitiveRectangle;
|
|
7625
|
+
/**
|
|
7626
|
+
* 设置属性状态:宽
|
|
7627
|
+
*
|
|
7628
|
+
* @beta
|
|
7629
|
+
* @param width - 宽
|
|
7630
|
+
* @returns 矩形图元对象
|
|
7631
|
+
*/
|
|
6546
7632
|
setState_Width(width: number): ISCH_PrimitiveRectangle;
|
|
7633
|
+
/**
|
|
7634
|
+
* 设置属性状态:高
|
|
7635
|
+
*
|
|
7636
|
+
* @beta
|
|
7637
|
+
* @param height - 高
|
|
7638
|
+
* @returns 矩形图元对象
|
|
7639
|
+
*/
|
|
6547
7640
|
setState_Height(height: number): ISCH_PrimitiveRectangle;
|
|
7641
|
+
/**
|
|
7642
|
+
* 设置属性状态:圆角半径
|
|
7643
|
+
*
|
|
7644
|
+
* @beta
|
|
7645
|
+
* @param cornerRadius - 圆角半径
|
|
7646
|
+
* @returns 矩形图元对象
|
|
7647
|
+
*/
|
|
6548
7648
|
setState_CornerRadius(cornerRadius: number): ISCH_PrimitiveRectangle;
|
|
7649
|
+
/**
|
|
7650
|
+
* 设置属性状态:旋转角度
|
|
7651
|
+
*
|
|
7652
|
+
* @beta
|
|
7653
|
+
* @param rotation - 旋转角度
|
|
7654
|
+
* @returns 矩形图元对象
|
|
7655
|
+
*/
|
|
6549
7656
|
setState_Rotation(rotation: number): ISCH_PrimitiveRectangle;
|
|
7657
|
+
/**
|
|
7658
|
+
* 设置属性状态:边框颜色
|
|
7659
|
+
*
|
|
7660
|
+
* @beta
|
|
7661
|
+
* @param color - 边框颜色
|
|
7662
|
+
* @returns 矩形图元对象
|
|
7663
|
+
*/
|
|
6550
7664
|
setState_Color(color: string | null): ISCH_PrimitiveRectangle;
|
|
7665
|
+
/**
|
|
7666
|
+
* 设置属性状态:填充颜色
|
|
7667
|
+
*
|
|
7668
|
+
* @beta
|
|
7669
|
+
* @param fillColor - 填充颜色
|
|
7670
|
+
* @returns 矩形图元对象
|
|
7671
|
+
*/
|
|
6551
7672
|
setState_FillColor(fillColor: string | null): ISCH_PrimitiveRectangle;
|
|
7673
|
+
/**
|
|
7674
|
+
* 设置属性状态:线宽
|
|
7675
|
+
*
|
|
7676
|
+
* @beta
|
|
7677
|
+
* @param lineWidth - 线宽
|
|
7678
|
+
* @returns 矩形图元对象
|
|
7679
|
+
*/
|
|
6552
7680
|
setState_LineWidth(lineWidth: number | null): ISCH_PrimitiveRectangle;
|
|
6553
|
-
|
|
7681
|
+
/**
|
|
7682
|
+
* 设置属性状态:线型
|
|
7683
|
+
*
|
|
7684
|
+
* @beta
|
|
7685
|
+
* @param lineType - 线型
|
|
7686
|
+
* @returns 矩形图元对象
|
|
7687
|
+
*/
|
|
7688
|
+
setState_LineType(lineType: ESCH_PrimitiveLineType | null): ISCH_PrimitiveRectangle;
|
|
7689
|
+
/**
|
|
7690
|
+
* 设置属性状态:填充样式
|
|
7691
|
+
*
|
|
7692
|
+
* @beta
|
|
7693
|
+
* @param fillStyle - 填充样式
|
|
7694
|
+
* @returns 矩形图元对象
|
|
7695
|
+
*/
|
|
7696
|
+
setState_FillStyle(fillStyle: ESCH_PrimitiveFillStyle | null): ISCH_PrimitiveRectangle;
|
|
6554
7697
|
/**
|
|
6555
7698
|
* 将图元转换为异步图元
|
|
7699
|
+
*
|
|
7700
|
+
* @public
|
|
7701
|
+
* @returns 矩形图元对象
|
|
6556
7702
|
*/
|
|
6557
7703
|
toAsync(): ISCH_PrimitiveRectangle;
|
|
6558
7704
|
/**
|
|
6559
7705
|
* 将图元转换为同步图元
|
|
7706
|
+
*
|
|
7707
|
+
* @public
|
|
7708
|
+
* @returns 矩形图元对象
|
|
6560
7709
|
*/
|
|
6561
7710
|
toSync(): ISCH_PrimitiveRectangle;
|
|
6562
7711
|
/**
|
|
6563
7712
|
* 查询图元是否为异步图元
|
|
7713
|
+
*
|
|
7714
|
+
* @public
|
|
7715
|
+
* @returns 是否为异步图元
|
|
6564
7716
|
*/
|
|
6565
7717
|
isAsync(): boolean;
|
|
6566
7718
|
/**
|
|
6567
7719
|
* 将异步图元重置为当前画布状态
|
|
7720
|
+
*
|
|
7721
|
+
* @beta
|
|
7722
|
+
* @returns 矩形图元对象
|
|
6568
7723
|
*/
|
|
6569
7724
|
reset(): Promise<ISCH_PrimitiveRectangle>;
|
|
6570
7725
|
/**
|
|
6571
7726
|
* 将对图元的更改应用到画布
|
|
7727
|
+
*
|
|
7728
|
+
* @beta
|
|
7729
|
+
* @returns 矩形图元对象
|
|
6572
7730
|
*/
|
|
6573
7731
|
done(): ISCH_PrimitiveRectangle;
|
|
6574
7732
|
}
|
|
@@ -6608,72 +7766,221 @@ declare class ISCH_PrimitiveText implements ISCH_Primitive {
|
|
|
6608
7766
|
/** 对齐模式 */
|
|
6609
7767
|
private alignMode;
|
|
6610
7768
|
/* Excluded from this release type: __constructor */
|
|
7769
|
+
/* Excluded from this release type: create */
|
|
6611
7770
|
/**
|
|
6612
|
-
*
|
|
7771
|
+
* 获取属性状态:图元类型
|
|
6613
7772
|
*
|
|
6614
|
-
* @
|
|
6615
|
-
* @returns
|
|
7773
|
+
* @public
|
|
7774
|
+
* @returns 图元类型
|
|
6616
7775
|
*/
|
|
6617
|
-
create(): Promise<ISCH_PrimitiveText>;
|
|
6618
7776
|
getState_PrimitiveType(): ESCH_PrimitiveType;
|
|
7777
|
+
/**
|
|
7778
|
+
* 获取属性状态:图元 ID
|
|
7779
|
+
*
|
|
7780
|
+
* @public
|
|
7781
|
+
* @returns 图元 ID
|
|
7782
|
+
*/
|
|
6619
7783
|
getState_PrimitiveId(): string;
|
|
7784
|
+
/**
|
|
7785
|
+
* 获取属性状态:坐标 X
|
|
7786
|
+
*
|
|
7787
|
+
* @public
|
|
7788
|
+
* @returns 坐标 X
|
|
7789
|
+
*/
|
|
6620
7790
|
getState_X(): number;
|
|
7791
|
+
/**
|
|
7792
|
+
* 获取属性状态:坐标 Y
|
|
7793
|
+
*
|
|
7794
|
+
* @public
|
|
7795
|
+
* @returns 坐标 Y
|
|
7796
|
+
*/
|
|
6621
7797
|
getState_Y(): number;
|
|
7798
|
+
/**
|
|
7799
|
+
* 获取属性状态:文本内容
|
|
7800
|
+
*
|
|
7801
|
+
* @public
|
|
7802
|
+
* @returns 文本内容
|
|
7803
|
+
*/
|
|
6622
7804
|
getState_Content(): string;
|
|
7805
|
+
/**
|
|
7806
|
+
* 获取属性状态:旋转角度
|
|
7807
|
+
*
|
|
7808
|
+
* @public
|
|
7809
|
+
* @returns 旋转角度
|
|
7810
|
+
*/
|
|
6623
7811
|
getState_Rotation(): number;
|
|
7812
|
+
/**
|
|
7813
|
+
* 获取属性状态:文本颜色
|
|
7814
|
+
*
|
|
7815
|
+
* @public
|
|
7816
|
+
* @returns 文本颜色
|
|
7817
|
+
*/
|
|
6624
7818
|
getState_TextColor(): string | null;
|
|
7819
|
+
/**
|
|
7820
|
+
* 获取属性状态:字体名称
|
|
7821
|
+
*
|
|
7822
|
+
* @public
|
|
7823
|
+
* @returns 字体名称
|
|
7824
|
+
*/
|
|
6625
7825
|
getState_FontName(): string | null;
|
|
7826
|
+
/**
|
|
7827
|
+
* 获取属性状态:字体大小
|
|
7828
|
+
*
|
|
7829
|
+
* @public
|
|
7830
|
+
* @returns 字体大小
|
|
7831
|
+
*/
|
|
6626
7832
|
getState_FontSize(): number | null;
|
|
7833
|
+
/**
|
|
7834
|
+
* 获取属性状态:是否加粗
|
|
7835
|
+
*
|
|
7836
|
+
* @public
|
|
7837
|
+
* @returns 是否加粗
|
|
7838
|
+
*/
|
|
6627
7839
|
getState_Bold(): boolean;
|
|
7840
|
+
/**
|
|
7841
|
+
* 获取属性状态:是否斜体
|
|
7842
|
+
*
|
|
7843
|
+
* @public
|
|
7844
|
+
* @returns 是否斜体
|
|
7845
|
+
*/
|
|
6628
7846
|
getState_Italic(): boolean;
|
|
7847
|
+
/**
|
|
7848
|
+
* 获取属性状态:是否加下划线
|
|
7849
|
+
*
|
|
7850
|
+
* @public
|
|
7851
|
+
* @returns 是否加下划线
|
|
7852
|
+
*/
|
|
6629
7853
|
getState_UnderLine(): boolean;
|
|
7854
|
+
/**
|
|
7855
|
+
* 获取属性状态:对齐模式
|
|
7856
|
+
*
|
|
7857
|
+
* @public
|
|
7858
|
+
* @returns 对齐模式
|
|
7859
|
+
*/
|
|
6630
7860
|
getState_AlignMode(): number;
|
|
6631
|
-
/**
|
|
7861
|
+
/**
|
|
7862
|
+
* 设置属性状态:坐标 X
|
|
7863
|
+
*
|
|
7864
|
+
* @beta
|
|
7865
|
+
* @param x - 坐标 X
|
|
7866
|
+
* @returns 文本图元对象
|
|
7867
|
+
*/
|
|
6632
7868
|
setState_X(x: number): ISCH_PrimitiveText;
|
|
6633
|
-
/**
|
|
7869
|
+
/**
|
|
7870
|
+
* 设置属性状态:坐标 Y
|
|
7871
|
+
*
|
|
7872
|
+
* @beta
|
|
7873
|
+
* @param y - 坐标 Y
|
|
7874
|
+
* @returns 文本图元对象
|
|
7875
|
+
*/
|
|
6634
7876
|
setState_Y(y: number): ISCH_PrimitiveText;
|
|
6635
|
-
/**
|
|
7877
|
+
/**
|
|
7878
|
+
* 设置属性状态:文本内容
|
|
7879
|
+
*
|
|
7880
|
+
* @beta
|
|
7881
|
+
* @param content - 文本内容
|
|
7882
|
+
* @returns 文本图元对象
|
|
7883
|
+
*/
|
|
6636
7884
|
setState_Content(content: string): ISCH_PrimitiveText;
|
|
6637
|
-
/**
|
|
7885
|
+
/**
|
|
7886
|
+
* 设置属性状态:旋转角度
|
|
7887
|
+
*
|
|
7888
|
+
* @beta
|
|
7889
|
+
* @param rotation - 旋转角度
|
|
7890
|
+
* @returns 文本图元对象
|
|
7891
|
+
*/
|
|
6638
7892
|
setState_Rotation(rotation: number): ISCH_PrimitiveText;
|
|
6639
|
-
/**
|
|
7893
|
+
/**
|
|
7894
|
+
* 设置属性状态:文本颜色
|
|
7895
|
+
*
|
|
7896
|
+
* @beta
|
|
7897
|
+
* @param textColor - 文本颜色
|
|
7898
|
+
* @returns 文本图元对象
|
|
7899
|
+
*/
|
|
6640
7900
|
setState_TextColor(textColor: string | null): ISCH_PrimitiveText;
|
|
6641
|
-
/**
|
|
7901
|
+
/**
|
|
7902
|
+
* 设置属性状态:字体名称
|
|
7903
|
+
*
|
|
7904
|
+
* @beta
|
|
7905
|
+
* @param fontName - 字体名称
|
|
7906
|
+
* @returns 文本图元对象
|
|
7907
|
+
*/
|
|
6642
7908
|
setState_FontName(fontName: string | null): ISCH_PrimitiveText;
|
|
6643
|
-
/**
|
|
7909
|
+
/**
|
|
7910
|
+
* 设置属性状态:字体大小
|
|
7911
|
+
*
|
|
7912
|
+
* @beta
|
|
7913
|
+
* @param fontSize - 字体大小
|
|
7914
|
+
* @returns 文本图元对象
|
|
7915
|
+
*/
|
|
6644
7916
|
setState_FontSize(fontSize: number | null): ISCH_PrimitiveText;
|
|
6645
|
-
/**
|
|
7917
|
+
/**
|
|
7918
|
+
* 设置属性状态:是否加粗
|
|
7919
|
+
*
|
|
7920
|
+
* @beta
|
|
7921
|
+
* @param bold - 是否加粗
|
|
7922
|
+
* @returns 文本图元对象
|
|
7923
|
+
*/
|
|
6646
7924
|
setState_Bold(bold: boolean): ISCH_PrimitiveText;
|
|
6647
|
-
/**
|
|
7925
|
+
/**
|
|
7926
|
+
* 设置属性状态:是否斜体
|
|
7927
|
+
*
|
|
7928
|
+
* @beta
|
|
7929
|
+
* @param italic - 是否斜体
|
|
7930
|
+
* @returns 文本图元对象
|
|
7931
|
+
*/
|
|
6648
7932
|
setState_Italic(italic: boolean): ISCH_PrimitiveText;
|
|
6649
|
-
/**
|
|
7933
|
+
/**
|
|
7934
|
+
* 设置属性状态:是否加下划线
|
|
7935
|
+
*
|
|
7936
|
+
* @beta
|
|
7937
|
+
* @param underLine - 是否加下划线
|
|
7938
|
+
* @returns 文本图元对象
|
|
7939
|
+
*/
|
|
6650
7940
|
setState_UnderLine(underLine: boolean): ISCH_PrimitiveText;
|
|
6651
|
-
/**
|
|
7941
|
+
/**
|
|
7942
|
+
* 设置属性状态:对齐模式
|
|
7943
|
+
*
|
|
7944
|
+
* @beta
|
|
7945
|
+
* @param alignMode - 对齐模式
|
|
7946
|
+
* @returns 文本图元对象
|
|
7947
|
+
*/
|
|
6652
7948
|
setState_AlignMode(alignMode: number): ISCH_PrimitiveText;
|
|
6653
7949
|
/**
|
|
6654
7950
|
* 将图元转换为异步图元
|
|
7951
|
+
*
|
|
7952
|
+
* @public
|
|
7953
|
+
* @returns 文本图元对象
|
|
6655
7954
|
*/
|
|
6656
7955
|
toAsync(): ISCH_PrimitiveText;
|
|
6657
7956
|
/**
|
|
6658
7957
|
* 将图元转换为同步图元
|
|
7958
|
+
*
|
|
7959
|
+
* @public
|
|
7960
|
+
* @returns 文本图元对象
|
|
6659
7961
|
*/
|
|
6660
7962
|
toSync(): ISCH_PrimitiveText;
|
|
6661
7963
|
/**
|
|
6662
7964
|
* 查询图元是否为异步图元
|
|
7965
|
+
*
|
|
7966
|
+
* @public
|
|
7967
|
+
* @returns 是否为异步图元
|
|
6663
7968
|
*/
|
|
6664
7969
|
isAsync(): boolean;
|
|
6665
7970
|
/**
|
|
6666
7971
|
* 将异步图元重置为当前画布状态
|
|
6667
7972
|
*
|
|
6668
7973
|
* @beta
|
|
7974
|
+
* @returns 文本图元对象
|
|
6669
7975
|
*/
|
|
6670
|
-
reset(): ISCH_PrimitiveText
|
|
7976
|
+
reset(): Promise<ISCH_PrimitiveText>;
|
|
6671
7977
|
/**
|
|
6672
7978
|
* 将对图元的更改应用到画布
|
|
6673
7979
|
*
|
|
6674
7980
|
* @beta
|
|
7981
|
+
* @returns 文本图元对象
|
|
6675
7982
|
*/
|
|
6676
|
-
done(): ISCH_PrimitiveText
|
|
7983
|
+
done(): Promise<ISCH_PrimitiveText>;
|
|
6677
7984
|
}
|
|
6678
7985
|
|
|
6679
7986
|
/**
|
|
@@ -6699,49 +8006,125 @@ declare class ISCH_PrimitiveWire implements ISCH_Primitive {
|
|
|
6699
8006
|
/** 线型 */
|
|
6700
8007
|
private lineType;
|
|
6701
8008
|
/* Excluded from this release type: __constructor */
|
|
8009
|
+
/* Excluded from this release type: create */
|
|
6702
8010
|
/**
|
|
6703
|
-
*
|
|
8011
|
+
* 获取属性状态:图元类型
|
|
6704
8012
|
*
|
|
6705
|
-
* @
|
|
6706
|
-
* @returns
|
|
8013
|
+
* @public
|
|
8014
|
+
* @returns 图元类型
|
|
6707
8015
|
*/
|
|
6708
|
-
create(): ISCH_PrimitiveWire;
|
|
6709
8016
|
getState_PrimitiveType(): ESCH_PrimitiveType;
|
|
8017
|
+
/**
|
|
8018
|
+
* 获取属性状态:图元 ID
|
|
8019
|
+
*
|
|
8020
|
+
* @public
|
|
8021
|
+
* @returns 图元 ID
|
|
8022
|
+
*/
|
|
6710
8023
|
getState_PrimitiveId(): string;
|
|
6711
|
-
|
|
6712
|
-
|
|
6713
|
-
|
|
6714
|
-
|
|
6715
|
-
|
|
6716
|
-
|
|
6717
|
-
|
|
6718
|
-
|
|
6719
|
-
|
|
6720
|
-
|
|
8024
|
+
/**
|
|
8025
|
+
* 获取属性状态:多段线坐标组
|
|
8026
|
+
*
|
|
8027
|
+
* @public
|
|
8028
|
+
* @returns 多段线坐标组
|
|
8029
|
+
*/
|
|
8030
|
+
getState_Line(): Array<number> | Array<Array<number>>;
|
|
8031
|
+
/**
|
|
8032
|
+
* 获取属性状态:网络名称
|
|
8033
|
+
*
|
|
8034
|
+
* @public
|
|
8035
|
+
* @returns 网络名称
|
|
8036
|
+
*/
|
|
8037
|
+
getState_Net(): string;
|
|
8038
|
+
/**
|
|
8039
|
+
* 获取属性状态:总线颜色
|
|
8040
|
+
*
|
|
8041
|
+
* @public
|
|
8042
|
+
* @returns 总线颜色
|
|
8043
|
+
*/
|
|
8044
|
+
getState_Color(): string | null;
|
|
8045
|
+
/**
|
|
8046
|
+
* 获取属性状态:线宽
|
|
8047
|
+
*
|
|
8048
|
+
* @public
|
|
8049
|
+
* @returns 线宽
|
|
8050
|
+
*/
|
|
8051
|
+
getState_LineWidth(): number | null;
|
|
8052
|
+
/**
|
|
8053
|
+
* 获取属性状态:线型
|
|
8054
|
+
*
|
|
8055
|
+
* @public
|
|
8056
|
+
* @returns 线型
|
|
8057
|
+
*/
|
|
8058
|
+
getState_LineType(): ESCH_PrimitiveLineType | null;
|
|
8059
|
+
/**
|
|
8060
|
+
* 设置属性状态:多段线坐标组
|
|
8061
|
+
*
|
|
8062
|
+
* @beta
|
|
8063
|
+
* @param line - 多段线坐标组
|
|
8064
|
+
* @returns 导线图元对象
|
|
8065
|
+
*/
|
|
8066
|
+
setState_Line(line: Array<number> | Array<Array<number>>): ISCH_PrimitiveWire;
|
|
8067
|
+
/**
|
|
8068
|
+
* 设置属性状态:网络名称
|
|
8069
|
+
*
|
|
8070
|
+
* @beta
|
|
8071
|
+
* @param net - 网络名称
|
|
8072
|
+
* @returns 导线图元对象
|
|
8073
|
+
*/
|
|
8074
|
+
setState_Net(net: string): ISCH_PrimitiveWire;
|
|
8075
|
+
/**
|
|
8076
|
+
* 设置属性状态:导线颜色
|
|
8077
|
+
*
|
|
8078
|
+
* @beta
|
|
8079
|
+
* @param color - 导线颜色
|
|
8080
|
+
* @returns 导线图元对象
|
|
8081
|
+
*/
|
|
8082
|
+
setState_Color(color: string | null): ISCH_PrimitiveWire;
|
|
8083
|
+
/**
|
|
8084
|
+
* 设置属性状态:线宽
|
|
8085
|
+
*
|
|
8086
|
+
* @beta
|
|
8087
|
+
* @param lineWidth - 线宽
|
|
8088
|
+
* @returns 导线图元对象
|
|
8089
|
+
*/
|
|
8090
|
+
setState_LineWidth(lineWidth: number | null): ISCH_PrimitiveWire;
|
|
8091
|
+
/**
|
|
8092
|
+
* 设置属性状态:线型
|
|
8093
|
+
*
|
|
8094
|
+
* @beta
|
|
8095
|
+
* @param lineType - 线型
|
|
8096
|
+
* @returns 导线图元对象
|
|
8097
|
+
*/
|
|
8098
|
+
setState_LineType(lineType: ESCH_PrimitiveLineType | null): ISCH_PrimitiveWire;
|
|
6721
8099
|
/**
|
|
6722
8100
|
* 将图元转换为异步图元
|
|
8101
|
+
*
|
|
8102
|
+
* @public
|
|
8103
|
+
* @returns 导线图元对象
|
|
6723
8104
|
*/
|
|
6724
8105
|
toAsync(): ISCH_PrimitiveWire;
|
|
6725
8106
|
/**
|
|
6726
8107
|
* 将图元转换为同步图元
|
|
8108
|
+
*
|
|
8109
|
+
* @public
|
|
8110
|
+
* @returns 导线图元对象
|
|
6727
8111
|
*/
|
|
6728
8112
|
toSync(): ISCH_PrimitiveWire;
|
|
6729
8113
|
/**
|
|
6730
8114
|
* 查询图元是否为异步图元
|
|
6731
|
-
*/
|
|
6732
|
-
isAsync(): boolean;
|
|
6733
|
-
/**
|
|
6734
|
-
* 将异步图元重置为当前画布状态
|
|
6735
8115
|
*
|
|
6736
|
-
* @
|
|
8116
|
+
* @public
|
|
8117
|
+
* @returns 是否为异步图元
|
|
6737
8118
|
*/
|
|
6738
|
-
|
|
8119
|
+
isAsync(): boolean;
|
|
8120
|
+
/* Excluded from this release type: reset */
|
|
6739
8121
|
/**
|
|
6740
8122
|
* 将对图元的更改应用到画布
|
|
6741
8123
|
*
|
|
6742
8124
|
* @beta
|
|
8125
|
+
* @returns 导线图元对象
|
|
6743
8126
|
*/
|
|
6744
|
-
done(): ISCH_PrimitiveWire
|
|
8127
|
+
done(): Promise<ISCH_PrimitiveWire>;
|
|
6745
8128
|
}
|
|
6746
8129
|
|
|
6747
8130
|
/**
|
|
@@ -6810,6 +8193,13 @@ declare interface ISYS_WindowEventListenerRemovableObject {
|
|
|
6810
8193
|
};
|
|
6811
8194
|
}
|
|
6812
8195
|
|
|
8196
|
+
declare interface ITableColum {
|
|
8197
|
+
property: string;
|
|
8198
|
+
title?: string;
|
|
8199
|
+
sort?: null | 'asc' | 'desc';
|
|
8200
|
+
group?: null | 'Yes' | 'No';
|
|
8201
|
+
}
|
|
8202
|
+
|
|
6813
8203
|
/**
|
|
6814
8204
|
* 综合库 / 3D 模型类
|
|
6815
8205
|
*
|
|
@@ -6916,7 +8306,7 @@ declare class LIB_Cbb {
|
|
|
6916
8306
|
*
|
|
6917
8307
|
* @beta
|
|
6918
8308
|
* @remarks 如希望清除某些属性,则将其的值设置为 `null`
|
|
6919
|
-
* @param cbbUuid -
|
|
8309
|
+
* @param cbbUuid - 复��模块 UUID
|
|
6920
8310
|
* @param libraryUuid - 库 UUID,可以使用 {@link LIB_LibrariesList} 内的接口获取
|
|
6921
8311
|
* @param cbbName - 复用模块名称
|
|
6922
8312
|
* @param classification - 分类
|
|
@@ -7280,7 +8670,7 @@ declare class LIB_Footprint {
|
|
|
7280
8670
|
* 更新封装的文档源码
|
|
7281
8671
|
*
|
|
7282
8672
|
* @beta
|
|
7283
|
-
* @param footprintUuid -
|
|
8673
|
+
* @param footprintUuid - 封�� UUID
|
|
7284
8674
|
* @param libraryUuid - 库 UUID,可以使用 {@link LIB_LibrariesList} 内的接口获取
|
|
7285
8675
|
* @param documentSource - 文档源码
|
|
7286
8676
|
* @returns 是否更新成功
|
|
@@ -7705,7 +9095,7 @@ declare class PCB_Document {
|
|
|
7705
9095
|
*/
|
|
7706
9096
|
setCanvasOrigin(offsetX: number, offsetY: number): Promise<boolean>;
|
|
7707
9097
|
/**
|
|
7708
|
-
*
|
|
9098
|
+
* 定位到画布坐标
|
|
7709
9099
|
*
|
|
7710
9100
|
* @public
|
|
7711
9101
|
* @remarks
|
|
@@ -7796,7 +9186,7 @@ declare class PCB_Drc {
|
|
|
7796
9186
|
* @remarks 只有自定义配置可以覆盖保存,系统配置不允许修改和覆盖
|
|
7797
9187
|
* @param ruleConfiguration - 设计规则配置
|
|
7798
9188
|
* @param configurationName - 配置名称
|
|
7799
|
-
* @param allowOverwrite -
|
|
9189
|
+
* @param allowOverwrite - 是否允许覆写同名设计规则配置,`false` 则将在遇到同名设计规则配置时返回 `false`,请注意可能的数据丢失风险
|
|
7800
9190
|
* @returns 保存是否成功
|
|
7801
9191
|
*/
|
|
7802
9192
|
saveRuleConfiguration(ruleConfiguration: {
|
|
@@ -7906,7 +9296,7 @@ declare class PCB_Drc {
|
|
|
7906
9296
|
* @param color - 网络类颜色
|
|
7907
9297
|
* @returns 操作是否成功
|
|
7908
9298
|
*/
|
|
7909
|
-
createNetClass(netClassName: string, nets: Array<string>, color
|
|
9299
|
+
createNetClass(netClassName: string, nets: Array<string>, color: IPCB_EqualLengthNetGroupItem['color']): Promise<boolean>;
|
|
7910
9300
|
/**
|
|
7911
9301
|
* 删除网络类
|
|
7912
9302
|
*
|
|
@@ -7919,7 +9309,7 @@ declare class PCB_Drc {
|
|
|
7919
9309
|
* 修改网络类的名称
|
|
7920
9310
|
*
|
|
7921
9311
|
* @beta
|
|
7922
|
-
* @param originalNetClassName -
|
|
9312
|
+
* @param originalNetClassName - 原网络类名称
|
|
7923
9313
|
* @param netClassName - 新网络类名称
|
|
7924
9314
|
* @returns 操作是否成功
|
|
7925
9315
|
*/
|
|
@@ -7995,7 +9385,7 @@ declare class PCB_Drc {
|
|
|
7995
9385
|
*/
|
|
7996
9386
|
modifyDifferentialPairNegativeNet(differentialPairName: string, negativeNet: string): Promise<boolean>;
|
|
7997
9387
|
/**
|
|
7998
|
-
*
|
|
9388
|
+
* 获取所���差分对的详细属性
|
|
7999
9389
|
*
|
|
8000
9390
|
* @beta
|
|
8001
9391
|
* @returns 所有差分对的详细属性
|
|
@@ -8010,7 +9400,7 @@ declare class PCB_Drc {
|
|
|
8010
9400
|
* @param color - 等长网络组颜色
|
|
8011
9401
|
* @returns 操作是否成功
|
|
8012
9402
|
*/
|
|
8013
|
-
createEqualLengthNetGroup(equalLengthNetGroupName: string, nets: Array<string>, color
|
|
9403
|
+
createEqualLengthNetGroup(equalLengthNetGroupName: string, nets: Array<string>, color: IPCB_EqualLengthNetGroupItem['color']): Promise<boolean>;
|
|
8014
9404
|
/**
|
|
8015
9405
|
* 删除等长网络组
|
|
8016
9406
|
*
|
|
@@ -8307,7 +9697,7 @@ declare class PCB_ManufactureData {
|
|
|
8307
9697
|
* @param colorSilkscreen - 是否生成彩色丝印制造文件(嘉立创专用文件)
|
|
8308
9698
|
* @param unit - 单位
|
|
8309
9699
|
* @param digitalFormat - 数字格式
|
|
8310
|
-
* @param
|
|
9700
|
+
* @param other - 其它
|
|
8311
9701
|
* @param layers - 导出层,默认则按照嘉立创生产需求导出
|
|
8312
9702
|
* @param objects - 导出对象,默认则按照嘉立创生产需求导出
|
|
8313
9703
|
* @returns PCB 制版文件数据
|
|
@@ -8315,14 +9705,15 @@ declare class PCB_ManufactureData {
|
|
|
8315
9705
|
getGerberFile(fileName?: string, colorSilkscreen?: boolean, unit?: ESYS_Unit.MILLIMETER | ESYS_Unit.INCH, digitalFormat?: {
|
|
8316
9706
|
integerNumber: number;
|
|
8317
9707
|
decimalNumber: number;
|
|
8318
|
-
},
|
|
8319
|
-
|
|
8320
|
-
|
|
8321
|
-
|
|
9708
|
+
}, other?: {
|
|
9709
|
+
metallicDrillingInformation: boolean;
|
|
9710
|
+
nonMetallicDrillingInformation: boolean;
|
|
9711
|
+
drillTable: boolean;
|
|
9712
|
+
flyingProbeTestingFile: boolean;
|
|
8322
9713
|
}, layers?: Array<{
|
|
8323
9714
|
layerId: number;
|
|
8324
|
-
|
|
8325
|
-
}>, objects?: Array<
|
|
9715
|
+
isMirror: boolean;
|
|
9716
|
+
}>, objects?: Array<'Pad' | 'Via' | 'Track' | 'Text' | 'Image' | 'Dimension' | 'BoardOutline' | 'BoardCutout' | 'CopperFilled' | 'SolidRegion' | 'FPCStiffener' | 'Line' | 'PlaneZone' | 'ComponentProperty' | 'ComponentSilkscreen' | 'TearDrop'>): Promise<File | undefined>;
|
|
8326
9717
|
/**
|
|
8327
9718
|
* 获取 3D 模型文件
|
|
8328
9719
|
*
|
|
@@ -8368,6 +9759,10 @@ declare class PCB_ManufactureData {
|
|
|
8368
9759
|
* @returns 飞针测试文件数据
|
|
8369
9760
|
*/
|
|
8370
9761
|
getFlyingProbeTestFile(fileName?: string): Promise<File | undefined>;
|
|
9762
|
+
/* Excluded from this release type: getBomTemplates */
|
|
9763
|
+
/* Excluded from this release type: uploadBomTemplateFile */
|
|
9764
|
+
/* Excluded from this release type: getBomTemplateFile */
|
|
9765
|
+
/* Excluded from this release type: deleteBomTemplate */
|
|
8371
9766
|
/**
|
|
8372
9767
|
* 获取 BOM 文件
|
|
8373
9768
|
*
|
|
@@ -8375,9 +9770,17 @@ declare class PCB_ManufactureData {
|
|
|
8375
9770
|
* @remarks 可以使用 {@link SYS_FileSystem.saveFile} 接口将文件导出到本地文件系统
|
|
8376
9771
|
* @param fileName - 文件名
|
|
8377
9772
|
* @param fileType - 文件类型
|
|
9773
|
+
* @param template - 模板名称
|
|
9774
|
+
* @param filterOptions - 过滤规则,仅应包含需要启用的规则,`property` 为规则名称,`includeValue` 为匹配的值
|
|
9775
|
+
* @param statistics - 统计,包含所有需要启用的统计项的名称
|
|
9776
|
+
* @param property - 属性,包含所有需要启用的属性的名称
|
|
9777
|
+
* @param columns - 列的属性及排序,`title`、`sort`、`group`、`orderWeight` 不传入则取默认值,`null` 代表 **无** 或 **空**
|
|
8378
9778
|
* @returns BOM 文件数据
|
|
8379
9779
|
*/
|
|
8380
|
-
getBomFile(fileName?: string, fileType?: 'xlsx' | 'csv'
|
|
9780
|
+
getBomFile(fileName?: string, fileType?: 'xlsx' | 'csv', template?: string, filterOptions?: Array<{
|
|
9781
|
+
property: string;
|
|
9782
|
+
includeValue: boolean | string;
|
|
9783
|
+
}>, statistics?: Array<string>, property?: Array<string>, columns?: ITableColum[]): Promise<File | undefined>;
|
|
8381
9784
|
/**
|
|
8382
9785
|
* 获取测试点报告文件
|
|
8383
9786
|
*
|
|
@@ -8662,7 +10065,9 @@ declare class PCB_MathPolygon {
|
|
|
8662
10065
|
*/
|
|
8663
10066
|
splitPolygon(...complexPolygons: Array<IPCB_ComplexPolygon>): Array<IPCB_Polygon>;
|
|
8664
10067
|
/* Excluded from this release type: calculateWidth */
|
|
10068
|
+
calculateBBoxWidth(complexPolygon: TPCB_PolygonSourceArray | Array<TPCB_PolygonSourceArray>): number;
|
|
8665
10069
|
/* Excluded from this release type: calculateHeight */
|
|
10070
|
+
calculateBBoxHeight(complexPolygon: TPCB_PolygonSourceArray | Array<TPCB_PolygonSourceArray>): number;
|
|
8666
10071
|
/**
|
|
8667
10072
|
* 将图像转换为复杂多边形对象
|
|
8668
10073
|
*
|
|
@@ -8675,7 +10080,7 @@ declare class PCB_MathPolygon {
|
|
|
8675
10080
|
* @param smoothing - 平滑,取值范围 `0`-`1.33`
|
|
8676
10081
|
* @param despeckling - 去斑,取值范围 `0`-`5`
|
|
8677
10082
|
* @param inversion - 是否反相
|
|
8678
|
-
* @returns
|
|
10083
|
+
* @returns 复杂多边形对象
|
|
8679
10084
|
*/
|
|
8680
10085
|
convertImageToComplexPolygon(imageBlob: Blob, imageWidth: number, imageHeight: number, tolerance?: number, simplification?: number, smoothing?: number, despeckling?: number, inversion?: boolean): Promise<IPCB_ComplexPolygon | undefined>;
|
|
8681
10086
|
}
|
|
@@ -8997,6 +10402,7 @@ declare class PCB_PrimitiveComponent implements IPCB_PrimitiveAPI {
|
|
|
8997
10402
|
*/
|
|
8998
10403
|
getAllPinsByPrimitiveId(primitiveId: string): Promise<Array<IPCB_PrimitiveComponentPad> | undefined>;
|
|
8999
10404
|
/* Excluded from this release type: placeComponentWithMouse */
|
|
10405
|
+
/* Excluded from this release type: getAllPropertyNames */
|
|
9000
10406
|
}
|
|
9001
10407
|
|
|
9002
10408
|
/**
|
|
@@ -9523,7 +10929,7 @@ declare class PCB_PrimitivePad implements IPCB_PrimitiveAPI {
|
|
|
9523
10929
|
* @beta
|
|
9524
10930
|
* @param layer - 层
|
|
9525
10931
|
* @param net - 网络名称
|
|
9526
|
-
* @param primitiveLock -
|
|
10932
|
+
* @param primitiveLock - 是否���定
|
|
9527
10933
|
* @returns 焊盘图元对象数组
|
|
9528
10934
|
*/
|
|
9529
10935
|
getAll(layer?: TPCB_LayersOfPad, net?: string, primitiveLock?: boolean): Promise<Array<IPCB_PrimitivePad>>;
|
|
@@ -9710,7 +11116,7 @@ declare class PCB_PrimitiveRegion implements IPCB_PrimitiveAPI {
|
|
|
9710
11116
|
* @param layer - 层
|
|
9711
11117
|
* @param complexPolygon - 复杂多边形对象
|
|
9712
11118
|
* @param ruleType - 区域规则类型
|
|
9713
|
-
* @param
|
|
11119
|
+
* @param regionName - 区域名称
|
|
9714
11120
|
* @param lineWidth - 线宽
|
|
9715
11121
|
* @param primitiveLock - 是否锁定
|
|
9716
11122
|
* @returns 区域图元对象
|
|
@@ -9903,7 +11309,7 @@ declare class PCB_SelectControl {
|
|
|
9903
11309
|
*/
|
|
9904
11310
|
doSelectPrimitives(primitiveIds: string | Array<string>): Promise<boolean>;
|
|
9905
11311
|
/**
|
|
9906
|
-
*
|
|
11312
|
+
* 进行交叉选择
|
|
9907
11313
|
*
|
|
9908
11314
|
* @beta
|
|
9909
11315
|
* @param components - 器件位号
|
|
@@ -10129,241 +11535,532 @@ declare class SCH_Netlist {
|
|
|
10129
11535
|
*/
|
|
10130
11536
|
declare class SCH_Primitive {
|
|
10131
11537
|
/**
|
|
10132
|
-
* 获取指定 ID 的图元的图元类型
|
|
11538
|
+
* 获取指定 ID 的图元的图元类型
|
|
11539
|
+
*
|
|
11540
|
+
* @beta
|
|
11541
|
+
* @param id - 图元 ID
|
|
11542
|
+
* @returns 图元类型
|
|
11543
|
+
*/
|
|
11544
|
+
getPrimitiveTypeByPrimitiveId(id: string): Promise<ESCH_PrimitiveType | undefined>;
|
|
11545
|
+
/**
|
|
11546
|
+
* 获取指定 ID 的图元的所有属性
|
|
11547
|
+
*
|
|
11548
|
+
* @public
|
|
11549
|
+
* @param id - 图元 ID
|
|
11550
|
+
* @returns 图元的所有属性
|
|
11551
|
+
*/
|
|
11552
|
+
getPrimitiveByPrimitiveId(id: string): Promise<ISCH_Primitive | undefined>;
|
|
11553
|
+
/* Excluded from this release type: getPrimitivesByPrimitiveId */
|
|
11554
|
+
/**
|
|
11555
|
+
* 获取图元的 BBox
|
|
11556
|
+
*
|
|
11557
|
+
* @beta
|
|
11558
|
+
* @param primitiveIds - 图元 ID 数组或图元对象数组
|
|
11559
|
+
* @returns 图元的 BBox,如若图元不存在或没有 BBox,将会返回 `undefined` 的结果
|
|
11560
|
+
*/
|
|
11561
|
+
getPrimitivesBBox(primitiveIds: Array<string | ISCH_Primitive>): Promise<{
|
|
11562
|
+
minX: number;
|
|
11563
|
+
minY: number;
|
|
11564
|
+
maxX: number;
|
|
11565
|
+
maxY: number;
|
|
11566
|
+
} | undefined>;
|
|
11567
|
+
}
|
|
11568
|
+
|
|
11569
|
+
/**
|
|
11570
|
+
* 原理图 & 符号 / 圆弧图元类
|
|
11571
|
+
*
|
|
11572
|
+
* @public
|
|
11573
|
+
*/
|
|
11574
|
+
declare class SCH_PrimitiveArc implements ISCH_PrimitiveAPI {
|
|
11575
|
+
/**
|
|
11576
|
+
* 创建圆弧
|
|
11577
|
+
*
|
|
11578
|
+
* @beta
|
|
11579
|
+
* @param startX - 起始点 X
|
|
11580
|
+
* @param startY - 起始点 Y
|
|
11581
|
+
* @param referenceX - 参考点 X
|
|
11582
|
+
* @param referenceY - 参考点 Y
|
|
11583
|
+
* @param endX - 终止点 X
|
|
11584
|
+
* @param endY - 终止点 Y
|
|
11585
|
+
* @param color - 颜色,`null` 表示默认
|
|
11586
|
+
* @param fillColor - 填充颜色,`none` 表示无填充,`null` 表示默认
|
|
11587
|
+
* @param lineWidth - 线宽,范围 `1-10`,`null` 表示默认
|
|
11588
|
+
* @param lineType - 线型,`null` 表示默认
|
|
11589
|
+
* @returns 圆弧图元对象
|
|
11590
|
+
*/
|
|
11591
|
+
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>;
|
|
11592
|
+
/**
|
|
11593
|
+
* 删除圆弧
|
|
11594
|
+
*
|
|
11595
|
+
* @beta
|
|
11596
|
+
* @param primitiveIds - 圆弧的图元 ID 或圆弧图元对象
|
|
11597
|
+
* @returns 删除操作是否成功
|
|
11598
|
+
*/
|
|
11599
|
+
delete(primitiveIds: string | ISCH_PrimitiveArc | Array<string> | Array<ISCH_PrimitiveArc>): Promise<boolean>;
|
|
11600
|
+
/**
|
|
11601
|
+
* 修改圆弧
|
|
11602
|
+
*
|
|
11603
|
+
* @beta
|
|
11604
|
+
* @param primitiveId - 图元 ID
|
|
11605
|
+
* @param property - 修改参数
|
|
11606
|
+
* @returns 圆弧图元对象
|
|
11607
|
+
*/
|
|
11608
|
+
modify(primitiveId: string | ISCH_PrimitiveArc, property: {
|
|
11609
|
+
startX?: number;
|
|
11610
|
+
startY?: number;
|
|
11611
|
+
referenceX?: number;
|
|
11612
|
+
referenceY?: number;
|
|
11613
|
+
endX?: number;
|
|
11614
|
+
endY?: number;
|
|
11615
|
+
color?: string | null;
|
|
11616
|
+
fillColor?: string | null;
|
|
11617
|
+
lineWidth?: number | null;
|
|
11618
|
+
lineType?: ESCH_PrimitiveLineType | null;
|
|
11619
|
+
}): Promise<ISCH_PrimitiveArc | undefined>;
|
|
11620
|
+
/**
|
|
11621
|
+
* 获取圆弧
|
|
11622
|
+
*
|
|
11623
|
+
* @beta
|
|
11624
|
+
* @param primitiveIds - 圆弧的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
|
|
11625
|
+
* @returns 圆弧图元对象,`undefined` 表示获取失败
|
|
11626
|
+
*/
|
|
11627
|
+
get(primitiveIds: string): Promise<ISCH_PrimitiveArc | undefined>;
|
|
11628
|
+
/**
|
|
11629
|
+
* 获取圆弧
|
|
11630
|
+
*
|
|
11631
|
+
* @beta
|
|
11632
|
+
* @remarks 如若传入多个图元 ID,任意图元 ID 未匹配到不影响其它图元的返回,即可能返回少于传入的图元 ID 数量的图元对象
|
|
11633
|
+
* @param primitiveIds - 圆弧的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
|
|
11634
|
+
* @returns 圆弧图元对象,空数组表示获取失败
|
|
11635
|
+
*/
|
|
11636
|
+
get(primitiveIds: Array<string>): Promise<Array<ISCH_PrimitiveArc>>;
|
|
11637
|
+
/**
|
|
11638
|
+
* 获取所有圆弧的图元 ID
|
|
11639
|
+
*
|
|
11640
|
+
* @beta
|
|
11641
|
+
* @returns 圆弧的图元 ID 数组
|
|
11642
|
+
*/
|
|
11643
|
+
getAllPrimitiveId(): Promise<Array<string>>;
|
|
11644
|
+
/**
|
|
11645
|
+
* 获取所有圆弧
|
|
11646
|
+
*
|
|
11647
|
+
* @beta
|
|
11648
|
+
* @returns 圆弧图元对象数组
|
|
11649
|
+
*/
|
|
11650
|
+
getAll(): Promise<Array<ISCH_PrimitiveArc>>;
|
|
11651
|
+
}
|
|
11652
|
+
|
|
11653
|
+
/**
|
|
11654
|
+
* 原理图 & 符号 / 总线图元类
|
|
11655
|
+
*
|
|
11656
|
+
* @public
|
|
11657
|
+
*/
|
|
11658
|
+
declare class SCH_PrimitiveBus implements ISCH_PrimitiveAPI {
|
|
11659
|
+
/**
|
|
11660
|
+
* 创建总线
|
|
11661
|
+
*
|
|
11662
|
+
* @beta
|
|
11663
|
+
* @param busName - 总线名称
|
|
11664
|
+
* @param line - 多段线坐标组,每段都是连续的一组 `[x1, y1, x2, y2, x3, y3]` 所描述的线,如若多段线彼此无任何连接则创建将会失败
|
|
11665
|
+
* @param color - 总线颜色,`null` 表示默认
|
|
11666
|
+
* @param lineWidth - 线宽,范围 `1-10`,`null` 表示默认
|
|
11667
|
+
* @param lineType - 线型,`null` 表示默认
|
|
11668
|
+
* @returns 总线图元对象
|
|
11669
|
+
*/
|
|
11670
|
+
create(busName: string, line: Array<number> | Array<Array<number>>, color?: string | null, lineWidth?: number | null, lineType?: ESCH_PrimitiveLineType | null): Promise<ISCH_PrimitiveBus | undefined>;
|
|
11671
|
+
/**
|
|
11672
|
+
* 删除总线
|
|
11673
|
+
*
|
|
11674
|
+
* @beta
|
|
11675
|
+
* @param primitiveIds - 总线的图元 ID 或总线图元对象
|
|
11676
|
+
* @returns 删除操作是否成功
|
|
11677
|
+
*/
|
|
11678
|
+
delete(primitiveIds: string | ISCH_PrimitiveBus | Array<string> | Array<ISCH_PrimitiveBus>): Promise<boolean>;
|
|
11679
|
+
/**
|
|
11680
|
+
* 修改总线
|
|
11681
|
+
*
|
|
11682
|
+
* @beta
|
|
11683
|
+
* @param primitiveId - 总线的图元 ID 或总线图元对象
|
|
11684
|
+
* @param property - 修改参数
|
|
11685
|
+
* @returns 总线图元对象
|
|
11686
|
+
*/
|
|
11687
|
+
modify(primitiveId: string | ISCH_PrimitiveBus, property: {
|
|
11688
|
+
busName?: string;
|
|
11689
|
+
line?: Array<number> | Array<Array<number>>;
|
|
11690
|
+
color?: string | null;
|
|
11691
|
+
lineWidth?: number | null;
|
|
11692
|
+
lineType?: ESCH_PrimitiveLineType | null;
|
|
11693
|
+
}): Promise<ISCH_PrimitiveBus | undefined>;
|
|
11694
|
+
/**
|
|
11695
|
+
* 获取总线
|
|
10133
11696
|
*
|
|
10134
11697
|
* @beta
|
|
10135
|
-
* @param
|
|
10136
|
-
* @returns
|
|
11698
|
+
* @param primitiveIds - 总线的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
|
|
11699
|
+
* @returns 总线图元对象,`undefined` 表示获取失败
|
|
10137
11700
|
*/
|
|
10138
|
-
|
|
11701
|
+
get(primitiveIds: string): Promise<ISCH_PrimitiveBus | undefined>;
|
|
10139
11702
|
/**
|
|
10140
|
-
*
|
|
11703
|
+
* 获取总线
|
|
10141
11704
|
*
|
|
10142
|
-
* @
|
|
10143
|
-
* @
|
|
10144
|
-
* @
|
|
11705
|
+
* @beta
|
|
11706
|
+
* @remarks 如若传入多个图元 ID,任意图元 ID 未匹配到不影响其它图元的返回,即可能返回少于传入的图元 ID 数量的图元对象
|
|
11707
|
+
* @param primitiveIds - 总线的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
|
|
11708
|
+
* @returns 总线图元对象,空数组表示获取失败
|
|
10145
11709
|
*/
|
|
10146
|
-
|
|
10147
|
-
/* Excluded from this release type: getPrimitivesByPrimitiveId */
|
|
11710
|
+
get(primitiveIds: Array<string>): Promise<Array<ISCH_PrimitiveBus>>;
|
|
10148
11711
|
/**
|
|
10149
|
-
*
|
|
11712
|
+
* 获取所有总线的图元 ID
|
|
10150
11713
|
*
|
|
10151
11714
|
* @beta
|
|
10152
|
-
* @
|
|
10153
|
-
* @returns 图元的 BBox,如若图元不存在或没有 BBox,将会返回 `undefined` 的结果
|
|
11715
|
+
* @returns 总线的图元 ID 数组
|
|
10154
11716
|
*/
|
|
10155
|
-
|
|
10156
|
-
|
|
10157
|
-
|
|
10158
|
-
|
|
10159
|
-
|
|
10160
|
-
|
|
11717
|
+
getAllPrimitiveId(): Promise<Array<string>>;
|
|
11718
|
+
/**
|
|
11719
|
+
* 获取所有总线
|
|
11720
|
+
*
|
|
11721
|
+
* @beta
|
|
11722
|
+
* @returns 总线图元对象数组
|
|
11723
|
+
*/
|
|
11724
|
+
getAll(): Promise<Array<ISCH_PrimitiveBus>>;
|
|
10161
11725
|
}
|
|
10162
11726
|
|
|
10163
11727
|
/**
|
|
10164
|
-
* 原理图 & 符号 /
|
|
11728
|
+
* 原理图 & 符号 / 圆图元类
|
|
10165
11729
|
*
|
|
10166
11730
|
* @public
|
|
10167
11731
|
*/
|
|
10168
|
-
declare class
|
|
11732
|
+
declare class SCH_PrimitiveCircle implements ISCH_PrimitiveAPI {
|
|
10169
11733
|
/**
|
|
10170
|
-
*
|
|
11734
|
+
* 创建圆
|
|
10171
11735
|
*
|
|
10172
11736
|
* @beta
|
|
10173
|
-
* @param
|
|
10174
|
-
* @param
|
|
10175
|
-
* @param
|
|
10176
|
-
* @param referenceY - 参考点 Y
|
|
10177
|
-
* @param endX - 终止点 X
|
|
10178
|
-
* @param endY - 终止点 Y
|
|
11737
|
+
* @param centerX - 圆心 X
|
|
11738
|
+
* @param centerY - 圆心 Y
|
|
11739
|
+
* @param radius - 半径
|
|
10179
11740
|
* @param color - 颜色,`null` 表示默认
|
|
10180
11741
|
* @param fillColor - 填充颜色,`none` 表示无填充,`null` 表示默认
|
|
10181
11742
|
* @param lineWidth - 线宽,范围 `1-10`,`null` 表示默认
|
|
10182
|
-
* @param lineType - 线型,`
|
|
10183
|
-
* @
|
|
11743
|
+
* @param lineType - 线型,`null` 表示默认
|
|
11744
|
+
* @param fillStyle - 填充样式,`null` 表示默认
|
|
11745
|
+
* @returns 圆图元对象
|
|
10184
11746
|
*/
|
|
10185
|
-
create(
|
|
11747
|
+
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
11748
|
/**
|
|
10187
|
-
*
|
|
11749
|
+
* 删除圆
|
|
10188
11750
|
*
|
|
10189
11751
|
* @beta
|
|
10190
|
-
* @param primitiveIds -
|
|
11752
|
+
* @param primitiveIds - 圆的图元 ID 或圆图元对象
|
|
10191
11753
|
* @returns 删除操作是否成功
|
|
10192
11754
|
*/
|
|
10193
|
-
delete(primitiveIds: string |
|
|
11755
|
+
delete(primitiveIds: string | ISCH_PrimitiveCircle | Array<string> | Array<ISCH_PrimitiveCircle>): Promise<boolean>;
|
|
10194
11756
|
/**
|
|
10195
|
-
*
|
|
11757
|
+
* 修改圆
|
|
10196
11758
|
*
|
|
10197
11759
|
* @beta
|
|
10198
11760
|
* @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 圆弧图元对象
|
|
11761
|
+
* @param property - 修改参数
|
|
11762
|
+
* @returns 圆图元对象
|
|
10210
11763
|
*/
|
|
10211
|
-
modify(primitiveId: string |
|
|
11764
|
+
modify(primitiveId: string | ISCH_PrimitiveCircle, property: {
|
|
11765
|
+
centerX?: number;
|
|
11766
|
+
centerY?: number;
|
|
11767
|
+
radius?: number;
|
|
11768
|
+
color?: string | null;
|
|
11769
|
+
fillColor?: string | null;
|
|
11770
|
+
lineWidth?: number | null;
|
|
11771
|
+
lineType?: ESCH_PrimitiveLineType | null;
|
|
11772
|
+
fillStyle?: ESCH_PrimitiveFillStyle | null;
|
|
11773
|
+
}): Promise<ISCH_PrimitiveCircle | undefined>;
|
|
10212
11774
|
/**
|
|
10213
|
-
*
|
|
11775
|
+
* 获取圆
|
|
10214
11776
|
*
|
|
10215
11777
|
* @beta
|
|
10216
|
-
* @param primitiveIds -
|
|
10217
|
-
* @returns
|
|
11778
|
+
* @param primitiveIds - 圆的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
|
|
11779
|
+
* @returns 圆图元对象,`undefined` 表示获取失败
|
|
10218
11780
|
*/
|
|
10219
|
-
get(primitiveIds: string): Promise<
|
|
10220
|
-
get(primitiveIds: Array<string>): Promise<Array<ISCH_PrimitiveArc>>;
|
|
11781
|
+
get(primitiveIds: string): Promise<ISCH_PrimitiveCircle | undefined>;
|
|
10221
11782
|
/**
|
|
10222
|
-
*
|
|
11783
|
+
* 获取圆
|
|
10223
11784
|
*
|
|
10224
11785
|
* @beta
|
|
10225
|
-
* @
|
|
11786
|
+
* @remarks 如若传入多个图元 ID,任意图元 ID 未匹配到不影响其它图元的返回,即可能返回少于传入的图元 ID 数量的图元对象
|
|
11787
|
+
* @param primitiveIds - 圆的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
|
|
11788
|
+
* @returns 圆图元对象,空数组表示获取失败
|
|
11789
|
+
*/
|
|
11790
|
+
get(primitiveIds: Array<string>): Promise<Array<ISCH_PrimitiveCircle>>;
|
|
11791
|
+
/**
|
|
11792
|
+
* 获取所有圆的图元 ID
|
|
11793
|
+
*
|
|
11794
|
+
* @beta
|
|
11795
|
+
* @returns 圆的图元 ID 数组
|
|
10226
11796
|
*/
|
|
10227
11797
|
getAllPrimitiveId(): Promise<Array<string>>;
|
|
10228
11798
|
/**
|
|
10229
|
-
*
|
|
11799
|
+
* 获取所有圆
|
|
10230
11800
|
*
|
|
10231
11801
|
* @beta
|
|
10232
|
-
* @returns
|
|
11802
|
+
* @returns 圆图元对象数组
|
|
10233
11803
|
*/
|
|
10234
|
-
getAll(): Promise<Array<
|
|
11804
|
+
getAll(): Promise<Array<ISCH_PrimitiveCircle>>;
|
|
10235
11805
|
}
|
|
10236
11806
|
|
|
10237
11807
|
/**
|
|
10238
|
-
* 原理图 & 符号 /
|
|
11808
|
+
* 原理图 & 符号 / 器件图元类
|
|
10239
11809
|
*
|
|
10240
11810
|
* @public
|
|
10241
11811
|
*/
|
|
10242
|
-
declare class
|
|
11812
|
+
declare class SCH_PrimitiveComponent implements ISCH_PrimitiveAPI {
|
|
11813
|
+
private netFlagComponentUuid_Power;
|
|
11814
|
+
private netFlagComponentUuid_Ground;
|
|
11815
|
+
private netFlagComponentUuid_AnalogGround;
|
|
11816
|
+
private netFlagComponentUuid_ProtectGround;
|
|
11817
|
+
private netPortComponentUuid_IN;
|
|
11818
|
+
private netPortComponentUuid_OUT;
|
|
11819
|
+
private netPortComponentUuid_BI;
|
|
11820
|
+
private shortCircuitFlagComponentUuid;
|
|
11821
|
+
private defaultLibraryUuid;
|
|
11822
|
+
/* Excluded from this release type: __constructor */
|
|
10243
11823
|
/**
|
|
10244
|
-
*
|
|
11824
|
+
* 设置在扩展 API 中 Power 网络标识关联的器件 UUID
|
|
10245
11825
|
*
|
|
10246
11826
|
* @beta
|
|
10247
|
-
* @param
|
|
10248
|
-
* @
|
|
10249
|
-
* @param color - 总线颜色,`null` 表示默认
|
|
10250
|
-
* @param lineWidth - 线宽,范围 `1-10`,`null` 表示默认
|
|
10251
|
-
* @param lineType - 线型,`0` 实线,`1` 短划线,`2` 点线,`3` 点划线,`null` 表示默认
|
|
10252
|
-
* @returns 总线图元对象
|
|
11827
|
+
* @param component - 关联库器件
|
|
11828
|
+
* @returns 操作是否成功
|
|
10253
11829
|
*/
|
|
10254
|
-
|
|
11830
|
+
setNetFlagComponentUuid_Power(component: {
|
|
11831
|
+
libraryUuid: string;
|
|
11832
|
+
uuid: string;
|
|
11833
|
+
} | ILIB_DeviceItem | ILIB_DeviceSearchItem): Promise<boolean>;
|
|
10255
11834
|
/**
|
|
10256
|
-
*
|
|
11835
|
+
* 设置在扩展 API 中 Ground 网络标识关联的器件 UUID
|
|
10257
11836
|
*
|
|
10258
11837
|
* @beta
|
|
10259
|
-
* @param
|
|
10260
|
-
* @returns
|
|
11838
|
+
* @param component - 关联库器件
|
|
11839
|
+
* @returns 操作是否成功
|
|
10261
11840
|
*/
|
|
10262
|
-
|
|
11841
|
+
setNetFlagComponentUuid_Ground(component: {
|
|
11842
|
+
libraryUuid: string;
|
|
11843
|
+
uuid: string;
|
|
11844
|
+
} | ILIB_DeviceItem | ILIB_DeviceSearchItem): Promise<boolean>;
|
|
10263
11845
|
/**
|
|
10264
|
-
*
|
|
11846
|
+
* 设置在扩展 API 中 AnalogGround 网络标识关联的器件 UUID
|
|
10265
11847
|
*
|
|
10266
11848
|
* @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 总线图元对象
|
|
11849
|
+
* @param component - 关联库器件
|
|
11850
|
+
* @returns 操作是否成功
|
|
10274
11851
|
*/
|
|
10275
|
-
|
|
11852
|
+
setNetFlagComponentUuid_AnalogGround(component: {
|
|
11853
|
+
libraryUuid: string;
|
|
11854
|
+
uuid: string;
|
|
11855
|
+
} | ILIB_DeviceItem | ILIB_DeviceSearchItem): Promise<boolean>;
|
|
10276
11856
|
/**
|
|
10277
|
-
*
|
|
11857
|
+
* 设置在扩展 API 中 ProtectGround 网络标识关联的器件 UUID
|
|
10278
11858
|
*
|
|
10279
11859
|
* @beta
|
|
10280
|
-
* @param
|
|
10281
|
-
* @returns
|
|
11860
|
+
* @param component - 关联库器件
|
|
11861
|
+
* @returns 操作是否成功
|
|
10282
11862
|
*/
|
|
10283
|
-
|
|
10284
|
-
|
|
11863
|
+
setNetFlagComponentUuid_ProtectGround(component: {
|
|
11864
|
+
libraryUuid: string;
|
|
11865
|
+
uuid: string;
|
|
11866
|
+
} | ILIB_DeviceItem | ILIB_DeviceSearchItem): Promise<boolean>;
|
|
10285
11867
|
/**
|
|
10286
|
-
*
|
|
11868
|
+
* 设置在扩展 API 中 IN 网络端口关联的器件 UUID
|
|
10287
11869
|
*
|
|
10288
11870
|
* @beta
|
|
10289
|
-
* @
|
|
11871
|
+
* @param component - 关联库器件
|
|
11872
|
+
* @returns 操作是否成功
|
|
11873
|
+
*/
|
|
11874
|
+
setNetPortComponentUuid_IN(component: {
|
|
11875
|
+
libraryUuid: string;
|
|
11876
|
+
uuid: string;
|
|
11877
|
+
} | ILIB_DeviceItem | ILIB_DeviceSearchItem): Promise<boolean>;
|
|
11878
|
+
/**
|
|
11879
|
+
* 设置在扩展 API 中 OUT 网络端口关联的器件 UUID
|
|
11880
|
+
*
|
|
11881
|
+
* @beta
|
|
11882
|
+
* @param component - 关联库器件
|
|
11883
|
+
* @returns 操作是否成功
|
|
11884
|
+
*/
|
|
11885
|
+
setNetPortComponentUuid_OUT(component: {
|
|
11886
|
+
libraryUuid: string;
|
|
11887
|
+
uuid: string;
|
|
11888
|
+
} | ILIB_DeviceItem | ILIB_DeviceSearchItem): Promise<boolean>;
|
|
11889
|
+
/**
|
|
11890
|
+
* 设置在扩展 API 中 BI 网络端口关联的器件 UUID
|
|
11891
|
+
*
|
|
11892
|
+
* @beta
|
|
11893
|
+
* @param component - 关联库器件
|
|
11894
|
+
* @returns 操作是否成功
|
|
11895
|
+
*/
|
|
11896
|
+
setNetPortComponentUuid_BI(component: {
|
|
11897
|
+
libraryUuid: string;
|
|
11898
|
+
uuid: string;
|
|
11899
|
+
} | ILIB_DeviceItem | ILIB_DeviceSearchItem): Promise<boolean>;
|
|
11900
|
+
/**
|
|
11901
|
+
* 创建器件
|
|
11902
|
+
*
|
|
11903
|
+
* @beta
|
|
11904
|
+
* @param component - 关联库器件
|
|
11905
|
+
* @param subPartName - 子图块名称
|
|
11906
|
+
* @param x - 坐标 X
|
|
11907
|
+
* @param y - 坐标 Y
|
|
11908
|
+
* @param rotation - 旋转角度
|
|
11909
|
+
* @param mirror - 是否镜像
|
|
11910
|
+
* @param addIntoBom - 是否加入 BOM
|
|
11911
|
+
* @param addIntoPcb - 是否转到 PCB
|
|
11912
|
+
* @returns 器件图元对象
|
|
11913
|
+
*/
|
|
11914
|
+
create(component: {
|
|
11915
|
+
libraryUuid: string;
|
|
11916
|
+
uuid: string;
|
|
11917
|
+
} | ILIB_DeviceItem | ILIB_DeviceSearchItem, x: number, y: number, subPartName?: string, rotation?: number, mirror?: boolean, addIntoBom?: boolean, addIntoPcb?: boolean): Promise<ISCH_PrimitiveComponent | undefined>;
|
|
11918
|
+
/**
|
|
11919
|
+
* 创建网络标识
|
|
11920
|
+
*
|
|
11921
|
+
* @beta
|
|
11922
|
+
* @param identification - 标识类型
|
|
11923
|
+
* @param net - 网络名称
|
|
11924
|
+
* @param x - 坐标 X
|
|
11925
|
+
* @param y - 坐标 Y
|
|
11926
|
+
* @param rotation - 旋转角度
|
|
11927
|
+
* @param mirror - 是否镜像
|
|
11928
|
+
* @returns 器件图元对象
|
|
11929
|
+
*/
|
|
11930
|
+
createNetFlag(identification: 'Power' | 'Ground' | 'AnalogGround' | 'ProtectGround', net: string, x: number, y: number, rotation?: number, mirror?: boolean): Promise<ISCH_PrimitiveComponent | undefined>;
|
|
11931
|
+
/**
|
|
11932
|
+
* 创建网络端口
|
|
11933
|
+
*
|
|
11934
|
+
* @beta
|
|
11935
|
+
* @param direction - 端口方向
|
|
11936
|
+
* @param net - 网络名称
|
|
11937
|
+
* @param x - 坐标 X
|
|
11938
|
+
* @param y - 坐标 Y
|
|
11939
|
+
* @param rotation - 旋转角度
|
|
11940
|
+
* @param mirror - 是否镜像
|
|
11941
|
+
* @returns 器件图元对象
|
|
11942
|
+
*/
|
|
11943
|
+
createNetPort(direction: 'IN' | 'OUT' | 'BI', net: string, x: number, y: number, rotation?: number, mirror?: boolean): Promise<ISCH_PrimitiveComponent | undefined>;
|
|
11944
|
+
/**
|
|
11945
|
+
* 创建短接标识
|
|
11946
|
+
*
|
|
11947
|
+
* @beta
|
|
11948
|
+
* @param x - 坐标 X
|
|
11949
|
+
* @param y - 坐标 Y
|
|
11950
|
+
* @param rotation - 旋转角度
|
|
11951
|
+
* @param mirror - 是否镜像
|
|
11952
|
+
* @returns 器件图元对象
|
|
11953
|
+
*/
|
|
11954
|
+
createShortCircuitFlag(x: number, y: number, rotation?: number, mirror?: boolean): Promise<ISCH_PrimitiveComponent | undefined>;
|
|
11955
|
+
/**
|
|
11956
|
+
* 删除器件
|
|
11957
|
+
*
|
|
11958
|
+
* @beta
|
|
11959
|
+
* @param primitiveIds - 器件的图元 ID 或器件图元对象
|
|
11960
|
+
* @returns 删除操作是否成功
|
|
11961
|
+
*/
|
|
11962
|
+
delete(primitiveIds: string | ISCH_PrimitiveComponent | Array<string> | Array<ISCH_PrimitiveComponent>): Promise<boolean>;
|
|
11963
|
+
/**
|
|
11964
|
+
* 修改器件
|
|
11965
|
+
*
|
|
11966
|
+
* @beta
|
|
11967
|
+
* @remarks 仅当器件类型为 {@link ESCH_PrimitiveComponentType.COMPONENT | COMPONENT} 时允许使用该方法进行修改
|
|
11968
|
+
* @param primitiveId - 图元 ID
|
|
11969
|
+
* @param x - 坐标 X
|
|
11970
|
+
* @param y - 坐标 Y
|
|
11971
|
+
* @param rotation - 旋转角度
|
|
11972
|
+
* @param mirror - 是否镜像
|
|
11973
|
+
* @param libraryPath - 库路径,默认为系统库
|
|
11974
|
+
* @param addIntoBom - 是否加入 BOM
|
|
11975
|
+
* @param addIntoPcb - 是否转到 PCB
|
|
11976
|
+
* @param designator - 位号
|
|
11977
|
+
* @param name - 名称,`null` 表示留空
|
|
11978
|
+
* @param uniqueId - 唯一 ID,`null` 表示留空
|
|
11979
|
+
* @param manufacturer - 制造商,`null` 表示留空
|
|
11980
|
+
* @param manufacturerId - 制造商编号,`null` 表示留空
|
|
11981
|
+
* @param supplier - 供应商,`null` 表示留空
|
|
11982
|
+
* @param supplierId - 供应商编号,`null` 表示留空
|
|
11983
|
+
* @returns 器件图元对象
|
|
10290
11984
|
*/
|
|
10291
|
-
|
|
11985
|
+
modify(primitiveId: string | ISCH_PrimitiveComponent, property: {
|
|
11986
|
+
x?: number;
|
|
11987
|
+
y?: number;
|
|
11988
|
+
rotation?: number;
|
|
11989
|
+
mirror?: boolean;
|
|
11990
|
+
addIntoBom?: boolean;
|
|
11991
|
+
addIntoPcb?: boolean;
|
|
11992
|
+
designator?: string | null;
|
|
11993
|
+
name?: string | null;
|
|
11994
|
+
uniqueId?: string | null;
|
|
11995
|
+
manufacturer?: string | null;
|
|
11996
|
+
manufacturerId?: string | null;
|
|
11997
|
+
supplier?: string | null;
|
|
11998
|
+
supplierId?: string | null;
|
|
11999
|
+
otherProperty?: {
|
|
12000
|
+
[key: string]: string | number | boolean;
|
|
12001
|
+
};
|
|
12002
|
+
}): Promise<ISCH_PrimitiveComponent | undefined>;
|
|
10292
12003
|
/**
|
|
10293
|
-
*
|
|
12004
|
+
* 获取器件
|
|
10294
12005
|
*
|
|
10295
12006
|
* @beta
|
|
10296
|
-
* @
|
|
12007
|
+
* @param primitiveIds - 器件的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
|
|
12008
|
+
* @returns 器件图元对象,`undefined` 表示获取失败
|
|
10297
12009
|
*/
|
|
10298
|
-
|
|
10299
|
-
}
|
|
10300
|
-
|
|
10301
|
-
/**
|
|
10302
|
-
* 原理图 & 符号 / 圆图元类
|
|
10303
|
-
*
|
|
10304
|
-
* @public
|
|
10305
|
-
*/
|
|
10306
|
-
declare class SCH_PrimitiveCircle implements ISCH_PrimitiveAPI {
|
|
12010
|
+
get(primitiveIds: string): Promise<ISCH_PrimitiveComponent | undefined>;
|
|
10307
12011
|
/**
|
|
10308
|
-
*
|
|
12012
|
+
* 获取器件
|
|
10309
12013
|
*
|
|
10310
12014
|
* @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 圆图元对象
|
|
12015
|
+
* @remarks 如若传入多个图元 ID,任意图元 ID 未匹配到不影响其它图元的返回,即可能返回少于传入的图元 ID 数量的图元对象
|
|
12016
|
+
* @param primitiveIds - 器件的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
|
|
12017
|
+
* @returns 器件图元对象,空数组表示获取失败
|
|
10319
12018
|
*/
|
|
10320
|
-
|
|
12019
|
+
get(primitiveIds: Array<string>): Promise<Array<ISCH_PrimitiveComponent>>;
|
|
10321
12020
|
/**
|
|
10322
|
-
*
|
|
12021
|
+
* 获取所有器件的图元 ID
|
|
10323
12022
|
*
|
|
10324
12023
|
* @beta
|
|
10325
|
-
* @param
|
|
10326
|
-
* @
|
|
12024
|
+
* @param componentType - 器件类型
|
|
12025
|
+
* @param allSchematicPages - 是否获取所有原理图图页的器件
|
|
12026
|
+
* @returns 器件的图元 ID 数组
|
|
10327
12027
|
*/
|
|
10328
|
-
|
|
12028
|
+
getAllPrimitiveId(componentType?: string, allSchematicPages?: boolean): Promise<Array<string>>;
|
|
10329
12029
|
/**
|
|
10330
|
-
*
|
|
12030
|
+
* 获取所有器件
|
|
10331
12031
|
*
|
|
10332
12032
|
* @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 圆图元对象
|
|
12033
|
+
* @param componentType - 器件类型
|
|
12034
|
+
* @param allSchematicPages - 是否获取所有原理图图页的器件
|
|
12035
|
+
* @returns 器件图元对象数组
|
|
10342
12036
|
*/
|
|
10343
|
-
|
|
12037
|
+
getAll(componentType?: string, allSchematicPages?: boolean): Promise<Array<ISCH_PrimitiveComponent>>;
|
|
10344
12038
|
/**
|
|
10345
|
-
*
|
|
12039
|
+
* 获取器件关联的所有引脚
|
|
10346
12040
|
*
|
|
10347
12041
|
* @beta
|
|
10348
|
-
* @param
|
|
10349
|
-
* @returns
|
|
12042
|
+
* @param primitiveId - 器件图元 ID
|
|
12043
|
+
* @returns 器件引脚图元数组
|
|
10350
12044
|
*/
|
|
10351
|
-
|
|
10352
|
-
get(primitiveIds: Array<string>): Promise<Array<ISCH_PrimitiveCircle>>;
|
|
12045
|
+
getAllPinsByPrimitiveId(primitiveId: string): Promise<Array<ISCH_PrimitiveComponentPin> | undefined>;
|
|
10353
12046
|
/**
|
|
10354
|
-
*
|
|
12047
|
+
* 使用鼠标放置器件
|
|
10355
12048
|
*
|
|
10356
12049
|
* @beta
|
|
10357
|
-
* @
|
|
10358
|
-
|
|
10359
|
-
getAllPrimitiveId(): Promise<Array<string>>;
|
|
10360
|
-
/**
|
|
10361
|
-
* 获取所有圆
|
|
12050
|
+
* @remarks
|
|
12051
|
+
* 本接口模拟前端点击放置按钮,指定的器件将绑定到当前鼠标,并在用户后续点击时放置于画布
|
|
10362
12052
|
*
|
|
10363
|
-
*
|
|
10364
|
-
* @
|
|
12053
|
+
* 本接口的返回时机并不会等待用户的放置操作,一旦器件被绑定到鼠标,本接口将立即返回 `true` 的结果
|
|
12054
|
+
* @param component - 关联库器件
|
|
12055
|
+
* @returns 是否找到器件
|
|
10365
12056
|
*/
|
|
10366
|
-
|
|
12057
|
+
placeComponentWithMouse(component: {
|
|
12058
|
+
libraryUuid: string;
|
|
12059
|
+
uuid: string;
|
|
12060
|
+
} | ILIB_DeviceItem, subPartName?: string): Promise<boolean>;
|
|
12061
|
+
/* Excluded from this release type: getAllPropertyNames */
|
|
12062
|
+
/* Excluded from this release type: getComponentDetail */
|
|
12063
|
+
/* Excluded from this release type: checkComponentType */
|
|
10367
12064
|
}
|
|
10368
12065
|
|
|
10369
12066
|
/**
|
|
@@ -10371,7 +12068,7 @@ declare class SCH_PrimitiveCircle implements ISCH_PrimitiveAPI {
|
|
|
10371
12068
|
*
|
|
10372
12069
|
* @public
|
|
10373
12070
|
*/
|
|
10374
|
-
declare class
|
|
12071
|
+
declare class SCH_PrimitiveComponent3 implements ISCH_PrimitiveAPI {
|
|
10375
12072
|
private netFlagComponentUuid_Power;
|
|
10376
12073
|
private netFlagComponentUuid_Ground;
|
|
10377
12074
|
private netFlagComponentUuid_AnalogGround;
|
|
@@ -10392,7 +12089,7 @@ declare class SCH_PrimitiveComponent implements ISCH_PrimitiveAPI {
|
|
|
10392
12089
|
setNetFlagComponentUuid_Power(component: {
|
|
10393
12090
|
libraryUuid: string;
|
|
10394
12091
|
uuid: string;
|
|
10395
|
-
} | ILIB_DeviceItem): Promise<boolean>;
|
|
12092
|
+
} | ILIB_DeviceItem | ILIB_DeviceSearchItem): Promise<boolean>;
|
|
10396
12093
|
/**
|
|
10397
12094
|
* 设置在扩展 API 中 Ground 网络标识关联的器件 UUID
|
|
10398
12095
|
*
|
|
@@ -10403,7 +12100,7 @@ declare class SCH_PrimitiveComponent implements ISCH_PrimitiveAPI {
|
|
|
10403
12100
|
setNetFlagComponentUuid_Ground(component: {
|
|
10404
12101
|
libraryUuid: string;
|
|
10405
12102
|
uuid: string;
|
|
10406
|
-
} | ILIB_DeviceItem): Promise<boolean>;
|
|
12103
|
+
} | ILIB_DeviceItem | ILIB_DeviceSearchItem): Promise<boolean>;
|
|
10407
12104
|
/**
|
|
10408
12105
|
* 设置在扩展 API 中 AnalogGround 网络标识关联的器件 UUID
|
|
10409
12106
|
*
|
|
@@ -10414,7 +12111,7 @@ declare class SCH_PrimitiveComponent implements ISCH_PrimitiveAPI {
|
|
|
10414
12111
|
setNetFlagComponentUuid_AnalogGround(component: {
|
|
10415
12112
|
libraryUuid: string;
|
|
10416
12113
|
uuid: string;
|
|
10417
|
-
} | ILIB_DeviceItem): Promise<boolean>;
|
|
12114
|
+
} | ILIB_DeviceItem | ILIB_DeviceSearchItem): Promise<boolean>;
|
|
10418
12115
|
/**
|
|
10419
12116
|
* 设置在扩展 API 中 ProtectGround 网络标识关联的器件 UUID
|
|
10420
12117
|
*
|
|
@@ -10425,7 +12122,7 @@ declare class SCH_PrimitiveComponent implements ISCH_PrimitiveAPI {
|
|
|
10425
12122
|
setNetFlagComponentUuid_ProtectGround(component: {
|
|
10426
12123
|
libraryUuid: string;
|
|
10427
12124
|
uuid: string;
|
|
10428
|
-
} | ILIB_DeviceItem): Promise<boolean>;
|
|
12125
|
+
} | ILIB_DeviceItem | ILIB_DeviceSearchItem): Promise<boolean>;
|
|
10429
12126
|
/**
|
|
10430
12127
|
* 设置在扩展 API 中 IN 网络端口关联的器件 UUID
|
|
10431
12128
|
*
|
|
@@ -10436,7 +12133,7 @@ declare class SCH_PrimitiveComponent implements ISCH_PrimitiveAPI {
|
|
|
10436
12133
|
setNetPortComponentUuid_IN(component: {
|
|
10437
12134
|
libraryUuid: string;
|
|
10438
12135
|
uuid: string;
|
|
10439
|
-
} | ILIB_DeviceItem): Promise<boolean>;
|
|
12136
|
+
} | ILIB_DeviceItem | ILIB_DeviceSearchItem): Promise<boolean>;
|
|
10440
12137
|
/**
|
|
10441
12138
|
* 设置在扩展 API 中 OUT 网络端口关联的器件 UUID
|
|
10442
12139
|
*
|
|
@@ -10447,7 +12144,7 @@ declare class SCH_PrimitiveComponent implements ISCH_PrimitiveAPI {
|
|
|
10447
12144
|
setNetPortComponentUuid_OUT(component: {
|
|
10448
12145
|
libraryUuid: string;
|
|
10449
12146
|
uuid: string;
|
|
10450
|
-
} | ILIB_DeviceItem): Promise<boolean>;
|
|
12147
|
+
} | ILIB_DeviceItem | ILIB_DeviceSearchItem): Promise<boolean>;
|
|
10451
12148
|
/**
|
|
10452
12149
|
* 设置在扩展 API 中 BI 网络端口关联的器件 UUID
|
|
10453
12150
|
*
|
|
@@ -10458,7 +12155,7 @@ declare class SCH_PrimitiveComponent implements ISCH_PrimitiveAPI {
|
|
|
10458
12155
|
setNetPortComponentUuid_BI(component: {
|
|
10459
12156
|
libraryUuid: string;
|
|
10460
12157
|
uuid: string;
|
|
10461
|
-
} | ILIB_DeviceItem): Promise<boolean>;
|
|
12158
|
+
} | ILIB_DeviceItem | ILIB_DeviceSearchItem): Promise<boolean>;
|
|
10462
12159
|
/**
|
|
10463
12160
|
* 创建器件
|
|
10464
12161
|
*
|
|
@@ -10476,7 +12173,7 @@ declare class SCH_PrimitiveComponent implements ISCH_PrimitiveAPI {
|
|
|
10476
12173
|
create(component: {
|
|
10477
12174
|
libraryUuid: string;
|
|
10478
12175
|
uuid: string;
|
|
10479
|
-
} | ILIB_DeviceItem, x: number, y: number, subPartName?: string, rotation?: number, mirror?: boolean, addIntoBom?: boolean, addIntoPcb?: boolean): Promise<
|
|
12176
|
+
} | ILIB_DeviceItem | ILIB_DeviceSearchItem, x: number, y: number, subPartName?: string, rotation?: number, mirror?: boolean, addIntoBom?: boolean, addIntoPcb?: boolean): Promise<ISCH_PrimitiveComponent_2 | undefined>;
|
|
10480
12177
|
/**
|
|
10481
12178
|
* 创建网络标识
|
|
10482
12179
|
*
|
|
@@ -10489,7 +12186,7 @@ declare class SCH_PrimitiveComponent implements ISCH_PrimitiveAPI {
|
|
|
10489
12186
|
* @param mirror - 是否镜像
|
|
10490
12187
|
* @returns 器件图元对象
|
|
10491
12188
|
*/
|
|
10492
|
-
createNetFlag(identification: 'Power' | 'Ground' | 'AnalogGround' | 'ProtectGround', net: string, x: number, y: number, rotation?: number, mirror?: boolean): Promise<
|
|
12189
|
+
createNetFlag(identification: 'Power' | 'Ground' | 'AnalogGround' | 'ProtectGround', net: string, x: number, y: number, rotation?: number, mirror?: boolean): Promise<ISCH_PrimitiveComponent_2 | undefined>;
|
|
10493
12190
|
/**
|
|
10494
12191
|
* 创建网络端口
|
|
10495
12192
|
*
|
|
@@ -10502,7 +12199,7 @@ declare class SCH_PrimitiveComponent implements ISCH_PrimitiveAPI {
|
|
|
10502
12199
|
* @param mirror - 是否镜像
|
|
10503
12200
|
* @returns 器件图元对象
|
|
10504
12201
|
*/
|
|
10505
|
-
createNetPort(direction: 'IN' | 'OUT' | 'BI', net: string, x: number, y: number, rotation?: number, mirror?: boolean): Promise<
|
|
12202
|
+
createNetPort(direction: 'IN' | 'OUT' | 'BI', net: string, x: number, y: number, rotation?: number, mirror?: boolean): Promise<ISCH_PrimitiveComponent_2 | undefined>;
|
|
10506
12203
|
/**
|
|
10507
12204
|
* 创建短接标识
|
|
10508
12205
|
*
|
|
@@ -10513,7 +12210,7 @@ declare class SCH_PrimitiveComponent implements ISCH_PrimitiveAPI {
|
|
|
10513
12210
|
* @param mirror - 是否镜像
|
|
10514
12211
|
* @returns 器件图元对象
|
|
10515
12212
|
*/
|
|
10516
|
-
createShortCircuitFlag(x: number, y: number, rotation?: number, mirror?: boolean): Promise<
|
|
12213
|
+
createShortCircuitFlag(x: number, y: number, rotation?: number, mirror?: boolean): Promise<ISCH_PrimitiveComponent_2 | undefined>;
|
|
10517
12214
|
/**
|
|
10518
12215
|
* 删除器件
|
|
10519
12216
|
*
|
|
@@ -10521,7 +12218,7 @@ declare class SCH_PrimitiveComponent implements ISCH_PrimitiveAPI {
|
|
|
10521
12218
|
* @param primitiveIds - 器件的图元 ID 或器件图元对象
|
|
10522
12219
|
* @returns 删除操作是否成功
|
|
10523
12220
|
*/
|
|
10524
|
-
delete(primitiveIds: string |
|
|
12221
|
+
delete(primitiveIds: string | ISCH_PrimitiveComponent_2 | Array<string> | Array<ISCH_PrimitiveComponent_2>): Promise<boolean>;
|
|
10525
12222
|
/**
|
|
10526
12223
|
* 修改器件
|
|
10527
12224
|
*
|
|
@@ -10544,7 +12241,7 @@ declare class SCH_PrimitiveComponent implements ISCH_PrimitiveAPI {
|
|
|
10544
12241
|
* @param supplierId - 供应商编号,`null` 表示留空
|
|
10545
12242
|
* @returns 器件图元对象
|
|
10546
12243
|
*/
|
|
10547
|
-
modify(primitiveId: string |
|
|
12244
|
+
modify(primitiveId: string | ISCH_PrimitiveComponent_2, property: {
|
|
10548
12245
|
x?: number;
|
|
10549
12246
|
y?: number;
|
|
10550
12247
|
rotation?: number;
|
|
@@ -10561,7 +12258,7 @@ declare class SCH_PrimitiveComponent implements ISCH_PrimitiveAPI {
|
|
|
10561
12258
|
otherProperty?: {
|
|
10562
12259
|
[key: string]: string | number | boolean;
|
|
10563
12260
|
};
|
|
10564
|
-
}): Promise<
|
|
12261
|
+
}): Promise<ISCH_PrimitiveComponent_2 | undefined>;
|
|
10565
12262
|
/**
|
|
10566
12263
|
* 获取器件
|
|
10567
12264
|
*
|
|
@@ -10569,7 +12266,7 @@ declare class SCH_PrimitiveComponent implements ISCH_PrimitiveAPI {
|
|
|
10569
12266
|
* @param primitiveIds - 器件的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
|
|
10570
12267
|
* @returns 器件图元对象,`undefined` 表示获取失败
|
|
10571
12268
|
*/
|
|
10572
|
-
get(primitiveIds: string): Promise<
|
|
12269
|
+
get(primitiveIds: string): Promise<ISCH_PrimitiveComponent_2 | undefined>;
|
|
10573
12270
|
/**
|
|
10574
12271
|
* 获取器件
|
|
10575
12272
|
*
|
|
@@ -10578,7 +12275,7 @@ declare class SCH_PrimitiveComponent implements ISCH_PrimitiveAPI {
|
|
|
10578
12275
|
* @param primitiveIds - 器件的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
|
|
10579
12276
|
* @returns 器件图元对象,空数组表示获取失败
|
|
10580
12277
|
*/
|
|
10581
|
-
get(primitiveIds: Array<string>): Promise<Array<
|
|
12278
|
+
get(primitiveIds: Array<string>): Promise<Array<ISCH_PrimitiveComponent_2>>;
|
|
10582
12279
|
/**
|
|
10583
12280
|
* 获取所有器件的图元 ID
|
|
10584
12281
|
*
|
|
@@ -10596,9 +12293,31 @@ declare class SCH_PrimitiveComponent implements ISCH_PrimitiveAPI {
|
|
|
10596
12293
|
* @param allSchematicPages - 是否获取所有原理图图页的器件
|
|
10597
12294
|
* @returns 器件图元对象数组
|
|
10598
12295
|
*/
|
|
10599
|
-
getAll(componentType?: string, allSchematicPages?: boolean): Promise<Array<
|
|
10600
|
-
|
|
10601
|
-
|
|
12296
|
+
getAll(componentType?: string, allSchematicPages?: boolean): Promise<Array<ISCH_PrimitiveComponent_2>>;
|
|
12297
|
+
/**
|
|
12298
|
+
* 获取器件关联的所有引脚
|
|
12299
|
+
*
|
|
12300
|
+
* @beta
|
|
12301
|
+
* @param primitiveId - 器件图元 ID
|
|
12302
|
+
* @returns 器件引脚图元数组
|
|
12303
|
+
*/
|
|
12304
|
+
getAllPinsByPrimitiveId(primitiveId: string): Promise<Array<ISCH_PrimitiveComponentPin> | undefined>;
|
|
12305
|
+
/**
|
|
12306
|
+
* 使用鼠标放置器件
|
|
12307
|
+
*
|
|
12308
|
+
* @beta
|
|
12309
|
+
* @remarks
|
|
12310
|
+
* 本接口模拟前端点击放置按钮,指定的器件将绑定到当前鼠标,并在用户后续点击时放置于画布
|
|
12311
|
+
*
|
|
12312
|
+
* 本接口的返回时机并不会等待用户的放置操作,一旦器件被绑定到鼠标,本接口将立即返回 `true` 的结果
|
|
12313
|
+
* @param component - 关联库器件
|
|
12314
|
+
* @returns 是否找到器件
|
|
12315
|
+
*/
|
|
12316
|
+
placeComponentWithMouse(component: {
|
|
12317
|
+
libraryUuid: string;
|
|
12318
|
+
uuid: string;
|
|
12319
|
+
} | ILIB_DeviceItem, subPartName?: string): Promise<boolean>;
|
|
12320
|
+
/* Excluded from this release type: getAllPropertyNames */
|
|
10602
12321
|
/* Excluded from this release type: getComponentDetail */
|
|
10603
12322
|
/* Excluded from this release type: checkComponentType */
|
|
10604
12323
|
}
|
|
@@ -10625,7 +12344,7 @@ declare class SCH_PrimitivePin implements ISCH_PrimitiveAPI {
|
|
|
10625
12344
|
* @param pinType - 引脚类型
|
|
10626
12345
|
* @returns 引脚图元对象
|
|
10627
12346
|
*/
|
|
10628
|
-
create(x: number, y: number, pinNumber: string, pinName?: string, rotation?: number, pinLength?: number, pinColor?: string | null, pinShape?:
|
|
12347
|
+
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
12348
|
/**
|
|
10630
12349
|
* 删除引脚
|
|
10631
12350
|
*
|
|
@@ -10639,26 +12358,36 @@ declare class SCH_PrimitivePin implements ISCH_PrimitiveAPI {
|
|
|
10639
12358
|
*
|
|
10640
12359
|
* @beta
|
|
10641
12360
|
* @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 - 引脚类型
|
|
12361
|
+
* @param property - 修改参数
|
|
10651
12362
|
* @returns 引脚图元对象
|
|
10652
12363
|
*/
|
|
10653
|
-
modify(primitiveId: string | ISCH_PrimitivePin,
|
|
12364
|
+
modify(primitiveId: string | ISCH_PrimitivePin, property: {
|
|
12365
|
+
x?: number;
|
|
12366
|
+
y?: number;
|
|
12367
|
+
pinNumber?: string;
|
|
12368
|
+
pinName?: string;
|
|
12369
|
+
rotation?: number;
|
|
12370
|
+
pinLength?: number;
|
|
12371
|
+
pinColor?: string | null;
|
|
12372
|
+
pinShape?: ESCH_PrimitivePinShape;
|
|
12373
|
+
pinType?: ESCH_PrimitivePinType;
|
|
12374
|
+
}): Promise<ISCH_PrimitivePin | undefined>;
|
|
10654
12375
|
/**
|
|
10655
12376
|
* 获取引脚
|
|
10656
12377
|
*
|
|
10657
12378
|
* @beta
|
|
10658
12379
|
* @param primitiveIds - 引脚的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
|
|
10659
|
-
* @returns
|
|
12380
|
+
* @returns 引脚图元对象,`undefined` 表示获取失败
|
|
10660
12381
|
*/
|
|
10661
12382
|
get(primitiveIds: string): Promise<ISCH_PrimitivePin | undefined>;
|
|
12383
|
+
/**
|
|
12384
|
+
* 获取引脚
|
|
12385
|
+
*
|
|
12386
|
+
* @beta
|
|
12387
|
+
* @remarks 如若传入多个图元 ID,任意图元 ID 未匹配到不影响其它图元的返回,即可能返回少于传入的图元 ID 数量的图元对象
|
|
12388
|
+
* @param primitiveIds - 引脚的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
|
|
12389
|
+
* @returns 引脚图元对象,空数组表示获取失败
|
|
12390
|
+
*/
|
|
10662
12391
|
get(primitiveIds: Array<string>): Promise<Array<ISCH_PrimitivePin>>;
|
|
10663
12392
|
/**
|
|
10664
12393
|
* 获取所有引脚的图元 ID
|
|
@@ -10677,7 +12406,7 @@ declare class SCH_PrimitivePin implements ISCH_PrimitiveAPI {
|
|
|
10677
12406
|
}
|
|
10678
12407
|
|
|
10679
12408
|
/**
|
|
10680
|
-
* 原理图 & 符号 /
|
|
12409
|
+
* 原理图 & 符号 / 多边形(折线)图元类
|
|
10681
12410
|
*
|
|
10682
12411
|
* @public
|
|
10683
12412
|
*/
|
|
@@ -10690,10 +12419,10 @@ declare class SCH_PrimitivePolygon implements ISCH_PrimitiveAPI {
|
|
|
10690
12419
|
* @param color - 颜色,`null` 表示默认
|
|
10691
12420
|
* @param fillColor - 填充颜色,`none` 表示无填充,`null` 表示默认
|
|
10692
12421
|
* @param lineWidth - 线宽,范围 `1-10`,`null` 表示默认
|
|
10693
|
-
* @param lineType - 线型,`
|
|
12422
|
+
* @param lineType - 线型,`null` 表示默认
|
|
10694
12423
|
* @returns 多边形图元对象
|
|
10695
12424
|
*/
|
|
10696
|
-
create(line: Array<number>, color?: string | null, fillColor?: string | null, lineWidth?: number | null, lineType?:
|
|
12425
|
+
create(line: Array<number>, color?: string | null, fillColor?: string | null, lineWidth?: number | null, lineType?: ESCH_PrimitiveLineType | null): Promise<ISCH_PrimitivePolygon | undefined>;
|
|
10697
12426
|
/**
|
|
10698
12427
|
* 删除多边形
|
|
10699
12428
|
*
|
|
@@ -10707,22 +12436,32 @@ declare class SCH_PrimitivePolygon implements ISCH_PrimitiveAPI {
|
|
|
10707
12436
|
*
|
|
10708
12437
|
* @beta
|
|
10709
12438
|
* @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` 表示默认
|
|
12439
|
+
* @param property - 修改参数
|
|
10715
12440
|
* @returns 多边形图元对象
|
|
10716
12441
|
*/
|
|
10717
|
-
modify(primitiveId: string | ISCH_PrimitivePolygon,
|
|
12442
|
+
modify(primitiveId: string | ISCH_PrimitivePolygon, property: {
|
|
12443
|
+
line?: Array<number>;
|
|
12444
|
+
color?: string | null;
|
|
12445
|
+
fillColor?: string | null;
|
|
12446
|
+
lineWidth?: number | null;
|
|
12447
|
+
lineType?: ESCH_PrimitiveLineType | null;
|
|
12448
|
+
}): Promise<ISCH_PrimitivePolygon | undefined>;
|
|
10718
12449
|
/**
|
|
10719
12450
|
* 获取多边形
|
|
10720
12451
|
*
|
|
10721
12452
|
* @beta
|
|
10722
12453
|
* @param primitiveIds - 多边形的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
|
|
10723
|
-
* @returns
|
|
12454
|
+
* @returns 多边形图元对象,`undefined` 表示获取失败
|
|
10724
12455
|
*/
|
|
10725
12456
|
get(primitiveIds: string): Promise<ISCH_PrimitivePolygon | undefined>;
|
|
12457
|
+
/**
|
|
12458
|
+
* 获取多边形
|
|
12459
|
+
*
|
|
12460
|
+
* @beta
|
|
12461
|
+
* @remarks 如若传入多个图元 ID,任意图元 ID 未匹配到不影响其它图元的返回,即可能返回少于传入的图元 ID 数量的图元对象
|
|
12462
|
+
* @param primitiveIds - 多边形的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
|
|
12463
|
+
* @returns 多边形图元对象,空数组表示获取失败
|
|
12464
|
+
*/
|
|
10726
12465
|
get(primitiveIds: Array<string>): Promise<Array<ISCH_PrimitivePolygon>>;
|
|
10727
12466
|
/**
|
|
10728
12467
|
* 获取所有多边形的图元 ID
|
|
@@ -10759,10 +12498,11 @@ declare class SCH_PrimitiveRectangle implements ISCH_PrimitiveAPI {
|
|
|
10759
12498
|
* @param color - 颜色,`null` 表示默认
|
|
10760
12499
|
* @param fillColor - 填充颜色,`none` 表示无填充,`null` 表示默认
|
|
10761
12500
|
* @param lineWidth - 线宽,范围 `1-10`,`null` 表示默认
|
|
10762
|
-
* @param lineType - 线型,`
|
|
12501
|
+
* @param lineType - 线型,`null` 表示默认
|
|
12502
|
+
* @param fillStyle - 填充样式,`null` 表示默认
|
|
10763
12503
|
* @returns 矩形图元对象
|
|
10764
12504
|
*/
|
|
10765
|
-
create(topLeftX: number, topLeftY: number, width: number, height: number, cornerRadius?: number, rotation?: number, color?: string | null, fillColor?: string | null, lineWidth?: number | null, lineType?:
|
|
12505
|
+
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
12506
|
/**
|
|
10767
12507
|
* 删除矩形
|
|
10768
12508
|
*
|
|
@@ -10774,29 +12514,40 @@ declare class SCH_PrimitiveRectangle implements ISCH_PrimitiveAPI {
|
|
|
10774
12514
|
/**
|
|
10775
12515
|
* 修改矩形
|
|
10776
12516
|
*
|
|
10777
|
-
* @
|
|
12517
|
+
* @beta
|
|
10778
12518
|
* @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` 表示默认
|
|
12519
|
+
* @param property - 修改参数
|
|
10789
12520
|
* @returns 矩形图元对象
|
|
10790
12521
|
*/
|
|
10791
|
-
modify(primitiveId: string | ISCH_PrimitiveRectangle,
|
|
12522
|
+
modify(primitiveId: string | ISCH_PrimitiveRectangle, property: {
|
|
12523
|
+
topLeftX?: number;
|
|
12524
|
+
topLeftY?: number;
|
|
12525
|
+
width?: number;
|
|
12526
|
+
height?: number;
|
|
12527
|
+
cornerRadius?: number;
|
|
12528
|
+
rotation?: number;
|
|
12529
|
+
color?: string | null;
|
|
12530
|
+
fillColor?: string | null;
|
|
12531
|
+
lineWidth?: number | null;
|
|
12532
|
+
lineType?: ESCH_PrimitiveLineType | null;
|
|
12533
|
+
fillStyle?: ESCH_PrimitiveFillStyle | null;
|
|
12534
|
+
}): Promise<ISCH_PrimitiveRectangle | undefined>;
|
|
10792
12535
|
/**
|
|
10793
12536
|
* 获取矩形
|
|
10794
12537
|
*
|
|
10795
|
-
* @
|
|
12538
|
+
* @beta
|
|
10796
12539
|
* @param primitiveIds - 矩形的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
|
|
10797
|
-
* @returns
|
|
12540
|
+
* @returns 矩形图元对象,`undefined` 表示获取失败
|
|
10798
12541
|
*/
|
|
10799
12542
|
get(primitiveIds: string): Promise<ISCH_PrimitiveRectangle | undefined>;
|
|
12543
|
+
/**
|
|
12544
|
+
* 获取矩形
|
|
12545
|
+
*
|
|
12546
|
+
* @beta
|
|
12547
|
+
* @remarks 如若传入多个图元 ID,任意图元 ID 未匹配到不影响其它图元的返回,即可能返回少于传入的图元 ID 数量的图元对象
|
|
12548
|
+
* @param primitiveIds - 矩形的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
|
|
12549
|
+
* @returns 矩形图元对象,空数组表示获取失败
|
|
12550
|
+
*/
|
|
10800
12551
|
get(primitiveIds: Array<string>): Promise<Array<ISCH_PrimitiveRectangle>>;
|
|
10801
12552
|
/**
|
|
10802
12553
|
* 获取所有矩形的图元 ID
|
|
@@ -10837,7 +12588,7 @@ declare class SCH_PrimitiveText implements ISCH_PrimitiveAPI {
|
|
|
10837
12588
|
* @param alignMode - 对齐模式,`0` 左顶,`1` 中顶,`2` 右顶,`3` 左中,`4` 中中,`5` 右中,`6` 左底,`7` 中底,`8` 右底
|
|
10838
12589
|
* @returns 文本图元对象
|
|
10839
12590
|
*/
|
|
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
|
|
12591
|
+
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
12592
|
/**
|
|
10842
12593
|
* 删除文本
|
|
10843
12594
|
*
|
|
@@ -10845,49 +12596,59 @@ declare class SCH_PrimitiveText implements ISCH_PrimitiveAPI {
|
|
|
10845
12596
|
* @param primitiveIds - 文本的图元 ID 或文本图元对象
|
|
10846
12597
|
* @returns 删除操作是否成功
|
|
10847
12598
|
*/
|
|
10848
|
-
delete(primitiveIds: string | ISCH_PrimitiveText | Array<string> | Array<ISCH_PrimitiveText>): boolean
|
|
12599
|
+
delete(primitiveIds: string | ISCH_PrimitiveText | Array<string> | Array<ISCH_PrimitiveText>): Promise<boolean>;
|
|
10849
12600
|
/**
|
|
10850
12601
|
* 修改文本
|
|
10851
12602
|
*
|
|
10852
12603
|
* @beta
|
|
10853
12604
|
* @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` 右底
|
|
12605
|
+
* @param property - 修改参数
|
|
10865
12606
|
* @returns 文本图元对象
|
|
10866
12607
|
*/
|
|
10867
|
-
modify(primitiveId: string | ISCH_PrimitiveText,
|
|
12608
|
+
modify(primitiveId: string | ISCH_PrimitiveText, property: {
|
|
12609
|
+
x?: number;
|
|
12610
|
+
y?: number;
|
|
12611
|
+
content?: string;
|
|
12612
|
+
rotation?: number;
|
|
12613
|
+
textColor?: string | null;
|
|
12614
|
+
fontName?: string | null;
|
|
12615
|
+
fontSize?: number | null;
|
|
12616
|
+
bold?: boolean;
|
|
12617
|
+
italic?: boolean;
|
|
12618
|
+
underLine?: boolean;
|
|
12619
|
+
alignMode?: number;
|
|
12620
|
+
}): Promise<ISCH_PrimitiveText | undefined>;
|
|
10868
12621
|
/**
|
|
10869
12622
|
* 获取文本
|
|
10870
12623
|
*
|
|
10871
12624
|
* @beta
|
|
10872
12625
|
* @param primitiveIds - 文本的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
|
|
10873
|
-
* @returns
|
|
12626
|
+
* @returns 文本图元对象,`undefined` 表示获取失败
|
|
12627
|
+
*/
|
|
12628
|
+
get(primitiveIds: string): Promise<ISCH_PrimitiveText | undefined>;
|
|
12629
|
+
/**
|
|
12630
|
+
* 获取文本
|
|
12631
|
+
*
|
|
12632
|
+
* @beta
|
|
12633
|
+
* @remarks 如若传入多个图元 ID,任意图元 ID 未匹配到不影响其它图元的返回,即可能返回少于传入的图元 ID 数量的图元对象
|
|
12634
|
+
* @param primitiveIds - 文本的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
|
|
12635
|
+
* @returns 文本图元对象,空数组表示获取失败
|
|
10874
12636
|
*/
|
|
10875
|
-
get(primitiveIds: string): ISCH_PrimitiveText
|
|
10876
|
-
get(primitiveIds: Array<string>): Array<ISCH_PrimitiveText>;
|
|
12637
|
+
get(primitiveIds: Array<string>): Promise<Array<ISCH_PrimitiveText>>;
|
|
10877
12638
|
/**
|
|
10878
12639
|
* 获取所有文本的图元 ID
|
|
10879
12640
|
*
|
|
10880
12641
|
* @beta
|
|
10881
12642
|
* @returns 文本的图元 ID 数组
|
|
10882
12643
|
*/
|
|
10883
|
-
getAllPrimitiveId(): Array<string
|
|
12644
|
+
getAllPrimitiveId(): Promise<Array<string>>;
|
|
10884
12645
|
/**
|
|
10885
12646
|
* 获取所有文本
|
|
10886
12647
|
*
|
|
10887
12648
|
* @beta
|
|
10888
12649
|
* @returns 文本图元对象数组
|
|
10889
12650
|
*/
|
|
10890
|
-
getAll(): Array<ISCH_PrimitiveText
|
|
12651
|
+
getAll(): Promise<Array<ISCH_PrimitiveText>>;
|
|
10891
12652
|
}
|
|
10892
12653
|
|
|
10893
12654
|
/**
|
|
@@ -10911,10 +12672,10 @@ declare class SCH_PrimitiveWire implements ISCH_PrimitiveAPI {
|
|
|
10911
12672
|
* 2. 如若其他图元指定了网络,则创建失败
|
|
10912
12673
|
* @param color - 导线颜色,`null` 表示默认
|
|
10913
12674
|
* @param lineWidth - 线宽,范围 `1-10`,`null` 表示默认
|
|
10914
|
-
* @param lineType - 线型,`
|
|
12675
|
+
* @param lineType - 线型,`null` 表示默认
|
|
10915
12676
|
* @returns 导线图元对象
|
|
10916
12677
|
*/
|
|
10917
|
-
create(line:
|
|
12678
|
+
create(line: Array<number> | Array<Array<number>>, net?: string, color?: string | null, lineWidth?: number | null, lineType?: ESCH_PrimitiveLineType | null): Promise<ISCH_PrimitiveWire | undefined>;
|
|
10918
12679
|
/**
|
|
10919
12680
|
* 删除导线
|
|
10920
12681
|
*
|
|
@@ -10922,29 +12683,39 @@ declare class SCH_PrimitiveWire implements ISCH_PrimitiveAPI {
|
|
|
10922
12683
|
* @param primitiveIds - 导线的图元 ID 或导线图元对象
|
|
10923
12684
|
* @returns 删除操作是否成功
|
|
10924
12685
|
*/
|
|
10925
|
-
delete(primitiveIds: string | ISCH_PrimitiveWire | Array<string> | Array<ISCH_PrimitiveWire>): boolean
|
|
12686
|
+
delete(primitiveIds: string | ISCH_PrimitiveWire | Array<string> | Array<ISCH_PrimitiveWire>): Promise<boolean>;
|
|
10926
12687
|
/**
|
|
10927
12688
|
* 修改导线
|
|
10928
12689
|
*
|
|
10929
12690
|
* @beta
|
|
10930
12691
|
* @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` 表示默认
|
|
12692
|
+
* @param property - 修改参数
|
|
10936
12693
|
* @returns 导线图元对象
|
|
10937
12694
|
*/
|
|
10938
|
-
modify(primitiveId: string | ISCH_PrimitiveWire,
|
|
12695
|
+
modify(primitiveId: string | ISCH_PrimitiveWire, property: {
|
|
12696
|
+
line?: Array<number> | Array<Array<number>>;
|
|
12697
|
+
net?: string;
|
|
12698
|
+
color?: string | null;
|
|
12699
|
+
lineWidth?: number | null;
|
|
12700
|
+
lineType?: ESCH_PrimitiveLineType | null;
|
|
12701
|
+
}): Promise<ISCH_PrimitiveWire | undefined>;
|
|
10939
12702
|
/**
|
|
10940
12703
|
* 获取导线
|
|
10941
12704
|
*
|
|
10942
12705
|
* @beta
|
|
10943
|
-
* @param primitiveIds -
|
|
10944
|
-
* @returns
|
|
12706
|
+
* @param primitiveIds - 导线的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
|
|
12707
|
+
* @returns 导线图元对象,`undefined` 表示获取失败
|
|
10945
12708
|
*/
|
|
10946
|
-
get(primitiveIds: string): ISCH_PrimitiveWire | undefined
|
|
10947
|
-
|
|
12709
|
+
get(primitiveIds: string): Promise<ISCH_PrimitiveWire | undefined>;
|
|
12710
|
+
/**
|
|
12711
|
+
* 获取导线
|
|
12712
|
+
*
|
|
12713
|
+
* @beta
|
|
12714
|
+
* @remarks 如若传入多个图元 ID,任意图元 ID 未匹配到不影响其它图元的返回,即可能返回少于传入的图元 ID 数量的图元对象
|
|
12715
|
+
* @param primitiveIds - 导线的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
|
|
12716
|
+
* @returns 导线图元对象,空数组表示获取失败
|
|
12717
|
+
*/
|
|
12718
|
+
get(primitiveIds: Array<string>): Promise<Array<ISCH_PrimitiveWire>>;
|
|
10948
12719
|
/**
|
|
10949
12720
|
* 获取所有导线的图元 ID
|
|
10950
12721
|
*
|
|
@@ -10952,7 +12723,7 @@ declare class SCH_PrimitiveWire implements ISCH_PrimitiveAPI {
|
|
|
10952
12723
|
* @param net - 网络名称
|
|
10953
12724
|
* @returns 导线的图元 ID 数组
|
|
10954
12725
|
*/
|
|
10955
|
-
getAllPrimitiveId(net?: string | Array<string>): Array<string
|
|
12726
|
+
getAllPrimitiveId(net?: string | Array<string>): Promise<Array<string>>;
|
|
10956
12727
|
/**
|
|
10957
12728
|
* 获取所有导线
|
|
10958
12729
|
*
|
|
@@ -10960,7 +12731,7 @@ declare class SCH_PrimitiveWire implements ISCH_PrimitiveAPI {
|
|
|
10960
12731
|
* @param net - 网络名称
|
|
10961
12732
|
* @returns 导线图元对象数组
|
|
10962
12733
|
*/
|
|
10963
|
-
getAll(net?: string | Array<string>): Array<ISCH_PrimitiveWire
|
|
12734
|
+
getAll(net?: string | Array<string>): Promise<Array<ISCH_PrimitiveWire>>;
|
|
10964
12735
|
}
|
|
10965
12736
|
|
|
10966
12737
|
/**
|
|
@@ -11109,7 +12880,7 @@ declare class SYS_Dialog {
|
|
|
11109
12880
|
* @param title - 弹出窗口标题
|
|
11110
12881
|
* @param mainButtonTitle - 主要按钮标题
|
|
11111
12882
|
* @param buttonTitle - 主要按钮标题
|
|
11112
|
-
* @param callbackFn -
|
|
12883
|
+
* @param callbackFn - 回调函数
|
|
11113
12884
|
*/
|
|
11114
12885
|
showConfirmationMessage(content: string, title?: string, mainButtonTitle?: string, buttonTitle?: string, callbackFn?: (mainButtonClicked: boolean) => void): void;
|
|
11115
12886
|
/* Excluded from this release type: showInputDialog */
|
|
@@ -11180,6 +12951,20 @@ declare class SYS_Environment {
|
|
|
11180
12951
|
* @returns 是否为全离线模式
|
|
11181
12952
|
*/
|
|
11182
12953
|
isOfflineMode(): boolean;
|
|
12954
|
+
/**
|
|
12955
|
+
* 获取编辑器当前版本
|
|
12956
|
+
*
|
|
12957
|
+
* @public
|
|
12958
|
+
* @returns 编辑器当前版本
|
|
12959
|
+
*/
|
|
12960
|
+
getEditorCurrentVersion(): string;
|
|
12961
|
+
/**
|
|
12962
|
+
* 获取编辑器编译日期
|
|
12963
|
+
*
|
|
12964
|
+
* @public
|
|
12965
|
+
* @returns 编辑器编译日期
|
|
12966
|
+
*/
|
|
12967
|
+
getEditorCompliedDate(): string;
|
|
11183
12968
|
}
|
|
11184
12969
|
|
|
11185
12970
|
/**
|
|
@@ -11319,6 +13104,14 @@ declare class SYS_FileSystem {
|
|
|
11319
13104
|
/** 扩展 UUID */
|
|
11320
13105
|
private extensionUuid?;
|
|
11321
13106
|
/* Excluded from this release type: __constructor */
|
|
13107
|
+
/**
|
|
13108
|
+
* 获取扩展内的文件
|
|
13109
|
+
*
|
|
13110
|
+
* @public
|
|
13111
|
+
* @param uri - 文件路径
|
|
13112
|
+
* @returns File 格式文件
|
|
13113
|
+
*/
|
|
13114
|
+
getExtensionFile(uri: string): Promise<File | undefined>;
|
|
11322
13115
|
/**
|
|
11323
13116
|
* 打开读入文件窗口
|
|
11324
13117
|
*
|
|
@@ -11762,6 +13555,21 @@ declare class SYS_PanelControl {
|
|
|
11762
13555
|
isBottomPanelLocked(): Promise<boolean>;
|
|
11763
13556
|
}
|
|
11764
13557
|
|
|
13558
|
+
/**
|
|
13559
|
+
* 系统 / 设置类
|
|
13560
|
+
*
|
|
13561
|
+
* @public
|
|
13562
|
+
*/
|
|
13563
|
+
declare class SYS_Setting {
|
|
13564
|
+
/**
|
|
13565
|
+
* 全局恢复默认设置
|
|
13566
|
+
*
|
|
13567
|
+
* @remarks 将所有 EDA 设置恢复到默认状态,本操作将会丢失所有设置项,在调用时请特别注意
|
|
13568
|
+
* @returns 操作是否成功
|
|
13569
|
+
*/
|
|
13570
|
+
restoreDefault(): Promise<boolean>;
|
|
13571
|
+
}
|
|
13572
|
+
|
|
11765
13573
|
/**
|
|
11766
13574
|
* 系统 / 快捷键类
|
|
11767
13575
|
*
|
|
@@ -11778,7 +13586,7 @@ declare class SYS_ShortcutKey {
|
|
|
11778
13586
|
* @param callbackFn - 回调函数
|
|
11779
13587
|
* @returns 注册操作是否成功
|
|
11780
13588
|
*/
|
|
11781
|
-
registerShortcutKey(shortcutKey:
|
|
13589
|
+
registerShortcutKey(shortcutKey: TSYS_ShortcutKeys, title: string, callbackFn: (shortcutKey: TSYS_ShortcutKeys) => void | Promise<void>, documentType: Array<ESYS_ShortcutKeyEffectiveEditorDocumentType> | undefined, scene: Array<ESYS_ShortcutKeyEffectiveEditorScene> | undefined, hotkeyCmd: string): Promise<boolean>;
|
|
11782
13590
|
/**
|
|
11783
13591
|
* 反注册快捷键
|
|
11784
13592
|
*
|
|
@@ -11786,7 +13594,7 @@ declare class SYS_ShortcutKey {
|
|
|
11786
13594
|
* @param shortcutKey - 快捷键,不区分传入的排列顺序,将自动排序并查询匹配的快捷键
|
|
11787
13595
|
* @returns 反注册操作是否成功
|
|
11788
13596
|
*/
|
|
11789
|
-
unregisterShortcutKey(shortcutKey:
|
|
13597
|
+
unregisterShortcutKey(shortcutKey: TSYS_ShortcutKeys): Promise<boolean>;
|
|
11790
13598
|
/**
|
|
11791
13599
|
* 查询快捷键列表
|
|
11792
13600
|
*
|
|
@@ -11795,7 +13603,7 @@ declare class SYS_ShortcutKey {
|
|
|
11795
13603
|
* @returns 快捷键列表
|
|
11796
13604
|
*/
|
|
11797
13605
|
getShortcutKeys(includeSystem?: boolean): Promise<Array<{
|
|
11798
|
-
shortcutKey:
|
|
13606
|
+
shortcutKey: TSYS_ShortcutKeys;
|
|
11799
13607
|
title: string;
|
|
11800
13608
|
documentType: Array<ESYS_ShortcutKeyEffectiveEditorDocumentType>;
|
|
11801
13609
|
scene: Array<ESYS_ShortcutKeyEffectiveEditorScene>;
|
|
@@ -11861,7 +13669,7 @@ declare class SYS_Storage {
|
|
|
11861
13669
|
*
|
|
11862
13670
|
* @public
|
|
11863
13671
|
* @remarks
|
|
11864
|
-
*
|
|
13672
|
+
* 新建扩展用户配置也使用本接口,在设置时如果不存在将会自动新建
|
|
11865
13673
|
*
|
|
11866
13674
|
* 注意:本接口仅扩展有效,在独立脚本环境内调用将始终 `throw Error`
|
|
11867
13675
|
* @param key - 配置项
|
|
@@ -11955,6 +13763,15 @@ declare class SYS_ToastMessage {
|
|
|
11955
13763
|
showMessage(message: string, messageType?: ESYS_ToastMessageType, timer?: number, bottomPanel?: ESYS_BottomPanelTab, buttonTitle?: string, buttonCallbackFn?: string): void;
|
|
11956
13764
|
}
|
|
11957
13765
|
|
|
13766
|
+
/**
|
|
13767
|
+
* 系统 / 工具类
|
|
13768
|
+
*
|
|
13769
|
+
* @public
|
|
13770
|
+
*/
|
|
13771
|
+
declare class SYS_Tool {
|
|
13772
|
+
/* Excluded from this release type: netlistComparison */
|
|
13773
|
+
}
|
|
13774
|
+
|
|
11958
13775
|
/**
|
|
11959
13776
|
* 系统 / 单位类
|
|
11960
13777
|
*
|
|
@@ -12432,14 +14249,6 @@ declare type TPCB_PrimitiveSpecialPadShape = Array<[number, number, TPCB_Primiti
|
|
|
12432
14249
|
*
|
|
12433
14250
|
* @public
|
|
12434
14251
|
*/
|
|
12435
|
-
declare type
|
|
12436
|
-
|
|
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
|
-
}
|
|
14252
|
+
declare type TSYS_ShortcutKeys = 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' | ',' | '.' | '/'>;
|
|
12444
14253
|
|
|
12445
14254
|
|