Skip to content

Commit 233e043

Browse files
committed
1.23.1
1 parent 0a049a1 commit 233e043

23 files changed

+612
-440
lines changed

dist/README.md

+24-24
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-latest.min.js OR https://cdn.plot.ly/plotly-1.23.0.min.js
40+
- using CDN URL https://cdn.plot.ly/plotly-latest.min.js OR https://cdn.plot.ly/plotly-1.23.1.min.js
4141

4242
or as raw javascript:
4343
- using dist file `dist/plotly.js`
44-
- using CDN URL https://cdn.plot.ly/plotly-latest.js OR https://cdn.plot.ly/plotly-1.23.0.js
44+
- using CDN URL https://cdn.plot.ly/plotly-latest.js OR https://cdn.plot.ly/plotly-1.23.1.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-
| 4.5 MB | 1.8 MB | 560.4 kB | 4.7 MB |
53+
| 4.5 MB | 1.8 MB | 560.5 kB | 4.7 MB |
5454

5555
## Partial bundles
5656

@@ -74,13 +74,13 @@ The `basic` partial bundle contains the `scatter`, `bar` and `pie` trace modules
7474
| dist bundle (minified) | `dist/plotly-basic.min.js` |
7575
| CDN URL (latest) | https://cdn.plot.ly/plotly-basic-latest.js |
7676
| CDN URL (latest minified) | https://cdn.plot.ly/plotly-basic-latest.min.js |
77-
| CDN URL (tagged) | https://cdn.plot.ly/plotly-basic-1.23.0.js |
78-
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-basic-1.23.0.min.js |
77+
| CDN URL (tagged) | https://cdn.plot.ly/plotly-basic-1.23.1.js |
78+
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-basic-1.23.1.min.js |
7979
| CommonJS | `require('plotly.js/lib/index-basic')` |
8080

8181
| Raw size | Minified size | Minified + gzip size |
8282
|------|-----------------|------------------------|
83-
| 1.6 MB | 626.3 kB | 203.4 kB |
83+
| 1.6 MB | 626.7 kB | 203.5 kB |
8484

8585
### plotly.js cartesian
8686

@@ -92,13 +92,13 @@ The `cartesian` partial bundle contains the `scatter`, `bar`, `box`, `heatmap`,
9292
| dist bundle (minified) | `dist/plotly-cartesian.min.js` |
9393
| CDN URL (latest) | https://cdn.plot.ly/plotly-cartesian-latest.js |
9494
| CDN URL (latest minified) | https://cdn.plot.ly/plotly-cartesian-latest.min.js |
95-
| CDN URL (tagged) | https://cdn.plot.ly/plotly-cartesian-1.23.0.js |
96-
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-cartesian-1.23.0.min.js |
95+
| CDN URL (tagged) | https://cdn.plot.ly/plotly-cartesian-1.23.1.js |
96+
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-cartesian-1.23.1.min.js |
9797
| CommonJS | `require('plotly.js/lib/index-cartesian')` |
9898

9999
| Raw size | Minified size | Minified + gzip size |
100100
|------|-----------------|------------------------|
101-
| 1.8 MB | 700.4 kB | 225.8 kB |
101+
| 1.8 MB | 700.8 kB | 225.9 kB |
102102

103103
### plotly.js geo
104104

@@ -110,13 +110,13 @@ The `geo` partial bundle contains the `scatter`, `scattergeo` and `choropleth` t
110110
| dist bundle (minified) | `dist/plotly-geo.min.js` |
111111
| CDN URL (latest) | https://cdn.plot.ly/plotly-geo-latest.js |
112112
| CDN URL (latest minified) | https://cdn.plot.ly/plotly-geo-latest.min.js |
113-
| CDN URL (tagged) | https://cdn.plot.ly/plotly-geo-1.23.0.js |
114-
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-geo-1.23.0.min.js |
113+
| CDN URL (tagged) | https://cdn.plot.ly/plotly-geo-1.23.1.js |
114+
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-geo-1.23.1.min.js |
115115
| CommonJS | `require('plotly.js/lib/index-geo')` |
116116

117117
| Raw size | Minified size | Minified + gzip size |
118118
|------|-----------------|------------------------|
119-
| 1.7 MB | 650.5 kB | 212.4 kB |
119+
| 1.7 MB | 650.9 kB | 212.5 kB |
120120

