connector.js 599 B

12345678910111213141516171819
  1. import { baseAnnotationChannels, basePostInference, basePreInference, } from './utils';
  2. import { Link } from './link';
  3. export const Connector = (...args) => {
  4. return Link(...args);
  5. };
  6. const shapes = ['connector'];
  7. Connector.props = {
  8. defaultShape: 'connector',
  9. defaultLabelShape: 'label',
  10. composite: false,
  11. channels: [
  12. ...baseAnnotationChannels({ shapes }),
  13. { name: 'x', required: true },
  14. { name: 'y', required: true },
  15. ],
  16. preInference: [...basePreInference()],
  17. postInference: [...basePostInference()],
  18. };
  19. //# sourceMappingURL=connector.js.map