link.js 697 B

12345678910111213141516171819202122
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.Link = void 0;
  4. const vector_1 = require("../../shape/vector/vector");
  5. /**
  6. * Connect 2 points with a single line with arrow.
  7. * ----->
  8. */
  9. const Link = (options) => {
  10. const { arrow = false } = options;
  11. return (points, value, coordinate, theme) => {
  12. return (0, vector_1.Vector)(Object.assign(Object.assign({}, options), { arrow }))(points, value, coordinate, theme);
  13. };
  14. };
  15. exports.Link = Link;
  16. exports.Link.props = {
  17. defaultMarker: 'line',
  18. defaultEnterAnimation: 'fadeIn',
  19. defaultUpdateAnimation: 'morphing',
  20. defaultExitAnimation: 'fadeOut',
  21. };
  22. //# sourceMappingURL=link.js.map