121121
### plotly.js gl3d
122122

@@ -128,13 +128,13 @@ The `gl3d` partial bundle contains the `scatter`, `scatter3d`, `surface` and `me
128128
| dist bundle (minified) | `dist/plotly-gl3d.min.js` |
129129
| CDN URL (latest) | https://cdn.plot.ly/plotly-gl3d-latest.js |
130130
| CDN URL (latest minified) | https://cdn.plot.ly/plotly-gl3d-latest.min.js |
131-
| CDN URL (tagged) | https://cdn.plot.ly/plotly-gl3d-1.23.0.js |
132-
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-gl3d-1.23.0.min.js |
131+
| CDN URL (tagged) | https://cdn.plot.ly/plotly-gl3d-1.23.1.js |
132+
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-gl3d-1.23.1.min.js |
133133
| CommonJS | `require('plotly.js/lib/index-gl3d')` |
134134

135135
| Raw size | Minified size | Minified + gzip size |
136136
|------|-----------------|------------------------|
137-
| 2.5 MB | 1 MB | 333.5 kB |
137+
| 2.5 MB | 1 MB | 333.6 kB |
138138

139139
### plotly.js gl2d
140140

@@ -146,13 +146,13 @@ The `gl2d` partial bundle contains the `scatter`, `scattergl`, `pointcloud`, `he
146146
| dist bundle (minified) | `dist/plotly-gl2d.min.js` |
147147
| CDN URL (latest) | https://cdn.plot.ly/plotly-gl2d-latest.js |
148148
| CDN URL (latest minified) | https://cdn.plot.ly/plotly-gl2d-latest.min.js |
149-
| CDN URL (tagged) | https://cdn.plot.ly/plotly-gl2d-1.23.0.js |
150-
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-gl2d-1.23.0.min.js |
149+
| CDN URL (tagged) | https://cdn.plot.ly/plotly-gl2d-1.23.1.js |
150+
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-gl2d-1.23.1.min.js |
151151
| CommonJS | `require('plotly.js/lib/index-gl2d')` |
152152

153153
| Raw size | Minified size | Minified + gzip size |
154154
|------|-----------------|------------------------|
155-
| 2.3 MB | 948.9 kB | 297.1 kB |
155+
| 2.3 MB | 949.2 kB | 297.2 kB |
156156

157157
### plotly.js mapbox
158158

@@ -164,13 +164,13 @@ The `mapbox` partial bundle contains the `scatter` and `scattermapbox` trace mod
164164
| dist bundle (minified) | `dist/plotly-mapbox.min.js` |
165165
| CDN URL (latest) | https://cdn.plot.ly/plotly-mapbox-latest.js |
166166
| CDN URL (latest minified) | https://cdn.plot.ly/plotly-mapbox-latest.min.js |
167-
| CDN URL (tagged) | https://cdn.plot.ly/plotly-mapbox-1.23.0.js |
168-
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-mapbox-1.23.0.min.js |
167+
| CDN URL (tagged) | https://cdn.plot.ly/plotly-mapbox-1.23.1.js |
168+
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-mapbox-1.23.1.min.js |
169169
| CommonJS | `require('plotly.js/lib/index-mapbox')` |
170170

171171
| Raw size | Minified size | Minified + gzip size |
172172
|------|-----------------|------------------------|
173-
| 2.7 MB | 1 MB | 316.4 kB |
173+
| 2.7 MB | 1 MB | 316.5 kB |
174174

175175
### plotly.js finance
176176

@@ -182,13 +182,13 @@ The `finance` partial bundle contains the `scatter`, `bar`, `histogram`, `pie`,
182182
| dist bundle (minified) | `dist/plotly-finance.min.js` |
183183
| CDN URL (latest) | https://cdn.plot.ly/plotly-finance-latest.js |
184184
| CDN URL (latest minified) | https://cdn.plot.ly/plotly-finance-latest.min.js |
185-
| CDN URL (tagged) | https://cdn.plot.ly/plotly-finance-1.23.0.js |
186-
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-finance-1.23.0.min.js |
185+
| CDN URL (tagged) | https://cdn.plot.ly/plotly-finance-1.23.1.js |
186+
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-finance-1.23.1.min.js |
187187
| CommonJS | `require('plotly.js/lib/index-finance')` |
188188

