UNPKG

butterfly-dag

Version:

一个基于数据驱动的节点式编排组件库,让你有方便快捷定制可视化流程图表

8 lines (6 loc) 230 B
'use strict'; function drawStraight(sourcePoint, targetPoint) { let result = ['M', sourcePoint.pos[0], sourcePoint.pos[1], 'L', targetPoint.pos[0], targetPoint.pos[1]]; return result.join(' '); } export default drawStraight;