Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 43d227a

Browse files
committed
lint
1 parent e85a6c7 commit 43d227a

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

src/plot_api/subroutines.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ exports.lsInner = function(gd) {
4848
var plotinfo = fullLayout._plots[subplot],
4949
xa = Plotly.Axes.getFromId(gd, subplot, 'x'),
5050
ya = Plotly.Axes.getFromId(gd, subplot, 'y');
51+
5152
xa.setScale(); // this may already be done... not sure
5253
ya.setScale();
5354

@@ -59,7 +60,6 @@ exports.lsInner = function(gd) {
5960
.call(Color.fill, fullLayout.plot_bgcolor);
6061
}
6162

62-
6363
// Clip so that data only shows up on the plot area.
6464
plotinfo.clipId = 'clip' + fullLayout._uid + subplot + 'plot';
6565

src/plots/cartesian/axes.js

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1302,10 +1302,10 @@ axes.findSubplotsWithAxis = function(subplots, ax) {
13021302

13031303
// makeClipPaths: prepare clipPaths for all single axes and all possible xy pairings
13041304
axes.makeClipPaths = function(gd) {
1305-
var layout = gd._fullLayout,
1306-
defs = layout._defs,
1307-
fullWidth = {_offset: 0, _length: layout.width, _id: ''},
1308-
fullHeight = {_offset: 0, _length: layout.height, _id: ''},
1305+
var fullLayout = gd._fullLayout,
1306+
defs = fullLayout._defs,
1307+
fullWidth = {_offset: 0, _length: fullLayout.width, _id: ''},
1308+
fullHeight = {_offset: 0, _length: fullLayout.height, _id: ''},
13091309
xaList = axes.list(gd, 'x', true),
13101310
yaList = axes.list(gd, 'y', true),
13111311
clipList = [],
@@ -1322,6 +1322,7 @@ axes.makeClipPaths = function(gd) {
13221322

13231323
var defGroup = defs.selectAll('g.clips')
13241324
.data([0]);
1325+
13251326
defGroup.enter().append('g')
13261327
.classed('clips', true);
13271328

@@ -1330,11 +1331,14 @@ axes.makeClipPaths = function(gd) {
13301331
// https://groups.google.com/forum/#!topic/d3-js/6EpAzQ2gU9I
13311332
var axClips = defGroup.selectAll('.axesclip')
13321333
.data(clipList, function(d) { return d.x._id + d.y._id; });
1334+
13331335
axClips.enter().append('clipPath')
13341336
.classed('axesclip', true)
1335-
.attr('id', function(d) { return 'clip' + layout._uid + d.x._id + d.y._id; })
1337+
.attr('id', function(d) { return 'clip' + fullLayout._uid + d.x._id + d.y._id; })
13361338
.append('rect');
1339+
13371340
axClips.exit().remove();
1341+
13381342
axClips.each(function(d) {
13391343
d3.select(this).select('rect').attr({
13401344
x: d.x._offset || 0,

src/plots/cartesian/dragbox.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,6 @@ module.exports = function dragBox(gd, plotinfo, x, y, w, h, ns, ew) {
695695
var plotDx = xa2._offset - fracDx,
696696
plotDy = ya2._offset - fracDy;
697697

698-
699698
fullLayout._defs.selectAll('#' + subplot.clipId)
700699
.call(Lib.setTranslate, clipDx, clipDy)
701700
.call(Lib.setScale, 1 / xScaleFactor, 1 / yScaleFactor);

0 commit comments

Comments
 (0)