Skip to content

Commit 09d5dd0

Browse files
committed
skip Axes.makeClipPaths under hasOnlyLargeSploms regime
- these clip paths are only used for shapes and layout images, which make hasOnlyLargeSploms false, so we don't need them. - this can trim ~50ms on first render at 50 splom dimensions.
1 parent abd4bcf commit 09d5dd0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/plots/cartesian/axes.js

+4
Original file line numberDiff line numberDiff line change
@@ -1456,6 +1456,10 @@ axes.findSubplotsWithAxis = function(subplots, ax) {
14561456
// makeClipPaths: prepare clipPaths for all single axes and all possible xy pairings
14571457
axes.makeClipPaths = function(gd) {
14581458
var fullLayout = gd._fullLayout;
1459+
1460+
// for more info: https://github.com/plotly/plotly.js/issues/2595
1461+
if(fullLayout._hasOnlyLargeSploms) return;
1462+
14591463
var fullWidth = {_offset: 0, _length: fullLayout.width, _id: ''};
14601464
var fullHeight = {_offset: 0, _length: fullLayout.height, _id: ''};
14611465
var xaList = axes.list(gd, 'x', true);

0 commit comments

Comments
 (0)