Skip to content

Commit

Permalink
push built files
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewbaldock committed May 21, 2019
1 parent 92442ae commit 8c211c4
Show file tree
Hide file tree
Showing 19 changed files with 99 additions and 59 deletions.
2 changes: 1 addition & 1 deletion dist/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ The `finance` partial bundle contains trace modules `scatter`, `bar`, `histogram

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 2.4 MB | 878 kB | 285.4 kB |
| 2.4 MB | 878.1 kB | 285.4 kB |

#### CDN links

Expand Down
14 changes: 9 additions & 5 deletions dist/plotly-basic.js
Original file line number Diff line number Diff line change
Expand Up @@ -25675,11 +25675,16 @@ module.exports = function draw(gd) {

var eventY0, eventY1, scrollBoxY0;

var getScrollBoxDragY = function(scrollBoxY0, eventY0, eventY1) {
var getScrollBarDragY = function(scrollBoxY0, eventY0, eventY1) {
var y = ((eventY1 - eventY0) / scrollRatio) + scrollBoxY0;
return Lib.constrain(y, 0, scrollBoxYMax);
};

var getNaturalDragY = function(scrollBoxY0, eventY0, eventY1) {
var y = ((eventY0 - eventY1) / scrollRatio) + scrollBoxY0;
return Lib.constrain(y, 0, scrollBoxYMax);
};

// scroll legend by dragging scrollBAR
var scrollBarDrag = d3.behavior.drag()
.on('dragstart', function() {
Expand All @@ -25699,7 +25704,7 @@ module.exports = function draw(gd) {
} else {
eventY1 = e.clientY;
}
scrollBoxY = getScrollBoxDragY(scrollBoxY0, eventY0, eventY1);
scrollBoxY = getScrollBarDragY(scrollBoxY0, eventY0, eventY1);
scrollHandler(scrollBoxY, scrollBarHeight, scrollRatio);
});
scrollBar.call(scrollBarDrag);
Expand All @@ -25717,9 +25722,8 @@ module.exports = function draw(gd) {
var e = d3.event.sourceEvent;
if(e.type === 'touchmove') {
eventY1 = e.changedTouches[0].clientY;
scrollBoxY = getScrollBoxDragY(scrollBoxY0, eventY0, eventY1);
var naturalScrollBoxY = scrollBoxYMax - scrollBoxY; // inverted for natural-scroll
scrollHandler(naturalScrollBoxY, scrollBarHeight, scrollRatio);
scrollBoxY = getNaturalDragY(scrollBoxY0, eventY0, eventY1);
scrollHandler(scrollBoxY, scrollBarHeight, scrollRatio);
}
});
scrollBox.call(scrollBoxTouchDrag);
Expand Down
2 changes: 1 addition & 1 deletion dist/plotly-basic.min.js

Large diffs are not rendered by default.

14 changes: 9 additions & 5 deletions dist/plotly-cartesian.js
Original file line number Diff line number Diff line change
Expand Up @@ -25787,11 +25787,16 @@ module.exports = function draw(gd) {

var eventY0, eventY1, scrollBoxY0;

var getScrollBoxDragY = function(scrollBoxY0, eventY0, eventY1) {
var getScrollBarDragY = function(scrollBoxY0, eventY0, eventY1) {
var y = ((eventY1 - eventY0) / scrollRatio) + scrollBoxY0;
return Lib.constrain(y, 0, scrollBoxYMax);
};

var getNaturalDragY = function(scrollBoxY0, eventY0, eventY1) {
var y = ((eventY0 - eventY1) / scrollRatio) + scrollBoxY0;
return Lib.constrain(y, 0, scrollBoxYMax);
};

// scroll legend by dragging scrollBAR
var scrollBarDrag = d3.behavior.drag()
.on('dragstart', function() {
Expand All @@ -25811,7 +25816,7 @@ module.exports = function draw(gd) {
} else {
eventY1 = e.clientY;
}
scrollBoxY = getScrollBoxDragY(scrollBoxY0, eventY0, eventY1);
scrollBoxY = getScrollBarDragY(scrollBoxY0, eventY0, eventY1);
scrollHandler(scrollBoxY, scrollBarHeight, scrollRatio);
});
scrollBar.call(scrollBarDrag);
Expand All @@ -25829,9 +25834,8 @@ module.exports = function draw(gd) {
var e = d3.event.sourceEvent;
if(e.type === 'touchmove') {
eventY1 = e.changedTouches[0].clientY;
scrollBoxY = getScrollBoxDragY(scrollBoxY0, eventY0, eventY1);
var naturalScrollBoxY = scrollBoxYMax - scrollBoxY; // inverted for natural-scroll
scrollHandler(naturalScrollBoxY, scrollBarHeight, scrollRatio);
scrollBoxY = getNaturalDragY(scrollBoxY0, eventY0, eventY1);
scrollHandler(scrollBoxY, scrollBarHeight, scrollRatio);
}
});
scrollBox.call(scrollBoxTouchDrag);
Expand Down
2 changes: 1 addition & 1 deletion dist/plotly-cartesian.min.js

Large diffs are not rendered by default.

14 changes: 9 additions & 5 deletions dist/plotly-finance.js
Original file line number Diff line number Diff line change
Expand Up @@ -25745,11 +25745,16 @@ module.exports = function draw(gd) {

var eventY0, eventY1, scrollBoxY0;

var getScrollBoxDragY = function(scrollBoxY0, eventY0, eventY1) {
var getScrollBarDragY = function(scrollBoxY0, eventY0, eventY1) {
var y = ((eventY1 - eventY0) / scrollRatio) + scrollBoxY0;
return Lib.constrain(y, 0, scrollBoxYMax);
};

var getNaturalDragY = function(scrollBoxY0, eventY0, eventY1) {
var y = ((eventY0 - eventY1) / scrollRatio) + scrollBoxY0;
return Lib.constrain(y, 0, scrollBoxYMax);
};

// scroll legend by dragging scrollBAR
var scrollBarDrag = d3.behavior.drag()
.on('dragstart', function() {
Expand All @@ -25769,7 +25774,7 @@ module.exports = function draw(gd) {
} else {
eventY1 = e.clientY;
}
scrollBoxY = getScrollBoxDragY(scrollBoxY0, eventY0, eventY1);
scrollBoxY = getScrollBarDragY(scrollBoxY0, eventY0, eventY1);
scrollHandler(scrollBoxY, scrollBarHeight, scrollRatio);
});
scrollBar.call(scrollBarDrag);
Expand All @@ -25787,9 +25792,8 @@ module.exports = function draw(gd) {
var e = d3.event.sourceEvent;
if(e.type === 'touchmove') {
eventY1 = e.changedTouches[0].clientY;
scrollBoxY = getScrollBoxDragY(scrollBoxY0, eventY0, eventY1);
var naturalScrollBoxY = scrollBoxYMax - scrollBoxY; // inverted for natural-scroll
scrollHandler(naturalScrollBoxY, scrollBarHeight, scrollRatio);
scrollBoxY = getNaturalDragY(scrollBoxY0, eventY0, eventY1);
scrollHandler(scrollBoxY, scrollBarHeight, scrollRatio);
}
});
scrollBox.call(scrollBoxTouchDrag);
Expand Down
2 changes: 1 addition & 1 deletion dist/plotly-finance.min.js

Large diffs are not rendered by default.

14 changes: 9 additions & 5 deletions dist/plotly-geo.js
Original file line number Diff line number Diff line change
Expand Up @@ -26454,11 +26454,16 @@ module.exports = function draw(gd) {

var eventY0, eventY1, scrollBoxY0;

var getScrollBoxDragY = function(scrollBoxY0, eventY0, eventY1) {
var getScrollBarDragY = function(scrollBoxY0, eventY0, eventY1) {
var y = ((eventY1 - eventY0) / scrollRatio) + scrollBoxY0;
return Lib.constrain(y, 0, scrollBoxYMax);
};

var getNaturalDragY = function(scrollBoxY0, eventY0, eventY1) {
var y = ((eventY0 - eventY1) / scrollRatio) + scrollBoxY0;
return Lib.constrain(y, 0, scrollBoxYMax);
};

// scroll legend by dragging scrollBAR
var scrollBarDrag = d3.behavior.drag()
.on('dragstart', function() {
Expand All @@ -26478,7 +26483,7 @@ module.exports = function draw(gd) {
} else {
eventY1 = e.clientY;
}
scrollBoxY = getScrollBoxDragY(scrollBoxY0, eventY0, eventY1);
scrollBoxY = getScrollBarDragY(scrollBoxY0, eventY0, eventY1);
scrollHandler(scrollBoxY, scrollBarHeight, scrollRatio);
});
scrollBar.call(scrollBarDrag);
Expand All @@ -26496,9 +26501,8 @@ module.exports = function draw(gd) {
var e = d3.event.sourceEvent;
if(e.type === 'touchmove') {
eventY1 = e.changedTouches[0].clientY;
scrollBoxY = getScrollBoxDragY(scrollBoxY0, eventY0, eventY1);
var naturalScrollBoxY = scrollBoxYMax - scrollBoxY; // inverted for natural-scroll
scrollHandler(naturalScrollBoxY, scrollBarHeight, scrollRatio);
scrollBoxY = getNaturalDragY(scrollBoxY0, eventY0, eventY1);
scrollHandler(scrollBoxY, scrollBarHeight, scrollRatio);
}
});
scrollBox.call(scrollBoxTouchDrag);
Expand Down
2 changes: 1 addition & 1 deletion dist/plotly-geo.min.js

Large diffs are not rendered by default.

14 changes: 9 additions & 5 deletions dist/plotly-gl2d.js
Original file line number Diff line number Diff line change
Expand Up @@ -58981,11 +58981,16 @@ module.exports = function draw(gd) {

var eventY0, eventY1, scrollBoxY0;

var getScrollBoxDragY = function(scrollBoxY0, eventY0, eventY1) {
var getScrollBarDragY = function(scrollBoxY0, eventY0, eventY1) {
var y = ((eventY1 - eventY0) / scrollRatio) + scrollBoxY0;
return Lib.constrain(y, 0, scrollBoxYMax);
};

var getNaturalDragY = function(scrollBoxY0, eventY0, eventY1) {
var y = ((eventY0 - eventY1) / scrollRatio) + scrollBoxY0;
return Lib.constrain(y, 0, scrollBoxYMax);
};

// scroll legend by dragging scrollBAR
var scrollBarDrag = d3.behavior.drag()
.on('dragstart', function() {
Expand All @@ -59005,7 +59010,7 @@ module.exports = function draw(gd) {
} else {
eventY1 = e.clientY;
}
scrollBoxY = getScrollBoxDragY(scrollBoxY0, eventY0, eventY1);
scrollBoxY = getScrollBarDragY(scrollBoxY0, eventY0, eventY1);
scrollHandler(scrollBoxY, scrollBarHeight, scrollRatio);
});
scrollBar.call(scrollBarDrag);
Expand All @@ -59023,9 +59028,8 @@ module.exports = function draw(gd) {
var e = d3.event.sourceEvent;
if(e.type === 'touchmove') {
eventY1 = e.changedTouches[0].clientY;
scrollBoxY = getScrollBoxDragY(scrollBoxY0, eventY0, eventY1);
var naturalScrollBoxY = scrollBoxYMax - scrollBoxY; // inverted for natural-scroll
scrollHandler(naturalScrollBoxY, scrollBarHeight, scrollRatio);
scrollBoxY = getNaturalDragY(scrollBoxY0, eventY0, eventY1);
scrollHandler(scrollBoxY, scrollBarHeight, scrollRatio);
}
});
scrollBox.call(scrollBoxTouchDrag);
Expand Down
2 changes: 1 addition & 1 deletion dist/plotly-gl2d.min.js

Large diffs are not rendered by default.

14 changes: 9 additions & 5 deletions dist/plotly-gl3d.js
Original file line number Diff line number Diff line change
Expand Up @@ -65851,11 +65851,16 @@ module.exports = function draw(gd) {

var eventY0, eventY1, scrollBoxY0;

var getScrollBoxDragY = function(scrollBoxY0, eventY0, eventY1) {
var getScrollBarDragY = function(scrollBoxY0, eventY0, eventY1) {
var y = ((eventY1 - eventY0) / scrollRatio) + scrollBoxY0;
return Lib.constrain(y, 0, scrollBoxYMax);
};

var getNaturalDragY = function(scrollBoxY0, eventY0, eventY1) {
var y = ((eventY0 - eventY1) / scrollRatio) + scrollBoxY0;
return Lib.constrain(y, 0, scrollBoxYMax);
};

// scroll legend by dragging scrollBAR
var scrollBarDrag = d3.behavior.drag()
.on('dragstart', function() {
Expand All @@ -65875,7 +65880,7 @@ module.exports = function draw(gd) {
} else {
eventY1 = e.clientY;
}
scrollBoxY = getScrollBoxDragY(scrollBoxY0, eventY0, eventY1);
scrollBoxY = getScrollBarDragY(scrollBoxY0, eventY0, eventY1);
scrollHandler(scrollBoxY, scrollBarHeight, scrollRatio);
});
scrollBar.call(scrollBarDrag);
Expand All @@ -65893,9 +65898,8 @@ module.exports = function draw(gd) {
var e = d3.event.sourceEvent;
if(e.type === 'touchmove') {
eventY1 = e.changedTouches[0].clientY;
scrollBoxY = getScrollBoxDragY(scrollBoxY0, eventY0, eventY1);
var naturalScrollBoxY = scrollBoxYMax - scrollBoxY; // inverted for natural-scroll
scrollHandler(naturalScrollBoxY, scrollBarHeight, scrollRatio);
scrollBoxY = getNaturalDragY(scrollBoxY0, eventY0, eventY1);
scrollHandler(scrollBoxY, scrollBarHeight, scrollRatio);
}
});
scrollBox.call(scrollBoxTouchDrag);
Expand Down
2 changes: 1 addition & 1 deletion dist/plotly-gl3d.min.js

Large diffs are not rendered by default.

14 changes: 9 additions & 5 deletions dist/plotly-mapbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -25704,11 +25704,16 @@ module.exports = function draw(gd) {

var eventY0, eventY1, scrollBoxY0;

var getScrollBoxDragY = function(scrollBoxY0, eventY0, eventY1) {
var getScrollBarDragY = function(scrollBoxY0, eventY0, eventY1) {
var y = ((eventY1 - eventY0) / scrollRatio) + scrollBoxY0;
return Lib.constrain(y, 0, scrollBoxYMax);
};

var getNaturalDragY = function(scrollBoxY0, eventY0, eventY1) {
var y = ((eventY0 - eventY1) / scrollRatio) + scrollBoxY0;
return Lib.constrain(y, 0, scrollBoxYMax);
};

// scroll legend by dragging scrollBAR
var scrollBarDrag = d3.behavior.drag()
.on('dragstart', function() {
Expand All @@ -25728,7 +25733,7 @@ module.exports = function draw(gd) {
} else {
eventY1 = e.clientY;
}
scrollBoxY = getScrollBoxDragY(scrollBoxY0, eventY0, eventY1);
scrollBoxY = getScrollBarDragY(scrollBoxY0, eventY0, eventY1);
scrollHandler(scrollBoxY, scrollBarHeight, scrollRatio);
});
scrollBar.call(scrollBarDrag);
Expand All @@ -25746,9 +25751,8 @@ module.exports = function draw(gd) {
var e = d3.event.sourceEvent;
if(e.type === 'touchmove') {
eventY1 = e.changedTouches[0].clientY;
scrollBoxY = getScrollBoxDragY(scrollBoxY0, eventY0, eventY1);
var naturalScrollBoxY = scrollBoxYMax - scrollBoxY; // inverted for natural-scroll
scrollHandler(naturalScrollBoxY, scrollBarHeight, scrollRatio);
scrollBoxY = getNaturalDragY(scrollBoxY0, eventY0, eventY1);
scrollHandler(scrollBoxY, scrollBarHeight, scrollRatio);
}
});
scrollBox.call(scrollBoxTouchDrag);
Expand Down
2 changes: 1 addition & 1 deletion dist/plotly-mapbox.min.js

Large diffs are not rendered by default.

14 changes: 9 additions & 5 deletions dist/plotly-with-meta.js
Original file line number Diff line number Diff line change
Expand Up @@ -93761,11 +93761,16 @@ module.exports = function draw(gd) {

var eventY0, eventY1, scrollBoxY0;

var getScrollBoxDragY = function(scrollBoxY0, eventY0, eventY1) {
var getScrollBarDragY = function(scrollBoxY0, eventY0, eventY1) {
var y = ((eventY1 - eventY0) / scrollRatio) + scrollBoxY0;
return Lib.constrain(y, 0, scrollBoxYMax);
};

var getNaturalDragY = function(scrollBoxY0, eventY0, eventY1) {
var y = ((eventY0 - eventY1) / scrollRatio) + scrollBoxY0;
return Lib.constrain(y, 0, scrollBoxYMax);
};

// scroll legend by dragging scrollBAR
var scrollBarDrag = d3.behavior.drag()
.on('dragstart', function() {
Expand All @@ -93785,7 +93790,7 @@ module.exports = function draw(gd) {
} else {
eventY1 = e.clientY;
}
scrollBoxY = getScrollBoxDragY(scrollBoxY0, eventY0, eventY1);
scrollBoxY = getScrollBarDragY(scrollBoxY0, eventY0, eventY1);
scrollHandler(scrollBoxY, scrollBarHeight, scrollRatio);
});
scrollBar.call(scrollBarDrag);
Expand All @@ -93803,9 +93808,8 @@ module.exports = function draw(gd) {
var e = d3.event.sourceEvent;
if(e.type === 'touchmove') {
eventY1 = e.changedTouches[0].clientY;
scrollBoxY = getScrollBoxDragY(scrollBoxY0, eventY0, eventY1);
var naturalScrollBoxY = scrollBoxYMax - scrollBoxY; // inverted for natural-scroll
scrollHandler(naturalScrollBoxY, scrollBarHeight, scrollRatio);
scrollBoxY = getNaturalDragY(scrollBoxY0, eventY0, eventY1);
scrollHandler(scrollBoxY, scrollBarHeight, scrollRatio);
}
});
scrollBox.call(scrollBoxTouchDrag);
Expand Down
14 changes: 9 additions & 5 deletions dist/plotly.js
Original file line number Diff line number Diff line change
Expand Up @@ -93179,11 +93179,16 @@ module.exports = function draw(gd) {

var eventY0, eventY1, scrollBoxY0;

var getScrollBoxDragY = function(scrollBoxY0, eventY0, eventY1) {
var getScrollBarDragY = function(scrollBoxY0, eventY0, eventY1) {
var y = ((eventY1 - eventY0) / scrollRatio) + scrollBoxY0;
return Lib.constrain(y, 0, scrollBoxYMax);
};

var getNaturalDragY = function(scrollBoxY0, eventY0, eventY1) {
var y = ((eventY0 - eventY1) / scrollRatio) + scrollBoxY0;
return Lib.constrain(y, 0, scrollBoxYMax);
};

// scroll legend by dragging scrollBAR
var scrollBarDrag = d3.behavior.drag()
.on('dragstart', function() {
Expand All @@ -93203,7 +93208,7 @@ module.exports = function draw(gd) {
} else {
eventY1 = e.clientY;
}
scrollBoxY = getScrollBoxDragY(scrollBoxY0, eventY0, eventY1);
scrollBoxY = getScrollBarDragY(scrollBoxY0, eventY0, eventY1);
scrollHandler(scrollBoxY, scrollBarHeight, scrollRatio);
});
scrollBar.call(scrollBarDrag);
Expand All @@ -93221,9 +93226,8 @@ module.exports = function draw(gd) {
var e = d3.event.sourceEvent;
if(e.type === 'touchmove') {
eventY1 = e.changedTouches[0].clientY;
scrollBoxY = getScrollBoxDragY(scrollBoxY0, eventY0, eventY1);
var naturalScrollBoxY = scrollBoxYMax - scrollBoxY; // inverted for natural-scroll
scrollHandler(naturalScrollBoxY, scrollBarHeight, scrollRatio);
scrollBoxY = getNaturalDragY(scrollBoxY0, eventY0, eventY1);
scrollHandler(scrollBoxY, scrollBarHeight, scrollRatio);
}
});
scrollBox.call(scrollBoxTouchDrag);
Expand Down
2 changes: 1 addition & 1 deletion dist/plotly.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit 8c211c4

Please sign in to comment.