Skip to content

Commit 13c2866

Browse files
committed
Restore enumerated values for xref/yref
1 parent 28016cf commit 13c2866

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

src/components/shapes/attributes.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22

3-
var annAttrs = require('../annotations/attributes');
3+
var cartesianConstants = require('../../plots/cartesian/constants');
44
var fontAttrs = require('../../plots/font_attributes');
55
var scatterLineAttrs = require('../../traces/scatter/attributes').line;
66
var dash = require('../drawing/attributes').dash;
@@ -117,6 +117,10 @@ module.exports = templatedArray('shape', {
117117
xref: {
118118
arrayOk: true,
119119
valType: 'enumerated',
120+
values: [
121+
'paper',
122+
cartesianConstants.idRegex.x.toString()
123+
],
120124
editType: 'calc',
121125
description: [
122126
"Sets the shape's x coordinate axis.",
@@ -190,6 +194,10 @@ module.exports = templatedArray('shape', {
190194
yref: {
191195
arrayOk: true,
192196
valType: 'enumerated',
197+
values: [
198+
'paper',
199+
cartesianConstants.idRegex.y.toString()
200+
],
193201
editType: 'calc',
194202
description: [
195203
"Sets the shape's y coordinate axis.",

0 commit comments

Comments
 (0)