11/**
2- * plotly.js (basic) v1.17.1
2+ * plotly.js (basic) v1.17.2
33* Copyright 2012-2016, Plotly, Inc.
44* All rights reserved.
55* Licensed under the MIT license
@@ -13306,16 +13306,16 @@ function drawOne(gd, index, opt, value) {
1330613306 // and the annotation center are visible
1330713307 if(options.showarrow) {
1330813308 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.
1331113311 arrowX = annPosPx.x;
1331213312 } else {
1331313313 arrowX = Lib.constrain(annPosPx.x - options.ax, 1, fullLayout.width - 1);
1331413314 }
1331513315
1331613316 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.
1331913319 arrowY = annPosPx.y;
1332013320 } else {
1332113321 arrowY = Lib.constrain(annPosPx.y - options.ay, 1, fullLayout.height - 1);
@@ -14756,7 +14756,7 @@ module.exports = function draw(gd, id) {
1475614756 container.attr('transform',
1475714757 'translate(' + (gs.l - xoffset) + ',' + gs.t + ')');
1475814758
14759- //auto margin adjustment
14759+ // auto margin adjustment
1476014760 Plots.autoMargin(gd, id, {
1476114761 x: opts.x,
1476214762 y: opts.y,
@@ -16038,8 +16038,10 @@ function singlePointStyle(d, sel, trace, markerScale, lineScale, marker, markerL
1603816038
1603916039 // handle multi-trace graph edit case
1604016040 if(d.ms === 'various' || marker.size === 'various') r = 3;
16041- else r = subTypes.isBubble(trace) ?
16041+ else {
16042+ r = subTypes.isBubble(trace) ?
1604216043 sizeFn(d.ms) : (marker.size || 6) / 2;
16044+ }
1604316045
1604416046 // store the calculated size so hover can use it
1604516047 d.mrc = r;
@@ -18725,7 +18727,7 @@ function computeLegendDimensions(gd, groups, traces) {
1872518727 maxTraceWidth = 0,
1872618728 offsetX = 0;
1872718729
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
1872918731 traces.each(function(d) {
1873018732 maxTraceWidth = Math.max(40 + d[0].width, maxTraceWidth);
1873118733 });
@@ -18739,7 +18741,7 @@ function computeLegendDimensions(gd, groups, traces) {
1873918741 offsetX = 0;
1874018742 rowHeight = rowHeight + maxTraceHeight;
1874118743 opts.height = opts.height + maxTraceHeight;
18742- //reset for next row
18744+ // reset for next row
1874318745 maxTraceHeight = 0;
1874418746 }
1874518747
@@ -18750,7 +18752,7 @@ function computeLegendDimensions(gd, groups, traces) {
1875018752 opts.width += traceGap + traceWidth;
1875118753 opts.height = Math.max(opts.height, legendItem.height);
1875218754
18753- //keep track of tallest trace in group
18755+ // keep track of tallest trace in group
1875418756 offsetX += traceGap + traceWidth;
1875518757 maxTraceHeight = Math.max(legendItem.height, maxTraceHeight);
1875618758 });
@@ -23612,7 +23614,7 @@ exports.svgAttrs = {
2361223614var Plotly = require('./plotly');
2361323615
2361423616// package version injected by `npm run preprocess`
23615- exports.version = '1.17.1 ';
23617+ exports.version = '1.17.2 ';
2361623618
2361723619// inject promise polyfill
2361823620require('es6-promise').polyfill();
@@ -25471,7 +25473,7 @@ exports.apply2DTransform = function(transform) {
2547125473 var args = arguments;
2547225474 if(args.length === 3) {
2547325475 args = args[0];
25474- }//from map
25476+ }// from map
2547525477 var xy = arguments.length === 1 ? args[0] : [args[0], args[1]];
2547625478 return exports.dot(transform, [xy[0], xy[1], 1]).slice(0, 2);
2547725479 };
@@ -27801,7 +27803,7 @@ function setPlotContext(gd, config) {
2780127803 }
2780227804 }
2780327805
27804- //staticPlot forces a bunch of others:
27806+ // staticPlot forces a bunch of others:
2780527807 if(context.staticPlot) {
2780627808 context.editable = false;
2780727809 context.autosizable = false;
@@ -27864,8 +27866,8 @@ function plotPolar(gd, data, layout) {
2786427866
2786527867 var titleLayout = function() {
2786627868 this.call(svgTextUtils.convertToTspans);
27867- //TODO: html/mathjax
27868- //TODO: center title
27869+ // TODO: html/mathjax
27870+ // TODO: center title
2786927871 };
2787027872
2787127873 var title = polarPlotSVG.select('.title-group text')
@@ -28936,7 +28938,7 @@ function _restyle(gd, aobj, _traces) {
2893628938 } else if(Registry.traceIs(cont, 'cartesian')) {
2893728939 Lib.nestedProperty(cont, 'marker.colors')
2893828940 .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
2894028942 flagAxForDelete[cont.xaxis || 'x'] = true;
2894128943 flagAxForDelete[cont.yaxis || 'y'] = true;
2894228944 }
@@ -32071,7 +32073,7 @@ axes.coerceRef = function(containerIn, containerOut, gd, axLetter, dflt) {
3207132073 return Lib.coerce(containerIn, containerOut, attrDef, refAttr);
3207232074};
3207332075
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.
3207532077// find the list of possible axes to reference with an axref or ayref attribute
3207632078// and coerce it to that list
3207732079axes.coerceARef = function(containerIn, containerOut, gd, axLetter, dflt) {
@@ -32705,15 +32707,15 @@ axes.autoTicks = function(ax, roughDTick) {
3270532707 ax.dtick = roundDTick(roughDTick, 1000, roundBase60);
3270632708 }
3270732709 else {
32708- //milliseconds
32710+ // milliseconds
3270932711 base = Math.pow(10, Math.floor(Math.log(roughDTick) / Math.LN10));
3271032712 ax.dtick = roundDTick(roughDTick, base, roundBase10);
3271132713 }
3271232714 }
3271332715 else if(ax.type === 'log') {
3271432716 ax.tick0 = 0;
3271532717
32716- //only show powers of 10
32718+ // only show powers of 10
3271732719 if(roughDTick > 0.7) ax.dtick = Math.ceil(roughDTick);
3271832720 else if(Math.abs(ax.range[1] - ax.range[0]) < 1) {
3271932721 // span is less than one power of 10
@@ -36559,7 +36561,7 @@ function hoverAvoidOverlaps(hoverData, ax) {
3655936561 p1 = g1[0];
3656036562 topOverlap = p0.pos + p0.dp + p0.size - p1.pos - p1.dp + p1.size;
3656136563
36562- //Only group points that lie on the same axes
36564+ // Only group points that lie on the same axes
3656336565 if(topOverlap > 0.01 && (p0.pmin === p1.pmin) && (p0.pmax === p1.pmax)) {
3656436566 // push the new point(s) added to this group out of the way
3656536567 for(j = g1.length - 1; j >= 0; j--) g1[j].dp += topOverlap;
@@ -37169,7 +37171,7 @@ module.exports = {
3716937171 valType: 'enumerated',
3717037172 values: [
3717137173 '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
3717337175 ],
3717437176 dflt: 'trace',
3717537177
@@ -39886,7 +39888,7 @@ plots.modifyFrames = function(gd, operations) {
3988639888
3988739889 switch(op.type) {
3988839890 // No reason this couldn't exist, but is currently unused/untested:
39889- /*case 'rename':
39891+ /* case 'rename':
3989039892 frame = _frames[op.index];
3989139893 delete _hash[frame.name];
3989239894 _hash[op.name] = frame;
@@ -41901,6 +41903,7 @@ var µ = module.exports = { version: '0.2.2' };
4190141903* LICENSE file in the root directory of this source tree.
4190241904*/
4190341905
41906+ /* eslint-disable new-cap */
4190441907
4190541908'use strict';
4190641909
@@ -41988,8 +41991,8 @@ manager.fillLayout = function(_gd) {
4198841991
4198941992'use strict';
4199041993
41991- //Modified from https://github.com/ArthurClemens/Javascript-Undo-Manager
41992- //Copyright (c) 2010-2013 Arthur Clemens, arthur@visiblearea.com
41994+ // Modified from https://github.com/ArthurClemens/Javascript-Undo-Manager
41995+ // Copyright (c) 2010-2013 Arthur Clemens, arthur@visiblearea.com
4199341996module.exports = function UndoManager() {
4199441997 var undoCommands = [],
4199541998 index = -1,
@@ -44414,7 +44417,7 @@ module.exports = function plot(gd, cdpie) {
4441444417 var pieGroup = d3.select(this),
4441544418 cd0 = cd[0],
4441644419 trace = cd0.trace,
44417- tiltRads = 0, //trace.tilt * Math.PI / 180,
44420+ tiltRads = 0, // trace.tilt * Math.PI / 180,
4441844421 depthLength = (trace.depth||0) * cd0.r * Math.sin(tiltRads) / 2,
4441944422 tiltAxis = trace.tiltaxis || 0,
4442044423 tiltAxisRads = tiltAxis * Math.PI / 180,
@@ -45548,7 +45551,7 @@ module.exports = function calc(gd, trace) {
4554845551 }
4554945552
4555045553 // 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');
4555245555
4555345556 gd.firstscatter = false;
4555445557 return cd;
0 commit comments