1
1
/**
2
- * plotly.js (basic) v1.17.1
2
+ * plotly.js (basic) v1.17.2
3
3
* Copyright 2012-2016, Plotly, Inc.
4
4
* All rights reserved.
5
5
* Licensed under the MIT license
@@ -13306,16 +13306,16 @@ function drawOne(gd, index, opt, value) {
13306
13306
// and the annotation center are visible
13307
13307
if(options.showarrow) {
13308
13308
if(options.axref === options.xref) {
13309
- //we don't want to constrain if the tail is absolute
13310
- //or the slope (which is meaningful) will change.
13309
+ // we don't want to constrain if the tail is absolute
13310
+ // or the slope (which is meaningful) will change.
13311
13311
arrowX = annPosPx.x;
13312
13312
} else {
13313
13313
arrowX = Lib.constrain(annPosPx.x - options.ax, 1, fullLayout.width - 1);
13314
13314
}
13315
13315
13316
13316
if(options.ayref === options.yref) {
13317
- //we don't want to constrain if the tail is absolute
13318
- //or the slope (which is meaningful) will change.
13317
+ // we don't want to constrain if the tail is absolute
13318
+ // or the slope (which is meaningful) will change.
13319
13319
arrowY = annPosPx.y;
13320
13320
} else {
13321
13321
arrowY = Lib.constrain(annPosPx.y - options.ay, 1, fullLayout.height - 1);
@@ -14756,7 +14756,7 @@ module.exports = function draw(gd, id) {
14756
14756
container.attr('transform',
14757
14757
'translate(' + (gs.l - xoffset) + ',' + gs.t + ')');
14758
14758
14759
- //auto margin adjustment
14759
+ // auto margin adjustment
14760
14760
Plots.autoMargin(gd, id, {
14761
14761
x: opts.x,
14762
14762
y: opts.y,
@@ -16038,8 +16038,10 @@ function singlePointStyle(d, sel, trace, markerScale, lineScale, marker, markerL
16038
16038
16039
16039
// handle multi-trace graph edit case
16040
16040
if(d.ms === 'various' || marker.size === 'various') r = 3;
16041
- else r = subTypes.isBubble(trace) ?
16041
+ else {
16042
+ r = subTypes.isBubble(trace) ?
16042
16043
sizeFn(d.ms) : (marker.size || 6) / 2;
16044
+ }
16043
16045
16044
16046
// store the calculated size so hover can use it
16045
16047
d.mrc = r;
@@ -18725,7 +18727,7 @@ function computeLegendDimensions(gd, groups, traces) {
18725
18727
maxTraceWidth = 0,
18726
18728
offsetX = 0;
18727
18729
18728
- //calculate largest width for traces and use for width of all legend items
18730
+ // calculate largest width for traces and use for width of all legend items
18729
18731
traces.each(function(d) {
18730
18732
maxTraceWidth = Math.max(40 + d[0].width, maxTraceWidth);
18731
18733
});
@@ -18739,7 +18741,7 @@ function computeLegendDimensions(gd, groups, traces) {
18739
18741
offsetX = 0;
18740
18742
rowHeight = rowHeight + maxTraceHeight;
18741
18743
opts.height = opts.height + maxTraceHeight;
18742
- //reset for next row
18744
+ // reset for next row
18743
18745
maxTraceHeight = 0;
18744
18746
}
18745
18747
@@ -18750,7 +18752,7 @@ function computeLegendDimensions(gd, groups, traces) {
18750
18752
opts.width += traceGap + traceWidth;
18751
18753
opts.height = Math.max(opts.height, legendItem.height);
18752
18754
18753
- //keep track of tallest trace in group
18755
+ // keep track of tallest trace in group
18754
18756
offsetX += traceGap + traceWidth;
18755
18757
maxTraceHeight = Math.max(legendItem.height, maxTraceHeight);
18756
18758
});
@@ -23612,7 +23614,7 @@ exports.svgAttrs = {
23612
23614
var Plotly = require('./plotly');
23613
23615
23614
23616
// package version injected by `npm run preprocess`
23615
- exports.version = '1.17.1 ';
23617
+ exports.version = '1.17.2 ';
23616
23618
23617
23619
// inject promise polyfill
23618
23620
require('es6-promise').polyfill();
@@ -25471,7 +25473,7 @@ exports.apply2DTransform = function(transform) {
25471
25473
var args = arguments;
25472
25474
if(args.length === 3) {
25473
25475
args = args[0];
25474
- }//from map
25476
+ }// from map
25475
25477
var xy = arguments.length === 1 ? args[0] : [args[0], args[1]];
25476
25478
return exports.dot(transform, [xy[0], xy[1], 1]).slice(0, 2);
25477
25479
};
@@ -27801,7 +27803,7 @@ function setPlotContext(gd, config) {
27801
27803
}
27802
27804
}
27803
27805
27804
- //staticPlot forces a bunch of others:
27806
+ // staticPlot forces a bunch of others:
27805
27807
if(context.staticPlot) {
27806
27808
context.editable = false;
27807
27809
context.autosizable = false;
@@ -27864,8 +27866,8 @@ function plotPolar(gd, data, layout) {
27864
27866
27865
27867
var titleLayout = function() {
27866
27868
this.call(svgTextUtils.convertToTspans);
27867
- //TODO: html/mathjax
27868
- //TODO: center title
27869
+ // TODO: html/mathjax
27870
+ // TODO: center title
27869
27871
};
27870
27872
27871
27873
var title = polarPlotSVG.select('.title-group text')
@@ -28936,7 +28938,7 @@ function _restyle(gd, aobj, _traces) {
28936
28938
} else if(Registry.traceIs(cont, 'cartesian')) {
28937
28939
Lib.nestedProperty(cont, 'marker.colors')
28938
28940
.set(Lib.nestedProperty(cont, 'marker.color').get());
28939
- //look for axes that are no longer in use and delete them
28941
+ // look for axes that are no longer in use and delete them
28940
28942
flagAxForDelete[cont.xaxis || 'x'] = true;
28941
28943
flagAxForDelete[cont.yaxis || 'y'] = true;
28942
28944
}
@@ -32071,7 +32073,7 @@ axes.coerceRef = function(containerIn, containerOut, gd, axLetter, dflt) {
32071
32073
return Lib.coerce(containerIn, containerOut, attrDef, refAttr);
32072
32074
};
32073
32075
32074
- //todo: duplicated per github PR 610. Should be consolidated with axes.coerceRef.
32076
+ // todo: duplicated per github PR 610. Should be consolidated with axes.coerceRef.
32075
32077
// find the list of possible axes to reference with an axref or ayref attribute
32076
32078
// and coerce it to that list
32077
32079
axes.coerceARef = function(containerIn, containerOut, gd, axLetter, dflt) {
@@ -32705,15 +32707,15 @@ axes.autoTicks = function(ax, roughDTick) {
32705
32707
ax.dtick = roundDTick(roughDTick, 1000, roundBase60);
32706
32708
}
32707
32709
else {
32708
- //milliseconds
32710
+ // milliseconds
32709
32711
base = Math.pow(10, Math.floor(Math.log(roughDTick) / Math.LN10));
32710
32712
ax.dtick = roundDTick(roughDTick, base, roundBase10);
32711
32713
}
32712
32714
}
32713
32715
else if(ax.type === 'log') {
32714
32716
ax.tick0 = 0;
32715
32717
32716
- //only show powers of 10
32718
+ // only show powers of 10
32717
32719
if(roughDTick > 0.7) ax.dtick = Math.ceil(roughDTick);
32718
32720
else if(Math.abs(ax.range[1] - ax.range[0]) < 1) {
32719
32721
// span is less than one power of 10
@@ -36559,7 +36561,7 @@ function hoverAvoidOverlaps(hoverData, ax) {
36559
36561
p1 = g1[0];
36560
36562
topOverlap = p0.pos + p0.dp + p0.size - p1.pos - p1.dp + p1.size;
36561
36563
36562
- //Only group points that lie on the same axes
36564
+ // Only group points that lie on the same axes
36563
36565
if(topOverlap > 0.01 && (p0.pmin === p1.pmin) && (p0.pmax === p1.pmax)) {
36564
36566
// push the new point(s) added to this group out of the way
36565
36567
for(j = g1.length - 1; j >= 0; j--) g1[j].dp += topOverlap;
@@ -37169,7 +37171,7 @@ module.exports = {
37169
37171
valType: 'enumerated',
37170
37172
values: [
37171
37173
'trace', 'category ascending', 'category descending', 'array'
37172
- /*, 'value ascending', 'value descending'*/ // value ascending / descending to be implemented later
37174
+ /* , 'value ascending', 'value descending'*/ // value ascending / descending to be implemented later
37173
37175
],
37174
37176
dflt: 'trace',
37175
37177
@@ -39886,7 +39888,7 @@ plots.modifyFrames = function(gd, operations) {
39886
39888
39887
39889
switch(op.type) {
39888
39890
// No reason this couldn't exist, but is currently unused/untested:
39889
- /*case 'rename':
39891
+ /* case 'rename':
39890
39892
frame = _frames[op.index];
39891
39893
delete _hash[frame.name];
39892
39894
_hash[op.name] = frame;
@@ -41901,6 +41903,7 @@ var µ = module.exports = { version: '0.2.2' };
41901
41903
* LICENSE file in the root directory of this source tree.
41902
41904
*/
41903
41905
41906
+ /* eslint-disable new-cap */
41904
41907
41905
41908
'use strict';
41906
41909
@@ -41988,8 +41991,8 @@ manager.fillLayout = function(_gd) {
41988
41991
41989
41992
'use strict';
41990
41993
41991
- //Modified from https://github.com/ArthurClemens/Javascript-Undo-Manager
41992
- //Copyright (c) 2010-2013 Arthur Clemens,
[email protected]
41994
+ // Modified from https://github.com/ArthurClemens/Javascript-Undo-Manager
41995
+ //
Copyright (c) 2010-2013 Arthur Clemens,
[email protected]
41993
41996
module.exports = function UndoManager() {
41994
41997
var undoCommands = [],
41995
41998
index = -1,
@@ -44414,7 +44417,7 @@ module.exports = function plot(gd, cdpie) {
44414
44417
var pieGroup = d3.select(this),
44415
44418
cd0 = cd[0],
44416
44419
trace = cd0.trace,
44417
- tiltRads = 0, //trace.tilt * Math.PI / 180,
44420
+ tiltRads = 0, // trace.tilt * Math.PI / 180,
44418
44421
depthLength = (trace.depth||0) * cd0.r * Math.sin(tiltRads) / 2,
44419
44422
tiltAxis = trace.tiltaxis || 0,
44420
44423
tiltAxisRads = tiltAxis * Math.PI / 180,
@@ -45548,7 +45551,7 @@ module.exports = function calc(gd, trace) {
45548
45551
}
45549
45552
45550
45553
// this has migrated up from arraysToCalcdata as we have a reference to 's' here
45551
- if(typeof s !== undefined) Lib.mergeArray(s, cd, 'ms');
45554
+ if(typeof s !== ' undefined' ) Lib.mergeArray(s, cd, 'ms');
45552
45555
45553
45556
gd.firstscatter = false;
45554
45557
return cd;
0 commit comments