Skip to content

Commit aa52dd5

Browse files
committed
always default pathbar.opacity to 1
1 parent 280a0a1 commit aa52dd5

File tree

7 files changed

+9
-3
lines changed

7 files changed

+9
-3
lines changed

src/traces/treemap/attributes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ module.exports = {
222222
editType: 'style',
223223
role: 'style',
224224
min: 0,
225-
dflt: 0.5,
225+
dflt: 1,
226226
description: [
227227
'Sets the opacity of the pathbar.',
228228
'This option is not available when having a `colorscale`.'
-185 Bytes
Loading
116 Bytes
Loading
86 Bytes
Loading
52 Bytes
Loading

test/image/mocks/treemap_textposition.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"name": "bottom left textposition",
77
"textposition": "bottom left",
88
"pathbar": {
9+
"opacity": 0.5,
910
"side": "bottom",
1011
"textfont": {
1112
"size": 12,
@@ -114,6 +115,7 @@
114115
"name": "bottom center textposition",
115116
"textposition": "bottom center",
116117
"pathbar": {
118+
"opacity": 0.5,
117119
"textfont": {
118120
"size": 12,
119121
"family": "Times New Roman"
@@ -223,6 +225,7 @@
223225
"name": "bottom right textposition",
224226
"textposition": "bottom right",
225227
"pathbar": {
228+
"opacity": 0.5,
226229
"side": "bottom",
227230
"textfont": {
228231
"size": 12,
@@ -651,6 +654,7 @@
651654
"name": "top left textposition",
652655
"textposition": "top left",
653656
"pathbar": {
657+
"opacity": 0.5,
654658
"textfont": {
655659
"size": 12,
656660
"family": "Times New Roman"
@@ -760,6 +764,7 @@
760764
"name": "top center textposition",
761765
"textposition": "top center",
762766
"pathbar": {
767+
"opacity": 0.5,
763768
"side": "bottom",
764769
"textfont": {
765770
"size": 12,
@@ -870,6 +875,7 @@
870875
"name": "top right textposition",
871876
"textposition": "top right",
872877
"pathbar": {
878+
"opacity": 0.5,
873879
"textfont": {
874880
"size": 12,
875881
"family": "Times New Roman"

test/jasmine/tests/treemap_test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1226,7 +1226,7 @@ describe('Test treemap restyle:', function() {
12261226
}
12271227

12281228
Plotly.plot(gd, mock)
1229-
.then(_assert('base', ['', '', '', '0.5', '0.5']))
1229+
.then(_assert('base', ['', '', '', '1', '1']))
12301230
.then(function() {
12311231
spyOn(Plots, 'doCalcdata').and.callThrough();
12321232
spyOn(gd._fullData[0]._module, 'plot').and.callThrough();
@@ -1236,7 +1236,7 @@ describe('Test treemap restyle:', function() {
12361236
.then(_restyle({'pathbar.opacity': 0.8}))
12371237
.then(_assert('raise pathbar.opacity', ['', '', '', '0.8', '0.8']))
12381238
.then(_restyle({'pathbar.opacity': null}))
1239-
.then(_assert('back to dflt', ['', '', '', '0.5', '0.5']))
1239+
.then(_assert('back to dflt', ['', '', '', '1', '1']))
12401240
.catch(failTest)
12411241
.then(done);
12421242
});

0 commit comments

Comments
 (0)