defregistry.js 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. 'Log': {
  21. categories: ['core'],
  22. inputs: [{type: 'interface {}'}],
  23. output: {type: 'interface {}'},
  24. style: { color: '#665', shape: 'circle' }
  25. }
  26. }
  27. /* {
  28. // Fixed default stuff
  29. 'Test': {
  30. group: 'Generic',
  31. output: 'any',
  32. style: {
  33. shape: 'thing'
  34. }
  35. },
  36. 'MatMul': { group: 'Machine learning', inputs: [ '[]float32', '[]float32' ], output: '[]float32', style: { color: '#a44', textColor: 'white' } },
  37. 'Activator': { group: 'Machine learning', inputs: [ '[]float32' ], output: '[]float32', style: { color: '#a44', textColor: 'white', shape: 'circle' } },
  38. 'test': { group: 'Text', inputs: [ '[]float32', 'string' ], output: 'string', style: {'color': '#a93'} },
  39. 'reverse': { group: 'Text', inputs: [ 'string' ], output: 'string', style: {'color': '#a93'} },
  40. 'fetch': { group: 'json', output: 'json', style: {'color': '#99a'} },
  41. 'jsonExtract': { group: 'json', inputs: ['json'], output: 'string', style: {'color': '#99a'} },
  42. 'string': { group: 'Visualization', inputs: ['string'], style: {'color': '#9a9'} },
  43. 'lineGraph': { group: 'Visualization', inputs: ['[]float32', '[]float32'], style: {'color': '#9a9'} }
  44. }, */