Skip to content

Commit 0584c11

Browse files
committed
Merge branch 'master' into doeg-exp-request-store
2 parents f201aab + 18aeb7f commit 0584c11

File tree

182 files changed

+36194
-198
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

182 files changed

+36194
-198
lines changed

image_server/test/mocks/empty.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"data": [],
3+
"layout": {}
4+
}
7.01 KB
Loading

shelly/plotlyjs/static/plotlyjs/karma.conf.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ func.defaultConfig = {
2525
files: [
2626
shellyStatic + 'plugins/jquery-1.8.3.min.js',
2727
//'../../../streaming/static/streaming/build/streamhead-bundle.js',
28-
shellyStatic + 'plugins/d3.v3.min.js',
2928
'tests/*_test.js'
3029
],
3130

shelly/plotlyjs/static/plotlyjs/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"arraytools": "^1.0.0",
1414
"browserify": "^6.1.0",
1515
"convex-hull": "^1.0.3",
16+
"d3": "3.3.5",
1617
"delaunay-triangulate": "^1.1.6",
1718
"gl-error3d": "^1.0.0",
1819
"gl-line3d": "^1.0.1",

shelly/plotlyjs/static/plotlyjs/src/annotations.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
'use strict';
22

3-
// ---external global dependencies
4-
/* global d3:false */
5-
6-
var annotations = module.exports = {},
7-
Plotly = require('./plotly'),
3+
var Plotly = require('./plotly'),
4+
d3 = require('d3'),
85
isNumeric = require('./isnumeric');
96

7+
var annotations = module.exports = {};
8+
109
// centerx is a center of scaling tuned for maximum scalability of
1110
// the arrowhead ie throughout mag=0.3..3 the head is joined smoothly
1211
// to the line, but the endpoint moves.

shelly/plotlyjs/static/plotlyjs/src/axes.js

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
'use strict';
22

33
// ---external global dependencies
4-
/* global d3:false, Promise:false */
4+
/* Promise:false */
55

6-
var axes = module.exports = {},
7-
Plotly = require('./plotly'),
6+
var Plotly = require('./plotly'),
7+
d3 = require('d3'),
88
isNumeric = require('./isnumeric');
99

10+
var axes = module.exports = {};
11+
1012
Plotly.Plots.registerSubplot('cartesian', ['xaxis', 'yaxis'], ['x', 'y'], {
1113
xaxis: {
1214
valType: 'axisid',
@@ -2354,7 +2356,7 @@ axes.listIds = function(td, axletter) {
23542356

23552357
// get an axis object from its id 'x','x2' etc
23562358
// optionally, id can be a subplot (ie 'x2y3') and type gets x or y from it
2357-
axes.getFromId = function(td,id,type) {
2359+
axes.getFromId = function(td, id, type) {
23582360
var fullLayout = td._fullLayout;
23592361

23602362
if(type==='x') id = id.replace(/y[0-9]*/,'');
@@ -2873,8 +2875,11 @@ axes.doTicks = function(td, axid, skipTitle) {
28732875
}
28742876
else {
28752877
var alldone = axes.getSubplots(td,ax).map(function(subplot) {
2876-
var plotinfo = fullLayout._plots[subplot],
2877-
container = plotinfo[axletter+'axislayer'],
2878+
var plotinfo = fullLayout._plots[subplot];
2879+
2880+
if(!fullLayout._hasCartesian) return;
2881+
2882+
var container = plotinfo[axletter + 'axislayer'],
28782883

28792884
// [bottom or left, top or right, free, main]
28802885
linepositions = ax._linepositions[subplot]||[],

shelly/plotlyjs/static/plotlyjs/src/bars.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
'use strict';
22

3-
// ---external global dependencies
4-
/* global d3:false */
5-
6-
var bars = module.exports = {},
7-
Plotly = require('./plotly'),
3+
var Plotly = require('./plotly'),
4+
d3 = require('d3'),
85
isNumeric = require('./isnumeric');
96

7+
var bars = module.exports = {};
8+
109
Plotly.Plots.register(bars, 'bar',
1110
['cartesian', 'bar', 'oriented', 'markerColorscale', 'errorBarsOK', 'showLegend'], {
1211
description: [

shelly/plotlyjs/static/plotlyjs/src/boxes.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
'use strict';
22

3-
// ---external global dependencies
4-
/* global d3:false */
5-
6-
var boxes = module.exports = {},
7-
Plotly = require('./plotly'),
3+
var Plotly = require('./plotly'),
4+
d3 = require('d3'),
85
isNumeric = require('./isnumeric');
96

7+
var boxes = module.exports = {};
8+
109
Plotly.Plots.register(boxes, 'box',
1110
['cartesian', 'symbols', 'oriented', 'box', 'showLegend'], {
1211
description: [

shelly/plotlyjs/static/plotlyjs/src/color.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
'use strict';
22

3-
var color = module.exports = {},
4-
tinycolor = require('tinycolor2'),
3+
var tinycolor = require('tinycolor2'),
54
isNumeric = require('./isnumeric');
65

6+
var color = module.exports = {};
7+
78
// IMPORTANT - default colors should be in hex for grid.js
89
color.defaults = [
910
'#1f77b4', // muted blue

shelly/plotlyjs/static/plotlyjs/src/colorbar.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
'use strict';
22

3-
// ---external global dependencies
4-
/* global d3:false */
5-
63
var Plotly = require('./plotly'),
4+
d3 = require('d3'),
75
isNumeric = require('./isnumeric');
86

97
var colorbar = module.exports = function(td, id) {

0 commit comments

Comments
 (0)