drag-move.js 475 B

12345678910111213
  1. import { registerInteraction } from '@antv/g2';
  2. registerInteraction('drag-move', {
  3. start: [{ trigger: 'plot:mousedown', action: 'scale-translate:start' }],
  4. processing: [
  5. {
  6. trigger: 'plot:mousemove',
  7. action: 'scale-translate:translate',
  8. throttle: { wait: 100, leading: true, trailing: false },
  9. },
  10. ],
  11. end: [{ trigger: 'plot:mouseup', action: 'scale-translate:end' }],
  12. });
  13. //# sourceMappingURL=drag-move.js.map