Skip to content

Commit 70ebe72

Browse files
committed
Add "between to newshape.layer as well.
Make line length of description shorter.
1 parent 2b398d3 commit 70ebe72

File tree

3 files changed

+19
-6
lines changed

3 files changed

+19
-6
lines changed

src/components/shapes/attributes.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,10 @@ module.exports = templatedArray('shape', {
113113
values: ['below', 'above', 'between'],
114114
dflt: 'above',
115115
editType: 'arraydraw',
116-
description: 'Specifies whether shapes are drawn below gridlines (*below*), between gridlines and traces (*between*) or above traces (*above*).'
116+
description: [
117+
'Specifies whether shapes are drawn below gridlines (*below*),',
118+
'between gridlines and traces (*between*) or above traces (*above*).'
119+
]
117120
},
118121

119122
xref: extendFlat({}, annAttrs.xref, {

src/components/shapes/draw_newshape/attributes.js

+5-2
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,12 @@ module.exports = overrideAll({
117117
},
118118
layer: {
119119
valType: 'enumerated',
120-
values: ['below', 'above'],
120+
values: ['below', 'above', 'between'],
121121
dflt: 'above',
122-
description: 'Specifies whether new shapes are drawn below or above traces.'
122+
description: [
123+
'Specifies whether new shapes are drawn below gridlines (*below*),',
124+
'between gridlines and traces (*between*) or above traces (*above*).'
125+
]
123126
},
124127
drawdirection: {
125128
valType: 'enumerated',

test/plot-schema.json

+10-3
Original file line numberDiff line numberDiff line change
@@ -3720,13 +3720,17 @@
37203720
}
37213721
},
37223722
"layer": {
3723-
"description": "Specifies whether new shapes are drawn below or above traces.",
3723+
"description": [
3724+
"Specifies whether new shapes are drawn below gridlines (*below*),",
3725+
"between gridlines and traces (*between*) or above traces (*above*)."
3726+
],
37243727
"dflt": "above",
37253728
"editType": "none",
37263729
"valType": "enumerated",
37273730
"values": [
37283731
"below",
3729-
"above"
3732+
"above",
3733+
"between"
37303734
]
37313735
},
37323736
"legend": {
@@ -7708,7 +7712,10 @@
77087712
}
77097713
},
77107714
"layer": {
7711-
"description": "Specifies whether shapes are drawn below gridlines (*below*), between gridlines and traces (*between*) or above traces (*above*).",
7715+
"description": [
7716+
"Specifies whether shapes are drawn below gridlines (*below*),",
7717+
"between gridlines and traces (*between*) or above traces (*above*)."
7718+
],
77127719
"dflt": "above",
77137720
"editType": "arraydraw",
77147721
"valType": "enumerated",

0 commit comments

Comments
 (0)