Interaction
How to Define an Interaction class
// The parent of all interaction classes
const Interaction = require('@antv/f2/lib/interaction/base');
const MyInteraction extends Interaction {
getDefaultCfg() {
return {
startEvent: 'touchstart',
processingEvent: 'touchmove',
endEvent: 'touchend',
resetEvent: 'touchstart'
}
}
start(ev) {}
process(ev) {}
end(ev) {}
reset(ev) {}
}
How to register
How to Use
Last updated