Telescope
Telescope copied to clipboard
Cytoscape: Hidden nodes are rendered at visualization openning.
For example:
| visualization secondNode firstNode thirdNode |
visualization := TLVisualization new.
visualization layout: (TLLinearLayout gap: 50).
firstNode := visualization addNodeFromEntity: 2.
secondNode := visualization addNodeFromEntity: 1.
secondNode styleSheet nodeLabel: 'Click on me!' position: #top.
thirdNode := visualization addNodeFromEntity: 3.
thirdNode hide.
secondNode
addInteractions:
{(TLHideAction on: firstNode) onClick.
(TLShowAction on: thirdNode) onClick}.
^ visualization
Here the visibility of thirdNode is set to false but the node appears during the rendering.