Made changes for cytoscape.js upgrade, so should be merged together with the related PR in ivis fork of Cytoscape.js. Also used 'barrel' and 'bottomroundrectangle' shapes of cytoscape as the base shapes of 'compartment' and 'nucleic acid feature' respectively. However, old draw function of nucleic acid feature is still remaining with a different name since it is needed for drawing clone markers of macromolecule and nucleic acid feature shapes. Needed it because 'bottomroundrectangle' shape did not work well for clonemarker. It was giving the following result:
Also considered using 'cutrectangle' as the base shape of complexes but it did not render as expected when the shape dimensions are very small. The most visible case was the "BA Complex" node since the sizes of complex unit of information there is small. You can see the this fiddle to see how it looks for small sizes. You can play with width and height parameters in js code to render the shape in different sizes.
Made changes for cytoscape.js upgrade, so should be merged together with the related PR in ivis fork of Cytoscape.js. Also used 'barrel' and 'bottomroundrectangle' shapes of cytoscape as the base shapes of 'compartment' and 'nucleic acid feature' respectively. However, old draw function of nucleic acid feature is still remaining with a different name since it is needed for drawing clone markers of macromolecule and nucleic acid feature shapes. Needed it because 'bottomroundrectangle' shape did not work well for clonemarker. It was giving the following result:
Also considered using 'cutrectangle' as the base shape of complexes but it did not render as expected when the shape dimensions are very small. The most visible case was the "BA Complex" node since the sizes of complex unit of information there is small. You can see the this fiddle to see how it looks for small sizes. You can play with width and height parameters in js code to render the shape in different sizes.