@windypro-rourou/dsh-eda 0.1.3 → 0.1.5

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.
Files changed (483) hide show
  1. package/README.md +3 -1
  2. package/lib/capabilities.js +3 -2
  3. package/lib/client.js +576 -452
  4. package/lib/index.js +89 -2
  5. package/package.json +10 -1
  6. package/skill/INDEX.md +10 -8
  7. package/skill/README.md +125 -0
  8. package/skill/README.zh-Hans.md +125 -0
  9. package/skill/SKILL.md +746 -746
  10. package/skill/format/index.md +152 -152
  11. package/skill/format/pcb/3d.md +166 -166
  12. package/skill/format/pcb/attr.md +63 -63
  13. package/skill/format/pcb/common.md +306 -306
  14. package/skill/format/pcb/component.md +132 -132
  15. package/skill/format/pcb/dimension.md +58 -58
  16. package/skill/format/pcb/index.md +17 -17
  17. package/skill/format/pcb/obj.md +43 -43
  18. package/skill/format/pcb/pad_via.md +151 -151
  19. package/skill/format/pcb/panel.md +64 -64
  20. package/skill/format/pcb/partition.md +43 -43
  21. package/skill/format/pcb/primitive.md +196 -196
  22. package/skill/format/pcb/rule.md +71 -71
  23. package/skill/format/pcb/shape.md +441 -441
  24. package/skill/format/pcb/text.md +62 -62
  25. package/skill/format/project/blob.md +30 -30
  26. package/skill/format/project/common.md +42 -42
  27. package/skill/format/project/group.md +62 -62
  28. package/skill/format/project/index.md +12 -12
  29. package/skill/format/project/instance.md +32 -32
  30. package/skill/format/project/meta.md +189 -189
  31. package/skill/format/project/variant.md +30 -30
  32. package/skill/format/schematic/attr.md +41 -41
  33. package/skill/format/schematic/common.md +47 -47
  34. package/skill/format/schematic/component.md +91 -91
  35. package/skill/format/schematic/index.md +14 -14
  36. package/skill/format/schematic/obj.md +41 -41
  37. package/skill/format/schematic/pin.md +59 -59
  38. package/skill/format/schematic/shape.md +231 -231
  39. package/skill/format/schematic/structure.md +53 -53
  40. package/skill/format/schematic/table.md +109 -109
  41. package/skill/format/schematic/text.md +47 -47
  42. package/skill/format/schematic/wire.md +132 -132
  43. package/skill/guide/ancillary-projects/easyeda-api-sdk.md +1 -0
  44. package/skill/guide/ancillary-projects/pro-api-types.md +5 -5
  45. package/skill/guide/ancillary-projects.md +10 -10
  46. package/skill/guide/cli.md +1510 -0
  47. package/skill/guide/error-handling.md +38 -38
  48. package/skill/guide/extension-json.md +135 -135
  49. package/skill/guide/extensions-marketplace.md +61 -61
  50. package/skill/guide/how-to-start.md +316 -301
  51. package/skill/guide/i18n.md +57 -57
  52. package/skill/guide/index.md +7 -7
  53. package/skill/guide/inline-frame.md +20 -20
  54. package/skill/guide/invoke-apis.md +81 -81
  55. package/skill/guide/stability.md +37 -37
  56. package/skill/references/_index.md +471 -398
  57. package/skill/references/_quick-reference.md +3103 -3028
  58. package/skill/references/classes/DMT_Board.md +537 -533
  59. package/skill/references/classes/DMT_EditorControl.md +1736 -1736
  60. package/skill/references/classes/DMT_Event.md +356 -356
  61. package/skill/references/classes/DMT_Folder.md +775 -775
  62. package/skill/references/classes/DMT_Panel.md +531 -531
  63. package/skill/references/classes/DMT_Pcb.md +579 -575
  64. package/skill/references/classes/DMT_Project.md +734 -573
  65. package/skill/references/classes/DMT_Schematic.md +1482 -1477
  66. package/skill/references/classes/DMT_SelectControl.md +96 -96
  67. package/skill/references/classes/DMT_Team.md +172 -172
  68. package/skill/references/classes/DMT_Workspace.md +198 -198
  69. package/skill/references/classes/EDA.md +1001 -961
  70. package/skill/references/classes/IPCB_ComplexPolygon.md +299 -299
  71. package/skill/references/classes/IPCB_Polygon.md +175 -175
  72. package/skill/references/classes/IPCB_PrimitiveArc.md +1901 -1901
  73. package/skill/references/classes/IPCB_PrimitiveAttribute.md +2993 -2993
  74. package/skill/references/classes/IPCB_PrimitiveComponent.md +2624 -2627
  75. package/skill/references/classes/IPCB_PrimitiveComponentPad.md +410 -410
  76. package/skill/references/classes/IPCB_PrimitiveDimension.md +1419 -1419
  77. package/skill/references/classes/IPCB_PrimitiveFill.md +1325 -1325
  78. package/skill/references/classes/IPCB_PrimitiveImage.md +1461 -1461
  79. package/skill/references/classes/IPCB_PrimitiveLine.md +1639 -1639
  80. package/skill/references/classes/IPCB_PrimitiveObject.md +1700 -1700
  81. package/skill/references/classes/IPCB_PrimitivePad.md +3155 -3155
  82. package/skill/references/classes/IPCB_PrimitivePolyline.md +1193 -1193
  83. package/skill/references/classes/IPCB_PrimitivePour.md +1858 -1858
  84. package/skill/references/classes/IPCB_PrimitivePoured.md +556 -556
  85. package/skill/references/classes/IPCB_PrimitiveRegion.md +1332 -1332
  86. package/skill/references/classes/IPCB_PrimitiveString.md +2315 -2315
  87. package/skill/references/classes/IPCB_PrimitiveVia.md +1588 -1588
  88. package/skill/references/classes/ISCH_PrimitiveArc.md +1676 -1676
  89. package/skill/references/classes/ISCH_PrimitiveAttribute.md +2541 -2541
  90. package/skill/references/classes/ISCH_PrimitiveBus.md +973 -973
  91. package/skill/references/classes/ISCH_PrimitiveCbbSymbolComponent.md +260 -260
  92. package/skill/references/classes/ISCH_PrimitiveCircle.md +1392 -1392
  93. package/skill/references/classes/ISCH_PrimitiveComponent.md +2910 -2913
  94. package/skill/references/classes/ISCH_PrimitiveComponentPin.md +155 -155
  95. package/skill/references/classes/ISCH_PrimitiveObject.md +960 -960
  96. package/skill/references/classes/ISCH_PrimitivePin.md +2402 -2402
  97. package/skill/references/classes/ISCH_PrimitivePolygon.md +1028 -1028
  98. package/skill/references/classes/ISCH_PrimitiveRectangle.md +1777 -1777
  99. package/skill/references/classes/ISCH_PrimitiveText.md +1771 -1771
  100. package/skill/references/classes/ISCH_PrimitiveWire.md +973 -973
  101. package/skill/references/classes/LIB_3DModel.md +782 -780
  102. package/skill/references/classes/LIB_Cbb.md +957 -957
  103. package/skill/references/classes/LIB_Classification.md +969 -965
  104. package/skill/references/classes/LIB_Device.md +1222 -1221
  105. package/skill/references/classes/LIB_Footprint.md +1298 -1153
  106. package/skill/references/classes/LIB_LibrariesList.md +361 -329
  107. package/skill/references/classes/LIB_PanelLibrary.md +855 -855
  108. package/skill/references/classes/LIB_SelectControl.md +89 -89
  109. package/skill/references/classes/LIB_SimulationModel.md +807 -821
  110. package/skill/references/classes/LIB_Symbol.md +1341 -1195
  111. package/skill/references/classes/PCB_Document.md +1770 -1754
  112. package/skill/references/classes/PCB_Drc.md +3379 -3375
  113. package/skill/references/classes/PCB_Event.md +1166 -1081
  114. package/skill/references/classes/PCB_ImageTool.md +363 -0
  115. package/skill/references/classes/PCB_Layer.md +1915 -1911
  116. package/skill/references/classes/PCB_ManufactureData.md +2968 -2968
  117. package/skill/references/classes/PCB_MathPolygon.md +916 -785
  118. package/skill/references/classes/PCB_Net.md +1128 -1128
  119. package/skill/references/classes/PCB_Primitive.md +217 -217
  120. package/skill/references/classes/PCB_PrimitiveArc.md +820 -894
  121. package/skill/references/classes/PCB_PrimitiveAttribute.md +635 -717
  122. package/skill/references/classes/PCB_PrimitiveComponent.md +1050 -1050
  123. package/skill/references/classes/PCB_PrimitiveDimension.md +789 -833
  124. package/skill/references/classes/PCB_PrimitiveFill.md +783 -861
  125. package/skill/references/classes/PCB_PrimitiveImage.md +803 -875
  126. package/skill/references/classes/PCB_PrimitiveLine.md +787 -858
  127. package/skill/references/classes/PCB_PrimitiveObject.md +796 -800
  128. package/skill/references/classes/PCB_PrimitivePad.md +947 -944
  129. package/skill/references/classes/PCB_PrimitivePolyline.md +744 -819
  130. package/skill/references/classes/PCB_PrimitivePour.md +808 -845
  131. package/skill/references/classes/PCB_PrimitivePoured.md +363 -363
  132. package/skill/references/classes/PCB_PrimitiveRegion.md +765 -799
  133. package/skill/references/classes/PCB_PrimitiveString.md +828 -910
  134. package/skill/references/classes/PCB_PrimitiveVia.md +761 -765
  135. package/skill/references/classes/PCB_RayTracerEngine.md +603 -263
  136. package/skill/references/classes/PCB_SelectControl.md +495 -495
  137. package/skill/references/classes/PCB_Tool.md +9 -0
  138. package/skill/references/classes/PNL_Document.md +83 -83
  139. package/skill/references/classes/SCH_Document.md +797 -809
  140. package/skill/references/classes/SCH_Drc.md +246 -242
  141. package/skill/references/classes/SCH_Event.md +583 -583
  142. package/skill/references/classes/SCH_ManufactureData.md +1209 -1205
  143. package/skill/references/classes/SCH_Net.md +200 -200
  144. package/skill/references/classes/SCH_Netlist.md +191 -191
  145. package/skill/references/classes/SCH_Primitive.md +337 -337
  146. package/skill/references/classes/SCH_PrimitiveArc.md +686 -692
  147. package/skill/references/classes/SCH_PrimitiveAttribute.md +579 -590
  148. package/skill/references/classes/SCH_PrimitiveBus.md +618 -624
  149. package/skill/references/classes/SCH_PrimitiveCircle.md +667 -683
  150. package/skill/references/classes/SCH_PrimitiveComponent.md +2256 -2240
  151. package/skill/references/classes/SCH_PrimitiveObject.md +666 -666
  152. package/skill/references/classes/SCH_PrimitivePin.md +737 -754
  153. package/skill/references/classes/SCH_PrimitivePolygon.md +621 -627
  154. package/skill/references/classes/SCH_PrimitiveRectangle.md +715 -731
  155. package/skill/references/classes/SCH_PrimitiveText.md +736 -746
  156. package/skill/references/classes/SCH_PrimitiveWire.md +701 -703
  157. package/skill/references/classes/SCH_SelectControl.md +520 -520
  158. package/skill/references/classes/SCH_SimulationEngine.md +133 -133
  159. package/skill/references/classes/SCH_Utils.md +121 -121
  160. package/skill/references/classes/SYS_ClientUrl.md +173 -173
  161. package/skill/references/classes/SYS_Dialog.md +825 -825
  162. package/skill/references/classes/SYS_Environment.md +640 -502
  163. package/skill/references/classes/SYS_ExternalApi.md +246 -0
  164. package/skill/references/classes/SYS_FileManager.md +1664 -1686
  165. package/skill/references/classes/SYS_FileSystem.md +1366 -1171
  166. package/skill/references/classes/SYS_FontManager.md +224 -224
  167. package/skill/references/classes/SYS_FormatConversion.md +349 -349
  168. package/skill/references/classes/SYS_HeaderMenu.md +480 -479
  169. package/skill/references/classes/SYS_Help.md +141 -0
  170. package/skill/references/classes/SYS_I18n.md +861 -861
  171. package/skill/references/classes/SYS_IFrame.md +541 -535
  172. package/skill/references/classes/SYS_LoadingAndProgressBar.md +246 -246
  173. package/skill/references/classes/SYS_Log.md +422 -424
  174. package/skill/references/classes/SYS_Math.md +1565 -1565
  175. package/skill/references/classes/SYS_Message.md +363 -363
  176. package/skill/references/classes/SYS_MessageBox.md +285 -285
  177. package/skill/references/classes/SYS_MessageBus.md +1618 -1618
  178. package/skill/references/classes/SYS_PanelControl.md +696 -696
  179. package/skill/references/classes/SYS_RightClickMenu.md +175 -175
  180. package/skill/references/classes/SYS_Setting.md +134 -85
  181. package/skill/references/classes/SYS_ShortcutKey.md +623 -623
  182. package/skill/references/classes/SYS_Storage.md +484 -484
  183. package/skill/references/classes/SYS_Timer.md +447 -447
  184. package/skill/references/classes/SYS_ToastMessage.md +194 -194
  185. package/skill/references/classes/SYS_Tool.md +317 -241
  186. package/skill/references/classes/SYS_Unit.md +594 -594
  187. package/skill/references/classes/SYS_WebSocket.md +401 -401
  188. package/skill/references/classes/SYS_Window.md +849 -850
  189. package/skill/references/enums/EDMT_EditorDocumentType.md +324 -278
  190. package/skill/references/enums/EDMT_EditorSplitScreenDirection.md +51 -47
  191. package/skill/references/enums/EDMT_EditorTabEventType.md +68 -62
  192. package/skill/references/enums/EDMT_IndicatorMarkerType.md +90 -80
  193. package/skill/references/enums/EDMT_ItemType.md +181 -157
  194. package/skill/references/enums/EDMT_ProjectCollaborationMode.md +51 -47
  195. package/skill/references/enums/EDMT_ProjectFileFormat.md +60 -0
  196. package/skill/references/enums/EDMT_ProjectReadyState.md +82 -0
  197. package/skill/references/enums/ELIB_DeviceJlcLibraryCategory.md +51 -47
  198. package/skill/references/enums/ELIB_LibraryType.md +129 -113
  199. package/skill/references/enums/ELIB_PreviewType.md +77 -69
  200. package/skill/references/enums/ELIB_SimulationModelType.md +51 -47
  201. package/skill/references/enums/ELIB_SymbolType.md +142 -124
  202. package/skill/references/enums/EPCB_AutoRoutingCornerStyle.md +51 -47
  203. package/skill/references/enums/EPCB_AutoRoutingExistingPrimitiveMode.md +51 -47
  204. package/skill/references/enums/EPCB_AutoRoutingOptimization.md +51 -47
  205. package/skill/references/enums/EPCB_DocumentCanvasUpdateCalculationActiveStatus.md +51 -47
  206. package/skill/references/enums/EPCB_DocumentRatlineCalculatingActiveStatus.md +55 -51
  207. package/skill/references/enums/EPCB_InactiveLayerDisplayMode.md +64 -58
  208. package/skill/references/enums/EPCB_LayerColorConfiguration.md +90 -80
  209. package/skill/references/enums/EPCB_LayerId.md +1169 -881
  210. package/skill/references/enums/EPCB_LayerStatus.md +64 -58
  211. package/skill/references/enums/EPCB_LayerType.md +129 -113
  212. package/skill/references/enums/EPCB_MouseEventType.md +64 -58
  213. package/skill/references/enums/EPCB_NetEventType.md +64 -58
  214. package/skill/references/enums/EPCB_PcbPlateType.md +51 -47
  215. package/skill/references/enums/EPCB_PdfOutputMethod.md +64 -58
  216. package/skill/references/enums/EPCB_PrimitiveArcInteractiveMode.md +51 -47
  217. package/skill/references/enums/EPCB_PrimitiveDimensionType.md +64 -58
  218. package/skill/references/enums/EPCB_PrimitiveEventType.md +64 -58
  219. package/skill/references/enums/EPCB_PrimitiveFillMode.md +68 -62
  220. package/skill/references/enums/EPCB_PrimitivePadHeatWeldingConnectionMethod.md +64 -58
  221. package/skill/references/enums/EPCB_PrimitivePadHoleType.md +64 -58
  222. package/skill/references/enums/EPCB_PrimitivePadShapeType.md +90 -80
  223. package/skill/references/enums/EPCB_PrimitivePadType.md +64 -58
  224. package/skill/references/enums/EPCB_PrimitivePourFillMethod.md +64 -58
  225. package/skill/references/enums/EPCB_PrimitiveRegionRuleType.md +107 -95
  226. package/skill/references/enums/EPCB_PrimitiveStringAlignMode.md +142 -124
  227. package/skill/references/enums/EPCB_PrimitiveType.md +233 -201
  228. package/skill/references/enums/EPCB_PrimitiveViaType.md +64 -58
  229. package/skill/references/enums/ESCH_DynamicSimulationEnginePullEventType.md +116 -102
  230. package/skill/references/enums/ESCH_DynamicSimulationEnginePushEventType.md +90 -80
  231. package/skill/references/enums/ESCH_ExportDocumentFileType.md +64 -58
  232. package/skill/references/enums/ESCH_MouseEventType.md +51 -47
  233. package/skill/references/enums/ESCH_PrimitiveComponentType.md +142 -124
  234. package/skill/references/enums/ESCH_PrimitiveEventType.md +77 -69
  235. package/skill/references/enums/ESCH_PrimitiveFillStyle.md +129 -113
  236. package/skill/references/enums/ESCH_PrimitiveLineType.md +77 -69
  237. package/skill/references/enums/ESCH_PrimitivePinShape.md +77 -69
  238. package/skill/references/enums/ESCH_PrimitivePinType.md +168 -146
  239. package/skill/references/enums/ESCH_PrimitiveTextAlignMode.md +142 -124
  240. package/skill/references/enums/ESCH_PrimitiveType.md +207 -179
  241. package/skill/references/enums/ESCH_SimulationNetlistType.md +38 -36
  242. package/skill/references/enums/ESCH_SpiceSimulationEnginePullEventType.md +51 -47
  243. package/skill/references/enums/ESCH_SpiceSimulationEnginePushEventType.md +77 -69
  244. package/skill/references/enums/ESYS_BottomPanelTab.md +94 -80
  245. package/skill/references/enums/ESYS_HeaderMenuEnvironment.md +181 -157
  246. package/skill/references/enums/ESYS_ImportProjectBoardOutlineSource.md +55 -51
  247. package/skill/references/enums/ESYS_ImportProjectImportOption.md +64 -58
  248. package/skill/references/enums/ESYS_ImportProjectSchematicObjectStyle.md +51 -47
  249. package/skill/references/enums/ESYS_ImportProjectViaSolderMaskExpansion.md +55 -51
  250. package/skill/references/enums/ESYS_JobState.md +95 -0
  251. package/skill/references/enums/ESYS_LeftPanelTab.md +94 -80
  252. package/skill/references/enums/ESYS_LogType.md +77 -102
  253. package/skill/references/enums/ESYS_NetlistType.md +129 -113
  254. package/skill/references/enums/ESYS_PanelPosition.md +69 -0
  255. package/skill/references/enums/ESYS_PanelTab.md +368 -0
  256. package/skill/references/enums/ESYS_RightPanelTab.md +237 -201
  257. package/skill/references/enums/ESYS_ShortcutKeyEffectiveEditorRange.md +220 -190
  258. package/skill/references/enums/ESYS_ShortcutKeyEffectiveEditorScene.md +103 -91
  259. package/skill/references/enums/ESYS_StartPageQuickStartItem.md +237 -205
  260. package/skill/references/enums/ESYS_Theme.md +51 -47
  261. package/skill/references/enums/ESYS_ToastMessageType.md +90 -80
  262. package/skill/references/enums/ESYS_Unit.md +116 -102
  263. package/skill/references/enums/ESYS_WindowEventType.md +64 -47
  264. package/skill/references/enums/ESYS_WindowOpenTarget.md +51 -47
  265. package/skill/references/enums/NetportDeviceName.md +146 -146
  266. package/skill/references/enums/SchToolBarDeviceName.md +278 -278
  267. package/skill/references/interfaces/BoardProps.md +169 -169
  268. package/skill/references/interfaces/BorderConfig.md +109 -0
  269. package/skill/references/interfaces/ButtonProps.md +196 -169
  270. package/skill/references/interfaces/CellClickInfo.md +142 -0
  271. package/skill/references/interfaces/CellCoord.md +88 -0
  272. package/skill/references/interfaces/CheckBoxProps.md +223 -196
  273. package/skill/references/interfaces/CheckChangeDetail.md +88 -0
  274. package/skill/references/interfaces/CheckboxEditConfig.md +159 -0
  275. package/skill/references/interfaces/ClipboardCellData.md +142 -0
  276. package/skill/references/interfaces/ClipboardConfig.md +115 -0
  277. package/skill/references/interfaces/ColorPickerProps.md +169 -0
  278. package/skill/references/interfaces/ColumnDef.md +605 -0
  279. package/skill/references/interfaces/ColumnEditTrigger.md +57 -0
  280. package/skill/references/interfaces/ColumnGroupDef.md +192 -0
  281. package/skill/references/interfaces/ColumnResizeConfig.md +142 -0
  282. package/skill/references/interfaces/ComponentPropsMap.md +517 -448
  283. package/skill/references/interfaces/CustomHeaderConfig.md +169 -0
  284. package/skill/references/interfaces/DialogProps.md +385 -385
  285. package/skill/references/interfaces/DragSortConfig.md +115 -0
  286. package/skill/references/interfaces/EditingConfig.md +196 -0
  287. package/skill/references/interfaces/FilteringConfig.md +250 -0
  288. package/skill/references/interfaces/FixedColumnConfig.md +88 -0
  289. package/skill/references/interfaces/FlexItemProps.md +116 -116
  290. package/skill/references/interfaces/FlexProps.md +224 -224
  291. package/skill/references/interfaces/GridItemProps.md +143 -143
  292. package/skill/references/interfaces/GridProps.md +143 -143
  293. package/skill/references/interfaces/IDMT_BoardItem.md +171 -171
  294. package/skill/references/interfaces/IDMT_BriefProjectItem.md +171 -171
  295. package/skill/references/interfaces/IDMT_EditorDocumentItem.md +169 -169
  296. package/skill/references/interfaces/IDMT_EditorSplitScreenItem.md +173 -173
  297. package/skill/references/interfaces/IDMT_EditorTabItem.md +169 -169
  298. package/skill/references/interfaces/IDMT_FolderItem.md +225 -225
  299. package/skill/references/interfaces/IDMT_IndicatorMarkerShape.md +393 -393
  300. package/skill/references/interfaces/IDMT_PanelItem.md +144 -144
  301. package/skill/references/interfaces/IDMT_PcbItem.md +171 -171
  302. package/skill/references/interfaces/IDMT_ProjectItem.md +143 -143
  303. package/skill/references/interfaces/IDMT_SchematicItem.md +225 -225
  304. package/skill/references/interfaces/IDMT_SchematicPageItem.md +198 -198
  305. package/skill/references/interfaces/IDMT_TeamItem.md +144 -144
  306. package/skill/references/interfaces/IDMT_WorkspaceItem.md +117 -117
  307. package/skill/references/interfaces/IDesignPortal.md +103 -103
  308. package/skill/references/interfaces/ILIB_3DModelItem.md +198 -198
  309. package/skill/references/interfaces/ILIB_3DModelSearchItem.md +277 -277
  310. package/skill/references/interfaces/ILIB_CbbItem.md +225 -225
  311. package/skill/references/interfaces/ILIB_CbbSearchItem.md +277 -277
  312. package/skill/references/interfaces/ILIB_ClassificationIndex.md +150 -150
  313. package/skill/references/interfaces/ILIB_ClassificationNode.md +98 -0
  314. package/skill/references/interfaces/ILIB_DeviceAssociationItem.md +210 -210
  315. package/skill/references/interfaces/ILIB_DeviceExtendPropertyItem.md +304 -304
  316. package/skill/references/interfaces/ILIB_DeviceItem.md +279 -279
  317. package/skill/references/interfaces/ILIB_DevicePropertiesForSearch.md +250 -250
  318. package/skill/references/interfaces/ILIB_DeviceSearchItem.md +521 -521
  319. package/skill/references/interfaces/ILIB_ExtendLibrary3DModelFunctions.md +64 -64
  320. package/skill/references/interfaces/ILIB_ExtendLibraryCbbFunctions.md +93 -99
  321. package/skill/references/interfaces/ILIB_ExtendLibraryClassificationIndex.md +150 -150
  322. package/skill/references/interfaces/ILIB_ExtendLibraryDeviceFunctions.md +143 -157
  323. package/skill/references/interfaces/ILIB_ExtendLibraryFootprintFunctions.md +63 -63
  324. package/skill/references/interfaces/ILIB_ExtendLibraryFunctions.md +123 -123
  325. package/skill/references/interfaces/ILIB_ExtendLibraryItem.md +97 -97
  326. package/skill/references/interfaces/ILIB_ExtendLibraryItemIndex.md +98 -98
  327. package/skill/references/interfaces/ILIB_ExtendLibrarySearchProperty.md +115 -115
  328. package/skill/references/interfaces/ILIB_ExtendLibrarySearchResult.md +169 -169
  329. package/skill/references/interfaces/ILIB_ExtendLibrarySearchResultDataLine.md +234 -234
  330. package/skill/references/interfaces/ILIB_ExtendLibrarySymbolFunctions.md +91 -105
  331. package/skill/references/interfaces/ILIB_ExtendLibraryUserIndex.md +96 -96
  332. package/skill/references/interfaces/ILIB_FootprintItem.md +256 -198
  333. package/skill/references/interfaces/ILIB_FootprintPropertiesForSearch.md +61 -61
  334. package/skill/references/interfaces/ILIB_FootprintSearchItem.md +277 -277
  335. package/skill/references/interfaces/ILIB_LibraryInfo.md +92 -92
  336. package/skill/references/interfaces/ILIB_LibraryItem.md +115 -115
  337. package/skill/references/interfaces/ILIB_PanelLibraryItem.md +198 -198
  338. package/skill/references/interfaces/ILIB_PanelLibrarySearchItem.md +277 -277
  339. package/skill/references/interfaces/ILIB_RegisterExtendLibraryProps.md +71 -0
  340. package/skill/references/interfaces/ILIB_SimulationModelItem.md +306 -306
  341. package/skill/references/interfaces/ILIB_SimulationModelSearchItem.md +304 -304
  342. package/skill/references/interfaces/ILIB_SymbolItem.md +306 -279
  343. package/skill/references/interfaces/ILIB_SymbolPropertiesForSearch.md +61 -61
  344. package/skill/references/interfaces/ILIB_SymbolSearchItem.md +304 -304
  345. package/skill/references/interfaces/IPCB_AutoLayoutResult.md +169 -169
  346. package/skill/references/interfaces/IPCB_AutoRoutingProps.md +220 -220
  347. package/skill/references/interfaces/IPCB_AutoRoutingResult.md +169 -169
  348. package/skill/references/interfaces/IPCB_BomPropertiesTableColumns.md +169 -169
  349. package/skill/references/interfaces/IPCB_DifferentialPairItem.md +115 -115
  350. package/skill/references/interfaces/IPCB_DiscretizeOptions.md +65 -65
  351. package/skill/references/interfaces/IPCB_DiscretizedPoint.md +88 -88
  352. package/skill/references/interfaces/IPCB_EqualLengthNetGroupItem.md +115 -115
  353. package/skill/references/interfaces/IPCB_LayerItem.md +277 -277
  354. package/skill/references/interfaces/IPCB_NetClassItem.md +115 -115
  355. package/skill/references/interfaces/IPCB_NetInfo.md +115 -115
  356. package/skill/references/interfaces/IPCB_PadPairGroupItem.md +88 -88
  357. package/skill/references/interfaces/IPCB_PadPairMinWireLengthItem.md +88 -88
  358. package/skill/references/interfaces/IPCB_PhysicalStackingConfiguration.md +115 -115
  359. package/skill/references/interfaces/IPCB_Primitive.md +218 -218
  360. package/skill/references/interfaces/IPCB_PrimitiveAPI.md +174 -175
  361. package/skill/references/interfaces/IPCB_PrimitivePadHeatWelding.md +151 -151
  362. package/skill/references/interfaces/IPCB_PrimitivePouredPourFill.md +142 -142
  363. package/skill/references/interfaces/IPCB_PrimitiveSolderMaskAndPasteMaskExpansion.md +154 -154
  364. package/skill/references/interfaces/IPCB_RayTracerBackgroundConfig.md +223 -0
  365. package/skill/references/interfaces/IPCB_RayTracerLightConfig.md +412 -0
  366. package/skill/references/interfaces/IPCB_RayTracerMaterialConfig.md +547 -0
  367. package/skill/references/interfaces/IPCB_RayTracerPcbMaterialConfig.md +196 -0
  368. package/skill/references/interfaces/IPCB_RayTracerRenderConfigurations.md +200 -0
  369. package/skill/references/interfaces/IPCB_RayTracerRendererConfig.md +196 -0
  370. package/skill/references/interfaces/IPCB_RayTracerSceneElement.md +115 -0
  371. package/skill/references/interfaces/IPCB_RayTracerSceneElementTransform.md +123 -0
  372. package/skill/references/interfaces/IPCB_RayTracerTexture.md +88 -0
  373. package/skill/references/interfaces/IPCB_SubstratePhysicalProperties.md +88 -88
  374. package/skill/references/interfaces/IRawNet.md +103 -103
  375. package/skill/references/interfaces/IRawPureSchematic.md +80 -80
  376. package/skill/references/interfaces/IRawSchematic.md +103 -103
  377. package/skill/references/interfaces/IRawWire.md +149 -149
  378. package/skill/references/interfaces/ISCH_DrcError.md +142 -142
  379. package/skill/references/interfaces/ISCH_DrcErrorPrimitive.md +142 -142
  380. package/skill/references/interfaces/ISCH_ExportPngResolution.md +94 -94
  381. package/skill/references/interfaces/ISCH_NetInfo.md +88 -88
  382. package/skill/references/interfaces/ISCH_Primitive.md +218 -219
  383. package/skill/references/interfaces/ISCH_PrimitiveAPI.md +174 -175
  384. package/skill/references/interfaces/ISCH_ProjectNetInfo.md +142 -142
  385. package/skill/references/interfaces/ISCH_WireInfo.md +169 -169
  386. package/skill/references/interfaces/ISYS_ComparisonResponse.md +115 -0
  387. package/skill/references/interfaces/ISYS_ExtensionExternalApiIndex.md +13 -0
  388. package/skill/references/interfaces/ISYS_ExtensionRegisteredExternalApis.md +13 -0
  389. package/skill/references/interfaces/ISYS_ExternalApiHelp.md +173 -0
  390. package/skill/references/interfaces/ISYS_ExternalApiRegistration.md +146 -0
  391. package/skill/references/interfaces/ISYS_FileSystemFileList.md +169 -169
  392. package/skill/references/interfaces/ISYS_HeaderMenuSub1MenuItem.md +205 -174
  393. package/skill/references/interfaces/ISYS_HeaderMenuSub2MenuItem.md +178 -147
  394. package/skill/references/interfaces/ISYS_HeaderMenuTopMenuItem.md +115 -115
  395. package/skill/references/interfaces/ISYS_HeaderMenus.md +408 -408
  396. package/skill/references/interfaces/ISYS_HelpAudienceEntry.md +92 -0
  397. package/skill/references/interfaces/ISYS_HelpClassSummary.md +205 -0
  398. package/skill/references/interfaces/ISYS_HelpData.md +92 -0
  399. package/skill/references/interfaces/ISYS_HelpMethodDetail.md +310 -0
  400. package/skill/references/interfaces/ISYS_JobHandle.md +65 -0
  401. package/skill/references/interfaces/ISYS_JobLogEntry.md +142 -0
  402. package/skill/references/interfaces/ISYS_JobStatus.md +176 -0
  403. package/skill/references/interfaces/ISYS_LogLine.md +115 -115
  404. package/skill/references/interfaces/ISYS_MathBBox.md +142 -142
  405. package/skill/references/interfaces/ISYS_MathPoint.md +88 -88
  406. package/skill/references/interfaces/ISYS_MathPolygonWithHoles.md +92 -92
  407. package/skill/references/interfaces/ISYS_MessageBusTask.md +115 -115
  408. package/skill/references/interfaces/ISYS_MultilingualLanguagesData.md +12 -12
  409. package/skill/references/interfaces/ISYS_RightClickMenuItem.md +174 -174
  410. package/skill/references/interfaces/ISYS_ShortcutKeyData.md +169 -169
  411. package/skill/references/interfaces/ISYS_ShortcutKeyDataWithCallFn.md +62 -62
  412. package/skill/references/interfaces/ISYS_ShortcutKeyDataWithUserDefinedShortcutKey.md +62 -62
  413. package/skill/references/interfaces/ISYS_WindowEventListenerRemovableObject.md +109 -109
  414. package/skill/references/interfaces/IconProps.md +88 -88
  415. package/skill/references/interfaces/ImageProps.md +115 -115
  416. package/skill/references/interfaces/InputEditConfig.md +182 -0
  417. package/skill/references/interfaces/InputProps.md +547 -520
  418. package/skill/references/interfaces/KeyboardConfig.md +61 -0
  419. package/skill/references/interfaces/ListChildren.md +223 -223
  420. package/skill/references/interfaces/ListProps.md +250 -223
  421. package/skill/references/interfaces/ModalProps.md +358 -358
  422. package/skill/references/interfaces/NumberEditConfig.md +234 -0
  423. package/skill/references/interfaces/RadioGroupProps.md +196 -196
  424. package/skill/references/interfaces/RadioItem.md +115 -115
  425. package/skill/references/interfaces/RichTableProps.md +1357 -0
  426. package/skill/references/interfaces/RowMetaConfig.md +142 -0
  427. package/skill/references/interfaces/ScrollerProps.md +169 -169
  428. package/skill/references/interfaces/SelectEditConfig.md +211 -0
  429. package/skill/references/interfaces/SelectListItem.md +142 -142
  430. package/skill/references/interfaces/SelectOption.md +142 -0
  431. package/skill/references/interfaces/SelectProps.md +169 -169
  432. package/skill/references/interfaces/SelectionConfig.md +358 -0
  433. package/skill/references/interfaces/SliderProps.md +142 -0
  434. package/skill/references/interfaces/SlotProps.md +88 -88
  435. package/skill/references/interfaces/SortState.md +88 -0
  436. package/skill/references/interfaces/SortingConfig.md +169 -0
  437. package/skill/references/interfaces/StyleProps.md +439 -385
  438. package/skill/references/interfaces/TextAreaProps.md +196 -196
  439. package/skill/references/interfaces/TextProps.md +169 -169
  440. package/skill/references/interfaces/TextareaEditConfig.md +182 -0
  441. package/skill/references/interfaces/ValidationRule.md +223 -0
  442. package/skill/references/interfaces/VirtualScrollConfig.md +115 -0
  443. package/skill/references/types/Align.md +9 -0
  444. package/skill/references/types/CellContentType.md +9 -0
  445. package/skill/references/types/ColumnDefOrGroup.md +12 -0
  446. package/skill/references/types/ColumnEditConfig.md +13 -0
  447. package/skill/references/types/ColumnType.md +9 -0
  448. package/skill/references/types/DataChangeType.md +9 -0
  449. package/skill/references/types/FilterMatchMode.md +9 -0
  450. package/skill/references/types/RichTableRow.md +12 -0
  451. package/skill/references/types/Serializable.md +10 -0
  452. package/skill/references/types/SerializablePrimitive.md +9 -0
  453. package/skill/references/types/SortOrder.md +9 -0
  454. package/skill/references/types/TPCB_LayerTypesOfInnerLayer.md +11 -11
  455. package/skill/references/types/TPCB_LayersInTheSelectable.md +42 -42
  456. package/skill/references/types/TPCB_LayersOfComponent.md +11 -11
  457. package/skill/references/types/TPCB_LayersOfCopper.md +15 -15
  458. package/skill/references/types/TPCB_LayersOfCustom.md +41 -41
  459. package/skill/references/types/TPCB_LayersOfDimension.md +16 -16
  460. package/skill/references/types/TPCB_LayersOfFill.md +28 -28
  461. package/skill/references/types/TPCB_LayersOfImage.md +22 -22
  462. package/skill/references/types/TPCB_LayersOfInner.md +41 -41
  463. package/skill/references/types/TPCB_LayersOfLine.md +25 -25
  464. package/skill/references/types/TPCB_LayersOfObject.md +12 -12
  465. package/skill/references/types/TPCB_LayersOfPad.md +11 -11
  466. package/skill/references/types/TPCB_LayersOfRegion.md +11 -11
  467. package/skill/references/types/TPCB_NumberOfCopperLayers.md +9 -9
  468. package/skill/references/types/TPCB_PolygonSourceArray.md +85 -83
  469. package/skill/references/types/TPCB_PrimitiveDimensionCoordinateSet.md +66 -66
  470. package/skill/references/types/TPCB_PrimitivePadHole.md +30 -30
  471. package/skill/references/types/TPCB_PrimitivePadShape.md +61 -61
  472. package/skill/references/types/TPCB_PrimitiveSpecialPadShape.md +19 -19
  473. package/skill/references/types/TSYS_ComparisonErrorCode.md +15 -0
  474. package/skill/references/types/TSYS_LanguageKeyValuePairs.md +13 -0
  475. package/skill/references/types/TSYS_MathPolygonGroup.md +15 -15
  476. package/skill/references/types/TSYS_MathPolygonInput.md +20 -20
  477. package/skill/references/types/TSYS_ShortcutKeys.md +96 -96
  478. package/skill/user-guide/using-extension.md +47 -47
  479. package/src/json-gen.test.js +430 -0
  480. package/skill/guide/ancillary-projects/pro-api-sdk.md +0 -1
  481. package/skill/references/interfaces/ISYS_PcbComparisonResponse.md +0 -115
  482. package/skill/references/types/ISYS_LanguageKeyValuePairs.md +0 -13
  483. package/skill/references/types/TSYS_PcbComparisonErrorCode.md +0 -10
