Skip to content

Commit b0b8ab1

Browse files
committed
Merge branch 'master' into add-text-to-shapes
2 parents 095561f + 1d21d64 commit b0b8ab1

File tree

108 files changed

+1868
-1277
lines changed

Some content is hidden

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

108 files changed

+1868
-1277
lines changed

.eslintrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
"no-floating-decimal": [2],
5656
"space-infix-ops": [2, {"int32Hint": true}],
5757
"quotes": [2, "single"],
58+
"quote-props": ["error", "as-needed"],
5859
"dot-notation": [2],
5960
"dot-location": [2, "property"],
6061
"operator-linebreak": [2, "after"],

devtools/regl_codegen/server.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,9 +207,17 @@ function handleCodegen(data) {
207207
var pathToReglCodegenSrc = constants.pathToReglCodegenSrc;
208208
var pathToReglPrecompiledSrc = path.join(constants.pathToSrc, 'traces', trace, 'regl_precompiled.js');
209209

210-
var header = '\'use strict\';\n';
210+
var header = [
211+
'\'use strict\';',
212+
'',
213+
].join('\n');
211214
var imports = '';
212-
var exports = '\nmodule.exports = {\n';
215+
var exports = [
216+
'',
217+
'/* eslint-disable quote-props */',
218+
'module.exports = {',
219+
'',
220+
].join('\n');
213221
var varId = 0;
214222

215223
Object.entries(generated).forEach(function(kv) {

devtools/test_dashboard/server.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ var minimist = require('minimist');
99
var constants = require('../../tasks/util/constants');
1010
var config = require('../../webpack.config.js');
1111
config.optimization = { minimize: false };
12-
config.mode = 'development';
13-
config.devtool = 'eval';
1412

1513
var args = minimist(process.argv.slice(2), {});
1614
var PORT = args.port || 3000;
@@ -20,6 +18,12 @@ var mathjax3chtml = args.mathjax3chtml;
2018

2119
if(strict) config.entry = './lib/index-strict.js';
2220

21+
if(!strict) {
22+
config.mode = 'development';
23+
config.devtool = 'eval';
24+
}
25+
26+
2327
// mock list
2428
getMockFiles()
2529
.then(readFiles)

draftlogs/6442_fix.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- Avoid overlap of point and axis hover labels for `hovermode: 'x'|'y'` [[#6442](https://github.com/plotly/plotly.js/pull/6442)]

draftlogs/6481_add.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- Add `labelalias` to various axes namely cartesian, gl3d, polar, smith, ternary, carpet, indicator and colorbar [[#6481](https://github.com/plotly/plotly.js/pull/6481)]

lib/locales/.eslintrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"extends": "../.eslintrc",
3+
"rules": {
4+
"quote-props": ["error", "consistent"]
5+
}
6+
}

src/components/annotations/draw_arrow_head.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ module.exports = function drawArrowHead(el3, ends, options) {
127127

128128
d3.select(el.parentNode).append('path')
129129
.attr({
130-
'class': el3.attr('class'),
130+
class: el3.attr('class'),
131131
d: arrowHeadStyle.path,
132132
transform:
133133
strTranslate(p.x, p.y) +

src/components/calendars/index.js

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -97,23 +97,23 @@ var DFLTRANGE = {
9797
*/
9898
var UNKNOWN = '##';
9999
var d3ToWorldCalendars = {
100-
'd': {'0': 'dd', '-': 'd'}, // 2-digit or unpadded day of month
101-
'e': {'0': 'd', '-': 'd'}, // alternate, always unpadded day of month
102-
'a': {'0': 'D', '-': 'D'}, // short weekday name
103-
'A': {'0': 'DD', '-': 'DD'}, // full weekday name
104-
'j': {'0': 'oo', '-': 'o'}, // 3-digit or unpadded day of the year
105-
'W': {'0': 'ww', '-': 'w'}, // 2-digit or unpadded week of the year (Monday first)
106-
'm': {'0': 'mm', '-': 'm'}, // 2-digit or unpadded month number
107-
'b': {'0': 'M', '-': 'M'}, // short month name
108-
'B': {'0': 'MM', '-': 'MM'}, // full month name
109-
'y': {'0': 'yy', '-': 'yy'}, // 2-digit year (map unpadded to zero-padded)
110-
'Y': {'0': 'yyyy', '-': 'yyyy'}, // 4-digit year (map unpadded to zero-padded)
111-
'U': UNKNOWN, // Sunday-first week of the year
112-
'w': UNKNOWN, // day of the week [0(sunday),6]
100+
d: {0: 'dd', '-': 'd'}, // 2-digit or unpadded day of month
101+
e: {0: 'd', '-': 'd'}, // alternate, always unpadded day of month
102+
a: {0: 'D', '-': 'D'}, // short weekday name
103+
A: {0: 'DD', '-': 'DD'}, // full weekday name
104+
j: {0: 'oo', '-': 'o'}, // 3-digit or unpadded day of the year
105+
W: {0: 'ww', '-': 'w'}, // 2-digit or unpadded week of the year (Monday first)
106+
m: {0: 'mm', '-': 'm'}, // 2-digit or unpadded month number
107+
b: {0: 'M', '-': 'M'}, // short month name
108+
B: {0: 'MM', '-': 'MM'}, // full month name
109+
y: {0: 'yy', '-': 'yy'}, // 2-digit year (map unpadded to zero-padded)
110+
Y: {0: 'yyyy', '-': 'yyyy'}, // 4-digit year (map unpadded to zero-padded)
111+
U: UNKNOWN, // Sunday-first week of the year
112+
w: UNKNOWN, // day of the week [0(sunday),6]
113113
// combined format, we replace the date part with the world-calendar version
114114
// and the %X stays there for d3 to handle with time parts
115-
'c': {'0': 'D M d %X yyyy', '-': 'D M d %X yyyy'},
116-
'x': {'0': 'mm/dd/yyyy', '-': 'mm/dd/yyyy'}
115+
c: {0: 'D M d %X yyyy', '-': 'D M d %X yyyy'},
116+
x: {0: 'mm/dd/yyyy', '-': 'mm/dd/yyyy'}
117117
};
118118

119119
function worldCalFmt(fmt, x, calendar) {

src/components/color/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,13 @@ color.contrast = function(cstr, lightAmount, darkAmount) {
7575

7676
color.stroke = function(s, c) {
7777
var tc = tinycolor(c);
78-
s.style({'stroke': color.tinyRGB(tc), 'stroke-opacity': tc.getAlpha()});
78+
s.style({stroke: color.tinyRGB(tc), 'stroke-opacity': tc.getAlpha()});
7979
};
8080

8181
color.fill = function(s, c) {
8282
var tc = tinycolor(c);
8383
s.style({
84-
'fill': color.tinyRGB(tc),
84+
fill: color.tinyRGB(tc),
8585
'fill-opacity': tc.getAlpha()
8686
});
8787
};

src/components/colorbar/attributes.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ module.exports = overrideAll({
168168
tickcolor: axesAttrs.tickcolor,
169169
ticklabelstep: axesAttrs.ticklabelstep,
170170
showticklabels: axesAttrs.showticklabels,
171+
labelalias: axesAttrs.labelalias,
171172
tickfont: fontAttrs({
172173
description: 'Sets the color bar\'s tick label font'
173174
}),

0 commit comments

Comments
 (0)