@windypro-rourou/dsh-eda 0.1.0 → 0.1.1

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 (407) hide show
  1. package/README.md +71 -119
  2. package/cordis.patch.yml +9 -7
  3. package/lib/board.js +80 -0
  4. package/lib/client.js +2 -2
  5. package/lib/index.js +339 -11
  6. package/lib/installer.js +4 -4
  7. package/lib/skill.js +138 -0
  8. package/package.json +12 -2
  9. package/skill/INDEX.md +193 -0
  10. package/skill/README.official.md +125 -0
  11. package/skill/README.zh-Hans.official.md +125 -0
  12. package/skill/SKILL.md +746 -0
  13. package/skill/format/index.md +152 -0
  14. package/skill/format/pcb/3d.md +166 -0
  15. package/skill/format/pcb/attr.md +63 -0
  16. package/skill/format/pcb/common.md +306 -0
  17. package/skill/format/pcb/component.md +132 -0
  18. package/skill/format/pcb/dimension.md +58 -0
  19. package/skill/format/pcb/index.md +17 -0
  20. package/skill/format/pcb/obj.md +43 -0
  21. package/skill/format/pcb/pad_via.md +151 -0
  22. package/skill/format/pcb/panel.md +64 -0
  23. package/skill/format/pcb/partition.md +43 -0
  24. package/skill/format/pcb/primitive.md +196 -0
  25. package/skill/format/pcb/rule.md +71 -0
  26. package/skill/format/pcb/shape.md +441 -0
  27. package/skill/format/pcb/text.md +62 -0
  28. package/skill/format/project/blob.md +30 -0
  29. package/skill/format/project/common.md +42 -0
  30. package/skill/format/project/group.md +62 -0
  31. package/skill/format/project/index.md +12 -0
  32. package/skill/format/project/instance.md +32 -0
  33. package/skill/format/project/meta.md +189 -0
  34. package/skill/format/project/variant.md +30 -0
  35. package/skill/format/schematic/attr.md +41 -0
  36. package/skill/format/schematic/common.md +47 -0
  37. package/skill/format/schematic/component.md +91 -0
  38. package/skill/format/schematic/index.md +14 -0
  39. package/skill/format/schematic/obj.md +41 -0
  40. package/skill/format/schematic/pin.md +59 -0
  41. package/skill/format/schematic/shape.md +231 -0
  42. package/skill/format/schematic/structure.md +53 -0
  43. package/skill/format/schematic/table.md +109 -0
  44. package/skill/format/schematic/text.md +47 -0
  45. package/skill/format/schematic/wire.md +132 -0
  46. package/skill/guide/ancillary-projects/pro-api-sdk.md +1 -0
  47. package/skill/guide/ancillary-projects/pro-api-types.md +5 -0
  48. package/skill/guide/ancillary-projects.md +10 -0
  49. package/skill/guide/error-handling.md +38 -0
  50. package/skill/guide/extension-json.md +135 -0
  51. package/skill/guide/extensions-marketplace.md +61 -0
  52. package/skill/guide/how-to-start.md +301 -0
  53. package/skill/guide/i18n.md +57 -0
  54. package/skill/guide/index.md +7 -0
  55. package/skill/guide/inline-frame.md +20 -0
  56. package/skill/guide/invoke-apis.md +81 -0
  57. package/skill/guide/stability.md +37 -0
  58. package/skill/references/_index.md +398 -0
  59. package/skill/references/_quick-reference.md +3028 -0
  60. package/skill/references/classes/DMT_Board.md +533 -0
  61. package/skill/references/classes/DMT_EditorControl.md +1736 -0
  62. package/skill/references/classes/DMT_Event.md +356 -0
  63. package/skill/references/classes/DMT_Folder.md +775 -0
  64. package/skill/references/classes/DMT_Panel.md +531 -0
  65. package/skill/references/classes/DMT_Pcb.md +575 -0
  66. package/skill/references/classes/DMT_Project.md +573 -0
  67. package/skill/references/classes/DMT_Schematic.md +1477 -0
  68. package/skill/references/classes/DMT_SelectControl.md +96 -0
  69. package/skill/references/classes/DMT_Team.md +172 -0
  70. package/skill/references/classes/DMT_Workspace.md +198 -0
  71. package/skill/references/classes/EDA.md +961 -0
  72. package/skill/references/classes/IPCB_ComplexPolygon.md +299 -0
  73. package/skill/references/classes/IPCB_Polygon.md +175 -0
  74. package/skill/references/classes/IPCB_PrimitiveArc.md +1901 -0
  75. package/skill/references/classes/IPCB_PrimitiveAttribute.md +2993 -0
  76. package/skill/references/classes/IPCB_PrimitiveComponent.md +2627 -0
  77. package/skill/references/classes/IPCB_PrimitiveComponentPad.md +410 -0
  78. package/skill/references/classes/IPCB_PrimitiveDimension.md +1419 -0
  79. package/skill/references/classes/IPCB_PrimitiveFill.md +1325 -0
  80. package/skill/references/classes/IPCB_PrimitiveImage.md +1461 -0
  81. package/skill/references/classes/IPCB_PrimitiveLine.md +1639 -0
  82. package/skill/references/classes/IPCB_PrimitiveObject.md +1700 -0
  83. package/skill/references/classes/IPCB_PrimitivePad.md +3155 -0
  84. package/skill/references/classes/IPCB_PrimitivePolyline.md +1193 -0
  85. package/skill/references/classes/IPCB_PrimitivePour.md +1858 -0
  86. package/skill/references/classes/IPCB_PrimitivePoured.md +556 -0
  87. package/skill/references/classes/IPCB_PrimitiveRegion.md +1332 -0
  88. package/skill/references/classes/IPCB_PrimitiveString.md +2315 -0
  89. package/skill/references/classes/IPCB_PrimitiveVia.md +1588 -0
  90. package/skill/references/classes/ISCH_PrimitiveArc.md +1676 -0
  91. package/skill/references/classes/ISCH_PrimitiveAttribute.md +2541 -0
  92. package/skill/references/classes/ISCH_PrimitiveBus.md +973 -0
  93. package/skill/references/classes/ISCH_PrimitiveCbbSymbolComponent.md +260 -0
  94. package/skill/references/classes/ISCH_PrimitiveCircle.md +1392 -0
  95. package/skill/references/classes/ISCH_PrimitiveComponent.md +2913 -0
  96. package/skill/references/classes/ISCH_PrimitiveComponentPin.md +155 -0
  97. package/skill/references/classes/ISCH_PrimitiveObject.md +960 -0
  98. package/skill/references/classes/ISCH_PrimitivePin.md +2402 -0
  99. package/skill/references/classes/ISCH_PrimitivePolygon.md +1028 -0
  100. package/skill/references/classes/ISCH_PrimitiveRectangle.md +1777 -0
  101. package/skill/references/classes/ISCH_PrimitiveText.md +1771 -0
  102. package/skill/references/classes/ISCH_PrimitiveWire.md +973 -0
  103. package/skill/references/classes/LIB_3DModel.md +780 -0
  104. package/skill/references/classes/LIB_Cbb.md +957 -0
  105. package/skill/references/classes/LIB_Classification.md +965 -0
  106. package/skill/references/classes/LIB_Device.md +1221 -0
  107. package/skill/references/classes/LIB_Footprint.md +1153 -0
  108. package/skill/references/classes/LIB_LibrariesList.md +329 -0
  109. package/skill/references/classes/LIB_PanelLibrary.md +855 -0
  110. package/skill/references/classes/LIB_SelectControl.md +89 -0
  111. package/skill/references/classes/LIB_SimulationModel.md +821 -0
  112. package/skill/references/classes/LIB_Symbol.md +1195 -0
  113. package/skill/references/classes/PCB_Document.md +1754 -0
  114. package/skill/references/classes/PCB_Drc.md +3375 -0
  115. package/skill/references/classes/PCB_Event.md +1081 -0
  116. package/skill/references/classes/PCB_Layer.md +1911 -0
  117. package/skill/references/classes/PCB_ManufactureData.md +2968 -0
  118. package/skill/references/classes/PCB_MathPolygon.md +785 -0
  119. package/skill/references/classes/PCB_Net.md +1128 -0
  120. package/skill/references/classes/PCB_Primitive.md +217 -0
  121. package/skill/references/classes/PCB_PrimitiveArc.md +894 -0
  122. package/skill/references/classes/PCB_PrimitiveAttribute.md +717 -0
  123. package/skill/references/classes/PCB_PrimitiveComponent.md +1050 -0
  124. package/skill/references/classes/PCB_PrimitiveDimension.md +833 -0
  125. package/skill/references/classes/PCB_PrimitiveFill.md +861 -0
  126. package/skill/references/classes/PCB_PrimitiveImage.md +875 -0
  127. package/skill/references/classes/PCB_PrimitiveLine.md +858 -0
  128. package/skill/references/classes/PCB_PrimitiveObject.md +800 -0
  129. package/skill/references/classes/PCB_PrimitivePad.md +944 -0
  130. package/skill/references/classes/PCB_PrimitivePolyline.md +819 -0
  131. package/skill/references/classes/PCB_PrimitivePour.md +845 -0
  132. package/skill/references/classes/PCB_PrimitivePoured.md +363 -0
  133. package/skill/references/classes/PCB_PrimitiveRegion.md +799 -0
  134. package/skill/references/classes/PCB_PrimitiveString.md +910 -0
  135. package/skill/references/classes/PCB_PrimitiveVia.md +765 -0
  136. package/skill/references/classes/PCB_RayTracerEngine.md +263 -0
  137. package/skill/references/classes/PCB_SelectControl.md +495 -0
  138. package/skill/references/classes/PNL_Document.md +83 -0
  139. package/skill/references/classes/SCH_Document.md +809 -0
  140. package/skill/references/classes/SCH_Drc.md +242 -0
  141. package/skill/references/classes/SCH_Event.md +583 -0
  142. package/skill/references/classes/SCH_ManufactureData.md +1205 -0
  143. package/skill/references/classes/SCH_Net.md +200 -0
  144. package/skill/references/classes/SCH_Netlist.md +191 -0
  145. package/skill/references/classes/SCH_Primitive.md +337 -0
  146. package/skill/references/classes/SCH_PrimitiveArc.md +692 -0
  147. package/skill/references/classes/SCH_PrimitiveAttribute.md +590 -0
  148. package/skill/references/classes/SCH_PrimitiveBus.md +624 -0
  149. package/skill/references/classes/SCH_PrimitiveCircle.md +683 -0
  150. package/skill/references/classes/SCH_PrimitiveComponent.md +2240 -0
  151. package/skill/references/classes/SCH_PrimitiveObject.md +666 -0
  152. package/skill/references/classes/SCH_PrimitivePin.md +754 -0
  153. package/skill/references/classes/SCH_PrimitivePolygon.md +627 -0
  154. package/skill/references/classes/SCH_PrimitiveRectangle.md +731 -0
  155. package/skill/references/classes/SCH_PrimitiveText.md +746 -0
  156. package/skill/references/classes/SCH_PrimitiveWire.md +703 -0
  157. package/skill/references/classes/SCH_SelectControl.md +520 -0
  158. package/skill/references/classes/SCH_SimulationEngine.md +133 -0
  159. package/skill/references/classes/SCH_Utils.md +121 -0
  160. package/skill/references/classes/SYS_ClientUrl.md +173 -0
  161. package/skill/references/classes/SYS_Dialog.md +825 -0
  162. package/skill/references/classes/SYS_Environment.md +502 -0
  163. package/skill/references/classes/SYS_FileManager.md +1686 -0
  164. package/skill/references/classes/SYS_FileSystem.md +1171 -0
  165. package/skill/references/classes/SYS_FontManager.md +224 -0
  166. package/skill/references/classes/SYS_FormatConversion.md +349 -0
  167. package/skill/references/classes/SYS_HeaderMenu.md +479 -0
  168. package/skill/references/classes/SYS_I18n.md +861 -0
  169. package/skill/references/classes/SYS_IFrame.md +535 -0
  170. package/skill/references/classes/SYS_LoadingAndProgressBar.md +246 -0
  171. package/skill/references/classes/SYS_Log.md +424 -0
  172. package/skill/references/classes/SYS_Math.md +1565 -0
  173. package/skill/references/classes/SYS_Message.md +363 -0
  174. package/skill/references/classes/SYS_MessageBox.md +285 -0
  175. package/skill/references/classes/SYS_MessageBus.md +1618 -0
  176. package/skill/references/classes/SYS_PanelControl.md +696 -0
  177. package/skill/references/classes/SYS_RightClickMenu.md +175 -0
  178. package/skill/references/classes/SYS_Setting.md +85 -0
  179. package/skill/references/classes/SYS_ShortcutKey.md +623 -0
  180. package/skill/references/classes/SYS_Storage.md +484 -0
  181. package/skill/references/classes/SYS_Timer.md +447 -0
  182. package/skill/references/classes/SYS_ToastMessage.md +194 -0
  183. package/skill/references/classes/SYS_Tool.md +241 -0
  184. package/skill/references/classes/SYS_Unit.md +594 -0
  185. package/skill/references/classes/SYS_WebSocket.md +401 -0
  186. package/skill/references/classes/SYS_Window.md +850 -0
  187. package/skill/references/enums/EDMT_EditorDocumentType.md +279 -0
  188. package/skill/references/enums/EDMT_EditorSplitScreenDirection.md +48 -0
  189. package/skill/references/enums/EDMT_EditorTabEventType.md +63 -0
  190. package/skill/references/enums/EDMT_IndicatorMarkerType.md +81 -0
  191. package/skill/references/enums/EDMT_ItemType.md +158 -0
  192. package/skill/references/enums/EDMT_ProjectCollaborationMode.md +48 -0
  193. package/skill/references/enums/ELIB_DeviceJlcLibraryCategory.md +48 -0
  194. package/skill/references/enums/ELIB_LibraryType.md +114 -0
  195. package/skill/references/enums/ELIB_PreviewType.md +70 -0
  196. package/skill/references/enums/ELIB_SimulationModelType.md +48 -0
  197. package/skill/references/enums/ELIB_SymbolType.md +125 -0
  198. package/skill/references/enums/EPCB_AutoRoutingCornerStyle.md +48 -0
  199. package/skill/references/enums/EPCB_AutoRoutingExistingPrimitiveMode.md +48 -0
  200. package/skill/references/enums/EPCB_AutoRoutingOptimization.md +48 -0
  201. package/skill/references/enums/EPCB_DocumentCanvasUpdateCalculationActiveStatus.md +48 -0
  202. package/skill/references/enums/EPCB_DocumentRatlineCalculatingActiveStatus.md +52 -0
  203. package/skill/references/enums/EPCB_InactiveLayerDisplayMode.md +59 -0
  204. package/skill/references/enums/EPCB_LayerColorConfiguration.md +81 -0
  205. package/skill/references/enums/EPCB_LayerId.md +882 -0
  206. package/skill/references/enums/EPCB_LayerStatus.md +59 -0
  207. package/skill/references/enums/EPCB_LayerType.md +114 -0
  208. package/skill/references/enums/EPCB_MouseEventType.md +59 -0
  209. package/skill/references/enums/EPCB_NetEventType.md +59 -0
  210. package/skill/references/enums/EPCB_PcbPlateType.md +48 -0
  211. package/skill/references/enums/EPCB_PdfOutputMethod.md +59 -0
  212. package/skill/references/enums/EPCB_PrimitiveArcInteractiveMode.md +48 -0
  213. package/skill/references/enums/EPCB_PrimitiveDimensionType.md +59 -0
  214. package/skill/references/enums/EPCB_PrimitiveEventType.md +59 -0
  215. package/skill/references/enums/EPCB_PrimitiveFillMode.md +63 -0
  216. package/skill/references/enums/EPCB_PrimitivePadHeatWeldingConnectionMethod.md +59 -0
  217. package/skill/references/enums/EPCB_PrimitivePadHoleType.md +59 -0
  218. package/skill/references/enums/EPCB_PrimitivePadShapeType.md +81 -0
  219. package/skill/references/enums/EPCB_PrimitivePadType.md +59 -0
  220. package/skill/references/enums/EPCB_PrimitivePourFillMethod.md +59 -0
  221. package/skill/references/enums/EPCB_PrimitiveRegionRuleType.md +96 -0
  222. package/skill/references/enums/EPCB_PrimitiveStringAlignMode.md +125 -0
  223. package/skill/references/enums/EPCB_PrimitiveType.md +202 -0
  224. package/skill/references/enums/EPCB_PrimitiveViaType.md +59 -0
  225. package/skill/references/enums/ESCH_DynamicSimulationEnginePullEventType.md +103 -0
  226. package/skill/references/enums/ESCH_DynamicSimulationEnginePushEventType.md +81 -0
  227. package/skill/references/enums/ESCH_ExportDocumentFileType.md +59 -0
  228. package/skill/references/enums/ESCH_MouseEventType.md +48 -0
  229. package/skill/references/enums/ESCH_PrimitiveComponentType.md +125 -0
  230. package/skill/references/enums/ESCH_PrimitiveEventType.md +70 -0
  231. package/skill/references/enums/ESCH_PrimitiveFillStyle.md +114 -0
  232. package/skill/references/enums/ESCH_PrimitiveLineType.md +70 -0
  233. package/skill/references/enums/ESCH_PrimitivePinShape.md +70 -0
  234. package/skill/references/enums/ESCH_PrimitivePinType.md +147 -0
  235. package/skill/references/enums/ESCH_PrimitiveTextAlignMode.md +125 -0
  236. package/skill/references/enums/ESCH_PrimitiveType.md +180 -0
  237. package/skill/references/enums/ESCH_SimulationNetlistType.md +37 -0
  238. package/skill/references/enums/ESCH_SpiceSimulationEnginePullEventType.md +48 -0
  239. package/skill/references/enums/ESCH_SpiceSimulationEnginePushEventType.md +70 -0
  240. package/skill/references/enums/ESYS_BottomPanelTab.md +81 -0
  241. package/skill/references/enums/ESYS_HeaderMenuEnvironment.md +158 -0
  242. package/skill/references/enums/ESYS_ImportProjectBoardOutlineSource.md +52 -0
  243. package/skill/references/enums/ESYS_ImportProjectImportOption.md +59 -0
  244. package/skill/references/enums/ESYS_ImportProjectSchematicObjectStyle.md +48 -0
  245. package/skill/references/enums/ESYS_ImportProjectViaSolderMaskExpansion.md +52 -0
  246. package/skill/references/enums/ESYS_LeftPanelTab.md +81 -0
  247. package/skill/references/enums/ESYS_LogType.md +103 -0
  248. package/skill/references/enums/ESYS_NetlistType.md +114 -0
  249. package/skill/references/enums/ESYS_RightPanelTab.md +202 -0
  250. package/skill/references/enums/ESYS_ShortcutKeyEffectiveEditorRange.md +191 -0
  251. package/skill/references/enums/ESYS_ShortcutKeyEffectiveEditorScene.md +92 -0
  252. package/skill/references/enums/ESYS_StartPageQuickStartItem.md +206 -0
  253. package/skill/references/enums/ESYS_Theme.md +48 -0
  254. package/skill/references/enums/ESYS_ToastMessageType.md +81 -0
  255. package/skill/references/enums/ESYS_Unit.md +103 -0
  256. package/skill/references/enums/ESYS_WindowEventType.md +48 -0
  257. package/skill/references/enums/ESYS_WindowOpenTarget.md +48 -0
  258. package/skill/references/enums/NetportDeviceName.md +147 -0
  259. package/skill/references/enums/SchToolBarDeviceName.md +279 -0
  260. package/skill/references/interfaces/BoardProps.md +169 -0
  261. package/skill/references/interfaces/ButtonProps.md +169 -0
  262. package/skill/references/interfaces/CheckBoxProps.md +196 -0
  263. package/skill/references/interfaces/ComponentPropsMap.md +448 -0
  264. package/skill/references/interfaces/DialogProps.md +385 -0
  265. package/skill/references/interfaces/FlexItemProps.md +116 -0
  266. package/skill/references/interfaces/FlexProps.md +224 -0
  267. package/skill/references/interfaces/GridItemProps.md +143 -0
  268. package/skill/references/interfaces/GridProps.md +143 -0
  269. package/skill/references/interfaces/IDMT_BoardItem.md +171 -0
  270. package/skill/references/interfaces/IDMT_BriefProjectItem.md +171 -0
  271. package/skill/references/interfaces/IDMT_EditorDocumentItem.md +169 -0
  272. package/skill/references/interfaces/IDMT_EditorSplitScreenItem.md +173 -0
  273. package/skill/references/interfaces/IDMT_EditorTabItem.md +169 -0
  274. package/skill/references/interfaces/IDMT_FolderItem.md +225 -0
  275. package/skill/references/interfaces/IDMT_IndicatorMarkerShape.md +393 -0
  276. package/skill/references/interfaces/IDMT_PanelItem.md +144 -0
  277. package/skill/references/interfaces/IDMT_PcbItem.md +171 -0
  278. package/skill/references/interfaces/IDMT_ProjectItem.md +143 -0
  279. package/skill/references/interfaces/IDMT_SchematicItem.md +225 -0
  280. package/skill/references/interfaces/IDMT_SchematicPageItem.md +198 -0
  281. package/skill/references/interfaces/IDMT_TeamItem.md +144 -0
  282. package/skill/references/interfaces/IDMT_WorkspaceItem.md +117 -0
  283. package/skill/references/interfaces/IDesignPortal.md +103 -0
  284. package/skill/references/interfaces/ILIB_3DModelItem.md +198 -0
  285. package/skill/references/interfaces/ILIB_3DModelSearchItem.md +277 -0
  286. package/skill/references/interfaces/ILIB_CbbItem.md +225 -0
  287. package/skill/references/interfaces/ILIB_CbbSearchItem.md +277 -0
  288. package/skill/references/interfaces/ILIB_ClassificationIndex.md +150 -0
  289. package/skill/references/interfaces/ILIB_DeviceAssociationItem.md +210 -0
  290. package/skill/references/interfaces/ILIB_DeviceExtendPropertyItem.md +304 -0
  291. package/skill/references/interfaces/ILIB_DeviceItem.md +279 -0
  292. package/skill/references/interfaces/ILIB_DevicePropertiesForSearch.md +250 -0
  293. package/skill/references/interfaces/ILIB_DeviceSearchItem.md +521 -0
  294. package/skill/references/interfaces/ILIB_ExtendLibrary3DModelFunctions.md +64 -0
  295. package/skill/references/interfaces/ILIB_ExtendLibraryCbbFunctions.md +99 -0
  296. package/skill/references/interfaces/ILIB_ExtendLibraryClassificationIndex.md +150 -0
  297. package/skill/references/interfaces/ILIB_ExtendLibraryDeviceFunctions.md +157 -0
  298. package/skill/references/interfaces/ILIB_ExtendLibraryFootprintFunctions.md +63 -0
  299. package/skill/references/interfaces/ILIB_ExtendLibraryFunctions.md +123 -0
  300. package/skill/references/interfaces/ILIB_ExtendLibraryItem.md +97 -0
  301. package/skill/references/interfaces/ILIB_ExtendLibraryItemIndex.md +98 -0
  302. package/skill/references/interfaces/ILIB_ExtendLibrarySearchProperty.md +115 -0
  303. package/skill/references/interfaces/ILIB_ExtendLibrarySearchResult.md +169 -0
  304. package/skill/references/interfaces/ILIB_ExtendLibrarySearchResultDataLine.md +234 -0
  305. package/skill/references/interfaces/ILIB_ExtendLibrarySymbolFunctions.md +105 -0
  306. package/skill/references/interfaces/ILIB_ExtendLibraryUserIndex.md +96 -0
  307. package/skill/references/interfaces/ILIB_FootprintItem.md +198 -0
  308. package/skill/references/interfaces/ILIB_FootprintPropertiesForSearch.md +61 -0
  309. package/skill/references/interfaces/ILIB_FootprintSearchItem.md +277 -0
  310. package/skill/references/interfaces/ILIB_LibraryInfo.md +92 -0
  311. package/skill/references/interfaces/ILIB_LibraryItem.md +115 -0
  312. package/skill/references/interfaces/ILIB_PanelLibraryItem.md +198 -0
  313. package/skill/references/interfaces/ILIB_PanelLibrarySearchItem.md +277 -0
  314. package/skill/references/interfaces/ILIB_SimulationModelItem.md +306 -0
  315. package/skill/references/interfaces/ILIB_SimulationModelSearchItem.md +304 -0
  316. package/skill/references/interfaces/ILIB_SymbolItem.md +279 -0
  317. package/skill/references/interfaces/ILIB_SymbolPropertiesForSearch.md +61 -0
  318. package/skill/references/interfaces/ILIB_SymbolSearchItem.md +304 -0
  319. package/skill/references/interfaces/IPCB_AutoLayoutResult.md +169 -0
  320. package/skill/references/interfaces/IPCB_AutoRoutingProps.md +220 -0
  321. package/skill/references/interfaces/IPCB_AutoRoutingResult.md +169 -0
  322. package/skill/references/interfaces/IPCB_BomPropertiesTableColumns.md +169 -0
  323. package/skill/references/interfaces/IPCB_DifferentialPairItem.md +115 -0
  324. package/skill/references/interfaces/IPCB_DiscretizeOptions.md +65 -0
  325. package/skill/references/interfaces/IPCB_DiscretizedPoint.md +88 -0
  326. package/skill/references/interfaces/IPCB_EqualLengthNetGroupItem.md +115 -0
  327. package/skill/references/interfaces/IPCB_LayerItem.md +277 -0
  328. package/skill/references/interfaces/IPCB_NetClassItem.md +115 -0
  329. package/skill/references/interfaces/IPCB_NetInfo.md +115 -0
  330. package/skill/references/interfaces/IPCB_PadPairGroupItem.md +88 -0
  331. package/skill/references/interfaces/IPCB_PadPairMinWireLengthItem.md +88 -0
  332. package/skill/references/interfaces/IPCB_PhysicalStackingConfiguration.md +115 -0
  333. package/skill/references/interfaces/IPCB_Primitive.md +218 -0
  334. package/skill/references/interfaces/IPCB_PrimitiveAPI.md +175 -0
  335. package/skill/references/interfaces/IPCB_PrimitivePadHeatWelding.md +151 -0
  336. package/skill/references/interfaces/IPCB_PrimitivePouredPourFill.md +142 -0
  337. package/skill/references/interfaces/IPCB_PrimitiveSolderMaskAndPasteMaskExpansion.md +154 -0
  338. package/skill/references/interfaces/IPCB_SubstratePhysicalProperties.md +88 -0
  339. package/skill/references/interfaces/IRawNet.md +103 -0
  340. package/skill/references/interfaces/IRawPureSchematic.md +80 -0
  341. package/skill/references/interfaces/IRawSchematic.md +103 -0
  342. package/skill/references/interfaces/IRawWire.md +149 -0
  343. package/skill/references/interfaces/ISCH_DrcError.md +142 -0
  344. package/skill/references/interfaces/ISCH_DrcErrorPrimitive.md +142 -0
  345. package/skill/references/interfaces/ISCH_ExportPngResolution.md +94 -0
  346. package/skill/references/interfaces/ISCH_NetInfo.md +88 -0
  347. package/skill/references/interfaces/ISCH_Primitive.md +219 -0
  348. package/skill/references/interfaces/ISCH_PrimitiveAPI.md +175 -0
  349. package/skill/references/interfaces/ISCH_ProjectNetInfo.md +142 -0
  350. package/skill/references/interfaces/ISCH_WireInfo.md +169 -0
  351. package/skill/references/interfaces/ISYS_FileSystemFileList.md +169 -0
  352. package/skill/references/interfaces/ISYS_HeaderMenuSub1MenuItem.md +174 -0
  353. package/skill/references/interfaces/ISYS_HeaderMenuSub2MenuItem.md +147 -0
  354. package/skill/references/interfaces/ISYS_HeaderMenuTopMenuItem.md +115 -0
  355. package/skill/references/interfaces/ISYS_HeaderMenus.md +408 -0
  356. package/skill/references/interfaces/ISYS_LogLine.md +115 -0
  357. package/skill/references/interfaces/ISYS_MathBBox.md +142 -0
  358. package/skill/references/interfaces/ISYS_MathPoint.md +88 -0
  359. package/skill/references/interfaces/ISYS_MathPolygonWithHoles.md +92 -0
  360. package/skill/references/interfaces/ISYS_MessageBusTask.md +115 -0
  361. package/skill/references/interfaces/ISYS_MultilingualLanguagesData.md +13 -0
  362. package/skill/references/interfaces/ISYS_PcbComparisonResponse.md +115 -0
  363. package/skill/references/interfaces/ISYS_RightClickMenuItem.md +174 -0
  364. package/skill/references/interfaces/ISYS_ShortcutKeyData.md +169 -0
  365. package/skill/references/interfaces/ISYS_ShortcutKeyDataWithCallFn.md +62 -0
  366. package/skill/references/interfaces/ISYS_ShortcutKeyDataWithUserDefinedShortcutKey.md +62 -0
  367. package/skill/references/interfaces/ISYS_WindowEventListenerRemovableObject.md +109 -0
  368. package/skill/references/interfaces/IconProps.md +88 -0
  369. package/skill/references/interfaces/ImageProps.md +115 -0
  370. package/skill/references/interfaces/InputProps.md +520 -0
  371. package/skill/references/interfaces/ListChildren.md +223 -0
  372. package/skill/references/interfaces/ListProps.md +223 -0
  373. package/skill/references/interfaces/ModalProps.md +358 -0
  374. package/skill/references/interfaces/RadioGroupProps.md +196 -0
  375. package/skill/references/interfaces/RadioItem.md +115 -0
  376. package/skill/references/interfaces/ScrollerProps.md +169 -0
  377. package/skill/references/interfaces/SelectListItem.md +142 -0
  378. package/skill/references/interfaces/SelectProps.md +169 -0
  379. package/skill/references/interfaces/SlotProps.md +88 -0
  380. package/skill/references/interfaces/StyleProps.md +385 -0
  381. package/skill/references/interfaces/TextAreaProps.md +196 -0
  382. package/skill/references/interfaces/TextProps.md +169 -0
  383. package/skill/references/types/ISYS_LanguageKeyValuePairs.md +13 -0
  384. package/skill/references/types/TPCB_LayerTypesOfInnerLayer.md +12 -0
  385. package/skill/references/types/TPCB_LayersInTheSelectable.md +43 -0
  386. package/skill/references/types/TPCB_LayersOfComponent.md +12 -0
  387. package/skill/references/types/TPCB_LayersOfCopper.md +16 -0
  388. package/skill/references/types/TPCB_LayersOfCustom.md +42 -0
  389. package/skill/references/types/TPCB_LayersOfDimension.md +17 -0
  390. package/skill/references/types/TPCB_LayersOfFill.md +29 -0
  391. package/skill/references/types/TPCB_LayersOfImage.md +23 -0
  392. package/skill/references/types/TPCB_LayersOfInner.md +42 -0
  393. package/skill/references/types/TPCB_LayersOfLine.md +26 -0
  394. package/skill/references/types/TPCB_LayersOfObject.md +13 -0
  395. package/skill/references/types/TPCB_LayersOfPad.md +12 -0
  396. package/skill/references/types/TPCB_LayersOfRegion.md +12 -0
  397. package/skill/references/types/TPCB_NumberOfCopperLayers.md +10 -0
  398. package/skill/references/types/TPCB_PolygonSourceArray.md +83 -0
  399. package/skill/references/types/TPCB_PrimitiveDimensionCoordinateSet.md +67 -0
  400. package/skill/references/types/TPCB_PrimitivePadHole.md +31 -0
  401. package/skill/references/types/TPCB_PrimitivePadShape.md +62 -0
  402. package/skill/references/types/TPCB_PrimitiveSpecialPadShape.md +20 -0
  403. package/skill/references/types/TSYS_MathPolygonGroup.md +16 -0
  404. package/skill/references/types/TSYS_MathPolygonInput.md +21 -0
  405. package/skill/references/types/TSYS_PcbComparisonErrorCode.md +10 -0
  406. package/skill/references/types/TSYS_ShortcutKeys.md +97 -0
  407. package/skill/user-guide/using-extension.md +47 -0
@@ -0,0 +1,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<{ 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
+ ```