defregistry.js 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. export default{
  2. 'Input': {
  3. categories: ['core'],
  4. output: {type: 'interface {}'},
  5. style: { color: '#686', shape: 'circle' },
  6. props: {} // should be sent in the node
  7. },
  8. 'Variable': {
  9. categories: ['core'],
  10. output: {type: 'interface {}'},
  11. style: { color: '#88a', shape: 'circle' },
  12. props: {init: ''}
  13. },
  14. 'Const': {
  15. categories: ['core'],
  16. output: {type: 'interface {}'},
  17. style: { color: '#555' }
  18. // , props: {value: ''}
  19. },
  20. 'Notify': {
  21. categories: ['flow-web'],
  22. inputs: [{type: 'interface {}'}, {type: 'string', name: 'msg'}],
  23. output: {type: 'interface {}'},
  24. style: {color: '#665'}
  25. },
  26. 'Log': {
  27. categories: ['flow-web'],
  28. output: {type: 'io.Writer'},
  29. style: {color: '#665'}
  30. }
  31. }
  32. /* {
  33. // Fixed default stuff
  34. 'Test': {
  35. group: 'Generic',
  36. output: 'any',
  37. style: {
  38. shape: 'thing'
  39. }
  40. },
  41. 'MatMul': { group: 'Machine learning', inputs: [ '[]float32', '[]float32' ], output: '[]float32', style: { color: '#a44', textColor: 'white' } },
  42. 'Activator': { group: 'Machine learning', inputs: [ '[]float32' ], output: '[]float32', style: { color: '#a44', textColor: 'white', shape: 'circle' } },
  43. 'test': { group: 'Text', inputs: [ '[]float32', 'string' ], output: 'string', style: {'color': '#a93'} },
  44. 'reverse': { group: 'Text', inputs: [ 'string' ], output: 'string', style: {'color': '#a93'} },
  45. 'fetch': { group: 'json', output: 'json', style: {'color': '#99a'} },
  46. 'jsonExtract': { group: 'json', inputs: ['json'], output: 'string', style: {'color': '#99a'} },
  47. 'string': { group: 'Visualization', inputs: ['string'], style: {'color': '#9a9'} },
  48. 'lineGraph': { group: 'Visualization', inputs: ['[]float32', '[]float32'], style: {'color': '#9a9'} }
  49. }, */