189189
| Raw size | Minified size | Minified + gzip size |
190190
|------|-----------------|------------------------|
191-
| 1.7 MB | 653.2 kB | 211 kB |
191+
| 1.7 MB | 653.6 kB | 211.1 kB |
192192

193193
----------------
194194

dist/npm-ls.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "plotly.js",
3-
"version": "1.23.0",
3+
"version": "1.23.1",
44
"dependencies": {
55
"3d-view": {
66
"version": "2.0.0",
@@ -1418,7 +1418,7 @@
14181418
},
14191419
"through2": {
14201420
"version": "0.6.5",
1421-
"from": "through2@^0.6.3",
1421+
"from": "through2@>=0.6.3 <0.7.0",
14221422
"resolved": "https://registry.npmjs.org/through2/-/through2-0.6.5.tgz"
14231423
}
14241424
}

dist/plotly-basic.js

+42-16
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* plotly.js (basic) v1.23.0
2+
* plotly.js (basic) v1.23.1
33
* Copyright 2012-2017, Plotly, Inc.
44
* All rights reserved.
55
* Licensed under the MIT license
@@ -20233,20 +20233,23 @@ function handleCamera3d(gd, ev) {
2023320233
var button = ev.currentTarget,
2023420234
attr = button.getAttribute('data-attr'),
2023520235
fullLayout = gd._fullLayout,
20236-
sceneIds = Plots.getSubplotIds(fullLayout, 'gl3d');
20236+
sceneIds = Plots.getSubplotIds(fullLayout, 'gl3d'),
20237+
aobj = {};
2023720238

2023820239
for(var i = 0; i < sceneIds.length; i++) {
2023920240
var sceneId = sceneIds[i],
20240-
fullSceneLayout = fullLayout[sceneId],
20241-
scene = fullSceneLayout._scene;
20241+
key = sceneId + '.camera',
20242+
scene = fullLayout[sceneId]._scene;
2024220243

20243-
if(attr === 'resetDefault') scene.setCameraToDefault();
20244+
if(attr === 'resetDefault') {
20245+
aobj[key] = null;
20246+
}
2024420247
else if(attr === 'resetLastSave') {
20245-
// This handler looks in the un-updated fullLayout.scene.camera object to reset the camera
20246-
// to the last saved position.
20247-
scene.setCamera(fullSceneLayout.camera);
20248+
aobj[key] = Lib.extendDeep({}, scene.cameraInitial);
2024820249
}
2024920250
}
20251+
20252+
Plotly.relayout(gd, aobj);
2025020253
}
2025120254

