Skip to content

Commit

Permalink
revert 74d3b14 and resolve conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
archmoj committed Jan 14, 2021
1 parent 26440a9 commit 7d2559e
Show file tree
Hide file tree
Showing 188 changed files with 274 additions and 227 deletions.
2 changes: 1 addition & 1 deletion devtools/image_viewer/viewer.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
var fs = require('fs');
var path = require('path');

var d3 = require('../../src/lib/d3');
var d3 = require('@plotly/d3');

var $plotlist = document.getElementById('plot-list');
var $toggles = document.getElementById('plot-toggles');
Expand Down
2 changes: 1 addition & 1 deletion devtools/test_dashboard/devtools.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ var Fuse = require('fuse.js/dist/fuse.common.js');
var mocks = require('../../build/test_dashboard_mocks.json');
var credentials = require('../../build/credentials.json');
var Lib = require('@src/lib');
var d3 = Lib.d3;
var d3 = Plotly.d3;

require('./perf');

Expand Down
3 changes: 2 additions & 1 deletion src/components/annotations/draw.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@

'use strict';

var d3 = require('@plotly/d3');

var Registry = require('../../registry');
var Plots = require('../../plots/plots');
var Lib = require('../../lib');
var d3 = Lib.d3;
var strTranslate = Lib.strTranslate;
var Axes = require('../../plots/cartesian/axes');
var Color = require('../color');
Expand Down
3 changes: 2 additions & 1 deletion src/components/annotations/draw_arrow_head.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@

'use strict';

var d3 = require('@plotly/d3');

var Color = require('../color');

var ARROWPATHS = require('./arrow_paths');

var Lib = require('../../lib');
var d3 = Lib.d3;
var strScale = Lib.strScale;
var strRotate = Lib.strRotate;
var strTranslate = Lib.strTranslate;
Expand Down
2 changes: 1 addition & 1 deletion src/components/colorbar/draw.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@

'use strict';

var d3 = require('@plotly/d3');
var tinycolor = require('tinycolor2');

var Plots = require('../../plots/plots');
var Registry = require('../../registry');
var Axes = require('../../plots/cartesian/axes');
var dragElement = require('../dragelement');
var Lib = require('../../lib');
var d3 = Lib.d3;
var strTranslate = Lib.strTranslate;
var extendFlat = require('../../lib/extend').extendFlat;
var setCursor = require('../../lib/setcursor');
Expand Down
2 changes: 1 addition & 1 deletion src/components/colorscale/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@

'use strict';

var d3 = require('@plotly/d3');
var tinycolor = require('tinycolor2');
var isNumeric = require('fast-isnumeric');

var Lib = require('../../lib');
var d3 = Lib.d3;
var Color = require('../color');

var isValidScale = require('./scales').isValid;
Expand Down
2 changes: 1 addition & 1 deletion src/components/drawing/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@

'use strict';

var d3 = require('@plotly/d3');
var isNumeric = require('fast-isnumeric');
var tinycolor = require('tinycolor2');

var Registry = require('../../registry');
var Color = require('../color');
var Colorscale = require('../colorscale');
var Lib = require('../../lib');
var d3 = Lib.d3;
var strTranslate = Lib.strTranslate;
var svgTextUtils = require('../../lib/svg_text_utils');

Expand Down
2 changes: 1 addition & 1 deletion src/components/drawing/symbol_defs.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

'use strict';

var d3 = require('../../lib/d3');
var d3 = require('@plotly/d3');