@@ -1,965 +1,969 @@
1
- # LIB\_Classification class
2
-
3
- Comprehensive library / library classification index class
4
-
5
- ## Signature
6
-
7
- ```typescript
8
- class LIB_Classification
9
- ```
10
-
11
- ## Methods
12
-
13
- <table><thead><tr><th>
14
-
15
- Method
16
-
17
- </th><th>
18
-
19
- Modifiers
20
-
21
- </th><th>
22
-
23
- Description
24
-
25
- </th></tr></thead>
26
- <tbody><tr><td>
27
-
28
- [createPrimary(libraryUuid, libraryType, primaryClassificationName)](./LIB_Classification.md)
29
-
30
- </td><td>
31
-
32
- </td><td>
33
-
34
- **_(BETA)_** Create a primary classification
35
-
36
- </td></tr>
37
- <tr><td>
38
-
39
- [createSecondary(libraryUuid, libraryType, primaryClassificationUuid, secondaryClassificationName)](./LIB_Classification.md)
40
-
41
- </td><td>
42
-
43
- </td><td>
44
-
45
- **_(BETA)_** Create a secondary classification
46
-
47
- </td></tr>
48
- <tr><td>
49
-
50
- [deleteByIndex(classificationIndex)](./LIB_Classification.md)
51
-
52
- </td><td>
53
-
54
- </td><td>
55
-
56
- **_(BETA)_** Delete the classification at the specified index
57
-
58
- </td></tr>
59
- <tr><td>
60
-
61
- [deleteByUuid(libraryUuid, classificationUuid)](./LIB_Classification.md)
62
-
63
- </td><td>
64
-
65
- </td><td>
66
-
67
- **_(BETA)_** Delete the classification with the specified UUID
68
-
69
- </td></tr>
70
- <tr><td>
71
-
72
- [getAllClassificationTree(libraryUuid, libraryType)](./LIB_Classification.md)
73
-
74
- </td><td>
75
-
76
- </td><td>
77
-
78
- **_(BETA)_** Get the tree composed of all classification information
79
-
80
- </td></tr>
81
- <tr><td>
82
-
83
- [getIndexByName(libraryUuid, libraryType, primaryClassificationName, secondaryClassificationName)](./LIB_Classification.md)
84
-
85
- </td><td>
86
-
87
- </td><td>
88
-
89
- **_(BETA)_** Get the classification index of the classification with the specified name
90
-
91
- </td></tr>
92
- <tr><td>
93
-
94
- [getNameByIndex(classificationIndex)](./LIB_Classification.md)
95
-
96
- </td><td>
97
-
98
- </td><td>
99
-
100
- **_(BETA)_** Get the name of the classification at the specified index
101
-
102
- </td></tr>
103
- <tr><td>
104
-
105
- [getNameByUuid(libraryUuid, libraryType, primaryClassificationUuid, secondaryClassificationUuid)](./LIB_Classification.md)
106
-
107
- </td><td>
108
-
109
- </td><td>
110
-
111
- **_(BETA)_** Get the name of the classification with the specified UUID
112
-
113
- </td></tr>
114
- </tbody></table>
115
-
116
- ---
117
-
118
- ## 方法详情
119
-
120
- ### createprimary
121
-
122
- # LIB\_Classification.createPrimary() method
123
-
124
- > This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
125
-
126
- > Warning: This API is now obsolete.
127
- >
128
- > since EDA v3.2; dropped EDA v3.3
129
-
130
- Create a primary classification
131
-
132
- ## Signature
133
-
134
- ```typescript
135
- function createPrimary(
136
- libraryUuid: string,
137
- libraryType: ELIB_LibraryType,
138
- primaryClassificationName: string,
139
- ): Promise<ILIB_ClassificationIndex | undefined>;
140
- ```
141
-
142
- ## Parameters
143
-
144
- <table><thead><tr><th>
145
-
146
- Parameter
147
-
148
- </th><th>
149
-
150
- Type
151
-
152
- </th><th>
153
-
154
- Description
155
-
156
- </th></tr></thead>
157
- <tbody><tr><td>
158
-
159
- libraryUuid
160
-
161
- </td><td>
162
-
163
- string
164
-
165
- </td><td>
166
-
167
- Library UUID
168
-
169
- </td></tr>
170
- <tr><td>
171
-
172
- libraryType
173
-
174
- </td><td>
175
-
176
- [ELIB\_LibraryType](../enums/ELIB_LibraryType.md)
177
-
178
- </td><td>
179
-
180
- Library type
181
-
182
- </td></tr>
183
- <tr><td>
184
-
185
- primaryClassificationName
186
-
187
- </td><td>
188
-
189
- string
190
-
191
- </td><td>
192
-
193
- Primary classification name
194
-
195
- </td></tr>
196
- </tbody></table>
197
-
198
- ## Returns
199
-
200
- Promise&lt;[ILIB\_ClassificationIndex](../interfaces/ILIB_ClassificationIndex.md) \| undefined&gt;
201
-
202
- Classification index
203
-
204
- ## Example
205
-
206
- ```javascript
207
- // 1. 获取个人库 UUID
208
- const libraryUuid = await eda.lib_LibrariesList.getPersonalLibraryUuid();
209
-
210
- // 2. 在个人库的复用模块分类体系中创建一级分类(ELIB_LibraryType.CBB = '1')
211
- const name = `嘉立创示例_一级分类_${Date.now()}`;
212
- const index = await eda.lib_Classification.createPrimary(libraryUuid, '1', name);
213
-
214
- // 创建类保留现场
215
-
216
- console.log('libraryUuid:', libraryUuid);
217
- console.log('name:', name);
218
- console.log('primaryClassificationUuid:', index.primaryClassificationUuid);
219
- ```
220
-
221
- ### createsecondary
222
-
223
- # LIB\_Classification.createSecondary() method
224
-
225
- > This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
226
-
227
- > Warning: This API is now obsolete.
228
- >
229
- > since EDA v3.2; dropped EDA v3.3
230
-
231
- Create a secondary classification
232
-
233
- ## Signature
234
-
235
- ```typescript
236
- function createSecondary(
237
- libraryUuid: string,
238
- libraryType: ELIB_LibraryType,
239
- primaryClassificationUuid: string,
240
- secondaryClassificationName: string,
241
- ): Promise<ILIB_ClassificationIndex | undefined>;
242
- ```
243
-
244
- ## Parameters
245
-
246
- <table><thead><tr><th>
247
-
248
- Parameter
249
-
250
- </th><th>
251
-
252
- Type
253
-
254
- </th><th>
255
-
256
- Description
257
-
258
- </th></tr></thead>
259
- <tbody><tr><td>
260
-
261
- libraryUuid
262
-
263
- </td><td>
264
-
265
- string
266
-
267
- </td><td>
268
-
269
- Library UUID
270
-
271
- </td></tr>
272
- <tr><td>
273
-
274
- libraryType
275
-
276
- </td><td>
277
-
278
- [ELIB\_LibraryType](../enums/ELIB_LibraryType.md)
279
-
280
- </td><td>
281
-
282
- Library type
283
-
284
- </td></tr>
285
- <tr><td>
286
-
287
- primaryClassificationUuid
288
-
289
- </td><td>
290
-
291
- string
292
-
293
- </td><td>
294
-
295
- Primary classification UUID
296
-
297
- </td></tr>
298
- <tr><td>
299
-
300
- secondaryClassificationName
301
-
302
- </td><td>
303
-
304
- string
305
-
306
- </td><td>
307
-
308
- Secondary classification name
309
-
310
- </td></tr>
311
- </tbody></table>
312
-
313
- ## Returns
314
-
315
- Promise&lt;[ILIB\_ClassificationIndex](../interfaces/ILIB_ClassificationIndex.md) \| undefined&gt;
316
-
317
- Classification index
318
-
319
- ## Example
320
-
321
- ```javascript
322
- // 1. 获取个人库 UUID
323
- const libraryUuid = await eda.lib_LibrariesList.getPersonalLibraryUuid();
324
-
325
- // 2. 先创建一级分类作为父目录(复用已有分类时可用 getIndexByName 查 UUID)
326
- const primaryName = `嘉立创示例_二级演示一级_${Date.now()}`;
327
- const primaryIndex = await eda.lib_Classification.createPrimary(libraryUuid, '1', primaryName);
328
-
329
- // 3. 在该一级分类下创建二级分类
330
- const secondaryName = `嘉立创示例_二级分类_${Date.now()}`;
331
- const secondaryIndex = await eda.lib_Classification.createSecondary(
332
- libraryUuid,
333
- '1',
334
- primaryIndex.primaryClassificationUuid,
335
- secondaryName
336
- );
337
-
338
- // 创建类保留现场
339
-
340
- console.log('primaryName:', primaryName);
341
- console.log('secondaryName:', secondaryName);
342
- console.log('secondaryClassificationUuid:', secondaryIndex.secondaryClassificationUuid);
343
- ```
344
-
345
- ### deletebyindex
346
-
347
- # LIB\_Classification.deleteByIndex() method
348
-
349
- > This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
350
-
351
- > Warning: This API is now obsolete.
352
- >
353
- > since EDA v3.2; dropped EDA v3.3
354
-
355
- Delete the classification at the specified index
356
-
357
- ## Signature
358
-
359
- ```typescript
360
- function deleteByIndex(classificationIndex: ILIB_ClassificationIndex): Promise<boolean>;
361
- ```
362
-
363
- ## Parameters
364
-
365
- <table><thead><tr><th>
366
-
367
- Parameter
368
-
369
- </th><th>
370
-
371
- Type
372
-
373
- </th><th>
374
-
375
- Description
376
-
377
- </th></tr></thead>
378
- <tbody><tr><td>
379
-
380
- classificationIndex
381
-
382
- </td><td>
383
-
384
- [ILIB\_ClassificationIndex](../interfaces/ILIB_ClassificationIndex.md)
385
-
386
- </td><td>
387
-
388
- Classification index
389
-
390
- </td></tr>
391
- </tbody></table>
392
-
393
- ## Returns
394
-
395
- Promise&lt;boolean&gt;
396
-
397
- Whether the operation is successful
398
-
399
- ## Example
400
-
401
- ```javascript
402
- // 1. 获取个人库 UUID
403
- const libraryUuid = await eda.lib_LibrariesList.getPersonalLibraryUuid();
404
-
405
- // 2. 创建一个测试分类作为删除对象(复用模块库,ELIB_LibraryType.CBB = '1')
406
- const name = `嘉立创示例_待删除分类_${Date.now()}`;
407
- const index = await eda.lib_Classification.createPrimary(libraryUuid, '1', name);
408
-
409
- // 3. 按索引对象删除该分类
410
- const deleted = await eda.lib_Classification.deleteByIndex(index);
411
-
412
- // 删除类保留现场(分类已不存在,库面板中可确认)
413
-
414
- console.log('name:', name);
415
- console.log('deleted:', deleted);
416
- ```
417
-
418
- ### deletebyuuid
419
-
420
- # LIB\_Classification.deleteByUuid() method
421
-
422
- > This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
423
-
424
- > Warning: This API is now obsolete.
425
- >
426
- > since EDA v3.2; dropped EDA v3.3
427
-
428
- Delete the classification with the specified UUID
429
-
430
- ## Signature
431
-
432
- ```typescript
433
- function deleteByUuid(libraryUuid: string, classificationUuid: string): Promise<boolean>;
434
- ```
435
-
436
- ## Parameters
437
-
438
- <table><thead><tr><th>
439
-
440
- Parameter
441
-
442
- </th><th>
443
-
444
- Type
445
-
446
- </th><th>
447
-
448
- Description
449
-
450
- </th></tr></thead>
451
- <tbody><tr><td>
452
-
453
- libraryUuid
454
-
455
- </td><td>
456
-
457
- string
458
-
459
- </td><td>
460
-
461
- Library UUID
462
-
463
- </td></tr>
464
- <tr><td>
465
-
466
- classificationUuid
467
-
468
- </td><td>
469
-
470
- string
471
-
472
- </td><td>
473
-
474
- </td></tr>
475
- </tbody></table>
476
-
477
- ## Returns
478
-
479
- Promise&lt;boolean&gt;
480
-
481
- Whether the operation is successful
482
-
483
- ## Example
484
-
485
- ```javascript
486
- // 1. 获取个人库 UUID
487
- const libraryUuid = await eda.lib_LibrariesList.getPersonalLibraryUuid();
488
-
489
- // 2. 创建一个测试分类作为删除对象(复用模块库,ELIB_LibraryType.CBB = '1')
490
- const name = `嘉立创示例_待删除UUID分类_${Date.now()}`;
491
- const index = await eda.lib_Classification.createPrimary(libraryUuid, '1', name);
492
-
493
- // 3. 按分类 UUID 删除
494
- const deleted = await eda.lib_Classification.deleteByUuid(
495
- libraryUuid,
496
- index.primaryClassificationUuid
497
- );
498
-
499
- // 删除类保留现场(分类已不存在,库面板中可确认)
500
-
501
- console.log('name:', name);
502
- console.log('deleted:', deleted);
503
- ```
504
-
505
- ### getallclassificationtree
506
-
507
- # LIB\_Classification.getAllClassificationTree() method
508
-
509
- > This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
510
-
511
- > Warning: This API is now obsolete.
512
- >
513
- > since EDA v3.2; dropped EDA v3.3
514
-
515
- Get the tree composed of all classification information
516
-
517
- ## Signature
518
-
519
- ```typescript
520
- function getAllClassificationTree(
521
- libraryUuid: string,
522
- libraryType: ELIB_LibraryType,
523
- ): Promise<
524
- Array<{ name: string; uuid: string; children?: undefined | { name: string; uuid: string }[] }>
525
- >;
526
- ```
527
-
528
- ## Parameters
529
-
530
- <table><thead><tr><th>
531
-
532
- Parameter
533
-
534
- </th><th>
535
-
536
- Type
537
-
538
- </th><th>
539
-
540
- Description
541
-
542
- </th></tr></thead>
543
- <tbody><tr><td>
544
-
545
- libraryUuid
546
-
547
- </td><td>
548
-
549
- string
550
-
551
- </td><td>
552
-
553
- Library UUID
554
-
555
- </td></tr>
556
- <tr><td>
557
-
558
- libraryType
559
-
560
- </td><td>
561
-
562
- [ELIB\_LibraryType](../enums/ELIB_LibraryType.md)
563
-
564
- </td><td>
565
-
566
- Library type
567
-
568
- </td></tr>
569
- </tbody></table>
570
-
571
- ## Returns
572
-
573
- Promise&lt;Array&lt;{ name: string; uuid: string; children?: undefined \| { name: string; uuid: string }\[\] }&gt;&gt;
574
-
575
- Tree structure data composed of classification information
576
-
577
- ## Example
578
-
579
- ```javascript
580
- // 1. 获取个人库 UUID
581
- const libraryUuid = await eda.lib_LibrariesList.getPersonalLibraryUuid();
582
-
583
- // 2. 创建一个测试分类,让树里有可见数据(复用模块库,ELIB_LibraryType.CBB = '1')
584
- const name = `嘉立创示例_树查询_${Date.now()}`;
585
- const index = await eda.lib_Classification.createPrimary(libraryUuid, '1', name);
586
-
587
- // 3. 读取完整分类树
588
- const tree = await eda.lib_Classification.getAllClassificationTree(libraryUuid, '1');
589
-
590
- // 4. 清理测试分类(查询类需要清理)
591
- await eda.lib_Classification.deleteByUuid(libraryUuid, index.primaryClassificationUuid);
592
-
593
- // 5. 输出树结构
594
- console.log('total:', tree.length);
595
- tree.forEach((node, i) => {
596
- console.log(`[${i}] name:`, node.name, 'uuid:', node.uuid, 'children:', (node.children || []).length);
597
- });
598
- ```
599
-
600
- ### getindexbyname
601
-
602
- # LIB\_Classification.getIndexByName() method
603
-
604
- > This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
605
-
606
- > Warning: This API is now obsolete.
607
- >
608
- > since EDA v3.2; dropped EDA v3.3
609
-
610
- Get the classification index of the classification with the specified name
611
-
612
- ## Signature
613
-
614
- ```typescript
615
- function getIndexByName(
616
- libraryUuid: string,
617
- libraryType: ELIB_LibraryType,
618
- primaryClassificationName: string,
619
- secondaryClassificationName?: string,
620
- ): Promise<ILIB_ClassificationIndex | undefined>;
621
- ```
622
-
623
- ## Parameters
624
-
625
- <table><thead><tr><th>
626
-
627
- Parameter
628
-
629
- </th><th>
630
-
631
- Type
632
-
633
- </th><th>
634
-
635
- Description
636
-
637
- </th></tr></thead>
638
- <tbody><tr><td>
639
-
640
- libraryUuid
641
-
642
- </td><td>
643
-
644
- string
645
-
646
- </td><td>
647
-
648
- Library UUID
649
-
650
- </td></tr>
651
- <tr><td>
652
-
653
- libraryType
654
-
655
- </td><td>
656
-
657
- [ELIB\_LibraryType](../enums/ELIB_LibraryType.md)
658
-
659
- </td><td>
660
-
661
- Library type
662
-
663
- </td></tr>
664
- <tr><td>
665
-
666
- primaryClassificationName
667
-
668
- </td><td>
669
-
670
- string
671
-
672
- </td><td>
673
-
674
- Primary classification name
675
-
676
- </td></tr>
677
- <tr><td>
678
-
679
- secondaryClassificationName
680
-
681
- </td><td>
682
-
683
- string
684
-
685
- </td><td>
686
-
687
- _(Optional)_ Secondary classification name
688
-
689
- </td></tr>
690
- </tbody></table>
691
-
692
- ## Returns
693
-
694
- Promise&lt;[ILIB\_ClassificationIndex](../interfaces/ILIB_ClassificationIndex.md) \| undefined&gt;
695
-
696
- Classification index
697
-
698
- ## Remarks
699
-
700
- The classification index contains the UUID of the classification. For details, refer to [ILIB\_ClassificationIndex](../interfaces/ILIB_ClassificationIndex.md)
701
-
702
- ## Example
703
-
704
- ```javascript
705
- // 1. 获取个人库 UUID
706
- const libraryUuid = await eda.lib_LibrariesList.getPersonalLibraryUuid();
707
-
708
- // 2. 创建两级测试分类(复用模块库,ELIB_LibraryType.CBB = '1')
709
- const tag = Date.now();
710
- const primaryName = `嘉立创示例_按名索引一级_${tag}`;
711
- const secondaryName = `嘉立创示例_按名索引二级_${tag}`;
712
- const primaryIndex = await eda.lib_Classification.createPrimary(libraryUuid, '1', primaryName);
713
- await eda.lib_Classification.createSecondary(
714
- libraryUuid,
715
- '1',
716
- primaryIndex.primaryClassificationUuid,
717
- secondaryName
718
- );
719
-
720
- // 3. 只按一级名称查索引
721
- const primaryOnly = await eda.lib_Classification.getIndexByName(libraryUuid, '1', primaryName);
722
-
723
- // 4. 按一级 + 二级名称查索引(secondaryClassificationName 可选)
724
- const withSecondary = await eda.lib_Classification.getIndexByName(
725
- libraryUuid,
726
- '1',
727
- primaryName,
728
- secondaryName
729
- );
730
-
731
- // 5. 清理测试分类(查询类需要清理)
732
- await eda.lib_Classification.deleteByUuid(libraryUuid, primaryIndex.primaryClassificationUuid);
733
-
734
- console.log('primaryOnly.primaryClassificationUuid:', primaryOnly.primaryClassificationUuid);
735
- console.log('withSecondary.secondaryClassificationUuid:', withSecondary.secondaryClassificationUuid);
736
- ```
737
-
738
- ### getnamebyindex
739
-
740
- # LIB\_Classification.getNameByIndex() method
741
-
742
- > This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
743
-
744
- > Warning: This API is now obsolete.
745
- >
746
- > since EDA v3.2; dropped EDA v3.3
747
-
748
- Get the name of the classification at the specified index
749
-
750
- ## Signature
751
-
752
- ```typescript
753
- function getNameByIndex(
754
- classificationIndex: ILIB_ClassificationIndex,
755
- ): Promise<
756
- | { primaryClassificationName: string; secondaryClassificationName?: undefined | string }
757
- | undefined
758
- >;
759
- ```
760
-
761
- ## Parameters
762
-
763
- <table><thead><tr><th>
764
-
765
- Parameter
766
-
767
- </th><th>
768
-
769
- Type
770
-
771
- </th><th>
772
-
773
- Description
774
-
775
- </th></tr></thead>
776
- <tbody><tr><td>
777
-
778
- classificationIndex
779
-
780
- </td><td>
781
-
782
- [ILIB\_ClassificationIndex](../interfaces/ILIB_ClassificationIndex.md)
783
-
784
- </td><td>
785
-
786
- Classification index
787
-
788
- </td></tr>
789
- </tbody></table>
790
-
791
- ## Returns
792
-
793
- Promise&lt;{ primaryClassificationName: string; secondaryClassificationName?: undefined \| string } \| undefined&gt;
794
-
795
- Name of the two-level classification
796
-
797
- ## Example
798
-
799
- ```javascript
800
- // 1. 获取个人库 UUID
801
- const libraryUuid = await eda.lib_LibrariesList.getPersonalLibraryUuid();
802
-
803
- // 2. 创建两级测试分类,拿到两个索引对象(复用模块库)
804
- const tag = Date.now();
805
- const primaryName = `嘉立创示例_按索引查名一级_${tag}`;
806
- const secondaryName = `嘉立创示例_按索引查名二级_${tag}`;
807
- const primaryIndex = await eda.lib_Classification.createPrimary(libraryUuid, '1', primaryName);
808
- const secondaryIndex = await eda.lib_Classification.createSecondary(
809
- libraryUuid,
810
- '1',
811
- primaryIndex.primaryClassificationUuid,
812
- secondaryName
813
- );
814
-
815
- // 3. 分别解析一级索引、二级索引的名称
816
- const primaryNames = await eda.lib_Classification.getNameByIndex(primaryIndex);
817
- const secondaryNames = await eda.lib_Classification.getNameByIndex(secondaryIndex);
818
-
819
- // 4. 清理测试分类(查询类需要清理)
820
- await eda.lib_Classification.deleteByUuid(libraryUuid, primaryIndex.primaryClassificationUuid);
821
-
822
- console.log('primaryNames:', primaryNames);
823
- console.log('secondaryNames:', secondaryNames);
824
- ```
825
-
826
- ### getnamebyuuid
827
-
828
- # LIB\_Classification.getNameByUuid() method
829
-
830
- > This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
831
-
832
- > Warning: This API is now obsolete.
833
- >
834
- > since EDA v3.2; dropped EDA v3.3
835
-
836
- Get the name of the classification with the specified UUID
837
-
838
- ## Signature
839
-
840
- ```typescript
841
- function getNameByUuid(
842
- libraryUuid: string,
843
- libraryType: ELIB_LibraryType,
844
- primaryClassificationUuid: string,
845
- secondaryClassificationUuid?: string,
846
- ): Promise<
847
- | { primaryClassificationName: string; secondaryClassificationName?: undefined | string }
848
- | undefined
849
- >;
850
- ```
851
-
852
- ## Parameters
853
-
854
- <table><thead><tr><th>
855
-
856
- Parameter
857
-
858
- </th><th>
859
-
860
- Type
861
-
862
- </th><th>
863
-
864
- Description
865
-
866
- </th></tr></thead>
867
- <tbody><tr><td>
868
-
869
- libraryUuid
870
-
871
- </td><td>
872
-
873
- string
874
-
875
- </td><td>
876
-
877
- Library UUID
878
-
879
- </td></tr>
880
- <tr><td>
881
-
882
- libraryType
883
-
884
- </td><td>
885
-
886
- [ELIB\_LibraryType](../enums/ELIB_LibraryType.md)
887
-
888
- </td><td>
889
-
890
- Library type
891
-
892
- </td></tr>
893
- <tr><td>
894
-
895
- primaryClassificationUuid
896
-
897
- </td><td>
898
-
899
- string
900
-
901
- </td><td>
902
-
903
- Primary classification UUID
904
-
905
- </td></tr>
906
- <tr><td>
907
-
908
- secondaryClassificationUuid
909
-
910
- </td><td>
911
-
912
- string
913
-
914
- </td><td>
915
-
916
- _(Optional)_ Secondary classification UUID. If not specified, only the primary classification information is obtained
917
-
918
- </td></tr>
919
- </tbody></table>
920
-
921
- ## Returns
922
-
923
- Promise&lt;{ primaryClassificationName: string; secondaryClassificationName?: undefined \| string } \| undefined&gt;
924
-
925
- Name of the two-level classification
926
-
927
- ## Example
928
-
929
- ```javascript
930
- // 1. 获取个人库 UUID
931
- const libraryUuid = await eda.lib_LibrariesList.getPersonalLibraryUuid();
932
-
933
- // 2. 创建两级测试分类(复用模块库,ELIB_LibraryType.CBB = '1')
934
- const tag = Date.now();
935
- const primaryName = `嘉立创示例_按UUID查名一级_${tag}`;
936
- const secondaryName = `嘉立创示例_按UUID查名二级_${tag}`;
937
- const primaryIndex = await eda.lib_Classification.createPrimary(libraryUuid, '1', primaryName);
938
- const secondaryIndex = await eda.lib_Classification.createSecondary(
939
- libraryUuid,
940
- '1',
941
- primaryIndex.primaryClassificationUuid,
942
- secondaryName
943
- );
944
-
945
- // 3. 只传一级 UUID:返回一级名称
946
- const primaryNames = await eda.lib_Classification.getNameByUuid(
947
- libraryUuid,
948
- '1',
949
- primaryIndex.primaryClassificationUuid
950
- );
951
-
952
- // 4. 传一级 + 二级 UUID:两级名称都返回
953
- const bothNames = await eda.lib_Classification.getNameByUuid(
954
- libraryUuid,
955
- '1',
956
- primaryIndex.primaryClassificationUuid,
957
- secondaryIndex.secondaryClassificationUuid
958
- );
959
-
960
- // 5. 清理测试分类(查询类需要清理)
961
- await eda.lib_Classification.deleteByUuid(libraryUuid, primaryIndex.primaryClassificationUuid);
962
-
963
- console.log('primaryNames:', primaryNames);
964
- console.log('bothNames:', bothNames);
965
- ```
1
+ # LIB\_Classification class
2
+
3
+ Comprehensive library / library classification index class
4
+
5
+ ## Signature
6
+
7
+ ```typescript
8
+ class LIB_Classification
9
+ ```
10
+
11
+ ## Methods
12
+
13
+ <table><thead><tr><th>
14
+
15
+ Method
16
+
17
+ </th><th>
18
+
19
+ Modifiers
20
+
21
+ </th><th>
22
+
23
+ Description
24
+
25
+ </th></tr></thead>
26
+ <tbody><tr><td>
27
+
28
+ [createPrimary(libraryUuid, libraryType, primaryClassificationName)](./LIB_Classification.md)
29
+
30
+ </td><td>
31
+
32
+ </td><td>
33
+
34
+ **_(BETA)_** Create a primary classification
35
+
36
+ </td></tr>
37
+ <tr><td>
38
+
39
+ [createSecondary(libraryUuid, libraryType, primaryClassificationUuid, secondaryClassificationName)](./LIB_Classification.md)
40
+
41
+ </td><td>
42
+
43
+ </td><td>
44
+
45
+ **_(BETA)_** Create a secondary classification
46
+
47
+ </td></tr>
48
+ <tr><td>
49
+
50
+ [deleteByIndex(classificationIndex)](./LIB_Classification.md)
51
+
52
+ </td><td>
53
+
54
+ </td><td>
55
+
56
+ **_(BETA)_** Delete the classification at the specified index
57
+
58
+ </td></tr>
59
+ <tr><td>
60
+
61
+ [deleteByUuid(libraryUuid, classificationUuid)](./LIB_Classification.md)
62
+
63
+ </td><td>
64
+
65
+ </td><td>
66
+
67
+ **_(BETA)_** Delete the classification with the specified UUID
68
+
69
+ </td></tr>
70
+ <tr><td>
71
+
72
+ [getAllClassificationTree(libraryUuid, libraryType)](./LIB_Classification.md)
73
+
74
+ </td><td>
75
+
76
+ </td><td>
77
+
78
+ **_(BETA)_** Get the tree composed of all classification information
79
+
80
+ </td></tr>
81
+ <tr><td>
82
+
83
+ [getIndexByName(libraryUuid, libraryType, primaryClassificationName, secondaryClassificationName)](./LIB_Classification.md)
84
+
85
+ </td><td>
86
+
87
+ </td><td>
88
+
89
+ **_(BETA)_** Get the classification index of the classification with the specified name
90
+
91
+ </td></tr>
92
+ <tr><td>
93
+
94
+ [getNameByIndex(classificationIndex)](./LIB_Classification.md)
95
+
96
+ </td><td>
97
+
98
+ </td><td>
99
+
100
+ **_(BETA)_** Get the name of the classification at the specified index
101
+
102
+ </td></tr>
103
+ <tr><td>
104
+
105
+ [getNameByUuid(libraryUuid, libraryType, primaryClassificationUuid, secondaryClassificationUuid)](./LIB_Classification.md)
106
+
107
+ </td><td>
108
+
109
+ </td><td>
110
+
111
+ **_(BETA)_** Get the name of the classification with the specified UUID
112
+
113
+ </td></tr>
114
+ </tbody></table>
115
+
116
+ ---
117
+
118
+ ## 方法详情
119
+
120
+ ### createprimary
121
+
122
+ # LIB\_Classification.createPrimary() method
123
+
124
+ > This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
125
+
126
+ > Warning: This API is now obsolete.
127
+ >
128
+ > since EDA v3.2; dropped EDA v3.3
129
+
130
+ Create a primary classification
131
+
132
+ ## Signature
133
+
134
+ ```typescript
135
+ function createPrimary(
136
+ libraryUuid: string,
137
+ libraryType: ELIB_LibraryType,
138
+ primaryClassificationName: string,
139
+ ): Promise<ILIB_ClassificationIndex | undefined>;
140
+ ```
141
+
142
+ ## Parameters
143
+
144
+ <table><thead><tr><th>
145
+
146
+ Parameter
147
+
148
+ </th><th>
149
+
150
+ Type
151
+
152
+ </th><th>
153
+
154
+ Description
155
+
156
+ </th></tr></thead>
157
+ <tbody><tr><td>
158
+
159
+ libraryUuid
160
+
161
+ </td><td>
162
+
163
+ string
164
+
165
+ </td><td>
166
+
167
+ Library UUID
168
+
169
+ </td></tr>
170
+ <tr><td>
171
+
172
+ libraryType
173
+
174
+ </td><td>
175
+
176
+ [ELIB\_LibraryType](../enums/ELIB_LibraryType.md)
177
+
178
+ </td><td>
179
+
180
+ Library type
181
+
182
+ </td></tr>
183
+ <tr><td>
184
+
185
+ primaryClassificationName
186
+
187
+ </td><td>
188
+
189
+ string
190
+
191
+ </td><td>
192
+
193
+ Primary classification name
194
+
195
+ </td></tr>
196
+ </tbody></table>
197
+
198
+ ## Returns
199
+
200
+ Promise&lt;[ILIB\_ClassificationIndex](../interfaces/ILIB_ClassificationIndex.md) \| undefined&gt;
201
+
202
+ Classification index
203
+
204
+ ## Example
205
+
206
+ ```javascript
207
+ // 1. 获取个人库 UUID
208
+ const libraryUuid = await eda.lib_LibrariesList.getPersonalLibraryUuid();
209
+
210
+ // 2. 在个人库的复用模块分类体系中创建一级分类(ELIB_LibraryType.CBB = '1')
211
+ const name = `嘉立创示例_一级分类_${Date.now()}`;
212
+ const index = await eda.lib_Classification.createPrimary(libraryUuid, '1', name);
213
+
214
+ // 创建类保留现场
215
+
216
+ console.log('libraryUuid:', libraryUuid);
217
+ console.log('name:', name);
218
+ console.log('primaryClassificationUuid:', index.primaryClassificationUuid);
219
+ ```
220
+
221
+ ### createsecondary
222
+
223
+ # LIB\_Classification.createSecondary() method
224
+
225
+ > This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
226
+
227
+ > Warning: This API is now obsolete.
228
+ >
229
+ > since EDA v3.2; dropped EDA v3.3
230
+
231
+ Create a secondary classification
232
+
233
+ ## Signature
234
+
235
+ ```typescript
236
+ function createSecondary(
237
+ libraryUuid: string,
238
+ libraryType: ELIB_LibraryType,
239
+ primaryClassificationUuid: string,
240
+ secondaryClassificationName: string,
241
+ ): Promise<ILIB_ClassificationIndex | undefined>;
242
+ ```
243
+
244
+ ## Parameters
245
+
246
+ <table><thead><tr><th>
247
+
248
+ Parameter
249
+
250
+ </th><th>
251
+
252
+ Type
253
+
254
+ </th><th>
255
+
256
+ Description
257
+
258
+ </th></tr></thead>
259
+ <tbody><tr><td>
260
+
261
+ libraryUuid
262
+
263
+ </td><td>
264
+
265
+ string
266
+
267
+ </td><td>
268
+
269
+ Library UUID
270
+
271
+ </td></tr>
272
+ <tr><td>
273
+
274
+ libraryType
275
+
276
+ </td><td>
277
+
278
+ [ELIB\_LibraryType](../enums/ELIB_LibraryType.md)
279
+
280
+ </td><td>
281
+
282
+ Library type
283
+
284
+ </td></tr>
285
+ <tr><td>
286
+
287
+ primaryClassificationUuid
288
+
289
+ </td><td>
290
+
291
+ string
292
+
293
+ </td><td>
294
+
295
+ Primary classification UUID
296
+
297
+ </td></tr>
298
+ <tr><td>
299
+
300
+ secondaryClassificationName
301
+
302
+ </td><td>
303
+
304
+ string
305
+
306
+ </td><td>
307
+
308
+ Secondary classification name
309
+
310
+ </td></tr>
311
+ </tbody></table>
312
+
313
+ ## Returns
314
+
315
+ Promise&lt;[ILIB\_ClassificationIndex](../interfaces/ILIB_ClassificationIndex.md) \| undefined&gt;
316
+
317
+ Classification index
318
+
319
+ ## Example
320
+
321
+ ```javascript
322
+ // 1. 获取个人库 UUID
323
+ const libraryUuid = await eda.lib_LibrariesList.getPersonalLibraryUuid();
324
+
325
+ // 2. 先创建一级分类作为父目录(复用已有分类时可用 getIndexByName 查 UUID)
326
+ const primaryName = `嘉立创示例_二级演示一级_${Date.now()}`;
327
+ const primaryIndex = await eda.lib_Classification.createPrimary(libraryUuid, '1', primaryName);
328
+
329
+ // 3. 在该一级分类下创建二级分类
330
+ const secondaryName = `嘉立创示例_二级分类_${Date.now()}`;
331
+ const secondaryIndex = await eda.lib_Classification.createSecondary(
332
+ libraryUuid,
333
+ '1',
334
+ primaryIndex.primaryClassificationUuid,
335
+ secondaryName
336
+ );
337
+
338
+ // 创建类保留现场
339
+
340
+ console.log('primaryName:', primaryName);
341
+ console.log('secondaryName:', secondaryName);
342
+ console.log('secondaryClassificationUuid:', secondaryIndex.secondaryClassificationUuid);
343
+ ```
344
+
345
+ ### deletebyindex
346
+
347
+ # LIB\_Classification.deleteByIndex() method
348
+
349
+ > This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
350
+
351
+ > Warning: This API is now obsolete.
352
+ >
353
+ > since EDA v3.2; dropped EDA v3.3
354
+
355
+ Delete the classification at the specified index
356
+
357
+ ## Signature
358
+
359
+ ```typescript
360
+ function deleteByIndex(classificationIndex: ILIB_ClassificationIndex): Promise<boolean>;
361
+ ```
362
+
363
+ ## Parameters
364
+
365
+ <table><thead><tr><th>
366
+
367
+ Parameter
368
+
369
+ </th><th>
370
+
371
+ Type
372
+
373
+ </th><th>
374
+
375
+ Description
376
+
377
+ </th></tr></thead>
378
+ <tbody><tr><td>
379
+
380
+ classificationIndex
381
+
382
+ </td><td>
383
+
384
+ [ILIB\_ClassificationIndex](../interfaces/ILIB_ClassificationIndex.md)
385
+
386
+ </td><td>
387
+
388
+ Classification index
389
+
390
+ </td></tr>
391
+ </tbody></table>
392
+
393
+ ## Returns
394
+
395
+ Promise&lt;boolean&gt;
396
+
397
+ Whether the operation is successful
398
+
399
+ ## Example
400
+
401
+ ```javascript
402
+ // 1. 获取个人库 UUID
403
+ const libraryUuid = await eda.lib_LibrariesList.getPersonalLibraryUuid();
404
+
405
+ // 2. 创建一个测试分类作为删除对象(复用模块库,ELIB_LibraryType.CBB = '1')
406
+ const name = `嘉立创示例_待删除分类_${Date.now()}`;
407
+ const index = await eda.lib_Classification.createPrimary(libraryUuid, '1', name);
408
+
409
+ // 3. 按索引对象删除该分类
410
+ const deleted = await eda.lib_Classification.deleteByIndex(index);
411
+
412
+ // 删除类保留现场(分类已不存在,库面板中可确认)
413
+
414
+ console.log('name:', name);
415
+ console.log('deleted:', deleted);
416
+ ```
417
+
418
+ ### deletebyuuid
419
+
420
+ # LIB\_Classification.deleteByUuid() method
421
+
422
+ > This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
423
+
424
+ > Warning: This API is now obsolete.
425
+ >
426
+ > since EDA v3.2; dropped EDA v3.3
427
+
428
+ Delete the classification with the specified UUID
429
+
430
+ ## Signature
431
+
432
+ ```typescript
433
+ function deleteByUuid(libraryUuid: string, classificationUuid: string): Promise<boolean>;
434
+ ```
435
+
436
+ ## Parameters
437
+
438
+ <table><thead><tr><th>
439
+
440
+ Parameter
441
+
442
+ </th><th>
443
+
444
+ Type
445
+
446
+ </th><th>
447
+
448
+ Description
449
+
450
+ </th></tr></thead>
451
+ <tbody><tr><td>
452
+
453
+ libraryUuid
454
+
455
+ </td><td>
456
+
457
+ string
458
+
459
+ </td><td>
460
+
461
+ Library UUID
462
+
463
+ </td></tr>
464
+ <tr><td>
465
+
466
+ classificationUuid
467
+
468
+ </td><td>
469
+
470
+ string
471
+
472
+ </td><td>
473
+
474
+ </td></tr>
475
+ </tbody></table>
476
+
477
+ ## Returns
478
+
479
+ Promise&lt;boolean&gt;
480
+
481
+ Whether the operation is successful
482
+
483
+ ## Example
484
+
485
+ ```javascript
486
+ // 1. 获取个人库 UUID
487
+ const libraryUuid = await eda.lib_LibrariesList.getPersonalLibraryUuid();
488
+
489
+ // 2. 创建一个测试分类作为删除对象(复用模块库,ELIB_LibraryType.CBB = '1')
490
+ const name = `嘉立创示例_待删除UUID分类_${Date.now()}`;
491
+ const index = await eda.lib_Classification.createPrimary(libraryUuid, '1', name);
492
+
493
+ // 3. 按分类 UUID 删除
494
+ const deleted = await eda.lib_Classification.deleteByUuid(
495
+ libraryUuid,
496
+ index.primaryClassificationUuid
497
+ );
498
+
499
+ // 删除类保留现场(分类已不存在,库面板中可确认)
500
+
501
+ console.log('name:', name);
502
+ console.log('deleted:', deleted);
503
+ ```
504
+
505
+ ### getallclassificationtree
506
+
507
+ # LIB\_Classification.getAllClassificationTree() method
508
+
509
+ > This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
510
+
511
+ > Warning: This API is now obsolete.
512
+ >
513
+ > since EDA v3.2; dropped EDA v3.3
514
+
515
+ Get the tree composed of all classification information
516
+
517
+ ## Signature
518
+
519
+ ```typescript
520
+ function getAllClassificationTree(
521
+ libraryUuid: string,
522
+ libraryType: ELIB_LibraryType,
523
+ ): Promise<
524
+ Array<{
525
+ name: string;
526
+ uuid: string;
527
+ children?: Array<{ name: string; uuid: string }> | undefined;
528
+ }>
529
+ >;
530
+ ```
531
+
532
+ ## Parameters
533
+
534
+ <table><thead><tr><th>
535
+
536
+ Parameter
537
+
538
+ </th><th>
539
+
540
+ Type
541
+
542
+ </th><th>
543
+
544
+ Description
545
+
546
+ </th></tr></thead>
547
+ <tbody><tr><td>
548
+
549
+ libraryUuid
550
+
551
+ </td><td>
552
+
553
+ string
554
+
555
+ </td><td>
556
+
557
+ Library UUID
558
+
559
+ </td></tr>
560
+ <tr><td>
561
+
562
+ libraryType
563
+
564
+ </td><td>
565
+
566
+ [ELIB\_LibraryType](../enums/ELIB_LibraryType.md)
567
+
568
+ </td><td>
569
+
570
+ Library type
571
+
572
+ </td></tr>
573
+ </tbody></table>
574
+
575
+ ## Returns
576
+
577
+ Promise&lt;Array&lt;{ name: string; uuid: string; children?: Array&lt;{ name: string; uuid: string }&gt; \| undefined }&gt;&gt;
578
+
579
+ Tree structure data composed of classification information
580
+
581
+ ## Example
582
+
583
+ ```javascript
584
+ // 1. 获取个人库 UUID
585
+ const libraryUuid = await eda.lib_LibrariesList.getPersonalLibraryUuid();
586
+
587
+ // 2. 创建一个测试分类,让树里有可见数据(复用模块库,ELIB_LibraryType.CBB = '1')
588
+ const name = `嘉立创示例_树查询_${Date.now()}`;
589
+ const index = await eda.lib_Classification.createPrimary(libraryUuid, '1', name);
590
+
591
+ // 3. 读取完整分类树
592
+ const tree = await eda.lib_Classification.getAllClassificationTree(libraryUuid, '1');
593
+
594
+ // 4. 清理测试分类(查询类需要清理)
595
+ await eda.lib_Classification.deleteByUuid(libraryUuid, index.primaryClassificationUuid);
596
+
597
+ // 5. 输出树结构
598
+ console.log('total:', tree.length);
599
+ tree.forEach((node, i) => {
600
+ console.log(`[${i}] name:`, node.name, 'uuid:', node.uuid, 'children:', (node.children || []).length);
601
+ });
602
+ ```
603
+
604
+ ### getindexbyname
605
+
606
+ # LIB\_Classification.getIndexByName() method
607
+
608
+ > This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
609
+
610
+ > Warning: This API is now obsolete.
611
+ >
612
+ > since EDA v3.2; dropped EDA v3.3
613
+
614
+ Get the classification index of the classification with the specified name
615
+
616
+ ## Signature
617
+
618
+ ```typescript
619
+ function getIndexByName(
620
+ libraryUuid: string,
621
+ libraryType: ELIB_LibraryType,
622
+ primaryClassificationName: string,
623
+ secondaryClassificationName?: string,
624
+ ): Promise<ILIB_ClassificationIndex | undefined>;
625
+ ```
626
+
627
+ ## Parameters
628
+
629
+ <table><thead><tr><th>
630
+
631
+ Parameter
632
+
633
+ </th><th>
634
+
635
+ Type
636
+
637
+ </th><th>
638
+
639
+ Description
640
+
641
+ </th></tr></thead>
642
+ <tbody><tr><td>
643
+
644
+ libraryUuid
645
+
646
+ </td><td>
647
+
648
+ string
649
+
650
+ </td><td>
651
+
652
+ Library UUID
653
+
654
+ </td></tr>
655
+ <tr><td>
656
+
657
+ libraryType
658
+
659
+ </td><td>
660
+
661
+ [ELIB\_LibraryType](../enums/ELIB_LibraryType.md)
662
+
663
+ </td><td>
664
+
665
+ Library type
666
+
667
+ </td></tr>
668
+ <tr><td>
669
+
670
+ primaryClassificationName
671
+
672
+ </td><td>
673
+
674
+ string
675
+
676
+ </td><td>
677
+
678
+ Primary classification name
679
+
680
+ </td></tr>
681
+ <tr><td>
682
+
683
+ secondaryClassificationName
684
+
685
+ </td><td>
686
+
687
+ string
688
+
689
+ </td><td>
690
+
691
+ _(Optional)_ Secondary classification name
692
+
693
+ </td></tr>
694
+ </tbody></table>
695
+
696
+ ## Returns
697
+
698
+ Promise&lt;[ILIB\_ClassificationIndex](../interfaces/ILIB_ClassificationIndex.md) \| undefined&gt;
699
+
700
+ Classification index
701
+
702
+ ## Remarks
703
+
704
+ The classification index contains the UUID of the classification. For details, refer to [ILIB\_ClassificationIndex](../interfaces/ILIB_ClassificationIndex.md)
705
+
706
+ ## Example
707
+
708
+ ```javascript
709
+ // 1. 获取个人库 UUID
710
+ const libraryUuid = await eda.lib_LibrariesList.getPersonalLibraryUuid();
711
+
712
+ // 2. 创建两级测试分类(复用模块库,ELIB_LibraryType.CBB = '1')
713
+ const tag = Date.now();
714
+ const primaryName = `嘉立创示例_按名索引一级_${tag}`;
715
+ const secondaryName = `嘉立创示例_按名索引二级_${tag}`;
716
+ const primaryIndex = await eda.lib_Classification.createPrimary(libraryUuid, '1', primaryName);
717
+ await eda.lib_Classification.createSecondary(
718
+ libraryUuid,
719
+ '1',
720
+ primaryIndex.primaryClassificationUuid,
721
+ secondaryName
722
+ );
723
+
724
+ // 3. 只按一级名称查索引
725
+ const primaryOnly = await eda.lib_Classification.getIndexByName(libraryUuid, '1', primaryName);
726
+
727
+ // 4. 按一级 + 二级名称查索引(secondaryClassificationName 可选)
728
+ const withSecondary = await eda.lib_Classification.getIndexByName(
729
+ libraryUuid,
730
+ '1',
731
+ primaryName,
732
+ secondaryName
733
+ );
734
+
735
+ // 5. 清理测试分类(查询类需要清理)
736
+ await eda.lib_Classification.deleteByUuid(libraryUuid, primaryIndex.primaryClassificationUuid);
737
+
738
+ console.log('primaryOnly.primaryClassificationUuid:', primaryOnly.primaryClassificationUuid);
739
+ console.log('withSecondary.secondaryClassificationUuid:', withSecondary.secondaryClassificationUuid);
740
+ ```
741
+
742
+ ### getnamebyindex
743
+
744
+ # LIB\_Classification.getNameByIndex() method
745
+
746
+ > This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
747
+
748
+ > Warning: This API is now obsolete.
749
+ >
750
+ > since EDA v3.2; dropped EDA v3.3
751
+
752
+ Get the name of the classification at the specified index
753
+
754
+ ## Signature
755
+
756
+ ```typescript
757
+ function getNameByIndex(
758
+ classificationIndex: ILIB_ClassificationIndex,
759
+ ): Promise<
760
+ | { primaryClassificationName: string; secondaryClassificationName?: string | undefined }
761
+ | undefined
762
+ >;
763
+ ```
764
+
765
+ ## Parameters
766
+
767
+ <table><thead><tr><th>
768
+
769
+ Parameter
770
+
771
+ </th><th>
772
+
773
+ Type
774
+
775
+ </th><th>
776
+
777
+ Description
778
+
779
+ </th></tr></thead>
780
+ <tbody><tr><td>
781
+
782
+ classificationIndex
783
+
784
+ </td><td>
785
+
786
+ [ILIB\_ClassificationIndex](../interfaces/ILIB_ClassificationIndex.md)
787
+
788
+ </td><td>
789
+
790
+ Classification index
791
+
792
+ </td></tr>
793
+ </tbody></table>
794
+
795
+ ## Returns
796
+
797
+ Promise&lt;{ primaryClassificationName: string; secondaryClassificationName?: string \| undefined } \| undefined&gt;
798
+
799
+ Name of the two-level classification
800
+
801
+ ## Example
802
+
803
+ ```javascript
804
+ // 1. 获取个人库 UUID
805
+ const libraryUuid = await eda.lib_LibrariesList.getPersonalLibraryUuid();
806
+
807
+ // 2. 创建两级测试分类,拿到两个索引对象(复用模块库)
808
+ const tag = Date.now();
809
+ const primaryName = `嘉立创示例_按索引查名一级_${tag}`;
810
+ const secondaryName = `嘉立创示例_按索引查名二级_${tag}`;
811
+ const primaryIndex = await eda.lib_Classification.createPrimary(libraryUuid, '1', primaryName);
812
+ const secondaryIndex = await eda.lib_Classification.createSecondary(
813
+ libraryUuid,
814
+ '1',
815
+ primaryIndex.primaryClassificationUuid,
816
+ secondaryName
817
+ );
818
+
819
+ // 3. 分别解析一级索引、二级索引的名称
820
+ const primaryNames = await eda.lib_Classification.getNameByIndex(primaryIndex);
821
+ const secondaryNames = await eda.lib_Classification.getNameByIndex(secondaryIndex);
822
+
823
+ // 4. 清理测试分类(查询类需要清理)
824
+ await eda.lib_Classification.deleteByUuid(libraryUuid, primaryIndex.primaryClassificationUuid);
825
+
826
+ console.log('primaryNames:', primaryNames);
827
+ console.log('secondaryNames:', secondaryNames);
828
+ ```
829
+
830
+ ### getnamebyuuid
831
+
832
+ # LIB\_Classification.getNameByUuid() method
833
+
834
+ > This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
835
+
836
+ > Warning: This API is now obsolete.
837
+ >
838
+ > since EDA v3.2; dropped EDA v3.3
839
+
840
+ Get the name of the classification with the specified UUID
841
+
842
+ ## Signature
843
+
844
+ ```typescript
845
+ function getNameByUuid(
846
+ libraryUuid: string,
847
+ libraryType: ELIB_LibraryType,
848
+ primaryClassificationUuid: string,
849
+ secondaryClassificationUuid?: string,
850
+ ): Promise<
851
+ | { primaryClassificationName: string; secondaryClassificationName?: string | undefined }
852
+ | undefined
853
+ >;
854
+ ```
855
+
856
+ ## Parameters
857
+
858
+ <table><thead><tr><th>
859
+
860
+ Parameter
861
+
862
+ </th><th>
863
+
864
+ Type
865
+
866
+ </th><th>
867
+
868
+ Description
869
+
870
+ </th></tr></thead>
871
+ <tbody><tr><td>
872
+
873
+ libraryUuid
874
+
875
+ </td><td>
876
+
877
+ string
878
+
879
+ </td><td>
880
+
881
+ Library UUID
882
+
883
+ </td></tr>
884
+ <tr><td>
885
+
886
+ libraryType
887
+
888
+ </td><td>
889
+
890
+ [ELIB\_LibraryType](../enums/ELIB_LibraryType.md)
891
+
892
+ </td><td>
893
+
894
+ Library type
895
+
896
+ </td></tr>
897
+ <tr><td>
898
+
899
+ primaryClassificationUuid
900
+
901
+ </td><td>
902
+
903
+ string
904
+
905
+ </td><td>
906
+
907
+ Primary classification UUID
908
+
909
+ </td></tr>
910
+ <tr><td>
911
+
912
+ secondaryClassificationUuid
913
+
914
+ </td><td>
915
+
916
+ string
917
+
918
+ </td><td>
919
+
920
+ _(Optional)_ Secondary classification UUID. If not specified, only the primary classification information is obtained
921
+
922
+ </td></tr>
923
+ </tbody></table>
924
+
925
+ ## Returns
926
+
927
+ Promise&lt;{ primaryClassificationName: string; secondaryClassificationName?: string \| undefined } \| undefined&gt;
928
+
929
+ Name of the two-level classification
930
+
931
+ ## Example
932
+
933
+ ```javascript
934
+ // 1. 获取个人库 UUID
935
+ const libraryUuid = await eda.lib_LibrariesList.getPersonalLibraryUuid();
936
+
937
+ // 2. 创建两级测试分类(复用模块库,ELIB_LibraryType.CBB = '1')
938
+ const tag = Date.now();
939
+ const primaryName = `嘉立创示例_按UUID查名一级_${tag}`;
940
+ const secondaryName = `嘉立创示例_按UUID查名二级_${tag}`;
941
+ const primaryIndex = await eda.lib_Classification.createPrimary(libraryUuid, '1', primaryName);
942
+ const secondaryIndex = await eda.lib_Classification.createSecondary(
943
+ libraryUuid,
944
+ '1',
945
+ primaryIndex.primaryClassificationUuid,
946
+ secondaryName
947
+ );
948
+
949
+ // 3. 只传一级 UUID:返回一级名称
950
+ const primaryNames = await eda.lib_Classification.getNameByUuid(
951
+ libraryUuid,
952
+ '1',
953
+ primaryIndex.primaryClassificationUuid
954
+ );
955
+
956
+ // 4. 传一级 + 二级 UUID:两级名称都返回
957
+ const bothNames = await eda.lib_Classification.getNameByUuid(
958
+ libraryUuid,
959
+ '1',
960
+ primaryIndex.primaryClassificationUuid,
961
+ secondaryIndex.secondaryClassificationUuid
962
+ );
963
+
964
+ // 5. 清理测试分类(查询类需要清理)
965
+ await eda.lib_Classification.deleteByUuid(libraryUuid, primaryIndex.primaryClassificationUuid);
966
+
967
+ console.log('primaryNames:', primaryNames);
968
+ console.log('bothNames:', bothNames);
969
+ ```