Skip to content

Bump dev deps 2019 03 29 #3697

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 29, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
add eslint rule padded-blocks: [2, "never"]`
  • Loading branch information
etpinard committed Mar 29, 2019
commit 63a0fd0a4061d2f536c58ac1c55b5ecf77673224
1 change: 1 addition & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"space-in-parens": [2, "never"],
"space-before-function-paren": [2, "never"],
"space-before-blocks": [2],
"padded-blocks": [2, "never"],
"spaced-comment": [2, "always"],
"no-tabs": [2],
"no-multi-spaces": [2, {"ignoreEOLComments": true}],
Expand Down
1 change: 0 additions & 1 deletion devtools/test_dashboard/devtools.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,6 @@ function debounce(func, wait, immediate) {
}

function searchMocks(e) {

// Clear results.
while(mocksList.firstChild) {
mocksList.removeChild(mocksList.firstChild);
Expand Down
1 change: 0 additions & 1 deletion devtools/test_dashboard/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ function readFiles(files) {
}

function createMocksList(files) {

// eliminate pollutants (e.g .DS_Store) that can accumulate in the mock directory
var jsonFiles = files.filter(function(file) {
return file.name.substr(-5) === '.json';
Expand Down
1 change: 0 additions & 1 deletion src/components/annotations/common_defaults.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ module.exports = function handleAnnotationCommonDefaults(annIn, annOut, fullLayo
coerce('arrowwidth', ((borderOpacity && borderWidth) || 1) * 2);
coerce('standoff');
coerce('startstandoff');

}

var hoverText = coerce('hovertext');
Expand Down
1 change: 0 additions & 1 deletion src/components/annotations/draw.js
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,6 @@ function drawRaw(gd, options, index, subplotId, xa, ya) {
var xUpdate, yUpdate;
if(xa) {
xUpdate = xa.p2r(xa.r2p(options.x) + dx);

} else {
var widthFraction = options._xsize / gs.w;
var xLeft = options.x + (options._xshift - options.xshift) / gs.w - widthFraction / 2;
Expand Down
2 changes: 0 additions & 2 deletions src/components/annotations/draw_arrow_head.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ module.exports = function drawArrowHead(el3, ends, options) {
end.x += backOffX;
end.y += backOffY;
el3.attr({x2: end.x, y2: end.y});

}

if(startBackOff) {
Expand All @@ -89,7 +88,6 @@ module.exports = function drawArrowHead(el3, ends, options) {
start.x -= startBackOffX;
start.y -= startbackOffY;
el3.attr({x1: start.x, y1: start.y});

}
}
else if(el.nodeName === 'path') {
Expand Down
1 change: 0 additions & 1 deletion src/components/fx/hover.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,6 @@ exports.loneHover = function loneHover(hoverItem, opts) {
};

exports.multiHovers = function multiHovers(hoverItems, opts) {

if(!Array.isArray(hoverItems)) {
hoverItems = [hoverItems];
}
Expand Down
1 change: 0 additions & 1 deletion src/components/images/defaults.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ module.exports = function supplyLayoutDefaults(layoutIn, layoutOut) {


function imageDefaults(imageIn, imageOut, fullLayout) {

function coerce(attr, dflt) {
return Lib.coerce(imageIn, imageOut, attributes, attr, dflt);
}
Expand Down
1 change: 0 additions & 1 deletion src/components/images/draw.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ module.exports = function draw(gd) {
thisImage.attr('xmlns', xmlnsNamespaces.svg);

var imagePromise = new Promise(function(resolve) {

var img = new Image();
this.img = img;

Expand Down
1 change: 0 additions & 1 deletion src/components/legend/style.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@ module.exports = function style(s, gd) {
trace.colorscale, 'stroke');
}
}

}

function stylePoints(d) {
Expand Down
1 change: 0 additions & 1 deletion src/components/modebar/modebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,6 @@ proto.updateActiveButton = function(buttonClicked) {

button3.classed('active', val === thisval);
}

});
};

Expand Down
1 change: 0 additions & 1 deletion src/components/rangeselector/draw.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ module.exports = function draw(gd) {

reposition(gd, buttons, selectorLayout, axisLayout._name, selector);
});

};

function makeSelectorData(gd) {
Expand Down
1 change: 0 additions & 1 deletion src/components/rangeslider/draw.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,6 @@ function setupDragElement(rangeSlider, gd, axisOpts, opts) {
}

function setDataRange(rangeSlider, gd, axisOpts, opts) {

function clamp(v) {
return axisOpts.l2r(Lib.constrain(v, opts._rl[0], opts._rl[1]));
}
Expand Down
1 change: 0 additions & 1 deletion src/components/sliders/defaults.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ module.exports = function slidersDefaults(layoutIn, layoutOut) {
};

function sliderDefaults(sliderIn, sliderOut, layoutOut) {

function coerce(attr, dflt) {
return Lib.coerce(sliderIn, sliderOut, attributes, attr, dflt);
}
Expand Down
3 changes: 0 additions & 3 deletions src/components/sliders/draw.js
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,6 @@ function drawSlider(gd, sliderGroup, sliderOpts) {

sliderGroup.call(setGripPosition, sliderOpts, false);
sliderGroup.call(drawCurrentValue, sliderOpts);

}

function drawCurrentValue(sliderGroup, sliderOpts, valueOverride) {
Expand Down Expand Up @@ -409,7 +408,6 @@ function drawLabelGroup(sliderGroup, sliderOpts) {
dims.currentValueTotalHeight
);
});

}

function handleInput(gd, sliderGroup, sliderOpts, normalizedPosition, doTransition) {
Expand Down Expand Up @@ -540,7 +538,6 @@ function drawTicks(sliderGroup, sliderOpts) {
(isMajor ? constants.tickOffset : constants.minorTickOffset) + dims.currentValueTotalHeight
);
});

}

function computeLabelSteps(sliderOpts) {
Expand Down
1 change: 0 additions & 1 deletion src/components/updatemenus/defaults.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ module.exports = function updateMenusDefaults(layoutIn, layoutOut) {
};

function menuDefaults(menuIn, menuOut, layoutOut) {

function coerce(attr, dflt) {
return Lib.coerce(menuIn, menuOut, attributes, attr, dflt);
}
Expand Down
1 change: 0 additions & 1 deletion src/components/updatemenus/draw.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ module.exports = function draw(gd) {
} else {
drawButtons(gd, gHeader, null, null, menuOpts);
}

});
};

Expand Down
1 change: 0 additions & 1 deletion src/lib/coerce.js
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,6 @@ exports.valObjectMeta = {
// either be a matching 1D array or an array of such matching 1D arrays
otherOpts: ['dflt', 'freeLength', 'dimensions'],
coerceFunction: function(v, propOut, dflt, opts) {

// simplified coerce function just for array items
function coercePart(v, opts, dflt) {
var out;
Expand Down
1 change: 0 additions & 1 deletion src/lib/dates.js
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,6 @@ exports.cleanDate = function(v, dflt, calendar) {
*/
var fracMatch = /%\d?f/g;
function modDateFormat(fmt, x, formatter, calendar) {

fmt = fmt.replace(fracMatch, function(match) {
var digits = Math.min(+(match.charAt(1)) || 6, 6);
var fracSecs = ((x / 1000 % 1) + 2)
Expand Down
1 change: 0 additions & 1 deletion src/lib/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ var EventEmitter = require('events').EventEmitter;
var Events = {

init: function(plotObj) {

/*
* If we have already instantiated an emitter for this plot
* return early.
Expand Down
1 change: 0 additions & 1 deletion src/lib/extend.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ function _extend(inputs, isDeep, keepAllKeys, noArrayCopies) {
// TODO does this do the right thing for typed arrays?

if(length === 2 && isArray(target) && isArray(inputs[1]) && target.length === 0) {

allPrimitives = primitivesLoopSplice(inputs[1], target);

if(allPrimitives) {
Expand Down
1 change: 0 additions & 1 deletion src/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -843,7 +843,6 @@ lib.objectFromPath = function(path, value) {

tmpObj = tmpObj[el];
} else {

if(i === keys.length - 1) {
tmpObj[key] = value;
} else {
Expand Down
1 change: 0 additions & 1 deletion src/lib/is_plain_object.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

// more info: http://stackoverflow.com/questions/18531624/isplainobject-thing
module.exports = function isPlainObject(obj) {

// We need to be a little less strict in the `imagetest` container because
// of how async image requests are handled.
//
Expand Down
3 changes: 0 additions & 3 deletions src/lib/relink_private.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,13 @@ module.exports = function relinkPrivateKeys(toContainer, fromContainer) {
continue;
}
if(k.charAt(0) === '_' || typeof fromVal === 'function') {

// if it already exists at this point, it's something
// that we recreate each time around, so ignore it
if(k in toContainer) continue;

toContainer[k] = fromVal;
}
else if(isArrayOrTypedArray(fromVal) && isArrayOrTypedArray(toVal) && isPlainObject(fromVal[0])) {

// filter out data_array items that can contain user objects
// most of the time the toVal === fromVal check will catch these early
// but if the user makes new ones we also don't want to recurse in.
Expand All @@ -51,7 +49,6 @@ module.exports = function relinkPrivateKeys(toContainer, fromContainer) {
}
}
else if(isPlainObject(fromVal) && isPlainObject(toVal)) {

// recurse into objects, but only if they still exist
relinkPrivateKeys(toVal, fromVal);

Expand Down
1 change: 0 additions & 1 deletion src/lib/svg_text_utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,6 @@ function cleanEscapesForTex(s) {
}

function texToSVG(_texString, _config, _callback) {

var originalRenderer,
originalConfig,
originalProcessSectionDelay,
Expand Down
5 changes: 0 additions & 5 deletions src/plot_api/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,6 @@ function cleanAxRef(container, attr) {
*/
function cleanTitle(titleContainer) {
if(titleContainer) {

// title -> title.text
// (although title used to be a string attribute,
// numbers are accepted as well)
Expand All @@ -258,7 +257,6 @@ function cleanTitle(titleContainer) {
var newAttrSet = titleContainer.title && titleContainer.title[newAttrName];

if(oldAttrSet && !newAttrSet) {

// Ensure title object exists
if(!titleContainer.title) {
titleContainer.title = {};
Expand Down Expand Up @@ -613,7 +611,6 @@ exports.manageArrayContainers = function(np, newVal, undoit) {

// delete item
if(pLastIsNumber && newVal === null) {

// Clear item in array container when new value is null
var contPath = parts.slice(0, pLength - 1).join('.');
var cont = Lib.nestedProperty(obj, contPath).get();
Expand All @@ -624,15 +621,13 @@ exports.manageArrayContainers = function(np, newVal, undoit) {
}
// create item
else if(pLastIsNumber && np.get() === undefined) {

// When adding a new item, make sure undo command will remove it
if(np.get() === undefined) undoit[np.astr] = null;

np.set(newVal);
}
// update item
else {

// If the last part of attribute string isn't a number,
// np.set is all we need.
np.set(newVal);
Expand Down
15 changes: 0 additions & 15 deletions src/plot_api/plot_api.js
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,6 @@ function assertIndexArray(gd, indices, arrayName) {
* @param newIndices
*/
function checkMoveTracesArgs(gd, currentIndices, newIndices) {

// check that gd has attribute 'data' and 'data' is array
if(!Array.isArray(gd.data)) {
throw new Error('gd.data must be an array.');
Expand All @@ -759,7 +758,6 @@ function checkMoveTracesArgs(gd, currentIndices, newIndices) {
if(typeof newIndices !== 'undefined' && currentIndices.length !== newIndices.length) {
throw new Error('current and new indices must be of equal length.');
}

}
/**
* A private function to reduce the type checking clutter in addTraces.
Expand Down Expand Up @@ -816,7 +814,6 @@ function checkAddTracesArgs(gd, traces, newIndices) {
* @param maxPoints
*/
function assertExtendTracesArgs(gd, update, indices, maxPoints) {

var maxPointsIsObject = Lib.isPlainObject(maxPoints);

if(!Array.isArray(gd.data)) {
Expand All @@ -833,7 +830,6 @@ function assertExtendTracesArgs(gd, update, indices, maxPoints) {
assertIndexArray(gd, indices, 'indices');

for(var key in update) {

/*
* Verify that the attribute to be updated contains as many trace updates
* as indices. Failure must result in throw and no-op
Expand Down Expand Up @@ -864,7 +860,6 @@ function assertExtendTracesArgs(gd, update, indices, maxPoints) {
* @return {Object[]}
*/
function getExtendProperties(gd, update, indices, maxPoints) {

var maxPointsIsObject = Lib.isPlainObject(maxPoints);
var updateProps = [];
var trace, target, prop, insert, maxp;
Expand All @@ -877,9 +872,7 @@ function getExtendProperties(gd, update, indices, maxPoints) {

// loop through all update keys and traces and harvest validated data.
for(var key in update) {

for(var j = 0; j < indices.length; j++) {

/*
* Choose the trace indexed by the indices map argument and get the prop setter-getter
* instance that references the key and value for this particular trace.
Expand Down Expand Up @@ -1166,12 +1159,10 @@ exports.addTraces = function addTraces(gd, traces, newIndices) {
}

try {

// this is redundant, but necessary to not catch later possible errors!
checkMoveTracesArgs(gd, currentIndices, newIndices);
}
catch(error) {

// something went wrong, reset gd to be safe and rethrow error
gd.data.splice(gd.data.length - traces.length, traces.length);
throw error;
Expand Down Expand Up @@ -1296,7 +1287,6 @@ exports.moveTraces = function moveTraces(gd, currentIndices, newIndices) {

// get the traces that aren't being moved around
for(i = 0; i < gd.data.length; i++) {

// if index isn't in currentIndices, include it in ignored!
if(currentIndices.indexOf(i) === -1) {
newData.push(gd.data[i]);
Expand Down Expand Up @@ -2747,7 +2737,6 @@ exports.react = function(gd, data, layout, config) {
plotDone = exports.newPlot(gd, data, layout, config);
}
else {

if(Lib.isPlainObject(data)) {
var obj = data;
data = obj.data;
Expand Down Expand Up @@ -2877,7 +2866,6 @@ exports.react = function(gd, data, layout, config) {

return gd;
});

};

function diffData(gd, oldFullData, newFullData, immutable, transition, newDataRevision) {
Expand Down Expand Up @@ -3099,7 +3087,6 @@ function getDiffFlags(oldContainer, newContainer, outerparts, opts) {
}
else if(canBeDataArray) {
if(wasArray && nowArray) {

// don't try to diff two data arrays. If immutable we know the data changed,
// if not, assume it didn't and let `layout.datarevision` tell us if it did
if(immutable) {
Expand Down Expand Up @@ -3394,7 +3381,6 @@ exports.animate = function(gd, frameOrGroupNameOrFrameList, animationOpts) {
if(newFrame.onComplete) {
newFrame.onComplete();
}

});

gd.emit('plotly_animatingframe', {
Expand Down Expand Up @@ -3658,7 +3644,6 @@ exports.addFrames = function(gd, frameList, indices) {
if(typeof frame.name === 'number') {
Lib.warn('Warning: addFrames accepts frames with numeric names, but the numbers are' +
'implicitly cast to strings');

}

if(!frame.name) {
Expand Down
Loading