/** Marker symbol definitions
* users can specify markers either by number or name
Expand Down
2 changes: 1 addition & 1 deletion src/components/errorbars/plot.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

'use strict';

var d3 = require('../../lib/d3');
var d3 = require('@plotly/d3');
var isNumeric = require('fast-isnumeric');

var Drawing = require('../drawing');
Expand Down
2 changes: 1 addition & 1 deletion src/components/errorbars/style.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

'use strict';

var d3 = require('../../lib/d3');
var d3 = require('@plotly/d3');

var Color = require('../color');

Expand Down
2 changes: 1 addition & 1 deletion src/components/fx/hover.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@

'use strict';

var d3 = require('@plotly/d3');
var isNumeric = require('fast-isnumeric');
var tinycolor = require('tinycolor2');

var Lib = require('../../lib');
var d3 = Lib.d3;
var strTranslate = Lib.strTranslate;
var strRotate = Lib.strRotate;
var Events = require('../../lib/events');
Expand Down
2 changes: 1 addition & 1 deletion src/components/fx/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

'use strict';

var d3 = require('@plotly/d3');
var Lib = require('../../lib');
var d3 = Lib.d3;
var dragElement = require('../dragelement');
var helpers = require('./helpers');
var layoutAttributes = require('./layout_attributes');
Expand Down
2 changes: 1 addition & 1 deletion src/components/images/draw.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

'use strict';

var d3 = require('../../lib/d3');
var d3 = require('@plotly/d3');
var Drawing = require('../drawing');
var Axes = require('../../plots/cartesian/axes');
var axisIds = require('../../plots/cartesian/axis_ids');
Expand Down
3 changes: 2 additions & 1 deletion src/components/legend/draw.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@

'use strict';

var d3 = require('@plotly/d3');

var Lib = require('../../lib');
var d3 = Lib.d3;
var Plots = require('../../plots/plots');
var Registry = require('../../registry');
var Events = require('../../lib/events');
Expand Down
3 changes: 2 additions & 1 deletion src/components/legend/style.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@

'use strict';

var d3 = require('@plotly/d3');

var Registry = require('../../registry');
var Lib = require('../../lib');
var d3 = Lib.d3;
var strTranslate = Lib.strTranslate;
var Drawing = require('../drawing');
var Color = require('../color');
Expand Down
2 changes: 1 addition & 1 deletion src/components/modebar/modebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@

'use strict';

var d3 = require('@plotly/d3');
var isNumeric = require('fast-isnumeric');

var Lib = require('../../lib');
var d3 = Lib.d3;
var Icons = require('../../fonts/ploticon');
var Parser = new DOMParser();

Expand Down
3 changes: 2 additions & 1 deletion src/components/rangeselector/draw.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@

'use strict';

var d3 = require('@plotly/d3');

var Registry = require('../../registry');
var Plots = require('../../plots/plots');
var Color = require('../color');
var Drawing = require('../drawing');
var Lib = require('../../lib');
var d3 = Lib.d3;
var strTranslate = Lib.strTranslate;
var svgTextUtils = require('../../lib/svg_text_utils');
var axisIds = require('../../plots/cartesian/axis_ids');
Expand Down
2 changes: 1 addition & 1 deletion src/components/rangeselector/get_update_object.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

'use strict';

var d3 = require('../../lib/d3');
var d3 = require('@plotly/d3');

module.exports = function getUpdateObject(axisLayout, buttonLayout) {
var axName = axisLayout._name;
Expand Down
3 changes: 2 additions & 1 deletion src/components/rangeslider/draw.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@

'use strict';

var d3 = require('@plotly/d3');

var Registry = require('../../registry');
var Plots = require('../../plots/plots');

var Lib = require('../../lib');
var d3 = Lib.d3;
var strTranslate = Lib.strTranslate;
var Drawing = require('../drawing');
var Color = require('../color');
Expand Down
3 changes: 2 additions & 1 deletion src/components/sliders/draw.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@

'use strict';

var d3 = require('@plotly/d3');

var Plots = require('../../plots/plots');
var Color = require('../color');
var Drawing = require('../drawing');
var Lib = require('../../lib');
var d3 = Lib.d3;
var strTranslate = Lib.strTranslate;
var svgTextUtils = require('../../lib/svg_text_utils');
var arrayEditor = require('../../plot_api/plot_template').arrayEditor;
Expand Down
2 changes: 1 addition & 1 deletion src/components/titles/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@

'use strict';

var d3 = require('@plotly/d3');
var isNumeric = require('fast-isnumeric');

var Plots = require('../../plots/plots');
var Registry = require('../../registry');
var Lib = require('../../lib');
var d3 = Lib.d3;
var strTranslate = Lib.strTranslate;
var Drawing = require('../drawing');
var Color = require('../color');
Expand Down
3 changes: 2 additions & 1 deletion src/components/updatemenus/draw.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@

'use strict';

var d3 = require('@plotly/d3');

var Plots = require('../../plots/plots');
var Color = require('../color');
var Drawing = require('../drawing');
var Lib = require('../../lib');
var d3 = Lib.d3;
var svgTextUtils = require('../../lib/svg_text_utils');
var arrayEditor = require('../../plot_api/plot_template').arrayEditor;

Expand Down
3 changes: 2 additions & 1 deletion src/components/updatemenus/scrollbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,12 @@

module.exports = ScrollBox;

var d3 = require('@plotly/d3');

var Color = require('../color');
var Drawing = require('../drawing');

var Lib = require('../../lib');
var d3 = Lib.d3;

/**
* Helper class to setup a scroll box
Expand Down
3 changes: 3 additions & 0 deletions src/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,6 @@ exports.Fx = require('./components/fx');
exports.Snapshot = require('./snapshot');
exports.PlotSchema = require('./plot_api/plot_schema');
exports.Queue = require('./lib/queue');

// export d3 used in the bundle
exports.d3 = require('@plotly/d3');
2 changes: 1 addition & 1 deletion src/lib/dom.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

'use strict';

var d3 = require('./d3');
var d3 = require('@plotly/d3');
var loggers = require('./loggers');
var matrix = require('./matrix');
var mat4X4 = require('gl-mat4');
Expand Down
2 changes: 1 addition & 1 deletion src/lib/geo_location_utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

'use strict';

var d3 = require('./d3');
var d3 = require('@plotly/d3');
var countryRegex = require('country-regex');
var turfArea = require('@turf/area');
var turfCentroid = require('@turf/centroid');
Expand Down
4 changes: 1 addition & 3 deletions src/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

'use strict';

var d3 = require('./d3');
var d3 = require('@plotly/d3');
var utcFormat = require('d3-time-format').utcFormat;
var isNumeric = require('fast-isnumeric');

Expand All @@ -18,8 +18,6 @@ var BADNUM = numConstants.BADNUM;

var lib = module.exports = {};

lib.d3 = d3;

lib.nestedProperty = require('./nested_property');
lib.keyedContainer = require('./keyed_container');
lib.relativeAttr = require('./relative_attr');
Expand Down
2 changes: 1 addition & 1 deletion src/lib/make_trace_groups.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

'use strict';

var d3 = require('./d3');
var d3 = require('@plotly/d3');

/**
* General helper to manage trace groups based on calcdata
Expand Down
2 changes: 1 addition & 1 deletion src/lib/notifier.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

'use strict';

var d3 = require('./d3');
var d3 = require('@plotly/d3');
var isNumeric = require('fast-isnumeric');

var NOTEDATA = [];
Expand Down
2 changes: 1 addition & 1 deletion src/lib/svg_text_utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

/* global MathJax:false */

