lib/parsers.js
function parseAnnotation(entity) {
  return {
    annotations: entity.annotations ? {
      bundleURL: entity.annotations['bundle-url'],
      guiX: entity.annotations['gui-x'],
      guiY: entity.annotations['gui-y']
    } : undefined,
    modelUUID: entity['model-uuid'],
    tag: entity.tag
  };
}
function parseAnnotation(entity) {
  return {
    annotations: entity.annotations ? {
      bundleURL: entity.annotations['bundle-url'],
      guiX: entity.annotations['gui-x'],
      guiY: entity.annotations['gui-y']
    } : undefined,
    modelUUID: entity['model-uuid'],
    tag: entity.tag
  };
}
function parseAnnotation ( entity ) { return { annotations : entity . annotations ? { bundleURL : entity . annotations [ 'bundle-url' ] , guiX : entity . annotations [ 'gui-x' ] , guiY : entity . annotations [ 'gui-y' ] } : undefined , modelUUID : entity [ 'model-uuid' ] , tag : entity . tag } ; }
Parse an annotation.
@param {Object} entity - The entity details.
@param {Object} entity.annotations - The annotation details.
@param {String} entity.annotations.bunde-url - The bundle url.
@param {String} entity.annotations.gui-x - The x position for the gui.
@param {String} entity.annotations.gui-y - The y position for the gui.
@param {String} entity.model-uuid - The model uuid this entity belongs to.
@param {String} entity.tag - The tag for this entity.
@returns {Object} return The parsed entity.
@returns {Object} return.annotations - The annotation details.
@returns {String} return.annotations.bundeURL - The bundle url.
@returns {String} return.annotations.guiX - The x position for the gui.
@returns {String} return.annotations.guiY - The y position for the gui.
@returns {String} return.modelUUID - The model uuid this entity belongs to.
@returns {String} return.tag - The tag for this entity.
Parse an annotation .