(d: render.RenderNodeInfo)
| 626 | return shapeGroup; |
| 627 | } |
| 628 | export function nodeClass(d: render.RenderNodeInfo) { |
| 629 | switch (d.node.type) { |
| 630 | case NodeType.OP: |
| 631 | return Class.OPNODE; |
| 632 | case NodeType.META: |
| 633 | return Class.METANODE; |
| 634 | case NodeType.SERIES: |
| 635 | return Class.SERIESNODE; |
| 636 | case NodeType.BRIDGE: |
| 637 | return Class.BRIDGENODE; |
| 638 | case NodeType.ELLIPSIS: |
| 639 | return Class.ELLIPSISNODE; |
| 640 | } |
| 641 | throw Error('Unrecognized node type: ' + d.node.type); |
| 642 | } |
| 643 | /** Modify node and its subscene and its label's positional attributes */ |
| 644 | function position(nodeGroup, d: render.RenderNodeInfo) { |
| 645 | let shapeGroup = tf_graph_scene.selectChild(nodeGroup, 'g', Class.Node.SHAPE); |
no outgoing calls
no test coverage detected
searching dependent graphs…