Skip to content

Commit 668428d

Browse files
committed
1.17.2
1 parent 1bcb1f9 commit 668428d

20 files changed

+15509
-13574
lines changed

Diff for: dist/README.md

+17-17
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ The main plotly.js bundle includes all the official (non-beta) trace modules.
3737

3838
It be can imported as minified javascript
3939
- using dist file `dist/plotly.min.js`
40-
- using CDN URL https://cdn.plot.ly/plotly-plotly-latest.min.js OR https://cdn.plot.ly/plotly-plotly-1.17.1.min.js
40+
- using CDN URL https://cdn.plot.ly/plotly-plotly-latest.min.js OR https://cdn.plot.ly/plotly-plotly-1.17.2.min.js
4141

4242
or as raw javascript:
4343
- using dist file `dist/plotly.js`
44-
- using CDN URL https://cdn.plot.ly/plotly-plotly-latest.js OR https://cdn.plot.ly/plotly-plotly-1.17.1.js
44+
- using CDN URL https://cdn.plot.ly/plotly-plotly-latest.js OR https://cdn.plot.ly/plotly-plotly-1.17.2.js
4545
- using CommonJS with `require('plotly.js')`
4646

4747
If you would like to have access to the attribute meta information (including attribute descriptions as on the [schema reference page](https://plot.ly/javascript/reference/)), use dist file `dist/plotly-with-meta.js`
@@ -50,7 +50,7 @@ The main plotly.js bundle weights in at:
5050

5151
| plotly.js | plotly.min.js | plotly.min.js + gzip | plotly-with-meta.js |
5252
|-----------|---------------|----------------------|---------------------|
53-
| 3.9 MB | 1.7 MB | 512.9 kB | 4 MB |
53+
| 4 MB | 1.7 MB | 515.2 kB | 4.1 MB |
5454

5555
## Partial bundles
5656

@@ -73,8 +73,8 @@ The `basic` partial bundle contains the `scatter`, `bar` and `pie` trace modules
7373
| dist bundle (minified) | `dist/plotly-basic.min.js` |
7474
| CDN URL (latest) | https://cdn.plot.ly/plotly-basic-latest.js |
7575
| CDN URL (latest minified) | https://cdn.plot.ly/plotly-basic-latest.min.js |
76-
| CDN URL (tagged) | https://cdn.plot.ly/plotly-basic-1.17.1.js |
77-
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-basic-1.17.1.min.js |
76+
| CDN URL (tagged) | https://cdn.plot.ly/plotly-basic-1.17.2.js |
77+
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-basic-1.17.2.min.js |
7878
| CommonJS | `require('plotly.js/lib/index-basic')` |
7979

8080
| Raw size | Minified size | Minified + gzip size |
@@ -91,8 +91,8 @@ The `cartesian` partial bundle contains the `scatter`, `bar`, `box`, `heatmap`,
9191
| dist bundle (minified) | `dist/plotly-cartesian.min.js` |
9292
| CDN URL (latest) | https://cdn.plot.ly/plotly-cartesian-latest.js |
9393
| CDN URL (latest minified) | https://cdn.plot.ly/plotly-cartesian-latest.min.js |
94-
| CDN URL (tagged) | https://cdn.plot.ly/plotly-cartesian-1.17.1.js |
95-
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-cartesian-1.17.1.min.js |
94+
| CDN URL (tagged) | https://cdn.plot.ly/plotly-cartesian-1.17.2.js |
95+
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-cartesian-1.17.2.min.js |
9696
| CommonJS | `require('plotly.js/lib/index-cartesian')` |
9797

9898
| Raw size | Minified size | Minified + gzip size |
@@ -109,8 +109,8 @@ The `geo` partial bundle contains the `scatter`, `scattergeo` and `choropleth` t
109109
| dist bundle (minified) | `dist/plotly-geo.min.js` |
110110
| CDN URL (latest) | https://cdn.plot.ly/plotly-geo-latest.js |
111111
| CDN URL (latest minified) | https://cdn.plot.ly/plotly-geo-latest.min.js |
112-
| CDN URL (tagged) | https://cdn.plot.ly/plotly-geo-1.17.1.js |
113-
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-geo-1.17.1.min.js |
112+
| CDN URL (tagged) | https://cdn.plot.ly/plotly-geo-1.17.2.js |
113+
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-geo-1.17.2.min.js |
114114
| CommonJS | `require('plotly.js/lib/index-geo')` |
115115

116116
| Raw size | Minified size | Minified + gzip size |
@@ -127,13 +127,13 @@ The `gl3d` partial bundle contains the `scatter`, `scatter3d`, `surface` and `me
127127
| dist bundle (minified) | `dist/plotly-gl3d.min.js` |
128128
| CDN URL (latest) | https://cdn.plot.ly/plotly-gl3d-latest.js |
129129
| CDN URL (latest minified) | https://cdn.plot.ly/plotly-gl3d-latest.min.js |
130-
| CDN URL (tagged) | https://cdn.plot.ly/plotly-gl3d-1.17.1.js |
131-
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-gl3d-1.17.1.min.js |
130+
| CDN URL (tagged) | https://cdn.plot.ly/plotly-gl3d-1.17.2.js |
131+
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-gl3d-1.17.2.min.js |
132132
| CommonJS | `require('plotly.js/lib/index-gl3d')` |
133133

134134
| Raw size | Minified size | Minified + gzip size |
135135
|------|-----------------|------------------------|
136-
| 2.4 MB | 1011.8 kB | 318.1 kB |
136+
| 2.3 MB | 1011.4 kB | 318 kB |
137137

138138
### plotly.js gl2d
139139

@@ -145,13 +145,13 @@ The `gl2d` partial bundle contains the `scatter`, `scattergl`, `pointcloud`, `he
145145
| dist bundle (minified) | `dist/plotly-gl2d.min.js` |
146146
| CDN URL (latest) | https://cdn.plot.ly/plotly-gl2d-latest.js |
147147
| CDN URL (latest minified) | https://cdn.plot.ly/plotly-gl2d-latest.min.js |
148-
| CDN URL (tagged) | https://cdn.plot.ly/plotly-gl2d-1.17.1.js |
149-
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-gl2d-1.17.1.min.js |
148+
| CDN URL (tagged) | https://cdn.plot.ly/plotly-gl2d-1.17.2.js |
149+
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-gl2d-1.17.2.min.js |
150150
| CommonJS | `require('plotly.js/lib/index-gl2d')` |
151151

152152
| Raw size | Minified size | Minified + gzip size |
153153
|------|-----------------|------------------------|
154-
| 2.1 MB | 891.7 kB | 280.4 kB |
154+
| 2.1 MB | 898.9 kB | 283.5 kB |
155155

156156
### plotly.js mapbox
157157

@@ -163,8 +163,8 @@ The `mapbox` partial bundle contains the `scatter` and `scattermapbox` trace mod
163163
| dist bundle (minified) | `dist/plotly-mapbox.min.js` |
164164
| CDN URL (latest) | https://cdn.plot.ly/plotly-mapbox-latest.js |
165165
| CDN URL (latest minified) | https://cdn.plot.ly/plotly-mapbox-latest.min.js |
166-
| CDN URL (tagged) | https://cdn.plot.ly/plotly-mapbox-1.17.1.js |
167-
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-mapbox-1.17.1.min.js |
166+
| CDN URL (tagged) | https://cdn.plot.ly/plotly-mapbox-1.17.2.js |
167+
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-mapbox-1.17.2.min.js |
168168
| CommonJS | `require('plotly.js/lib/index-mapbox')` |
169169

170170
| Raw size | Minified size | Minified + gzip size |

Diff for: dist/plotly-basic.js

+29-26
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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 = {
2361223614
var 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
2361823620
require('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
3207732079
axes.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, [email protected]
41994+
// Modified from https://github.com/ArthurClemens/Javascript-Undo-Manager
41995+
// Copyright (c) 2010-2013 Arthur Clemens, [email protected]
4199341996
module.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;

Diff for: dist/plotly-basic.min.js

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)