Skip to content

Commit e1a989f

Browse files
committed
plot api: rm unused annotation ref -> xref/yref translate step
1 parent 497203d commit e1a989f

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/plot_api/plot_api.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1740,12 +1740,6 @@ Plotly.relayout = function relayout(gd, astr, val) {
17401740
}
17411741
delete aobj[keys[i]];
17421742
}
1743-
// split annotation.ref into xref and yref
1744-
if(keys[i].match(/^annotations\[[0-9-]+\].ref$/)) {
1745-
xyref = aobj[keys[i]].split('y');
1746-
aobj[keys[i].replace('ref', 'xref')] = xyref[0];
1747-
aobj[keys[i].replace('ref', 'yref')] = xyref.length === 2 ?
1748-
('y' + xyref[1]) : 'paper';
17491743
delete aobj[keys[i]];
17501744
}
17511745
}

0 commit comments

Comments
 (0)