Skip to content

Commit 8934038

Browse files
committed
update comment on contourcarpet label bounds
1 parent 49b8141 commit 8934038

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/traces/contourcarpet/plot.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -177,9 +177,9 @@ function makeLinesAndLabels(plotgroup, pathinfo, gd, cd0, contours, plotinfo, ca
177177
.attr('data-notex', 1)
178178
.call(Drawing.font, contours.labelfont);
179179

180-
// for now at least, contourcarpet pushes labels only away from
181-
// the xy box edges, not the edges of the carpet.
182-
// TODO: is this OK?
180+
// use `bounds` only to keep labels away from the x/y boundaries
181+
// `constrainToCarpet` below ensures labels don't go off the
182+
// carpet edges
183183
var bounds = {
184184
left: 0,
185185
right: xLen,

0 commit comments

Comments
 (0)