2.15.6-Beta.0 • Published 4 years ago

@hubary/custom-jsplumb v2.15.6-Beta.0

Weekly downloads
-
License
(MIT OR GPL-2.0)
Repository
github
Last release
4 years ago

custom-jsplumb

对src/connectors-flowchart.js进行修改,添加了customEndHeightConvert方法,修改了addSegment ,用于解决如图所示问题

  • custom before custom before

  • custom after custom after

# 相关配置
{
  anchor: ["Bottom", "Top"],
  connector: [
    "Flowchart",
    {
      alwaysRespectStubs: false,
      stub: 20,
      customEnd: true,
      customEndHeight: 20,
    },
  ],
  endpoint: "Blank",
  paintStyle: { stroke: "#999", strokeWidth: 2 },
  overlays: [["Arrow", { width: 8, length: 8, location: 1 }]],
};