Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
`eles.boundingBox()` options : `includeMainLabels`, `includeSourceLabels`, `includeTargetLabels` #2502
Description of new feature
Add the following options to
Behaviour to maintain compatibility with existing apps:
Motivation for new feature
See #1679. If you can query an element for only the bounding box of a particular label, then it's easy to determine whether an
By using this feature, a programmer can add features like direct manipulation of labels (e.g. drag on a label to move it). It also allows for features like click-to-type. Those sorts of features would make great extensions.
This proposed feature enables these use-cases with minimal added complexity of the Cytoscape.js API.