Interface.ts 840 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. export interface INodeData {
  2. /**
  3. * 版本信息
  4. */
  5. version: string[]
  6. /**
  7. * 展示名称
  8. */
  9. displayName: string
  10. /**
  11. * 名称
  12. */
  13. name: string
  14. /**
  15. * 副标题 带格式化信息
  16. */
  17. subtitle?: string
  18. /**
  19. * 描述
  20. */
  21. description?: string
  22. /**
  23. * 节点图标 默认使用iconify图标名称
  24. * @example 'mdi:home'
  25. * 参考 https://icon-sets.iconify.design/
  26. */
  27. icon?: string
  28. /**
  29. * 图标颜色
  30. */
  31. iconColor?: string
  32. /**
  33. * 输入端口列表
  34. */
  35. inputs: string[]
  36. /**
  37. * 输入端口名称
  38. */
  39. inputNames?: string[]
  40. /**
  41. * 输出端口列表
  42. */
  43. outputs: string[]
  44. /**
  45. * 输出端口名称
  46. */
  47. outputNames?: string[]
  48. }
  49. export interface INodeType {
  50. /**
  51. * 节点数据定义
  52. */
  53. schema: INodeData
  54. }
  55. /**
  56. * 节点连接类型
  57. */
  58. export const NodeConnectionTypes = {
  59. main: 'main'
  60. }