Can we expand the returned object in onSuccess callback to include the annotation 'id' if it is passed in the annotations array?
For example, I have this annotations passed:
[{ start: 23, end: 273, name: "GFP", id: 1 }]
Then I expect to get this identifier in the onSelection callback:
{ "id": 1 "end": 273, "length": 250 "name": "GFP", "start": 23, "type": "ANNOTATION", }
Can we expand the returned object in
onSuccesscallback to include the annotation 'id' if it is passed in the annotations array?For example, I have this annotations passed:
[{start: 23, end: 273, name: "GFP", id: 1}]Then I expect to get this identifier in the onSelection callback:
{ "id": 1 "end": 273, "length": 250 "name": "GFP", "start": 23, "type": "ANNOTATION", }