var d3 = require('./d3');
var d3 = require('@plotly/d3');

var Lib = require('../lib');
var strTranslate = Lib.strTranslate;
Expand Down
2 changes: 1 addition & 1 deletion src/plot_api/plot_api.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@

'use strict';

var d3 = require('@plotly/d3');
var isNumeric = require('fast-isnumeric');
var hasHover = require('has-hover');

var Lib = require('../lib');
var d3 = Lib.d3;
var nestedProperty = Lib.nestedProperty;

var Events = require('../lib/events');
Expand Down
2 changes: 1 addition & 1 deletion src/plot_api/subroutines.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@

'use strict';

var d3 = require('@plotly/d3');
var Registry = require('../registry');
var Plots = require('../plots/plots');

var Lib = require('../lib');
var d3 = Lib.d3;
var clearGlCanvases = require('../lib/clear_gl_canvases');

var Color = require('../components/color');
Expand Down
2 changes: 1 addition & 1 deletion src/plots/cartesian/axes.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@

'use strict';

var d3 = require('@plotly/d3');
var isNumeric = require('fast-isnumeric');
var Plots = require('../../plots/plots');

var Registry = require('../../registry');
var Lib = require('../../lib');
var d3 = Lib.d3;
var strTranslate = Lib.strTranslate;
var svgTextUtils = require('../../lib/svg_text_utils');
var Titles = require('../../components/titles');
Expand Down
Loading

0 comments on commit 7d2559e

Please sign in to comment.