Skip to content

Commit 1087b8e

Browse files
committed
add anim:true to cartesian axis range attribute declarations
1 parent 0d34b05 commit 1087b8e

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

src/plots/cartesian/layout_attributes.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,12 @@ module.exports = {
107107
valType: 'info_array',
108108
role: 'info',
109109
items: [
110-
{valType: 'any', editType: 'axrange', impliedEdits: {'^autorange': false}},
111-
{valType: 'any', editType: 'axrange', impliedEdits: {'^autorange': false}}
110+
{valType: 'any', editType: 'axrange', impliedEdits: {'^autorange': false}, anim: true},
111+
{valType: 'any', editType: 'axrange', impliedEdits: {'^autorange': false}, anim: true}
112112
],
113113
editType: 'axrange',
114114
impliedEdits: {'autorange': false},
115+
anim: true,
115116
description: [
116117
'Sets the range of this axis.',
117118
'If the axis `type` is *log*, then you must take the log of your',

src/plots/gl3d/layout/axis_attributes.js

+7-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ var axesAttrs = require('../../cartesian/layout_attributes');
1313
var extendFlat = require('../../../lib/extend').extendFlat;
1414
var overrideAll = require('../../../plot_api/edit_types').overrideAll;
1515

16-
1716
module.exports = overrideAll({
1817
visible: axesAttrs.visible,
1918
showspikes: {
@@ -77,7 +76,13 @@ module.exports = overrideAll({
7776
type: axesAttrs.type,
7877
autorange: axesAttrs.autorange,
7978
rangemode: axesAttrs.rangemode,
80-
range: axesAttrs.range,
79+
range: extendFlat({}, axesAttrs.range, {
80+
items: [
81+
{valType: 'any', editType: 'plot', impliedEdits: {'^autorange': false}},
82+
{valType: 'any', editType: 'plot', impliedEdits: {'^autorange': false}}
83+
],
84+
anim: false
85+
}),
8186
// ticks
8287
tickmode: axesAttrs.tickmode,
8388
nticks: axesAttrs.nticks,

0 commit comments

Comments
 (0)