MCPcopy
hub / github.com/miyuesc/bpmn-process-designer / drawPath

Function drawPath

packages/additional-modules/Renderer/utils.js:49–59  ·  view source on GitHub ↗
(renderer, parentGfx, d, attrs)

Source from the content-addressed store, hash-verified

47}
48// 绘制路径元素
49export function drawPath(renderer, parentGfx, d, attrs) {
50 attrs = renderer._styles.computeStyle(attrs, ["no-fill"], {
51 strokeWidth: 2,
52 stroke: "black"
53 });
54 const path = svgCreate("path");
55 svgAttr(path, { d: d });
56 svgAttr(path, attrs);
57 svgAppend(parentGfx, path);
58 return path;
59}

Callers 4

drawMarkerMethod · 0.85
constructorMethod · 0.85
drawEventMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected