Skip to content

Commit b7b1b3a

Browse files
committed
remove support for deprecated 'annotation.ref' attribute (use 'annotation.xref' and 'annotation.yref' instead)
1 parent d5d3712 commit b7b1b3a

File tree

2 files changed

+0
-21
lines changed

2 files changed

+0
-21
lines changed

src/components/annotations/attributes.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -487,14 +487,4 @@ module.exports = templatedArray('annotation', {
487487
].join(' ')
488488
},
489489
editType: 'calc',
490-
491-
_deprecated: {
492-
ref: {
493-
valType: 'string',
494-
editType: 'calc',
495-
description: [
496-
'Obsolete. Set `xref` and `yref` separately instead.'
497-
].join(' ')
498-
}
499-
}
500490
});

src/plot_api/helpers.js

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -144,17 +144,6 @@ exports.cleanLayout = function(layout) {
144144

145145
if(!Lib.isPlainObject(ann)) continue;
146146

147-
if(ann.ref) {
148-
if(ann.ref === 'paper') {
149-
ann.xref = 'paper';
150-
ann.yref = 'paper';
151-
} else if(ann.ref === 'data') {
152-
ann.xref = 'x';
153-
ann.yref = 'y';
154-
}
155-
delete ann.ref;
156-
}
157-
158147
cleanAxRef(ann, 'xref');
159148
cleanAxRef(ann, 'yref');
160149
}

0 commit comments

Comments
 (0)