Skip to content

Instantly share code, notes, and snippets.

@henryyan
Last active December 15, 2015 20:18
Show Gist options
  • Save henryyan/5317179 to your computer and use it in GitHub Desktop.
Save henryyan/5317179 to your computer and use it in GitHub Desktop.
bpmndi
<bpmndi:BPMNEdge bpmnElement="flow12" id="BPMNEdge_flow12">
<omgdi:waypoint x="290" y="300"></omgdi:waypoint>
<omgdi:waypoint x="625" y="300"></omgdi:waypoint>
<bpmndi:BPMNLabel>
<omgdc:Bounds height="11" width="100" x="10" y="0"></omgdc:Bounds>
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
There are two waypoint elements, use the first or second are imprecise, so caculate the middle x and y to positon the label.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment