Skip to content

Commit 7784e18

Browse files
committed
Revert "drop user-select in sankey and parcoords"
This reverts commit 89e1342.
1 parent 89e1342 commit 7784e18

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

src/plot_api/plot_api.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3725,6 +3725,7 @@ function makePlotFramework(gd) {
37253725
// Make the svg container
37263726
fullLayout._paperdiv = fullLayout._container.selectAll('.svg-container').data([0]);
37273727
fullLayout._paperdiv.enter().append('div')
3728+
.classed('user-select-none', true)
37283729
.classed('svg-container', true)
37293730
.style('position', 'relative');
37303731

src/traces/parcoords/parcoords.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,8 @@ function styleExtentTexts(selection) {
350350
selection
351351
.classed(c.cn.axisExtentText, true)
352352
.attr('text-anchor', 'middle')
353-
.style('cursor', 'default');
353+
.style('cursor', 'default')
354+
.style('user-select', 'none');
354355
}
355356

356357
function parcoordsInteractionState() {
@@ -654,7 +655,8 @@ module.exports = function parcoords(gd, cdModule, layout, callbacks) {
654655

655656
axis.selectAll('text')
656657
.style('text-shadow', '1px 1px 1px #fff, -1px -1px 1px #fff, 1px -1px 1px #fff, -1px 1px 1px #fff')
657-
.style('cursor', 'default');
658+
.style('cursor', 'default')
659+
.style('user-select', 'none');
658660

659661
var axisHeading = axisOverlays.selectAll('.' + c.cn.axisHeading)
660662
.data(repeat, keyFun);
@@ -671,6 +673,7 @@ module.exports = function parcoords(gd, cdModule, layout, callbacks) {
671673
.classed(c.cn.axisTitle, true)
672674
.attr('text-anchor', 'middle')
673675
.style('cursor', 'ew-resize')
676+
.style('user-select', 'none')
674677
.style('pointer-events', 'auto');
675678

676679
axisTitle

src/traces/sankey/render.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1026,6 +1026,7 @@ module.exports = function(gd, svg, calcData, layout, callbacks) {
10261026
.append('text')
10271027
.classed(c.cn.nodeLabel, true)
10281028
.attr('transform', textFlip)
1029+
.style('user-select', 'none')
10291030
.style('cursor', 'default')
10301031
.style('fill', 'black');
10311032

0 commit comments

Comments
 (0)