function contextMenuItemsFormatter(items) {
  // insert context menu item on 0 position
  items['annotations-remove-selected'] = {
    text: 'Remove selected annotation',
    action: removeSelectedAnnotation,
    index: -10
  };

  // insert context menu item on 1 position
  items['annotations-remove-all'] = {
    text: 'Remove all annotations',
    action: removeAllAnnotations,
    index: -5
  };

  // insert context menu separator
  items['annotations-separator'] = {
    index: -4
  };

  return items;
}
/**
 * create context menu items for annotations (remove and remove all)
 * @param {Object} items context menu items
 * @return {Object} updated context menu items object
 */
create context menu items for annotations (remove and remove all)
@param {Object} items context menu items
@return {Object} updated context menu items object
create context menu items for annotations ( remove and remove all ) @param { Object } items context menu items @return { Object } updated context menu items object
function contextMenuItemsFormatter(items) {
  items['annotations-remove-selected'] = {
    text: 'Remove selected annotation',
    action: removeSelectedAnnotation,
    index: -10
  };
  items['annotations-remove-all'] = {
    text: 'Remove all annotations',
    action: removeAllAnnotations,
    index: -5
  };
  items['annotations-separator'] = {
    index: -4
  };
  return items;
}
function contextMenuItemsFormatter ( items ) { items [ 'annotations-remove-selected' ] = { text : 'Remove selected annotation' , action : removeSelectedAnnotation , index : - 10 } ; items [ 'annotations-remove-all' ] = { text : 'Remove all annotations' , action : removeAllAnnotations , index : - 5 } ; items [ 'annotations-separator' ] = { index : - 4 } ; return items ; }
create context menu items for annotations (remove and remove all)
 @param {Object} items context menu items
 @return {Object} updated context menu items object
create context menu items for annotations ( remove and remove all ) @param { Object } items context menu items @return { Object } updated context menu items object
// insert context menu item on 0 position // insert context menu item on 1 position // insert context menu separator