Skip to content

Commit c4412b1

Browse files
authored
Add missing paren and use existing prop
Co-authored-by: Cameron DeCoster <cameron.decoster@gmail.com>
1 parent 82af33e commit c4412b1

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/traces/sankey/render.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -804,13 +804,14 @@ function persistFinalNodePositions(d, gd) {
804804
for(var i = 0; i < d.graph.nodes.length; i++) {
805805
var nodeX = (d.graph.nodes[i].x0 + d.graph.nodes[i].x1) / 2;
806806
var nodeY = (d.graph.nodes[i].y0 + d.graph.nodes[i].y1) / 2;
807-
if(d.trace.orientation === 'h') {
807+
if(d.horizontal) {
808808
x.push(nodeX / d.figure.width);
809809
y.push(nodeY / d.figure.height);
810810
} else {
811811
x.push(nodeX / d.figure.height);
812812
y.push(nodeY / d.figure.width);
813813
}
814+
}
814815
Registry.call('_guiRestyle', gd, {
815816
'node.x': [x],
816817
'node.y': [y]

0 commit comments

Comments
 (0)