Skip to content
Merged
Prev Previous commit
Next Next commit
Move constant to top of file; remove unused require
  • Loading branch information
camdecoster committed Oct 14, 2025
commit 0da832e2e6c6e61f1b5e8edc293a26f90ef780e6
3 changes: 2 additions & 1 deletion src/plot_api/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ var cleanId = AxisIds.cleanId;
var getFromTrace = AxisIds.getFromTrace;
var traceIs = Registry.traceIs;

const AX_LETTERS = ['x', 'y', 'z'];

// clear the promise queue if one of them got rejected
exports.clearPromiseQueue = function (gd) {
if (Array.isArray(gd._promises) && gd._promises.length > 0) {
Expand Down Expand Up @@ -475,7 +477,6 @@ exports.hasParent = function (aobj, attr) {
return false;
};

const AX_LETTERS = ['x', 'y', 'z'];
/**
* Empty out types for all axes containing these traces so we auto-set them again
*
Expand Down