@jlceda/pro-api-types 0.1.174 → 0.1.175
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 +182 -54
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -806,11 +806,6 @@ declare class DMT_Workspace {
|
|
|
806
806
|
getCurrentWorkspaceInfo(): Promise<IDMT_WorkspaceItem | undefined>;
|
|
807
807
|
}
|
|
808
808
|
|
|
809
|
-
declare enum EBoardOutlineSourceType {
|
|
810
|
-
FromKeepoutLayer = "keepout",
|
|
811
|
-
FromMechanicalLayer1 = "mechanical"
|
|
812
|
-
}
|
|
813
|
-
|
|
814
809
|
/**
|
|
815
810
|
* 嘉立创 EDA 专业版 API 接口
|
|
816
811
|
*
|
|
@@ -1029,12 +1024,6 @@ declare enum EDMT_ProjectCollaborationMode {
|
|
|
1029
1024
|
FREE = 1
|
|
1030
1025
|
}
|
|
1031
1026
|
|
|
1032
|
-
declare enum EImportOptionType {
|
|
1033
|
-
ImportDocument = "ImportDocument",
|
|
1034
|
-
ExtractLibraries = "ExtractLibraries",
|
|
1035
|
-
ImportDocumentExtractLibraries = "ImportDocumentExtractLibraries"
|
|
1036
|
-
}
|
|
1037
|
-
|
|
1038
1027
|
/**
|
|
1039
1028
|
* 层状态
|
|
1040
1029
|
*/
|
|
@@ -1079,6 +1068,22 @@ declare enum ELIB_LibraryType {
|
|
|
1079
1068
|
PANEL_LIBRARY = "29"
|
|
1080
1069
|
}
|
|
1081
1070
|
|
|
1071
|
+
/**
|
|
1072
|
+
* 预览视图类型
|
|
1073
|
+
*
|
|
1074
|
+
* @public
|
|
1075
|
+
*/
|
|
1076
|
+
declare enum ELIB_PreviewType {
|
|
1077
|
+
/** 符号预览 */
|
|
1078
|
+
SYMBOL = "S",
|
|
1079
|
+
/** 封装预览 */
|
|
1080
|
+
FOOTPRINT = "F",
|
|
1081
|
+
/** 产品实物预览 */
|
|
1082
|
+
PRODUCT = "P",
|
|
1083
|
+
/** 3D 预览 */
|
|
1084
|
+
MODEL_3D = "3D"
|
|
1085
|
+
}
|
|
1086
|
+
|
|
1082
1087
|
/**
|
|
1083
1088
|
* 符号类型
|
|
1084
1089
|
*
|
|
@@ -1361,6 +1366,18 @@ declare enum EPCB_LayerType {
|
|
|
1361
1366
|
CUSTOM = "CUSTOM"
|
|
1362
1367
|
}
|
|
1363
1368
|
|
|
1369
|
+
/**
|
|
1370
|
+
* 鼠标事件类型
|
|
1371
|
+
*
|
|
1372
|
+
* @public
|
|
1373
|
+
*/
|
|
1374
|
+
declare enum EPCB_MouseEventType {
|
|
1375
|
+
/** 选中 */
|
|
1376
|
+
SELECTED = "selected",
|
|
1377
|
+
/** 取消选中 */
|
|
1378
|
+
CLEAR_SELECTED = "clearSelected"
|
|
1379
|
+
}
|
|
1380
|
+
|
|
1364
1381
|
/**
|
|
1365
1382
|
* PCB 板材类型
|
|
1366
1383
|
*
|
|
@@ -1413,6 +1430,22 @@ declare enum EPCB_PrimitiveDimensionType {
|
|
|
1413
1430
|
ANGLE = "Protractor Dimension"
|
|
1414
1431
|
}
|
|
1415
1432
|
|
|
1433
|
+
/**
|
|
1434
|
+
* 图元事件类型
|
|
1435
|
+
*
|
|
1436
|
+
* @public
|
|
1437
|
+
*/
|
|
1438
|
+
declare enum EPCB_PrimitiveEventType {
|
|
1439
|
+
/** 删除 */
|
|
1440
|
+
DELETE = "delete",
|
|
1441
|
+
/** 创建 */
|
|
1442
|
+
CREATE = "create",
|
|
1443
|
+
/** 移动 */
|
|
1444
|
+
MOVE = "move",
|
|
1445
|
+
/** 属性变更(除位置外的属性变更) */
|
|
1446
|
+
CHANGE = "change"
|
|
1447
|
+
}
|
|
1448
|
+
|
|
1416
1449
|
/**
|
|
1417
1450
|
* 填充图元填充模式
|
|
1418
1451
|
*
|
|
@@ -1603,6 +1636,18 @@ declare enum EPCB_PrimitiveViaType {
|
|
|
1603
1636
|
SUTURE = 2
|
|
1604
1637
|
}
|
|
1605
1638
|
|
|
1639
|
+
/**
|
|
1640
|
+
* 鼠标事件类型
|
|
1641
|
+
*
|
|
1642
|
+
* @public
|
|
1643
|
+
*/
|
|
1644
|
+
declare enum ESCH_MouseEventType {
|
|
1645
|
+
/** 选中 */
|
|
1646
|
+
SELECTED = "selected",
|
|
1647
|
+
/** 取消选中 */
|
|
1648
|
+
CLEAR_SELECTED = "clearSelected"
|
|
1649
|
+
}
|
|
1650
|
+
|
|
1606
1651
|
/**
|
|
1607
1652
|
* 器件类型
|
|
1608
1653
|
*
|
|
@@ -1653,6 +1698,22 @@ declare enum ESCH_PrimitiveComponentType_2 {
|
|
|
1653
1698
|
CBB_SYMBOL = "block_symbol"
|
|
1654
1699
|
}
|
|
1655
1700
|
|
|
1701
|
+
/**
|
|
1702
|
+
* 图元事件类型
|
|
1703
|
+
*
|
|
1704
|
+
* @public
|
|
1705
|
+
*/
|
|
1706
|
+
declare enum ESCH_PrimitiveEventType {
|
|
1707
|
+
/** 删除 */
|
|
1708
|
+
DELETE = "delete",
|
|
1709
|
+
/** 创建 */
|
|
1710
|
+
CREATE = "create",
|
|
1711
|
+
/** 移动 */
|
|
1712
|
+
MOVE = "move",
|
|
1713
|
+
/** 属性变更(除位置外的属性变更) */
|
|
1714
|
+
CHANGE = "change"
|
|
1715
|
+
}
|
|
1716
|
+
|
|
1656
1717
|
/**
|
|
1657
1718
|
* 填充样式
|
|
1658
1719
|
*
|
|
@@ -1773,11 +1834,6 @@ declare enum ESCH_PrimitiveType {
|
|
|
1773
1834
|
ELLIPSE = "Ellipse"
|
|
1774
1835
|
}
|
|
1775
1836
|
|
|
1776
|
-
declare enum ESchPrimitiveStyle {
|
|
1777
|
-
UseSystemTheme = "system",
|
|
1778
|
-
UseSourceFileStyle = "custom"
|
|
1779
|
-
}
|
|
1780
|
-
|
|
1781
1837
|
/**
|
|
1782
1838
|
* 底部面板标签页
|
|
1783
1839
|
*
|
|
@@ -1822,6 +1878,58 @@ declare enum ESYS_HeaderMenuEnvironment {
|
|
|
1822
1878
|
PANEL_VIEW = "panelView"
|
|
1823
1879
|
}
|
|
1824
1880
|
|
|
1881
|
+
/**
|
|
1882
|
+
* 导入工程板边框来源
|
|
1883
|
+
*
|
|
1884
|
+
* @public
|
|
1885
|
+
* @remarks 仅 `fileType` 为 `Altium Designer` 或 `Protel` 时才可以指定该属性,否则将被忽略
|
|
1886
|
+
*/
|
|
1887
|
+
declare enum ESYS_ImportProjectBoardOutlineSource {
|
|
1888
|
+
/** 从 Keepout 层 */
|
|
1889
|
+
FROM_KEEPOUT_LAYER = "keepout",
|
|
1890
|
+
/** 从机械层 1 */
|
|
1891
|
+
FROM_MECHANICAL_LAYER_1 = "mechanical"
|
|
1892
|
+
}
|
|
1893
|
+
|
|
1894
|
+
/**
|
|
1895
|
+
* 导入工程导入选项
|
|
1896
|
+
*
|
|
1897
|
+
* @public
|
|
1898
|
+
*/
|
|
1899
|
+
declare enum ESYS_ImportProjectImportOption {
|
|
1900
|
+
/** 导入文档 */
|
|
1901
|
+
IMPORT_DOCUMENT = "ImportDocument",
|
|
1902
|
+
/** 提取库文件 */
|
|
1903
|
+
EXTRACT_LIBRARIES = "ExtractLibraries",
|
|
1904
|
+
/** 导入文档并提取库 */
|
|
1905
|
+
IMPORT_DOCUMENT_EXTRACT_LIBRARIES = "ImportDocumentExtractLibraries"
|
|
1906
|
+
}
|
|
1907
|
+
|
|
1908
|
+
/**
|
|
1909
|
+
* 导入工程原理图图元样式
|
|
1910
|
+
*
|
|
1911
|
+
* @public
|
|
1912
|
+
*/
|
|
1913
|
+
declare enum ESYS_ImportProjectSchematicObjectStyle {
|
|
1914
|
+
/** 使用系统主题 */
|
|
1915
|
+
USE_SYSTEM_THEME = "system",
|
|
1916
|
+
/** 使用源文件样式 */
|
|
1917
|
+
USE_SOURCE_FILE_STYLE = "custom"
|
|
1918
|
+
}
|
|
1919
|
+
|
|
1920
|
+
/**
|
|
1921
|
+
* 导入工程过孔阻焊扩展
|
|
1922
|
+
*
|
|
1923
|
+
* @public
|
|
1924
|
+
* @remarks 仅 `fileType` 为 `Altium Designer` 或 `Protel` 时才可以指定该属性,否则将被忽略
|
|
1925
|
+
*/
|
|
1926
|
+
declare enum ESYS_ImportProjectViaSolderMaskExpansion {
|
|
1927
|
+
/** 全部盖油 */
|
|
1928
|
+
ALL_COVER_OIL = "cover",
|
|
1929
|
+
/** 跟随源设置 */
|
|
1930
|
+
FOLLOW_ORIGINAL_SETTING = "custom"
|
|
1931
|
+
}
|
|
1932
|
+
|
|
1825
1933
|
/**
|
|
1826
1934
|
* 左侧面板标签页
|
|
1827
1935
|
*
|
|
@@ -2047,11 +2155,6 @@ declare enum ESYS_WindowOpenTarget {
|
|
|
2047
2155
|
SELF = "_self"
|
|
2048
2156
|
}
|
|
2049
2157
|
|
|
2050
|
-
declare enum EViaSolderMaskExpansion {
|
|
2051
|
-
AllCoverOil = "cover",
|
|
2052
|
-
FollowOriginalSetting = "custom"
|
|
2053
|
-
}
|
|
2054
|
-
|
|
2055
2158
|
/**
|
|
2056
2159
|
* 板子属性
|
|
2057
2160
|
*
|
|
@@ -2726,6 +2829,8 @@ declare interface ILIB_ExtendLibraryDeviceFunctions extends ILIB_ExtendLibraryFu
|
|
|
2726
2829
|
supplierPart?: string;
|
|
2727
2830
|
manufacturer?: string;
|
|
2728
2831
|
description?: string;
|
|
2832
|
+
updateTime?: number;
|
|
2833
|
+
createTime?: number;
|
|
2729
2834
|
}>>;
|
|
2730
2835
|
/**
|
|
2731
2836
|
* 获取支持的符号类型
|
|
@@ -2786,6 +2891,12 @@ declare interface ILIB_ExtendLibraryFunctions {
|
|
|
2786
2891
|
* @returns 库元素列表
|
|
2787
2892
|
*/
|
|
2788
2893
|
getList: (props: ILIB_ExtendLibrarySearchProperty<any>) => Promise<ILIB_ExtendLibrarySearchResult<any>>;
|
|
2894
|
+
/**
|
|
2895
|
+
* 获取支持的预览类型
|
|
2896
|
+
*
|
|
2897
|
+
* @returns 预览类型数组
|
|
2898
|
+
*/
|
|
2899
|
+
getSupportedPreviewTypes: () => Promise<Array<ELIB_PreviewType>>;
|
|
2789
2900
|
}
|
|
2790
2901
|
|
|
2791
2902
|
/**
|
|
@@ -4137,7 +4248,7 @@ declare class IPCB_PrimitiveComponent implements IPCB_Primitive {
|
|
|
4137
4248
|
*/
|
|
4138
4249
|
setState_PrimitiveLock(primitiveLock: boolean): IPCB_PrimitiveComponent;
|
|
4139
4250
|
/**
|
|
4140
|
-
*
|
|
4251
|
+
* 设置属性状态:是否加入 BOM
|
|
4141
4252
|
*
|
|
4142
4253
|
* @beta
|
|
4143
4254
|
* @param addIntoBom - 是否加入 BOM
|
|
@@ -5992,7 +6103,7 @@ declare class IPCB_PrimitivePour implements IPCB_Primitive {
|
|
|
5992
6103
|
*/
|
|
5993
6104
|
getState_PourFillMethod(): any;
|
|
5994
6105
|
/**
|
|
5995
|
-
*
|
|
6106
|
+
* 获取属性状态:是否保留孤岛
|
|
5996
6107
|
*
|
|
5997
6108
|
* @public
|
|
5998
6109
|
* @returns 是否保留孤岛
|
|
@@ -6626,7 +6737,7 @@ declare class IPCB_PrimitiveString implements IPCB_Primitive {
|
|
|
6626
6737
|
*/
|
|
6627
6738
|
setState_Text(text: string): IPCB_PrimitiveString;
|
|
6628
6739
|
/**
|
|
6629
|
-
*
|
|
6740
|
+
* 设置属性状态:字体
|
|
6630
6741
|
*
|
|
6631
6742
|
* @beta
|
|
6632
6743
|
* @param fontFamily - 字体
|
|
@@ -7842,7 +7953,7 @@ declare class ISCH_PrimitiveComponent implements ISCH_Primitive {
|
|
|
7842
7953
|
*
|
|
7843
7954
|
* @beta
|
|
7844
7955
|
* @param rotation - 旋转角度
|
|
7845
|
-
* @returns
|
|
7956
|
+
* @returns 器���图元对象
|
|
7846
7957
|
*/
|
|
7847
7958
|
setState_Rotation(rotation: number): ISCH_PrimitiveComponent;
|
|
7848
7959
|
/**
|
|
@@ -9207,7 +9318,7 @@ declare class ISCH_PrimitiveText implements ISCH_Primitive {
|
|
|
9207
9318
|
*/
|
|
9208
9319
|
setState_TextColor(textColor: string | null): ISCH_PrimitiveText;
|
|
9209
9320
|
/**
|
|
9210
|
-
*
|
|
9321
|
+
* 设置属性状态:字体名称
|
|
9211
9322
|
*
|
|
9212
9323
|
* @beta
|
|
9213
9324
|
* @param fontName - 字体名称
|
|
@@ -10469,7 +10580,7 @@ declare class PCB_Document {
|
|
|
10469
10580
|
*
|
|
10470
10581
|
* @public
|
|
10471
10582
|
* @remarks
|
|
10472
|
-
* 嘉立创 EDA
|
|
10583
|
+
* 嘉立创 EDA 专业版前端显示的��标均为画布原点;
|
|
10473
10584
|
*
|
|
10474
10585
|
* 嘉立创 EDA 专业版 API 使用的均为数据原点;
|
|
10475
10586
|
*
|
|
@@ -10525,7 +10636,7 @@ declare class PCB_Document {
|
|
|
10525
10636
|
* @remarks
|
|
10526
10637
|
* 本接口在前端画布上定位到指定的区域,区域数据为相对于数据原点的偏移;
|
|
10527
10638
|
*
|
|
10528
|
-
*
|
|
10639
|
+
* 例如:传入数据为 `{left: 0, right: 60, top: 100, bottom: -20}` =\> `navigateToRegion(0, 60, 100, -20)`,
|
|
10529
10640
|
* 则画布将会定位到以 `[30, 40]` 为中心的,`x` 轴方向长度为 `60`,`y` 轴方向长度为 `120` 的矩形范围;
|
|
10530
10641
|
*
|
|
10531
10642
|
* 本接口不进行缩放操作,但会生成指示定位中心及表示区域范围的矩形框;
|
|
@@ -10935,7 +11046,7 @@ declare class PCB_Drc {
|
|
|
10935
11046
|
* @param padPair - 焊盘对
|
|
10936
11047
|
* @returns 操作是否成功
|
|
10937
11048
|
* @example 有三种不同的用法,确保画布上已有对应的焊盘。 分别是 一,游离焊盘-游离焊盘;二,器件焊盘 - 器件焊盘;三,器件焊盘 - 游离焊盘
|
|
10938
|
-
* await eda.pcb_Drc.addPadPairToPadPairGroup('test',['e0','e1']) //
|
|
11049
|
+
* await eda.pcb_Drc.addPadPairToPadPairGroup('test',['e0','e1']) // 游离焊盘-游离焊盘
|
|
10939
11050
|
* await eda.pcb_Drc.addPadPairToPadPairGroup('test',['R1:1','R1:2']) // 器件焊盘 - 器件焊盘
|
|
10940
11051
|
* await eda.pcb_Drc.addPadPairToPadPairGroup('test',['R1:1','e1']) // 器件焊盘 - 游离焊盘
|
|
10941
11052
|
*/
|
|
@@ -10986,7 +11097,8 @@ declare class PCB_Event {
|
|
|
10986
11097
|
* @param callFn - 事件触发时的回调函数
|
|
10987
11098
|
* @param onlyOnce - 是否仅监听一次
|
|
10988
11099
|
*/
|
|
10989
|
-
addMouseEventListener(id: string, eventType: 'all' |
|
|
11100
|
+
addMouseEventListener(id: string, eventType: 'all' | EPCB_MouseEventType, callFn: (eventType: EPCB_MouseEventType) => void | Promise<void>, onlyOnce?: boolean): void;
|
|
11101
|
+
/* Excluded from this release type: addPrimitiveEventListener */
|
|
10990
11102
|
/**
|
|
10991
11103
|
* 移除事件监听
|
|
10992
11104
|
*
|
|
@@ -11227,7 +11339,7 @@ declare class PCB_ManufactureData {
|
|
|
11227
11339
|
* @beta
|
|
11228
11340
|
* @returns BOM 模板列表
|
|
11229
11341
|
*/
|
|
11230
|
-
getBomTemplates(): Promise<string
|
|
11342
|
+
getBomTemplates(): Promise<Array<string>>;
|
|
11231
11343
|
/**
|
|
11232
11344
|
* 上传 BOM 模板文件
|
|
11233
11345
|
*
|
|
@@ -11621,7 +11733,7 @@ declare class PCB_Net {
|
|
|
11621
11733
|
* 取消高亮网络
|
|
11622
11734
|
*
|
|
11623
11735
|
* @beta
|
|
11624
|
-
* @remarks
|
|
11736
|
+
* @remarks 本接口的返回值为结果导向,��果该网络原先未高亮,也将返回 `true`
|
|
11625
11737
|
* @param net - 网络名称
|
|
11626
11738
|
* @returns 操作是否成功
|
|
11627
11739
|
*/
|
|
@@ -12029,7 +12141,7 @@ declare class PCB_PrimitiveFill implements IPCB_PrimitiveAPI {
|
|
|
12029
12141
|
*
|
|
12030
12142
|
* @beta
|
|
12031
12143
|
* @remarks 如若传入多个图元 ID,任意图元 ID 未匹配到不影响其它图元的返回,即可能返回少于传入的图元 ID 数量的图元对象
|
|
12032
|
-
* @param primitiveIds - 填充的图元 ID
|
|
12144
|
+
* @param primitiveIds - 填充的图元 ID,可��为字符串或字符串数组,如若为数组,则返回的也是数组
|
|
12033
12145
|
* @returns 填充图元对象,空数组表示获取失败
|
|
12034
12146
|
*/
|
|
12035
12147
|
get(primitiveIds: Array<string>): Promise<Array<IPCB_PrimitiveFill>>;
|
|
@@ -12845,7 +12957,7 @@ declare class PCB_SelectControl {
|
|
|
12845
12957
|
* 获取当前鼠标在画布上的位置
|
|
12846
12958
|
*
|
|
12847
12959
|
* @beta
|
|
12848
|
-
* @returns 鼠标在画布上的位置,`undefined`
|
|
12960
|
+
* @returns 鼠标在画布上的位置,`undefined` 代表当前鼠标不���画布上
|
|
12849
12961
|
*/
|
|
12850
12962
|
getCurrentMousePosition(): Promise<{
|
|
12851
12963
|
x: number;
|
|
@@ -12932,7 +13044,8 @@ declare class SCH_Event {
|
|
|
12932
13044
|
* @param callFn - 事件触发时的回调函数
|
|
12933
13045
|
* @param onlyOnce - 是否仅监听一次
|
|
12934
13046
|
*/
|
|
12935
|
-
addMouseEventListener(id: string, eventType: 'all' |
|
|
13047
|
+
addMouseEventListener(id: string, eventType: 'all' | ESCH_MouseEventType, callFn: (eventType: ESCH_MouseEventType) => void | Promise<void>, onlyOnce?: boolean): void;
|
|
13048
|
+
/* Excluded from this release type: addPrimitiveEventListener */
|
|
12936
13049
|
/**
|
|
12937
13050
|
* 移除事件监听
|
|
12938
13051
|
*
|
|
@@ -12958,6 +13071,7 @@ declare class SCH_Event {
|
|
|
12958
13071
|
* @remarks 获取当前原理图图页的生产资料文件及快捷下单
|
|
12959
13072
|
*/
|
|
12960
13073
|
declare class SCH_ManufactureData {
|
|
13074
|
+
/* Excluded from this release type: getAssemblyVariantsConfigs */
|
|
12961
13075
|
/**
|
|
12962
13076
|
* 获取 BOM 文件
|
|
12963
13077
|
*
|
|
@@ -12970,12 +13084,13 @@ declare class SCH_ManufactureData {
|
|
|
12970
13084
|
* @param statistics - 统计,包含所有需要启用的统计项的名称
|
|
12971
13085
|
* @param property - 属性,包含所有需要启用的属性的名称
|
|
12972
13086
|
* @param columns - 列的属性及排序,`title`、`sort`、`group`、`orderWeight` 不传入则取默认值,`null` 代表 **无** 或 **空**
|
|
13087
|
+
* @param assemblyVariantsConfig - 装配体变量配置
|
|
12973
13088
|
* @returns BOM 文件数据
|
|
12974
13089
|
*/
|
|
12975
13090
|
getBomFile(fileName?: string, fileType?: 'xlsx' | 'csv', template?: string, filterOptions?: Array<{
|
|
12976
13091
|
property: string;
|
|
12977
13092
|
includeValue: boolean | string;
|
|
12978
|
-
}>, statistics?: Array<string>, property?: Array<string>, columns?: Array<IPCB_BomPropertiesTableColumns
|
|
13093
|
+
}>, statistics?: Array<string>, property?: Array<string>, columns?: Array<IPCB_BomPropertiesTableColumns>, assemblyVariantsConfig?: string): Promise<File | undefined>;
|
|
12979
13094
|
/**
|
|
12980
13095
|
* 获取网表文件(Netlist)
|
|
12981
13096
|
*
|
|
@@ -13632,7 +13747,7 @@ declare class SCH_PrimitiveComponent3 implements ISCH_PrimitiveAPI {
|
|
|
13632
13747
|
uuid: string;
|
|
13633
13748
|
} | ILIB_DeviceItem | ILIB_DeviceSearchItem): Promise<boolean>;
|
|
13634
13749
|
/**
|
|
13635
|
-
* 设置在扩展 API 中 AnalogGround
|
|
13750
|
+
* 设置在扩展 API 中 AnalogGround 网络标��关联的器件 UUID
|
|
13636
13751
|
*
|
|
13637
13752
|
* @beta
|
|
13638
13753
|
* @param component - 关联库器件
|
|
@@ -13698,7 +13813,7 @@ declare class SCH_PrimitiveComponent3 implements ISCH_PrimitiveAPI {
|
|
|
13698
13813
|
* @param mirror - 是否镜像
|
|
13699
13814
|
* @param addIntoBom - 是否加入 BOM
|
|
13700
13815
|
* @param addIntoPcb - 是否转到 PCB
|
|
13701
|
-
* @returns
|
|
13816
|
+
* @returns 器件图元对象
|
|
13702
13817
|
*/
|
|
13703
13818
|
create(component: {
|
|
13704
13819
|
libraryUuid: string;
|
|
@@ -14076,7 +14191,7 @@ declare class SCH_PrimitiveRectangle implements ISCH_PrimitiveAPI {
|
|
|
14076
14191
|
* 获取矩形
|
|
14077
14192
|
*
|
|
14078
14193
|
* @beta
|
|
14079
|
-
* @remarks 如若传入多个图元 ID,任意图元 ID
|
|
14194
|
+
* @remarks 如若传入多个图元 ID,任意图元 ID 未匹配到不影响其它图元的返回,即可能返回少于传入的图元 ID 数量的图元对象
|
|
14080
14195
|
* @param primitiveIds - 矩形的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
|
|
14081
14196
|
* @returns 矩形图元对象,空数组表示获取失败
|
|
14082
14197
|
*/
|
|
@@ -14603,9 +14718,10 @@ declare class SYS_FileManager {
|
|
|
14603
14718
|
*
|
|
14604
14719
|
* @param fileName - 文件名
|
|
14605
14720
|
* @param password - 加密密码
|
|
14721
|
+
* @param fileType - 文件格式
|
|
14606
14722
|
* @returns 工程文件数据,`undefined` 表示当前未打开工程或数据获取失败
|
|
14607
14723
|
*/
|
|
14608
|
-
getProjectFile(fileName?: string, password?: string): Promise<File | undefined>;
|
|
14724
|
+
getProjectFile(fileName?: string, password?: string, fileType?: '.epro' | '.epro2'): Promise<File | undefined>;
|
|
14609
14725
|
/**
|
|
14610
14726
|
* 获取文档文件
|
|
14611
14727
|
*
|
|
@@ -14616,9 +14732,10 @@ declare class SYS_FileManager {
|
|
|
14616
14732
|
* 注意:本接口需要启用 **工程设计图 \> 文件导出** 权限,没有权限调用将始终 `throw Error`
|
|
14617
14733
|
* @param fileName - 文件名
|
|
14618
14734
|
* @param password - 加密密码
|
|
14735
|
+
* @param fileType - 文件格式
|
|
14619
14736
|
* @returns 文档文件数据,`undefined` 表示当前未打开文档或数据获取失败
|
|
14620
14737
|
*/
|
|
14621
|
-
getDocumentFile(fileName?: string, password?: string): Promise<File | undefined>;
|
|
14738
|
+
getDocumentFile(fileName?: string, password?: string, fileType?: '.epro' | '.epro2'): Promise<File | undefined>;
|
|
14622
14739
|
/**
|
|
14623
14740
|
* 获取文档源码
|
|
14624
14741
|
*
|
|
@@ -14647,7 +14764,7 @@ declare class SYS_FileManager {
|
|
|
14647
14764
|
/**
|
|
14648
14765
|
* 使用工程 UUID 获取工程文件
|
|
14649
14766
|
*
|
|
14650
|
-
* @
|
|
14767
|
+
* @beta
|
|
14651
14768
|
* @remarks
|
|
14652
14769
|
* 可以使用 {@link SYS_FileSystem.saveFile} 接口将文件导出到本地文件系统
|
|
14653
14770
|
*
|
|
@@ -14655,9 +14772,10 @@ declare class SYS_FileManager {
|
|
|
14655
14772
|
* @param projectUuid - 工程 UUID
|
|
14656
14773
|
* @param fileName - 文件名
|
|
14657
14774
|
* @param password - 加密密码
|
|
14775
|
+
* @param fileType - 文件格式
|
|
14658
14776
|
* @returns 工程文件数据,`undefined` 表示当前未打开工程或数据获取失败
|
|
14659
14777
|
*/
|
|
14660
|
-
getProjectFileByProjectUuid(projectUuid: string, fileName?: string, password?: string): Promise<File | undefined>;
|
|
14778
|
+
getProjectFileByProjectUuid(projectUuid: string, fileName?: string, password?: string, fileType?: '.epro' | '.epro2'): Promise<File | undefined>;
|
|
14661
14779
|
/**
|
|
14662
14780
|
* 使用器件 UUID 获取器件文件
|
|
14663
14781
|
*
|
|
@@ -14700,7 +14818,12 @@ declare class SYS_FileManager {
|
|
|
14700
14818
|
* @param password - 加密密码
|
|
14701
14819
|
* @returns 复用模块文件数据,`undefined` 表示数据获取失败
|
|
14702
14820
|
*/
|
|
14703
|
-
getCbbFileByCbbUuid(cbbUuid: string, libraryUuid?: string,
|
|
14821
|
+
getCbbFileByCbbUuid(cbbUuid: string, libraryUuid?: string, props?: {
|
|
14822
|
+
fileName?: string;
|
|
14823
|
+
password?: string;
|
|
14824
|
+
templateSchematicUuid?: string;
|
|
14825
|
+
templatePcbUuid?: string;
|
|
14826
|
+
}): Promise<File | undefined>;
|
|
14704
14827
|
/**
|
|
14705
14828
|
* 使用面板库 UUID 获取面板库文件
|
|
14706
14829
|
*
|
|
@@ -14726,8 +14849,8 @@ declare class SYS_FileManager {
|
|
|
14726
14849
|
* @returns 导入的工程的简略工程属性
|
|
14727
14850
|
*/
|
|
14728
14851
|
importProjectByProjectFile(projectFile: File, fileType?: 'JLCEDA' | 'JLCEDA Pro' | 'EasyEDA' | 'EasyEDA Pro' | 'Allegro' | 'OrCAD' | 'EAGLE' | 'KiCad' | 'PADS' | 'LTspice', props?: {
|
|
14729
|
-
importOption?:
|
|
14730
|
-
schematicObjectStyle?:
|
|
14852
|
+
importOption?: ESYS_ImportProjectImportOption;
|
|
14853
|
+
schematicObjectStyle?: ESYS_ImportProjectSchematicObjectStyle;
|
|
14731
14854
|
associateFootprint?: boolean;
|
|
14732
14855
|
associate3DModel?: boolean;
|
|
14733
14856
|
importFootprintNotesLayer?: boolean;
|
|
@@ -14758,10 +14881,10 @@ declare class SYS_FileManager {
|
|
|
14758
14881
|
* @returns 导入的工程的简略工程属性
|
|
14759
14882
|
*/
|
|
14760
14883
|
importProjectByProjectFile(projectFile: File, fileType?: 'Altium Designer' | 'Protel', props?: {
|
|
14761
|
-
importOption?:
|
|
14762
|
-
viaSolderMaskExpansion?:
|
|
14763
|
-
boardOutlineSource?:
|
|
14764
|
-
schematicObjectStyle?:
|
|
14884
|
+
importOption?: ESYS_ImportProjectImportOption;
|
|
14885
|
+
viaSolderMaskExpansion?: ESYS_ImportProjectViaSolderMaskExpansion;
|
|
14886
|
+
boardOutlineSource?: ESYS_ImportProjectBoardOutlineSource;
|
|
14887
|
+
schematicObjectStyle?: ESYS_ImportProjectSchematicObjectStyle;
|
|
14765
14888
|
associateFootprint?: boolean;
|
|
14766
14889
|
associate3DModel?: boolean;
|
|
14767
14890
|
importFootprintNotesLayer?: boolean;
|
|
@@ -15129,7 +15252,7 @@ declare class SYS_IFrame {
|
|
|
15129
15252
|
*
|
|
15130
15253
|
* @beta
|
|
15131
15254
|
* @remarks
|
|
15132
|
-
* 关闭指定 ID
|
|
15255
|
+
* 关闭指定 ID 的内联框架窗口
|
|
15133
15256
|
*
|
|
15134
15257
|
* 注意:本接口仅扩展有效,在独立脚本环境内调用将始终 `throw Error`
|
|
15135
15258
|
* @param id - 内联框架窗口 ID,如若传入 `undefined`,将关闭由本扩展打开的所有内联框架窗口
|
|
@@ -15143,6 +15266,8 @@ declare class SYS_IFrame {
|
|
|
15143
15266
|
* @remarks 本接口为结果导向的:
|
|
15144
15267
|
* 如若未找到指定内联框架窗口,接口将会返回 `false`;
|
|
15145
15268
|
* 如若在执行操作前该内联框架窗口已处于隐藏状态,接口将会返回 `true`
|
|
15269
|
+
*
|
|
15270
|
+
* 注意:本接口仅扩展有效,在独立脚本环境内调用将始终 `throw Error`
|
|
15146
15271
|
* @param id - 内联框架窗口 ID
|
|
15147
15272
|
* @returns 操作是否成功
|
|
15148
15273
|
*/
|
|
@@ -15154,14 +15279,17 @@ declare class SYS_IFrame {
|
|
|
15154
15279
|
* @remarks 本接口为结果导向的:
|
|
15155
15280
|
* 如若未找到指定内联框架窗口,接口将会返回 `false`;
|
|
15156
15281
|
* 如若在执行操作前该内联框架窗口已处于显示状态,接口将会返回 `true`
|
|
15282
|
+
*
|
|
15283
|
+
* 注意:本接口仅扩展有效,在独立脚本环境内调用将始终 `throw Error`
|
|
15157
15284
|
* @param id - 内联框架窗口 ID
|
|
15158
15285
|
* @returns 操作是否成功
|
|
15159
15286
|
*/
|
|
15160
15287
|
showIFrame(id?: string): Promise<boolean>;
|
|
15288
|
+
/* Excluded from this release type: isIFrameAlreadyExist */
|
|
15161
15289
|
}
|
|
15162
15290
|
|
|
15163
15291
|
/**
|
|
15164
|
-
* 系统 /
|
|
15292
|
+
* 系统 / 加载与进���条类
|
|
15165
15293
|
*
|
|
15166
15294
|
* @public
|
|
15167
15295
|
*/
|
|
@@ -15276,7 +15404,7 @@ declare class SYS_Message {
|
|
|
15276
15404
|
* 展示跟随鼠标的提示
|
|
15277
15405
|
*
|
|
15278
15406
|
* @beta
|
|
15279
|
-
* @remarks
|
|
15407
|
+
* @remarks 同一时间只能展示一条提示,如果展示新的提示,则之前的提示将被自动移除
|
|
15280
15408
|
* @param tip - 提示内容
|
|
15281
15409
|
* @param msTimeout - 展示时间,以毫秒(ms)为单位,如若不传入则持续展示,直到调用 {@link SYS_Message.removeFollowMouseTip | removeFollowMouseTip} 或被其它提示覆盖
|
|
15282
15410
|
*/
|
|
@@ -15694,7 +15822,7 @@ declare class SYS_Storage {
|
|
|
15694
15822
|
*
|
|
15695
15823
|
* @public
|
|
15696
15824
|
* @remarks
|
|
15697
|
-
*
|
|
15825
|
+
* 此举会删除当前扩展的所有用户配置信息,请��慎操作
|
|
15698
15826
|
*
|
|
15699
15827
|
* 注意:本接口仅扩展有效,在独立脚本环境内调用将始终 `throw Error`
|
|
15700
15828
|
* @returns 操作是否成功
|