clientIO / joint

A proven SVG-based JavaScript diagramming library powering exceptional UIs
https://jointjs.com
Mozilla Public License 2.0
4.45k stars 841 forks source link

feat(dia.Element): add getPortGroupNames() #2629

Open kumilingus opened 3 weeks ago

kumilingus commented 3 weeks ago

Description

Add a convenient method for those who want to iterate over all port groups.

element.getPortGroupNames().forEach(group => {
   const groupPortPositions = element.getPortsPositions(group);
  /* ... */ 
});