Fix another d3v4 regression in the graph visualizer.
PiperOrigin-RevId: 156343038
This commit is contained in:
parent
170f0b3507
commit
c2b8927f25
@ -87,7 +87,7 @@ export function buildGroup(sceneGroup,
|
||||
|
||||
// Select all children and join with data.
|
||||
// (Note that all children of g.edges are g.edge)
|
||||
let edgeGroups = (container as any).selectAll('g.edge').data(edges, getEdgeKey);
|
||||
let edgeGroups = (container as any).selectAll(function() {return this.childNodes;}).data(edges, getEdgeKey);
|
||||
|
||||
// Make edges a group to support rendering multiple lines for metaedge
|
||||
edgeGroups.enter()
|
||||
|
@ -66,8 +66,7 @@ module tf.graph.scene.node {
|
||||
// Select all children and join with data.
|
||||
// (Note that all children of g.nodes are g.node)
|
||||
let nodeGroups =
|
||||
(container as any)
|
||||
.selectAll('g.node')
|
||||
(container as any).selectAll(function() {return this.childNodes;})
|
||||
.data(nodeData, (d) => {
|
||||
// make sure that we don't have to swap shape type
|
||||
return d.node.name + ':' + d.node.type;
|
||||
|
Loading…
Reference in New Issue
Block a user