Skip to content

Commit 60dd634

Browse files
committed
Merge remote-tracking branch 'origin/master' into lib-commands
2 parents f50fcaa + d90d4e1 commit 60dd634

File tree

106 files changed

+6080
-2143
lines changed

Some content is hidden

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

106 files changed

+6080
-2143
lines changed

lib/groupby.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/**
2+
* Copyright 2012-2016, Plotly, Inc.
3+
* All rights reserved.
4+
*
5+
* This source code is licensed under the MIT license found in the
6+
* LICENSE file in the root directory of this source tree.
7+
*/
8+
9+
'use strict';
10+
11+
module.exports = require('../src/transforms/groupby');

lib/index.js

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
var Plotly = require('./core');
1212

13+
// traces
1314
Plotly.register([
1415
require('./bar'),
1516
require('./box'),
@@ -30,9 +31,19 @@ Plotly.register([
3031
require('./scattermapbox')
3132
]);
3233

33-
// add transforms
34+
// transforms
35+
//
36+
// Please note that all *transform* methods are executed before
37+
// all *calcTransform* methods - which could possibly lead to
38+
// unexpected results when applying multiple transforms of different types
39+
// to a given trace.
40+
//
41+
// For more info, see:
42+
// https://github.com/plotly/plotly.js/pull/978#pullrequestreview-2403353
43+
//
3444
Plotly.register([
35-
require('./filter')
45+
require('./filter'),
46+
require('./groupby')
3647
]);
3748

3849
module.exports = Plotly;

src/components/dragelement/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,8 @@ function coverSlip() {
177177
return cover;
178178
}
179179

180+
dragElement.coverSlip = coverSlip;
181+
180182
function finishDrag(gd) {
181183
gd._dragging = false;
182184
if(gd._replotPending) Plotly.plot(gd);

src/components/drawing/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,7 @@ drawing.textPointStyle = function(s, trace) {
343343
s.each(function(d) {
344344
var p = d3.select(this),
345345
text = d.tx || trace.text;
346+
346347
if(!text || Array.isArray(text)) {
347348
// isArray test handles the case of (intentionally) missing
348349
// or empty text within a text array

src/components/errorbars/plot.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ var subTypes = require('../../traces/scatter/subtypes');
1616

1717
module.exports = function plot(traces, plotinfo, transitionOpts) {
1818
var isNew;
19-
var xa = plotinfo.x(),
20-
ya = plotinfo.y();
19+
20+
var xa = plotinfo.xaxis,
21+
ya = plotinfo.yaxis;
2122

2223
var hasAnimation = transitionOpts && transitionOpts.duration > 0;
2324

src/components/modebar/buttons.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ function handleGeo(gd, ev) {
420420
geoIds = Plots.getSubplotIds(fullLayout, 'geo');
421421

422422
for(var i = 0; i < geoIds.length; i++) {
423-
var geo = fullLayout[geoIds[i]]._geo;
423+
var geo = fullLayout[geoIds[i]]._subplot;
424424

425425
if(attr === 'zoom') {
426426
var scale = geo.projection.scale();
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
/**
2+
* Copyright 2012-2016, Plotly, Inc.
3+
* All rights reserved.
4+
*
5+
* This source code is licensed under the MIT license found in the
6+
* LICENSE file in the root directory of this source tree.
7+
*/
8+
9+
'use strict';
10+
11+
module.exports = {
12+
13+
// attribute container name
14+
name: 'rangeslider',
15+
16+
// class names
17+
18+
containerClassName: 'rangeslider-container',
19+
bgClassName: 'rangeslider-bg',
20+
rangePlotClassName: 'rangeslider-rangeplot',
21+
22+
maskMinClassName: 'rangeslider-mask-min',
23+
maskMaxClassName: 'rangeslider-mask-max',
24+
slideBoxClassName: 'rangeslider-slidebox',
25+
26+
grabberMinClassName: 'rangeslider-grabber-min',
27+
grabAreaMinClassName: 'rangeslider-grabarea-min',
28+
handleMinClassName: 'rangeslider-handle-min',
29+
30+
grabberMaxClassName: 'rangeslider-grabber-max',
31+
grabAreaMaxClassName: 'rangeslider-grabarea-max',
32+
handleMaxClassName: 'rangeslider-handle-max',
33+
34+
// style constants
35+
36+
maskColor: 'rgba(0,0,0,0.4)',
37+
38+
slideBoxFill: 'transparent',
39+
slideBoxCursor: 'ew-resize',
40+
41+
grabAreaFill: 'transparent',
42+
grabAreaCursor: 'col-resize',
43+
grabAreaWidth: 10,
44+
grabAreaMinOffset: -6,
45+
grabAreaMaxOffset: -2,
46+
47+
handleWidth: 2,
48+
handleRadius: 1,
49+
handleFill: '#fff',
50+
handleStroke: '#666',
51+
};

0 commit comments

Comments
 (0)