{"version":3,"file":"node-draggable.js","sourceRoot":"","sources":["../../../../src/plots/sankey/interactions/node-draggable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAC/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAE3D,cAAc,CAAC,kBAAkB,EAAE,oBAAoB,CAAC,CAAC;AAEzD,mBAAmB,CAAC,uBAAuB,EAAE;IAC3C,UAAU,EAAE;QACV,EAAE,OAAO,EAAE,oBAAoB,EAAE,MAAM,EAAE,gBAAgB,EAAE;QAC3D,EAAE,OAAO,EAAE,oBAAoB,EAAE,MAAM,EAAE,gBAAgB,EAAE;KAC5D;IACD,KAAK,EAAE,CAAC,EAAE,OAAO,EAAE,mBAAmB,EAAE,MAAM,EAAE,wBAAwB,EAAE,CAAC;IAC3E,UAAU,EAAE;QACV,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,4BAA4B,EAAE;QACnE,EAAE,QAAQ,EAAE,UAAC,OAAO,IAAK,OAAA,OAAO,CAAC,UAAU,EAAlB,CAAkB,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,aAAa,EAAE;KAChG;IACD,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,EAAE,sBAAsB,EAAE,CAAC;CACnE,CAAC,CAAC","sourcesContent":["import { registerAction, registerInteraction } from '@antv/g2';\nimport { SankeyNodeDragAction } from './actions/node-drag';\n\nregisterAction('sankey-node-drag', SankeyNodeDragAction);\n\nregisterInteraction('sankey-node-draggable', {\n showEnable: [\n { trigger: 'polygon:mouseenter', action: 'cursor:pointer' },\n { trigger: 'polygon:mouseleave', action: 'cursor:default' },\n ],\n start: [{ trigger: 'polygon:mousedown', action: 'sankey-node-drag:start' }],\n processing: [\n { trigger: 'plot:mousemove', action: 'sankey-node-drag:translate' },\n { isEnable: (context) => context.isDragging, trigger: 'plot:mousemove', action: 'cursor:move' },\n ],\n end: [{ trigger: 'plot:mouseup', action: 'sankey-node-drag:end' }],\n});\n"]}