drag - How to make child nodes not individually draggable? -


in cytoscape.js graph, have compound node number of child nodes. (but not all) of these children styled labels only, , because have set min-zoomed-font-size, these children invisible @ low zoom levels. nonetheless, if attempts grab compound node drag it, there decent chance hit invisible node , drag instead. forestall this, when detect graph @ zoom level labels not displayed, i've tried setting child nodes ungrabbable using ungrabify(). however, has unfortunate effect when grab , drag parent compound node, invisible ungrabbable nodes don't move other children (even though haven't locked of nodes). same problem occurs if instead of ungrabifying them add class sets visibility hidden. them not individually grabbable, still move when parent node dragged -- how can best accomplish this?

a css property usecases similar has been discussed before. here's ticket: https://github.com/cytoscape/cytoscape.js/issues/1015

for now, if don't need real node bodies, maybe try making child nodes 1x1 px. hard grab body since it's small, labels still show.


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -