Skip to content

Commit d55568c

Browse files
committed
🔪 obsolete getShapeLayer
1 parent 649a831 commit d55568c

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

src/components/shapes/draw.js

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -271,22 +271,6 @@ function setupDragElement(gd, shapePath, shapeOptions, index) {
271271
}
272272
}
273273

274-
function getShapeLayer(gd, index) {
275-
var shape = gd._fullLayout.shapes[index],
276-
shapeLayer = gd._fullLayout._shapeUpperLayer;
277-
278-
if(!shape) {
279-
Lib.log('getShapeLayer: undefined shape: index', index);
280-
}
281-
else if(shape.layer === 'below') {
282-
shapeLayer = (shape.xref === 'paper' && shape.yref === 'paper') ?
283-
gd._fullLayout._shapeLowerLayer :
284-
gd._fullLayout._shapeSubplotLayer;
285-
}
286-
287-
return shapeLayer;
288-
}
289-
290274
function isShapeInSubplot(gd, shape, plotinfo) {
291275
var xa = Axes.getFromId(gd, plotinfo.id, 'x')._id,
292276
ya = Axes.getFromId(gd, plotinfo.id, 'y')._id,

0 commit comments

Comments
 (0)