@jlceda/pro-api-types 0.1.169 → 0.1.171
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 +477 -42
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -738,8 +738,8 @@ declare class DMT_SelectControl {
|
|
|
738
738
|
* 获取当前文档的属性
|
|
739
739
|
*
|
|
740
740
|
* @beta
|
|
741
|
-
* @remarks
|
|
742
|
-
* @returns 文档类型、UUID、所属工程的 UUID 组成的对象,如若为 `undefined` 则获取失败
|
|
741
|
+
* @remarks 将会获取当前打开且拥有最后输入焦点的文档的文档类型、UUID、所属工程的 UUID 或所属库的 UUID
|
|
742
|
+
* @returns 文档类型、UUID、所属工程的 UUID、所属库的 UUID 组成的对象,如若为 `undefined` 则获取失败
|
|
743
743
|
*/
|
|
744
744
|
getCurrentDocumentInfo(): Promise<IDMT_EditorDocumentItem | undefined>;
|
|
745
745
|
}
|
|
@@ -883,6 +883,7 @@ declare class EDA {
|
|
|
883
883
|
sys_FileManager: SYS_FileManager;
|
|
884
884
|
sys_FileSystem: SYS_FileSystem;
|
|
885
885
|
sys_FontManager: SYS_FontManager;
|
|
886
|
+
sys_HeaderMenu: SYS_HeaderMenu;
|
|
886
887
|
sys_I18n: SYS_I18n;
|
|
887
888
|
sys_IFrame: SYS_IFrame;
|
|
888
889
|
sys_LoadingAndProgressBar: SYS_LoadingAndProgressBar;
|
|
@@ -1083,7 +1084,7 @@ declare enum ELIB_LibraryType {
|
|
|
1083
1084
|
* @public
|
|
1084
1085
|
*/
|
|
1085
1086
|
declare enum ELIB_SymbolType {
|
|
1086
|
-
/**
|
|
1087
|
+
/** 元件符号 */
|
|
1087
1088
|
COMPONENT = 2,
|
|
1088
1089
|
/** 网络标识 */
|
|
1089
1090
|
NET_FLAG = 18,
|
|
@@ -1094,7 +1095,13 @@ declare enum ELIB_SymbolType {
|
|
|
1094
1095
|
/** 无电气 */
|
|
1095
1096
|
NON_ELECTRICAL = 21,
|
|
1096
1097
|
/** 短接标识 */
|
|
1097
|
-
SHORT_CIRCUIT_FLAG = 22
|
|
1098
|
+
SHORT_CIRCUIT_FLAG = 22,
|
|
1099
|
+
/** 跨页连接标识 */
|
|
1100
|
+
OFF_PAGE_CONNECTOR = "\u5F00\u53D1\u8BF7\u4FEE\u65391",
|
|
1101
|
+
/** 差分对标识 */
|
|
1102
|
+
DIFFERENTIAL_PAIRS_FLAG = "\u5F00\u53D1\u8BF7\u4FEE\u65392",
|
|
1103
|
+
/** 复用模块符号 */
|
|
1104
|
+
CBB_SYMBOL = "\u5F00\u53D1\u8BF7\u4FEE\u65393"
|
|
1098
1105
|
}
|
|
1099
1106
|
|
|
1100
1107
|
/**
|
|
@@ -1623,7 +1630,7 @@ declare enum ESCH_PrimitiveComponentType {
|
|
|
1623
1630
|
* @public
|
|
1624
1631
|
*/
|
|
1625
1632
|
declare enum ESCH_PrimitiveComponentType_2 {
|
|
1626
|
-
/**
|
|
1633
|
+
/** 元件符号 */
|
|
1627
1634
|
COMPONENT = "part",
|
|
1628
1635
|
/** 图纸 */
|
|
1629
1636
|
DRAWING = "sheet",
|
|
@@ -1636,7 +1643,13 @@ declare enum ESCH_PrimitiveComponentType_2 {
|
|
|
1636
1643
|
/** 短接标识 */
|
|
1637
1644
|
SHORT_CIRCUIT_FLAG = "short_symbol",
|
|
1638
1645
|
/** 网络标签 */
|
|
1639
|
-
NET_LABEL = "netlabel"
|
|
1646
|
+
NET_LABEL = "netlabel",
|
|
1647
|
+
/** 跨页连接标识 */
|
|
1648
|
+
OFF_PAGE_CONNECTOR = "offPageConnector",
|
|
1649
|
+
/** 差分对标识 */
|
|
1650
|
+
DIFFERENTIAL_PAIRS_FLAG = "diffPairsFlag",
|
|
1651
|
+
/** 复用模块符号 */
|
|
1652
|
+
CBB_SYMBOL = "block_symbol"
|
|
1640
1653
|
}
|
|
1641
1654
|
|
|
1642
1655
|
/**
|
|
@@ -1782,6 +1795,32 @@ declare enum ESYS_BottomPanelTab {
|
|
|
1782
1795
|
FIND = "findResult"
|
|
1783
1796
|
}
|
|
1784
1797
|
|
|
1798
|
+
/**
|
|
1799
|
+
* 顶部菜单环境
|
|
1800
|
+
*
|
|
1801
|
+
* @public
|
|
1802
|
+
*/
|
|
1803
|
+
declare enum ESYS_HeaderMenuEnvironment {
|
|
1804
|
+
/** 主页 */
|
|
1805
|
+
HOME = "home",
|
|
1806
|
+
/** 空白页 */
|
|
1807
|
+
BLANK = "blank",
|
|
1808
|
+
/** 原理图 */
|
|
1809
|
+
SCHEMATIC = "sch",
|
|
1810
|
+
/** 符号(包括 CBB 符号) */
|
|
1811
|
+
SYMBOL = "symbol",
|
|
1812
|
+
/** PCB */
|
|
1813
|
+
PCB = "pcb",
|
|
1814
|
+
/** 封装 */
|
|
1815
|
+
FOOTPRINT = "footprint",
|
|
1816
|
+
/** PCB 预览(包括 2D、3D 预览) */
|
|
1817
|
+
PCB_VIEW = "pcbView",
|
|
1818
|
+
/** 面板 */
|
|
1819
|
+
PANEL = "panel",
|
|
1820
|
+
/** 面板预览 */
|
|
1821
|
+
PANEL_VIEW = "panelView"
|
|
1822
|
+
}
|
|
1823
|
+
|
|
1785
1824
|
/**
|
|
1786
1825
|
* 左侧面板标签页
|
|
1787
1826
|
*
|
|
@@ -2057,7 +2096,9 @@ declare interface IDMT_EditorDocumentItem {
|
|
|
2057
2096
|
/** 文档 UUID */
|
|
2058
2097
|
uuid: string;
|
|
2059
2098
|
/** 文档所属工程 UUID */
|
|
2060
|
-
parentProjectUuid
|
|
2099
|
+
parentProjectUuid?: string;
|
|
2100
|
+
/** 库文档所属库 UUID */
|
|
2101
|
+
parentLibraryUuid?: string;
|
|
2061
2102
|
}
|
|
2062
2103
|
|
|
2063
2104
|
/**
|
|
@@ -2248,6 +2289,8 @@ declare interface IDMT_SchematicItem {
|
|
|
2248
2289
|
parentProjectUuid: string;
|
|
2249
2290
|
/** 所属板子 UUID */
|
|
2250
2291
|
parentBoardUuid?: string;
|
|
2292
|
+
/** 复用模块原理图关联的模块符号 */
|
|
2293
|
+
cbbSymbol?: ILIB_SymbolItem;
|
|
2251
2294
|
}
|
|
2252
2295
|
|
|
2253
2296
|
/**
|
|
@@ -2370,6 +2413,8 @@ declare interface ILIB_CbbItem {
|
|
|
2370
2413
|
classification?: ILIB_ClassificationIndex;
|
|
2371
2414
|
/** 描述 */
|
|
2372
2415
|
description?: string;
|
|
2416
|
+
/** 下属板子 */
|
|
2417
|
+
boards: Array<IDMT_BoardItem>;
|
|
2373
2418
|
}
|
|
2374
2419
|
|
|
2375
2420
|
/**
|
|
@@ -2627,6 +2672,231 @@ declare interface ILIB_DeviceSearchItem {
|
|
|
2627
2672
|
jlcLibraryCategory?: ELIB_DeviceJlcLibraryCategory;
|
|
2628
2673
|
}
|
|
2629
2674
|
|
|
2675
|
+
/**
|
|
2676
|
+
* 外部库复用模块方法
|
|
2677
|
+
*
|
|
2678
|
+
* @public
|
|
2679
|
+
*/
|
|
2680
|
+
declare interface ILIB_ExtendLibraryCbbFunctions extends ILIB_ExtendLibraryFunctions {
|
|
2681
|
+
getList: (props: any) => Promise<any>;
|
|
2682
|
+
}
|
|
2683
|
+
|
|
2684
|
+
/**
|
|
2685
|
+
* 外部库分类索引
|
|
2686
|
+
*
|
|
2687
|
+
* @public
|
|
2688
|
+
* @remarks
|
|
2689
|
+
* 支持外部库使用名称或 UUID 作为分类的唯一 ID 索引
|
|
2690
|
+
*/
|
|
2691
|
+
declare interface ILIB_ExtendLibraryClassificationIndex {
|
|
2692
|
+
/** 一级分类名称 */
|
|
2693
|
+
primaryClassificationName?: string;
|
|
2694
|
+
/** 一级分类 UUID */
|
|
2695
|
+
primaryClassificationUuid?: string;
|
|
2696
|
+
/** 二级分类名称 */
|
|
2697
|
+
secondaryClassificationName?: string;
|
|
2698
|
+
/** 二级分类 UUID */
|
|
2699
|
+
secondaryClassificationUuid?: string;
|
|
2700
|
+
}
|
|
2701
|
+
|
|
2702
|
+
/**
|
|
2703
|
+
* 外部库器件方法
|
|
2704
|
+
*
|
|
2705
|
+
* @public
|
|
2706
|
+
*/
|
|
2707
|
+
declare interface ILIB_ExtendLibraryDeviceFunctions extends ILIB_ExtendLibraryFunctions {
|
|
2708
|
+
getList: (props: ILIB_ExtendLibrarySearchProperty<{
|
|
2709
|
+
attributes?: {
|
|
2710
|
+
[key: string]: string;
|
|
2711
|
+
};
|
|
2712
|
+
symbolType?: ELIB_SymbolType;
|
|
2713
|
+
}>) => Promise<ILIB_ExtendLibrarySearchResult<ILIB_ExtendLibraryItemIndex & {
|
|
2714
|
+
classification?: ILIB_ExtendLibraryClassificationIndex;
|
|
2715
|
+
symbol?: ILIB_ExtendLibraryItem & {
|
|
2716
|
+
symbolType: ELIB_SymbolType;
|
|
2717
|
+
};
|
|
2718
|
+
footprint?: ILIB_ExtendLibraryItem;
|
|
2719
|
+
model3d?: ILIB_ExtendLibraryItem;
|
|
2720
|
+
value?: string;
|
|
2721
|
+
supplierPart?: string;
|
|
2722
|
+
manufacturer?: string;
|
|
2723
|
+
description?: string;
|
|
2724
|
+
}>>;
|
|
2725
|
+
}
|
|
2726
|
+
|
|
2727
|
+
/**
|
|
2728
|
+
* 外部库封装方法
|
|
2729
|
+
*
|
|
2730
|
+
* @public
|
|
2731
|
+
*/
|
|
2732
|
+
declare interface ILIB_ExtendLibraryFootprintFunctions extends ILIB_ExtendLibraryFunctions {
|
|
2733
|
+
getList: (props: ILIB_ExtendLibrarySearchProperty<{}>) => Promise<ILIB_ExtendLibrarySearchResult<ILIB_ExtendLibraryItem & {
|
|
2734
|
+
classification?: ILIB_ExtendLibraryClassificationIndex;
|
|
2735
|
+
description?: string;
|
|
2736
|
+
version?: string;
|
|
2737
|
+
updateTime?: number;
|
|
2738
|
+
createTime?: number;
|
|
2739
|
+
creator?: ILIB_ExtendLibraryUserIndex;
|
|
2740
|
+
modifier?: ILIB_ExtendLibraryUserIndex;
|
|
2741
|
+
owner?: ILIB_ExtendLibraryUserIndex;
|
|
2742
|
+
}>>;
|
|
2743
|
+
}
|
|
2744
|
+
|
|
2745
|
+
/**
|
|
2746
|
+
* 外部库方法
|
|
2747
|
+
*
|
|
2748
|
+
* @public
|
|
2749
|
+
*/
|
|
2750
|
+
declare interface ILIB_ExtendLibraryFunctions {
|
|
2751
|
+
/**
|
|
2752
|
+
* 获取详细信息
|
|
2753
|
+
*
|
|
2754
|
+
* @param uuid - UUID
|
|
2755
|
+
* @returns 库元素详细信息
|
|
2756
|
+
*/
|
|
2757
|
+
getDetail: (uuid: string) => Promise<any>;
|
|
2758
|
+
/**
|
|
2759
|
+
* 获取分类树
|
|
2760
|
+
*
|
|
2761
|
+
* @returns 分类树
|
|
2762
|
+
*/
|
|
2763
|
+
getClassificationTree: () => Promise<Array<{
|
|
2764
|
+
name: string;
|
|
2765
|
+
uuid?: string;
|
|
2766
|
+
children?: Array<{
|
|
2767
|
+
name: string;
|
|
2768
|
+
uuid?: string;
|
|
2769
|
+
}> | undefined;
|
|
2770
|
+
}>>;
|
|
2771
|
+
/**
|
|
2772
|
+
* 获取列表
|
|
2773
|
+
*
|
|
2774
|
+
* @param props - 搜索参数
|
|
2775
|
+
* @returns 库元素列表
|
|
2776
|
+
*/
|
|
2777
|
+
getList: (props: ILIB_ExtendLibrarySearchProperty<any>) => Promise<ILIB_ExtendLibrarySearchResult<any>>;
|
|
2778
|
+
/**
|
|
2779
|
+
* 获取支持的符号类型
|
|
2780
|
+
*
|
|
2781
|
+
* @returns 符号类型数组
|
|
2782
|
+
*/
|
|
2783
|
+
getSupportedSymbolTypes: () => Promise<Array<ELIB_SymbolType>>;
|
|
2784
|
+
}
|
|
2785
|
+
|
|
2786
|
+
/**
|
|
2787
|
+
* 外部库元素
|
|
2788
|
+
*
|
|
2789
|
+
* @public
|
|
2790
|
+
* @remarks
|
|
2791
|
+
* 此处需要传递 `url` 或 `data` 字段,如若同时传入,则取 `data` 的数据,忽略 `url` 字段
|
|
2792
|
+
*
|
|
2793
|
+
* 如若仅传入 `url` 字段,将会对其发起请求并尝试获取其库文件
|
|
2794
|
+
*
|
|
2795
|
+
* `data` 的数据可为 Blob 格式或 DataURL 格式
|
|
2796
|
+
*/
|
|
2797
|
+
declare interface ILIB_ExtendLibraryItem extends ILIB_ExtendLibraryItemIndex {
|
|
2798
|
+
/** 库文件地址 */
|
|
2799
|
+
url?: string;
|
|
2800
|
+
/** 库文件数据 */
|
|
2801
|
+
data?: string | Blob;
|
|
2802
|
+
}
|
|
2803
|
+
|
|
2804
|
+
/**
|
|
2805
|
+
* 外部库元素索引
|
|
2806
|
+
*
|
|
2807
|
+
* @public
|
|
2808
|
+
* @remarks
|
|
2809
|
+
* 支持外部库使用名称或 UUID 作为元素的唯一 ID 索引
|
|
2810
|
+
*
|
|
2811
|
+
* 正常情况下,希望每个库都拥有 UUID,但可能部分系统开发时不存在 UUID 字段(或可以做类似用途的字段)
|
|
2812
|
+
*
|
|
2813
|
+
* 此处仅传入 `name` 字段时,将把 `name` 做唯一 ID 用途,不可有重名的数据
|
|
2814
|
+
*
|
|
2815
|
+
* 如若传入 `uuid` 和 `name` 字段,则只有 `uuid` 不可重复
|
|
2816
|
+
*/
|
|
2817
|
+
declare interface ILIB_ExtendLibraryItemIndex {
|
|
2818
|
+
/** 库 UUID */
|
|
2819
|
+
uuid?: string;
|
|
2820
|
+
/** 库名称 */
|
|
2821
|
+
name: string;
|
|
2822
|
+
}
|
|
2823
|
+
|
|
2824
|
+
/**
|
|
2825
|
+
* 外部库搜索参数
|
|
2826
|
+
*
|
|
2827
|
+
* @public
|
|
2828
|
+
*/
|
|
2829
|
+
declare interface ILIB_ExtendLibrarySearchProperty<T> {
|
|
2830
|
+
/** 页数 */
|
|
2831
|
+
page?: number;
|
|
2832
|
+
/** 单页条目数 */
|
|
2833
|
+
pageSize?: number;
|
|
2834
|
+
/** 查询参数 */
|
|
2835
|
+
query: T & {
|
|
2836
|
+
wd?: string;
|
|
2837
|
+
listByTitles?: Array<string>;
|
|
2838
|
+
classification?: ILIB_ExtendLibraryClassificationIndex;
|
|
2839
|
+
};
|
|
2840
|
+
}
|
|
2841
|
+
|
|
2842
|
+
/**
|
|
2843
|
+
* 外部库搜索结果
|
|
2844
|
+
*
|
|
2845
|
+
* @public
|
|
2846
|
+
*/
|
|
2847
|
+
declare interface ILIB_ExtendLibrarySearchResult<T> {
|
|
2848
|
+
/** 总条目数 */
|
|
2849
|
+
count: number;
|
|
2850
|
+
/** 结果列表 */
|
|
2851
|
+
lists: Array<T>;
|
|
2852
|
+
/** 当前页数 */
|
|
2853
|
+
page: number;
|
|
2854
|
+
/** 单页条目数 */
|
|
2855
|
+
pageSize: number;
|
|
2856
|
+
/** 总页数 */
|
|
2857
|
+
totalPage: number;
|
|
2858
|
+
}
|
|
2859
|
+
|
|
2860
|
+
/**
|
|
2861
|
+
* 外部库符号方法
|
|
2862
|
+
*
|
|
2863
|
+
* @public
|
|
2864
|
+
*/
|
|
2865
|
+
declare interface ILIB_ExtendLibrarySymbolFunctions extends ILIB_ExtendLibraryFunctions {
|
|
2866
|
+
getList: (props: ILIB_ExtendLibrarySearchProperty<{
|
|
2867
|
+
symbolType?: ELIB_SymbolType;
|
|
2868
|
+
}>) => Promise<ILIB_ExtendLibrarySearchResult<ILIB_ExtendLibraryItem & {
|
|
2869
|
+
symbolType: ELIB_SymbolType;
|
|
2870
|
+
} & {
|
|
2871
|
+
classification?: ILIB_ExtendLibraryClassificationIndex;
|
|
2872
|
+
description?: string;
|
|
2873
|
+
version?: string;
|
|
2874
|
+
updateTime?: number;
|
|
2875
|
+
createTime?: number;
|
|
2876
|
+
creator?: ILIB_ExtendLibraryUserIndex;
|
|
2877
|
+
modifier?: ILIB_ExtendLibraryUserIndex;
|
|
2878
|
+
owner?: ILIB_ExtendLibraryUserIndex;
|
|
2879
|
+
}>>;
|
|
2880
|
+
}
|
|
2881
|
+
|
|
2882
|
+
/**
|
|
2883
|
+
* 外部库用户索引
|
|
2884
|
+
*
|
|
2885
|
+
* @public
|
|
2886
|
+
* @remarks
|
|
2887
|
+
* 支持外部库使用名称或关联的嘉立创 EDA 系统内用户 UUID 作为用户的唯一 ID 索引
|
|
2888
|
+
*
|
|
2889
|
+
* 如若希望关联嘉立创 EDA 的用户,请传入该用户的 UUID,将会自动读取用户的名称(如若用户存在)
|
|
2890
|
+
*
|
|
2891
|
+
* 如若仅希望显示用户名称,可以传入 `name` 字段
|
|
2892
|
+
*/
|
|
2893
|
+
declare interface ILIB_ExtendLibraryUserIndex {
|
|
2894
|
+
/** 用户名称 */
|
|
2895
|
+
name?: string;
|
|
2896
|
+
/** 嘉立创 EDA 系统内的用户 UUID */
|
|
2897
|
+
uuid?: string;
|
|
2898
|
+
}
|
|
2899
|
+
|
|
2630
2900
|
/**
|
|
2631
2901
|
* 封装属性
|
|
2632
2902
|
*
|
|
@@ -2744,6 +3014,8 @@ declare interface ILIB_SymbolItem {
|
|
|
2744
3014
|
uuid: string;
|
|
2745
3015
|
/** 所属库 UUID */
|
|
2746
3016
|
libraryUuid: string;
|
|
3017
|
+
/** 所属复用模块 UUID,仅复用模块符号存在该属性 */
|
|
3018
|
+
cbbUuid?: string;
|
|
2747
3019
|
/** 符号名称 */
|
|
2748
3020
|
name: string;
|
|
2749
3021
|
/** 分类 */
|
|
@@ -5124,7 +5396,7 @@ declare class IPCB_PrimitivePad implements IPCB_Primitive {
|
|
|
5124
5396
|
*/
|
|
5125
5397
|
getState_Layer(): TPCB_LayersOfPad;
|
|
5126
5398
|
/**
|
|
5127
|
-
*
|
|
5399
|
+
* 获取属性���态:焊盘编号
|
|
5128
5400
|
*
|
|
5129
5401
|
* @public
|
|
5130
5402
|
* @returns 焊盘编号
|
|
@@ -5375,7 +5647,7 @@ declare class IPCB_PrimitivePad implements IPCB_Primitive {
|
|
|
5375
5647
|
*
|
|
5376
5648
|
* @beta
|
|
5377
5649
|
* @param solderMaskAndPasteMaskExpansion - 阻焊/助焊扩展
|
|
5378
|
-
* @returns
|
|
5650
|
+
* @returns 焊盘图元对象
|
|
5379
5651
|
*/
|
|
5380
5652
|
setState_SolderMaskAndPasteMaskExpansion(solderMaskAndPasteMaskExpansion: IPCB_PrimitiveSolderMaskAndPasteMaskExpansion | null): IPCB_PrimitivePad;
|
|
5381
5653
|
/**
|
|
@@ -6020,7 +6292,7 @@ declare class IPCB_PrimitiveRegion implements IPCB_Primitive {
|
|
|
6020
6292
|
* 获取属性状态:是否锁定
|
|
6021
6293
|
*
|
|
6022
6294
|
* @public
|
|
6023
|
-
* @returns
|
|
6295
|
+
* @returns 是否锁定
|
|
6024
6296
|
*/
|
|
6025
6297
|
getState_PrimitiveLock(): boolean;
|
|
6026
6298
|
/**
|
|
@@ -6654,7 +6926,7 @@ declare class IPCB_PrimitiveVia implements IPCB_Primitive {
|
|
|
6654
6926
|
*
|
|
6655
6927
|
* @beta
|
|
6656
6928
|
* @remarks 将会获取与过孔直接相连的导线、圆弧线图元对象
|
|
6657
|
-
* @returns
|
|
6929
|
+
* @returns 相邻的导线、圆弧线图元对象
|
|
6658
6930
|
*/
|
|
6659
6931
|
getAdjacentPrimitives(): Promise<Array<IPCB_PrimitiveLine | IPCB_PrimitiveArc>>;
|
|
6660
6932
|
}
|
|
@@ -7071,6 +7343,47 @@ declare class ISCH_PrimitiveBus implements ISCH_Primitive {
|
|
|
7071
7343
|
done(): Promise<ISCH_PrimitiveBus>;
|
|
7072
7344
|
}
|
|
7073
7345
|
|
|
7346
|
+
/**
|
|
7347
|
+
* 复用模块符号图元
|
|
7348
|
+
*
|
|
7349
|
+
* @public
|
|
7350
|
+
*/
|
|
7351
|
+
declare class ISCH_PrimitiveCbbSymbolComponent extends ISCH_PrimitiveComponent_2 {
|
|
7352
|
+
/**
|
|
7353
|
+
* 关联复用模块
|
|
7354
|
+
*
|
|
7355
|
+
*/
|
|
7356
|
+
private cbb;
|
|
7357
|
+
/** 关联复用模块符号 */
|
|
7358
|
+
private cbbSymbol;
|
|
7359
|
+
/* Excluded from this release type: __constructor */
|
|
7360
|
+
/* Excluded from this release type: create */
|
|
7361
|
+
/**
|
|
7362
|
+
* 获取属性状态:关联复用模块
|
|
7363
|
+
*
|
|
7364
|
+
* @public
|
|
7365
|
+
* @returns 关联复用模块
|
|
7366
|
+
*/
|
|
7367
|
+
getState_Cbb(): {
|
|
7368
|
+
libraryUuid: string;
|
|
7369
|
+
uuid: string;
|
|
7370
|
+
};
|
|
7371
|
+
/**
|
|
7372
|
+
* 获取属性状态:关联复用模块符号
|
|
7373
|
+
*
|
|
7374
|
+
* @public
|
|
7375
|
+
* @returns 关联复用模块符号
|
|
7376
|
+
*/
|
|
7377
|
+
getState_CbbSymbol(): {
|
|
7378
|
+
libraryUuid: string;
|
|
7379
|
+
cbbUuid: string;
|
|
7380
|
+
uuid: string;
|
|
7381
|
+
};
|
|
7382
|
+
/* Excluded from this release type: reset */
|
|
7383
|
+
/* Excluded from this release type: done */
|
|
7384
|
+
/* Excluded from this release type: setState_CbbSymbol */
|
|
7385
|
+
}
|
|
7386
|
+
|
|
7074
7387
|
/**
|
|
7075
7388
|
* 圆图元
|
|
7076
7389
|
*
|
|
@@ -7614,7 +7927,7 @@ declare class ISCH_PrimitiveComponent implements ISCH_Primitive {
|
|
|
7614
7927
|
[key: string]: string | number | boolean;
|
|
7615
7928
|
}): ISCH_PrimitiveComponent;
|
|
7616
7929
|
/**
|
|
7617
|
-
*
|
|
7930
|
+
* 将图元转换为异��图元
|
|
7618
7931
|
*
|
|
7619
7932
|
* @public
|
|
7620
7933
|
* @returns 圆弧线图元对象
|
|
@@ -7660,7 +7973,19 @@ declare class ISCH_PrimitiveComponent implements ISCH_Primitive {
|
|
|
7660
7973
|
*/
|
|
7661
7974
|
declare class ISCH_PrimitiveComponent_2 implements ISCH_Primitive {
|
|
7662
7975
|
/** 异步 */
|
|
7663
|
-
|
|
7976
|
+
protected async: boolean;
|
|
7977
|
+
/** 坐标 X */
|
|
7978
|
+
protected x: number;
|
|
7979
|
+
/** 坐标 Y */
|
|
7980
|
+
protected y: number;
|
|
7981
|
+
/** 旋转角度 */
|
|
7982
|
+
protected rotation: number;
|
|
7983
|
+
/** 是否镜像 */
|
|
7984
|
+
protected mirror: boolean;
|
|
7985
|
+
/** Component 属性:位号 */
|
|
7986
|
+
protected designator?: string;
|
|
7987
|
+
/** Component 属性:名称 */
|
|
7988
|
+
protected name?: string;
|
|
7664
7989
|
/** 图元类型 */
|
|
7665
7990
|
private readonly primitiveType;
|
|
7666
7991
|
/** 器件类型 */
|
|
@@ -7669,30 +7994,24 @@ declare class ISCH_PrimitiveComponent_2 implements ISCH_Primitive {
|
|
|
7669
7994
|
private primitiveId?;
|
|
7670
7995
|
/** 关联库器件 */
|
|
7671
7996
|
private component;
|
|
7672
|
-
/** 坐标 X */
|
|
7673
|
-
private x;
|
|
7674
|
-
/** 坐标 Y */
|
|
7675
|
-
private y;
|
|
7676
7997
|
/** 子图块名称 */
|
|
7677
7998
|
private partId?;
|
|
7678
|
-
/** 旋转角度 */
|
|
7679
|
-
private rotation;
|
|
7680
|
-
/** 是否镜像 */
|
|
7681
|
-
private mirror;
|
|
7682
7999
|
/** Component 属性:是否加入 BOM */
|
|
7683
8000
|
private addIntoBom?;
|
|
7684
8001
|
/** Component 属性:是否转到 PCB */
|
|
7685
8002
|
private addIntoPcb?;
|
|
7686
8003
|
/** NetPort 和 NetFlag 属性:网络名称 */
|
|
7687
8004
|
private net?;
|
|
7688
|
-
/**
|
|
8005
|
+
/**
|
|
8006
|
+
* 关联库符号
|
|
8007
|
+
*
|
|
8008
|
+
*/
|
|
7689
8009
|
private symbol?;
|
|
7690
|
-
/**
|
|
8010
|
+
/**
|
|
8011
|
+
* 关联库封装
|
|
8012
|
+
*
|
|
8013
|
+
*/
|
|
7691
8014
|
private footprint?;
|
|
7692
|
-
/** Component 属性:位号 */
|
|
7693
|
-
private designator?;
|
|
7694
|
-
/** Component 属性:名称 */
|
|
7695
|
-
private name?;
|
|
7696
8015
|
/** Component 属性:唯一 ID */
|
|
7697
8016
|
private uniqueId?;
|
|
7698
8017
|
/** Component 属性:制造商 */
|
|
@@ -8890,7 +9209,7 @@ declare class ISCH_PrimitiveText implements ISCH_Primitive {
|
|
|
8890
9209
|
* 设置属性状态:是否加粗
|
|
8891
9210
|
*
|
|
8892
9211
|
* @beta
|
|
8893
|
-
* @param bold -
|
|
9212
|
+
* @param bold - 是���加粗
|
|
8894
9213
|
* @returns 文本图元对象
|
|
8895
9214
|
*/
|
|
8896
9215
|
setState_Bold(bold: boolean): ISCH_PrimitiveText;
|
|
@@ -9117,6 +9436,84 @@ declare interface ISYS_FileSystemFileList {
|
|
|
9117
9436
|
fullPath: string;
|
|
9118
9437
|
}
|
|
9119
9438
|
|
|
9439
|
+
/**
|
|
9440
|
+
* 顶部菜单项
|
|
9441
|
+
*
|
|
9442
|
+
* @public
|
|
9443
|
+
*/
|
|
9444
|
+
declare interface ISYS_HeaderMenus {
|
|
9445
|
+
/** 主页 */
|
|
9446
|
+
home?: Array<ISYS_HeaderMenuTopMenus>;
|
|
9447
|
+
/** 空白页 */
|
|
9448
|
+
blank?: Array<ISYS_HeaderMenuTopMenus>;
|
|
9449
|
+
/** 原理图 */
|
|
9450
|
+
schematic?: Array<ISYS_HeaderMenuTopMenus>;
|
|
9451
|
+
/**
|
|
9452
|
+
* 原理图
|
|
9453
|
+
*
|
|
9454
|
+
* @deprecated 请使用 `schematic` 替代 `sch`
|
|
9455
|
+
*/
|
|
9456
|
+
sch?: Array<ISYS_HeaderMenuTopMenus>;
|
|
9457
|
+
/** 符号(包括 CBB 符号) */
|
|
9458
|
+
symbol?: Array<ISYS_HeaderMenuTopMenus>;
|
|
9459
|
+
/** PCB */
|
|
9460
|
+
pcb?: Array<ISYS_HeaderMenuTopMenus>;
|
|
9461
|
+
/** 封装 */
|
|
9462
|
+
footprint?: Array<ISYS_HeaderMenuTopMenus>;
|
|
9463
|
+
/** PCB 预览(包括 2D、3D 预览) */
|
|
9464
|
+
pcbView?: Array<ISYS_HeaderMenuTopMenus>;
|
|
9465
|
+
/** 面板 */
|
|
9466
|
+
panel?: Array<ISYS_HeaderMenuTopMenus>;
|
|
9467
|
+
/** 面板预览 */
|
|
9468
|
+
panelView?: Array<ISYS_HeaderMenuTopMenus>;
|
|
9469
|
+
}
|
|
9470
|
+
|
|
9471
|
+
/**
|
|
9472
|
+
* 顶部二级菜单
|
|
9473
|
+
*
|
|
9474
|
+
* @public
|
|
9475
|
+
*/
|
|
9476
|
+
declare interface ISYS_HeaderMenuSub1Menus {
|
|
9477
|
+
/** 菜单项 ID,不可重复 */
|
|
9478
|
+
id: string;
|
|
9479
|
+
/** 菜单项标题 */
|
|
9480
|
+
title: string;
|
|
9481
|
+
/** 注册方法名称(需要在扩展入口文件导出该方法) */
|
|
9482
|
+
registerFn?: string;
|
|
9483
|
+
/** 子菜单项 */
|
|
9484
|
+
menuItems?: Array<ISYS_HeaderMenuSub2Menus | null>;
|
|
9485
|
+
}
|
|
9486
|
+
|
|
9487
|
+
/**
|
|
9488
|
+
* 顶部三级菜单
|
|
9489
|
+
*
|
|
9490
|
+
* @public
|
|
9491
|
+
*/
|
|
9492
|
+
declare interface ISYS_HeaderMenuSub2Menus {
|
|
9493
|
+
/** 菜单项 ID,不可重复 */
|
|
9494
|
+
id: string;
|
|
9495
|
+
/** 菜单项标题 */
|
|
9496
|
+
title: string;
|
|
9497
|
+
/** 注册方法名称(需要在扩展入口文件导出该方法) */
|
|
9498
|
+
registerFn?: string;
|
|
9499
|
+
}
|
|
9500
|
+
|
|
9501
|
+
/**
|
|
9502
|
+
* 顶部一级菜单
|
|
9503
|
+
*
|
|
9504
|
+
* @public
|
|
9505
|
+
*/
|
|
9506
|
+
declare interface ISYS_HeaderMenuTopMenus {
|
|
9507
|
+
/** 菜单项 ID,不可重复 */
|
|
9508
|
+
id: string;
|
|
9509
|
+
/** 菜单项标题 */
|
|
9510
|
+
title: string;
|
|
9511
|
+
/** 注册方法名称(需要在扩展入口文件导出该方法) */
|
|
9512
|
+
registerFn?: string;
|
|
9513
|
+
/** 子菜单项 */
|
|
9514
|
+
menuItems?: Array<ISYS_HeaderMenuSub1Menus | null>;
|
|
9515
|
+
}
|
|
9516
|
+
|
|
9120
9517
|
/**
|
|
9121
9518
|
* 语言数据键值对
|
|
9122
9519
|
*
|
|
@@ -9427,14 +9824,14 @@ declare class LIB_Classification {
|
|
|
9427
9824
|
* @param libraryType - 库类型
|
|
9428
9825
|
* @returns 分类信息组成的树结构数据
|
|
9429
9826
|
*/
|
|
9430
|
-
getAllClassificationTree(libraryUuid: string, libraryType: ELIB_LibraryType): Promise<{
|
|
9827
|
+
getAllClassificationTree(libraryUuid: string, libraryType: ELIB_LibraryType): Promise<Array<{
|
|
9431
9828
|
name: string;
|
|
9432
9829
|
uuid: string;
|
|
9433
|
-
children?: {
|
|
9830
|
+
children?: Array<{
|
|
9434
9831
|
name: string;
|
|
9435
9832
|
uuid: string;
|
|
9436
|
-
}
|
|
9437
|
-
}
|
|
9833
|
+
}> | undefined;
|
|
9834
|
+
}>>;
|
|
9438
9835
|
/**
|
|
9439
9836
|
* 删除指定 UUID 的分类
|
|
9440
9837
|
*
|
|
@@ -9718,14 +10115,14 @@ declare class LIB_LibrariesList {
|
|
|
9718
10115
|
/**
|
|
9719
10116
|
* 获取系统库的 UUID
|
|
9720
10117
|
*
|
|
9721
|
-
* @
|
|
10118
|
+
* @public
|
|
9722
10119
|
* @returns 系统库的 UUID
|
|
9723
10120
|
*/
|
|
9724
10121
|
getSystemLibraryUuid(): Promise<string | undefined>;
|
|
9725
10122
|
/**
|
|
9726
10123
|
* 获取个人库的 UUID
|
|
9727
10124
|
*
|
|
9728
|
-
* @
|
|
10125
|
+
* @public
|
|
9729
10126
|
* @remarks 将会获取当前编辑器工作区下的个人库的 UUID,在私有部署环境下不存在个人库,此接口将永远返回 `undefined`
|
|
9730
10127
|
* @returns 个人库的 UUID
|
|
9731
10128
|
*/
|
|
@@ -9733,7 +10130,7 @@ declare class LIB_LibrariesList {
|
|
|
9733
10130
|
/**
|
|
9734
10131
|
* 获取工程库的 UUID
|
|
9735
10132
|
*
|
|
9736
|
-
* @
|
|
10133
|
+
* @public
|
|
9737
10134
|
* @remarks 在未打开工程的情况下调用将返回 `undefined`
|
|
9738
10135
|
* @returns 工程库的 UUID
|
|
9739
10136
|
*/
|
|
@@ -9741,7 +10138,7 @@ declare class LIB_LibrariesList {
|
|
|
9741
10138
|
/**
|
|
9742
10139
|
* 获取收藏库的 UUID
|
|
9743
10140
|
*
|
|
9744
|
-
* @
|
|
10141
|
+
* @public
|
|
9745
10142
|
* @remarks 将会获取当前编辑器工作区下的收藏库的 UUID
|
|
9746
10143
|
* @returns 收藏库的 UUID
|
|
9747
10144
|
*/
|
|
@@ -9749,11 +10146,12 @@ declare class LIB_LibrariesList {
|
|
|
9749
10146
|
/**
|
|
9750
10147
|
* 获取所有库的列表
|
|
9751
10148
|
*
|
|
9752
|
-
* @
|
|
10149
|
+
* @public
|
|
9753
10150
|
* @remarks 此处不会获取到系统库、个人库、工程库、收藏库的信息,如需获取它们的信息,请使用 {@link LIB_LibrariesList.getSystemLibraryUuid | getSystemLibraryUuid}、{@link LIB_LibrariesList.getPersonalLibraryUuid | getPersonalLibraryUuid}、{@link LIB_LibrariesList.getProjectLibraryUuid | getProjectLibraryUuid}、{@link LIB_LibrariesList.getFavoriteLibraryUuid | getFavoriteLibraryUuid} 接口
|
|
9754
10151
|
* @returns 库信息列表
|
|
9755
10152
|
*/
|
|
9756
10153
|
getAllLibrariesList(): Promise<Array<ILIB_LibraryInfo>>;
|
|
10154
|
+
/* Excluded from this release type: registerExtendLibrary */
|
|
9757
10155
|
}
|
|
9758
10156
|
|
|
9759
10157
|
/**
|
|
@@ -11955,7 +12353,7 @@ declare class PCB_PrimitivePad implements IPCB_PrimitiveAPI {
|
|
|
11955
12353
|
* @beta
|
|
11956
12354
|
* @remarks 如若传入多个图元 ID,任意图元 ID 未匹配到不影响其它图元的返回,即可能返回少于传入的图元 ID 数量的图元对象
|
|
11957
12355
|
* @param primitiveIds - 焊盘的图元 ID,可以为字符串或字符串数组,如若为数组,则返回的也是数组
|
|
11958
|
-
* @returns
|
|
12356
|
+
* @returns 焊盘图元对象,空数组表示获取失败
|
|
11959
12357
|
*/
|
|
11960
12358
|
get(primitiveIds: Array<string>): Promise<Array<IPCB_PrimitivePad>>;
|
|
11961
12359
|
/**
|
|
@@ -12527,7 +12925,7 @@ declare class SCH_ManufactureData {
|
|
|
12527
12925
|
* @param fileType - 文件类型
|
|
12528
12926
|
* @param template - 模板名称
|
|
12529
12927
|
* @param filterOptions - 过滤规则,仅应包含需要启用的规则,`property` 为规则名称,`includeValue` 为匹配的值
|
|
12530
|
-
* @param statistics -
|
|
12928
|
+
* @param statistics - 统计,包含所有需要启用的统计项���名称
|
|
12531
12929
|
* @param property - 属性,包含所有需要启用的属性的名称
|
|
12532
12930
|
* @param columns - 列的属性及排序,`title`、`sort`、`group`、`orderWeight` 不传入则取默认值,`null` 代表 **无** 或 **空**
|
|
12533
12931
|
* @returns BOM 文件数据
|
|
@@ -13281,7 +13679,7 @@ declare class SCH_PrimitiveComponent3 implements ISCH_PrimitiveAPI {
|
|
|
13281
13679
|
* 创建网络端口
|
|
13282
13680
|
*
|
|
13283
13681
|
* @beta
|
|
13284
|
-
* @param direction -
|
|
13682
|
+
* @param direction - 端口方���
|
|
13285
13683
|
* @param net - 网络名称
|
|
13286
13684
|
* @param x - 坐标 X
|
|
13287
13685
|
* @param y - 坐标 Y
|
|
@@ -13301,6 +13699,8 @@ declare class SCH_PrimitiveComponent3 implements ISCH_PrimitiveAPI {
|
|
|
13301
13699
|
* @returns 器件图元对象
|
|
13302
13700
|
*/
|
|
13303
13701
|
createShortCircuitFlag(x: number, y: number, rotation?: number, mirror?: boolean): Promise<ISCH_PrimitiveComponent_2 | undefined>;
|
|
13702
|
+
/* Excluded from this release type: createCbbSymbol */
|
|
13703
|
+
/* Excluded from this release type: placeCbbSchematicPage */
|
|
13304
13704
|
/**
|
|
13305
13705
|
* 删除器件
|
|
13306
13706
|
*
|
|
@@ -14389,7 +14789,7 @@ declare class SYS_FileSystem {
|
|
|
14389
14789
|
*
|
|
14390
14790
|
* @beta
|
|
14391
14791
|
* @remarks
|
|
14392
|
-
*
|
|
14792
|
+
* 注��� 1:本接口仅客户端有效,在浏览器环境内调用将始终 `throw Error`
|
|
14393
14793
|
*
|
|
14394
14794
|
* 注意 2:本接口需要使用者启用扩展的外部交互权限,如若未启用将始终 `throw Error`
|
|
14395
14795
|
* @param folderPath - 目录路径
|
|
@@ -14496,6 +14896,41 @@ declare class SYS_FontManager {
|
|
|
14496
14896
|
deleteFont(fontName: string): Promise<boolean>;
|
|
14497
14897
|
}
|
|
14498
14898
|
|
|
14899
|
+
/**
|
|
14900
|
+
* 系统 / 顶部菜单类
|
|
14901
|
+
*
|
|
14902
|
+
* @public
|
|
14903
|
+
*/
|
|
14904
|
+
declare class SYS_HeaderMenu {
|
|
14905
|
+
/** 扩展 UUID */
|
|
14906
|
+
private extensionUuid?;
|
|
14907
|
+
/* Excluded from this release type: __constructor */
|
|
14908
|
+
/**
|
|
14909
|
+
* 导入顶部菜单数据
|
|
14910
|
+
*
|
|
14911
|
+
* @public
|
|
14912
|
+
* @param headerMenus - 顶部菜单数据
|
|
14913
|
+
*/
|
|
14914
|
+
insertHeaderMenus(headerMenus: ISYS_HeaderMenus): Promise<void>;
|
|
14915
|
+
/**
|
|
14916
|
+
* 移除顶部菜单数据
|
|
14917
|
+
*
|
|
14918
|
+
* @public
|
|
14919
|
+
*/
|
|
14920
|
+
removeHeaderMenus(): void;
|
|
14921
|
+
/**
|
|
14922
|
+
* 替换顶部菜单数据
|
|
14923
|
+
*
|
|
14924
|
+
* @public
|
|
14925
|
+
* @remarks 本接口相当于同时执行了 {@link SYS_HeaderMenu.removeHeaderMenus | 移除} 和 {@link SYS_HeaderMenu.insertHeaderMenus | 导入} 操作
|
|
14926
|
+
* @param headerMenus - 顶部菜单数据
|
|
14927
|
+
*/
|
|
14928
|
+
replaceHeaderMenus(headerMenus: ISYS_HeaderMenus): Promise<void>;
|
|
14929
|
+
/* Excluded from this release type: removeSystemHeaderMenuItem */
|
|
14930
|
+
/* Excluded from this release type: insertSystemHeaderMenuItem */
|
|
14931
|
+
/* Excluded from this release type: insertSystemHeaderMenus */
|
|
14932
|
+
}
|
|
14933
|
+
|
|
14499
14934
|
/**
|
|
14500
14935
|
* 系统 / 多语言类
|
|
14501
14936
|
*
|
|
@@ -15651,7 +16086,7 @@ declare type TPCB_PolygonSourceArray = Array<'L' | 'ARC' | 'CARC' | 'C' | 'R' |
|
|
|
15651
16086
|
*
|
|
15652
16087
|
* - `{number}` `y1` - 圆、圆弧上的端点 Y
|
|
15653
16088
|
*
|
|
15654
|
-
* - `{number}` `x2` -
|
|
16089
|
+
* - `{number}` `x2` - 标注线尾部的端点 X
|
|
15655
16090
|
*
|
|
15656
16091
|
* - `{number}` `y2` - 标注线尾部的端点 Y
|
|
15657
16092
|
*
|