Skip to content

Commit a0ce641

Browse files
committed
Update fallback editType to match template
1 parent 5c032c6 commit a0ce641

File tree

26 files changed

+27
-27
lines changed

26 files changed

+27
-27
lines changed

src/components/shapes/attributes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ module.exports = templatedArray('shape', {
331331
].join(' ')
332332
},
333333
texttemplate: shapeTexttemplateAttrs({}, { keys: Object.keys(shapeLabelTexttemplateVars) }),
334-
texttemplatefallback: templatefallbackAttrs(),
334+
texttemplatefallback: templatefallbackAttrs({ editType: 'arraydraw' }),
335335
font: fontAttrs({
336336
editType: 'calc+arraydraw',
337337
colorEditType: 'arraydraw',

src/components/shapes/draw_newshape/attributes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ module.exports = overrideAll(
150150
{ newshape: true },
151151
{ keys: Object.keys(shapeLabelTexttemplateVars) }
152152
),
153-
texttemplatefallback: templatefallbackAttrs(),
153+
texttemplatefallback: templatefallbackAttrs({ editType: 'arraydraw' }),
154154
font: fontAttrs({
155155
description: 'Sets the new shape label text font.'
156156
}),

src/traces/bar/attributes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ module.exports = {
7878

7979
text: scatterAttrs.text,
8080
texttemplate: texttemplateAttrs({ editType: 'plot' }, { keys: constants.eventDataKeys }),
81-
texttemplatefallback: templatefallbackAttrs(),
81+
texttemplatefallback: templatefallbackAttrs({ editType: 'plot' }),
8282
hovertext: scatterAttrs.hovertext,
8383
hovertemplate: hovertemplateAttrs({}, { keys: constants.eventDataKeys }),
8484
hovertemplatefallback: templatefallbackAttrs(),

src/traces/cone/attributes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ var attrs = {
146146
},
147147

148148
hovertemplate: hovertemplateAttrs({ editType: 'calc' }, { keys: ['norm'] }),
149-
hovertemplatefallback: templatefallbackAttrs(),
149+
hovertemplatefallback: templatefallbackAttrs({ editType: 'calc' }),
150150
uhoverformat: axisHoverFormat('u', 1),
151151
vhoverformat: axisHoverFormat('v', 1),
152152
whoverformat: axisHoverFormat('w', 1),

src/traces/funnel/attributes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ module.exports = {
4848
},
4949
// TODO: incorporate `label` and `value` in the eventData
5050
texttemplate: texttemplateAttrs({ editType: 'plot' }, { keys: constants.eventDataKeys.concat(['label', 'value']) }),
51-
texttemplatefallback: templatefallbackAttrs(),
51+
texttemplatefallback: templatefallbackAttrs({ editType: 'plot' }),
5252

5353
text: barAttrs.text,
5454
textposition: barAttrs.textposition,

src/traces/funnelarea/attributes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ module.exports = {
4747
}),
4848

4949
texttemplate: texttemplateAttrs({ editType: 'plot' }, { keys: ['label', 'color', 'value', 'text', 'percent'] }),
50-
texttemplatefallback: templatefallbackAttrs(),
50+
texttemplatefallback: templatefallbackAttrs({ editType: 'plot' }),
5151

5252
hoverinfo: extendFlat({}, baseAttrs.hoverinfo, {
5353
flags: ['label', 'text', 'value', 'percent', 'name']

src/traces/heatmap/attributes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ module.exports = extendFlat(
117117
hovertemplate: hovertemplateAttrs(),
118118
hovertemplatefallback: templatefallbackAttrs(),
119119
texttemplate: texttemplateAttrs({ arrayOk: false, editType: 'plot' }, { keys: ['x', 'y', 'z', 'text'] }),
120-
texttemplatefallback: templatefallbackAttrs(),
120+
texttemplatefallback: templatefallbackAttrs({ editType: 'plot' }),
121121
textfont: fontAttrs({
122122
editType: 'plot',
123123
autoSize: true,

src/traces/histogram/attributes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ module.exports = {
195195
hovertemplatefallback: templatefallbackAttrs(),
196196

197197
texttemplate: texttemplateAttrs({ arrayOk: false, editType: 'plot' }, { keys: ['label', 'value'] }),
198-
texttemplatefallback: templatefallbackAttrs(),
198+
texttemplatefallback: templatefallbackAttrs({ editType: 'plot' }),
199199

200200
textposition: extendFlat({}, barAttrs.textposition, {
201201
arrayOk: false

src/traces/histogram2d/attributes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ module.exports = extendFlat(
7171
hovertemplate: hovertemplateAttrs({}, { keys: ['z'] }),
7272
hovertemplatefallback: templatefallbackAttrs(),
7373
texttemplate: texttemplateAttrs({ arrayOk: false, editType: 'plot' }, { keys: ['z'] }),
74-
texttemplatefallback: templatefallbackAttrs(),
74+
texttemplatefallback: templatefallbackAttrs({ editType: 'plot' }),
7575
textfont: heatmapAttrs.textfont,
7676
showlegend: extendFlat({}, baseAttrs.showlegend, { dflt: false })
7777
},

src/traces/icicle/attributes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ module.exports = {
7777
textinfo: sunburstAttrs.textinfo,
7878
// TODO: incorporate `label` and `value` in the eventData
7979
texttemplate: texttemplateAttrs({ editType: 'plot' }, { keys: constants.eventDataKeys.concat(['label', 'value']) }),
80-
texttemplatefallback: templatefallbackAttrs(),
80+
texttemplatefallback: templatefallbackAttrs({ editType: 'plot' }),
8181

8282
hovertext: pieAttrs.hovertext,
8383
hoverinfo: sunburstAttrs.hoverinfo,

0 commit comments

Comments
 (0)