link.js 558 B

123456789101112131415161718
  1. import { Vector } from '../../shape/vector/vector';
  2. /**
  3. * Connect 2 points with a single line with arrow.
  4. * ----->
  5. */
  6. export const Link = (options) => {
  7. const { arrow = false } = options;
  8. return (points, value, coordinate, theme) => {
  9. return Vector(Object.assign(Object.assign({}, options), { arrow }))(points, value, coordinate, theme);
  10. };
  11. };
  12. Link.props = {
  13. defaultMarker: 'line',
  14. defaultEnterAnimation: 'fadeIn',
  15. defaultUpdateAnimation: 'morphing',
  16. defaultExitAnimation: 'fadeOut',
  17. };
  18. //# sourceMappingURL=link.js.map