index.js 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /**
  2. * Default, without interactins
  3. */
  4. import { Global, Chart, Shape, G, Util, Helper, track } from './core';
  5. import './geom/';
  6. import './geom/adjust/';
  7. import './coord/polar'; // polar coordinate
  8. import './component/axis/circle'; // the axis for polar coordinate
  9. import './component/guide/arc';
  10. import './component/guide/html';
  11. import './component/guide/line';
  12. import './component/guide/rect';
  13. import './component/guide/text';
  14. import './component/guide/tag';
  15. import './component/guide/point';
  16. import TooltipComponent from './component/tooltip';
  17. import * as Tooltip from './plugin/tooltip';
  18. import * as Guide from './plugin/guide';
  19. import * as Legend from './plugin/legend';
  20. import * as Animation from './animation/detail';
  21. import Animate from './animation/animate';
  22. var Component = {
  23. // 为了兼容之前版本
  24. Marker: G.Shape.Marker,
  25. Tooltip: TooltipComponent
  26. }; // register plugins
  27. Chart.plugins.register([Tooltip, Legend, Guide, Animation]); // 默认添加交互
  28. import './interaction/new/index';
  29. export { Component, Global, Chart, Shape, G, Util, Helper, track, Animate };
  30. export default {
  31. Component,
  32. Global,
  33. Chart,
  34. Shape,
  35. G,
  36. Util,
  37. Helper,
  38. track,
  39. Animate
  40. };