* Update or remove the subscene of a render group node depending on whether it * is a expanded. If the node is not a group node, this method has no effect. * * @param nodeGroup selection of the container * @param renderNodeInfo the render information for the node. * @param sceneElement <tf-grap
( nodeGroup, renderNodeInfo: render.RenderGroupNodeInfo, sceneElement: TfGraphScene )
| 204 | * not have a subscene. |
| 205 | */ |
| 206 | function subsceneBuild( |
| 207 | nodeGroup, |
| 208 | renderNodeInfo: render.RenderGroupNodeInfo, |
| 209 | sceneElement: TfGraphScene |
| 210 | ) { |
| 211 | if (renderNodeInfo.node.isGroupNode) { |
| 212 | if (renderNodeInfo.expanded) { |
| 213 | // Recursively build the subscene. |
| 214 | return buildGroupForScene( |
| 215 | nodeGroup, |
| 216 | renderNodeInfo, |
| 217 | sceneElement, |
| 218 | Class.Subscene.GROUP |
| 219 | ); |
| 220 | } |
| 221 | // Clean out existing subscene if the node is not expanded. |
| 222 | tf_graph_scene.selectChild(nodeGroup, 'g', Class.Subscene.GROUP).remove(); |
| 223 | } |
| 224 | return null; |
| 225 | } |
| 226 | /** |
| 227 | * Translate the subscene of the given node group |
| 228 | */ |
no test coverage detected
searching dependent graphs…