2025220255
modeBarButtons.hoverClosest3d = {
@@ -26272,7 +26275,7 @@ exports.svgAttrs = {
2627226275
var Plotly = require('./plotly');
2627326276

2627426277
// package version injected by `npm run preprocess`
26275-
exports.version = '1.23.0';
26278+
exports.version = '1.23.1';
2627626279

2627726280
// inject promise polyfill
2627826281
require('es6-promise').polyfill();
@@ -32436,6 +32439,7 @@ Plotly.relayout = function relayout(gd, astr, val) {
3243632439
if(flags.dolayoutstyle) seq.push(subroutines.layoutStyles);
3243732440
if(flags.doticks) seq.push(subroutines.doTicksRelayout);
3243832441
if(flags.domodebar) seq.push(subroutines.doModeBar);
32442+
if(flags.docamera) seq.push(subroutines.doCamera);
3243932443
}
3244032444

3244132445
Queue.add(gd,
@@ -32483,6 +32487,7 @@ function _relayout(gd, aobj) {
3248332487
doplot: false,
3248432488
docalc: false,
3248532489
domodebar: false,
32490+
docamera: false,
3248632491
layoutReplot: false
3248732492
};
3248832493

@@ -32679,7 +32684,10 @@ function _relayout(gd, aobj) {
3267932684
var pp1 = String(p.parts[1] || '');
3268032685
// check whether we can short-circuit a full redraw
3268132686
// 3d or geo at this point just needs to redraw.
32682-
if(p.parts[0].indexOf('scene') === 0) flags.doplot = true;
32687+
if(p.parts[0].indexOf('scene') === 0) {
32688+
if(p.parts[1] === 'camera') flags.docamera = true;
32689+
else flags.doplot = true;
32690+
}
3268332691
else if(p.parts[0].indexOf('geo') === 0) flags.doplot = true;
3268432692
else if(p.parts[0].indexOf('ternary') === 0) flags.doplot = true;
3268532693
else if(ai === 'paper_bgcolor') flags.doplot = true;
@@ -32831,6 +32839,7 @@ Plotly.update = function update(gd, traceUpdate, layoutUpdate, traces) {
3283132839
if(relayoutFlags.dolayoutstyle) seq.push(subroutines.layoutStyles);
3283232840
if(relayoutFlags.doticks) seq.push(subroutines.doTicksRelayout);
3283332841
if(relayoutFlags.domodebar) seq.push(subroutines.doModeBar);
32842+
if(relayoutFlags.doCamera) seq.push(subroutines.doCamera);
3283432843
}
3283532844

3283632845
Queue.add(gd,
@@ -34501,6 +34510,18 @@ exports.doModeBar = function(gd) {
3450134510
return Plots.previousPromises(gd);
3450234511
};
3450334512

34513+
exports.doCamera = function(gd) {
34514+
var fullLayout = gd._fullLayout,
34515+
sceneIds = Plots.getSubplotIds(fullLayout, 'gl3d');
34516+
34517+
for(var i = 0; i < sceneIds.length; i++) {
34518+
var sceneLayout = fullLayout[sceneIds[i]],
34519+
scene = sceneLayout._scene;
34520+
34521+
scene.setCamera(sceneLayout.camera);
34522+
}
34523+
};
34524+
3450434525
},{"../components/color":24,"../components/drawing":47,"../components/modebar":70,"../components/titles":98,"../lib":118,"../plotly":142,"../plots/plots":171,"../registry":178}],140:[function(require,module,exports){
3450534526
/**
3450634527
* Copyright 2012-2017, Plotly, Inc.
@@ -37782,10 +37803,13 @@ function getBoxPosLetter(trace) {
3778237803
}
3778337804

3778437805
function isBoxWithoutPositionCoords(trace, axLetter) {
37785-
var posLetter = getBoxPosLetter(trace);
37806+
var posLetter = getBoxPosLetter(trace),
37807+
isBox = Registry.traceIs(trace, 'box'),
37808+
isCandlestick = Registry.traceIs(trace._fullInput || {}, 'candlestick');
3778637809

3778737810
return (
37788-
Registry.traceIs(trace, 'box') &&
37811+
isBox &&
37812+
!isCandlestick &&
3778937813
axLetter === posLetter &&
3779037814
trace[posLetter] === undefined &&
3779137815
trace[posLetter + '0'] === undefined
@@ -38752,7 +38776,7 @@ module.exports = function dragBox(gd, plotinfo, x, y, w, h, ns, ew) {
3875238776
// This is specifically directed at scatter traces, applying an inverse
3875338777
// scale to individual points to counteract the scale of the trace
3875438778
// as a whole:
38755-
.selectAll('.points').selectAll('.point')
38779+
.select('.scatterlayer').selectAll('.points').selectAll('.point')
3875638780
.call(Drawing.setPointGroupScale, 1 / xScaleFactor, 1 / yScaleFactor);
3875738781
}
3875838782
}
@@ -48350,8 +48374,9 @@ module.exports = function plot(gd, plotinfo, cdbar) {
4835048374

4835148375
var bartraces = plotinfo.plot.select('.barlayer')
4835248376
.selectAll('g.trace.bars')
48353-
.data(cdbar)
48354-
.enter().append('g')
48377+
.data(cdbar);
48378+
48379+
bartraces.enter().append('g')
4835548380
.attr('class', 'trace bars');
4835648381

4835748382
bartraces.append('g')
@@ -48871,7 +48896,8 @@ module.exports = function setPositions(gd, plotinfo) {
4887148896
fullTrace.visible === true &&
4887248897
Registry.traceIs(fullTrace, 'bar') &&
4887348898
fullTrace.xaxis === xa._id &&
48874-
fullTrace.yaxis === ya._id
48899+
fullTrace.yaxis === ya._id &&
48900+
!calcTraces[i][0].placeholder
4887548901
) {
4887648902
if(fullTrace.orientation === 'h') {
4887748903
calcTracesHorizontal.push(calcTraces[i]);

dist/plotly-basic.min.js

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

0 commit comments

Comments
 (0)