Skip to content

Commit 4710fba

Browse files
committed
find and replace mapbox with mapnew
1 parent ee406f7 commit 4710fba

File tree

98 files changed

+952
-952
lines changed

Some content is hidden

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

98 files changed

+952
-952
lines changed

.circleci/test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ case $1 in
9595
make-baselines-virtual-webgl)
9696
SUITE=$({\
9797
find $ROOT/test/image/mocks/gl* -type f -printf "%f\n"; \
98-
find $ROOT/test/image/mocks/mapbox* -type f -printf "%f\n"; \
98+
find $ROOT/test/image/mocks/mapnew* -type f -printf "%f\n"; \
9999
} | sed 's/\.json$//1' | circleci tests split)
100100
python3 test/image/make_baseline.py virtual-webgl $SUITE || EXIT_STATE=$?
101101
exit $EXIT_STATE

lib/choroplethmapbox.js

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

3-
module.exports = require('../src/traces/choroplethmapbox');
3+
module.exports = require('../src/traces/choroplethmapnew');

lib/densitymapbox.js

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

3-
module.exports = require('../src/traces/densitymapbox');
3+
module.exports = require('../src/traces/densitymapnew');

lib/index-mapbox.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ var Plotly = require('./core');
44

55
Plotly.register([
66
// traces
7-
require('./scattermapbox'),
8-
require('./choroplethmapbox'),
9-
require('./densitymapbox'),
7+
require('./scattermapnew'),
8+
require('./choroplethmapnew'),
9+
require('./densitymapnew'),
1010

1111
// transforms
1212
require('./aggregate'),

lib/index-strict.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ Plotly.register([
3636
require('./heatmapgl'),
3737
require('../src/traces/parcoords/strict'),
3838
require('./parcats'),
39-
require('./scattermapbox'),
40-
require('./choroplethmapbox'),
41-
require('./densitymapbox'),
39+
require('./scattermapnew'),
40+
require('./choroplethmapnew'),
41+
require('./densitymapnew'),
4242
require('./sankey'),
4343
require('./indicator'),
4444
require('./table'),

lib/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ Plotly.register([
3636
require('./heatmapgl'),
3737
require('./parcoords'),
3838
require('./parcats'),
39-
require('./scattermapbox'),
40-
require('./choroplethmapbox'),
41-
require('./densitymapbox'),
39+
require('./scattermapnew'),
40+
require('./choroplethmapnew'),
41+
require('./densitymapnew'),
4242
require('./sankey'),
4343
require('./indicator'),
4444
require('./table'),

lib/locales/si.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/scattermapbox.js

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

3-
module.exports = require('../src/traces/scattermapbox');
3+
module.exports = require('../src/traces/scattermapnew');

src/components/fx/hover.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1561,7 +1561,7 @@ function getHoverLabelText(d, showCommonLabel, hovermode, fullLayout, t0, g) {
15611561
if(d.zLabel !== undefined) {
15621562
if(d.xLabel !== undefined) text += 'x: ' + d.xLabel + '<br>';
15631563
if(d.yLabel !== undefined) text += 'y: ' + d.yLabel + '<br>';
1564-
if(d.trace.type !== 'choropleth' && d.trace.type !== 'choroplethmapbox') {
1564+
if(d.trace.type !== 'choropleth' && d.trace.type !== 'choroplethmapnew') {
15651565
text += (text ? 'z: ' : '') + d.zLabel;
15661566
}
15671567
} else if(showCommonLabel && d[h0 + 'Label'] === t0) {

src/components/fx/layout_defaults.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,16 @@ module.exports = function supplyLayoutDefaults(layoutIn, layoutOut) {
1919
var dragMode = coerce('dragmode');
2020
if(dragMode === 'select') coerce('selectdirection');
2121

22-
// if only mapbox or geo subplots is present on graph,
22+
// if only mapnew or geo subplots is present on graph,
2323
// reset 'zoom' dragmode to 'pan' until 'zoom' is implemented,
2424
// so that the correct modebar button is active
25-
var hasMapbox = layoutOut._has('mapbox');
25+
var hasMapnew = layoutOut._has('mapnew');
2626
var hasGeo = layoutOut._has('geo');
2727
var len = layoutOut._basePlotModules.length;
2828

2929
if(layoutOut.dragmode === 'zoom' && (
30-
((hasMapbox || hasGeo) && len === 1) ||
31-
(hasMapbox && hasGeo && len === 2)
30+
((hasMapnew || hasGeo) && len === 1) ||
31+
(hasMapnew && hasGeo && len === 2)
3232
)) {
3333
layoutOut.dragmode = 'pan';
3434
}

0 commit comments

Comments
 (0)