Skip to content

Commit

Permalink
use https, use || instead of if/else, update baselines
Browse files Browse the repository at this point in the history
  • Loading branch information
TillerBurr committed Jun 28, 2023
1 parent d742bf4 commit 5b0e1d3
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 12 deletions.
14 changes: 7 additions & 7 deletions src/plots/mapbox/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ var stylesNonMapbox = {
minzoom: 0,
maxzoom: 22
}],
glyphs: 'http://fonts.openmaptiles.org/{fontstack}/{range}.pbf'
glyphs: 'https://fonts.openmaptiles.org/{fontstack}/{range}.pbf'
},
'white-bg': {
id: 'white-bg',
Expand All @@ -61,7 +61,7 @@ var stylesNonMapbox = {
minzoom: 0,
maxzoom: 22
}],
glyphs: 'http://fonts.openmaptiles.org/{fontstack}/{range}.pbf'
glyphs: 'https://fonts.openmaptiles.org/{fontstack}/{range}.pbf'
},
'carto-positron': {
id: 'carto-positron',
Expand All @@ -81,7 +81,7 @@ var stylesNonMapbox = {
minzoom: 0,
maxzoom: 22
}],
glyphs: 'http://fonts.openmaptiles.org/{fontstack}/{range}.pbf'
glyphs: 'https://fonts.openmaptiles.org/{fontstack}/{range}.pbf'
},
'carto-darkmatter': {
id: 'carto-darkmatter',
Expand All @@ -101,7 +101,7 @@ var stylesNonMapbox = {
minzoom: 0,
maxzoom: 22
}],
glyphs: 'http://fonts.openmaptiles.org/{fontstack}/{range}.pbf'
glyphs: 'https://fonts.openmaptiles.org/{fontstack}/{range}.pbf'
},
'stamen-terrain': {
id: 'stamen-terrain',
Expand All @@ -121,7 +121,7 @@ var stylesNonMapbox = {
minzoom: 0,
maxzoom: 22
}],
glyphs: 'http://fonts.openmaptiles.org/{fontstack}/{range}.pbf'
glyphs: 'https://fonts.openmaptiles.org/{fontstack}/{range}.pbf'
},
'stamen-toner': {
id: 'stamen-toner',
Expand All @@ -141,7 +141,7 @@ var stylesNonMapbox = {
minzoom: 0,
maxzoom: 22
}],
glyphs: 'http://fonts.openmaptiles.org/{fontstack}/{range}.pbf'
glyphs: 'https://fonts.openmaptiles.org/{fontstack}/{range}.pbf'
},
'stamen-watercolor': {
id: 'stamen-watercolor',
Expand All @@ -161,7 +161,7 @@ var stylesNonMapbox = {
minzoom: 0,
maxzoom: 22
}],
glyphs: 'http://fonts.openmaptiles.org/{fontstack}/{range}.pbf'
glyphs: 'https://fonts.openmaptiles.org/{fontstack}/{range}.pbf'
}
};

Expand Down
8 changes: 3 additions & 5 deletions src/traces/scatter/text_defaults.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,10 @@ var Lib = require('../../lib');
*/
module.exports = function(traceIn, traceOut, layout, coerce, opts) {
opts = opts || {};

coerce('textposition');
if(opts.font) {
Lib.coerceFont(coerce, 'textfont', opts.font);
} else {
Lib.coerceFont(coerce, 'textfont', layout.font);
}
Lib.coerceFont(coerce, 'textfont', opts.font || layout.font);

if(!opts.noSelect) {
coerce('selected.textfont.color');
coerce('unselected.textfont.color');
Expand Down
Binary file modified test/image/baselines/pattern_bars.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test/image/baselines/pie_textpad_radial.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test/image/baselines/sunburst_inside-text-orientation.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test/image/baselines/sunburst_packages_colorscale_novalue.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test/image/baselines/sunburst_textpad_radial.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test/image/baselines/treemap_sunburst_marker_colors.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test/image/baselines/uniformtext_sunburst_treemap.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 5b0e1d3

Please sign in to comment.