You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
192 lines
5.2 KiB
JavaScript
192 lines
5.2 KiB
JavaScript
/*
|
|
* Copyright (C) 2018 Intel Corporation
|
|
* SPDX-License-Identifier: MIT
|
|
*/
|
|
|
|
(() => {
|
|
/**
|
|
* Enum for type of server files
|
|
* @enum {string}
|
|
* @name ShareFileType
|
|
* @memberof module:API.cvat.enums
|
|
* @property {string} DIR 'DIR'
|
|
* @property {string} REG 'REG'
|
|
* @readonly
|
|
*/
|
|
const ShareFileType = Object.freeze({
|
|
DIR: 'DIR',
|
|
REG: 'REG',
|
|
});
|
|
|
|
/**
|
|
* Enum for a status of a task
|
|
* @enum {string}
|
|
* @name TaskStatus
|
|
* @memberof module:API.cvat.enums
|
|
* @property {string} ANNOTATION 'annotation'
|
|
* @property {string} VALIDATION 'validation'
|
|
* @property {string} COMPLETED 'completed'
|
|
* @readonly
|
|
*/
|
|
const TaskStatus = Object.freeze({
|
|
ANNOTATION: 'annotation',
|
|
VALIDATION: 'validation',
|
|
COMPLETED: 'completed',
|
|
});
|
|
|
|
/**
|
|
* Enum for a mode of a task
|
|
* @enum {string}
|
|
* @name TaskMode
|
|
* @memberof module:API.cvat.enums
|
|
* @property {string} ANNOTATION 'annotation'
|
|
* @property {string} INTERPOLATION 'interpolation'
|
|
* @readonly
|
|
*/
|
|
const TaskMode = Object.freeze({
|
|
ANNOTATION: 'annotation',
|
|
INTERPOLATION: 'interpolation',
|
|
});
|
|
|
|
/**
|
|
* Enum for type of server files
|
|
* @enum {string}
|
|
* @name AttributeType
|
|
* @memberof module:API.cvat.enums
|
|
* @property {string} CHECKBOX 'checkbox'
|
|
* @property {string} SELECT 'select'
|
|
* @property {string} RADIO 'radio'
|
|
* @property {string} NUMBER 'number'
|
|
* @property {string} TEXT 'text'
|
|
* @readonly
|
|
*/
|
|
const AttributeType = Object.freeze({
|
|
CHECKBOX: 'checkbox',
|
|
RADIO: 'radio',
|
|
SELECT: 'select',
|
|
NUMBER: 'number',
|
|
TEXT: 'text',
|
|
});
|
|
|
|
/**
|
|
* Enum for type of an object
|
|
* @enum {string}
|
|
* @name ObjectType
|
|
* @memberof module:API.cvat.enums
|
|
* @property {string} TAG 'tag'
|
|
* @property {string} SHAPE 'shape'
|
|
* @property {string} TRACK 'track'
|
|
* @readonly
|
|
*/
|
|
const ObjectType = Object.freeze({
|
|
TAG: 'tag',
|
|
SHAPE: 'shape',
|
|
TRACK: 'track',
|
|
});
|
|
|
|
/**
|
|
* Enum for type of server files
|
|
* @enum {string}
|
|
* @name ObjectShape
|
|
* @memberof module:API.cvat.enums
|
|
* @property {string} RECTANGLE 'rectangle'
|
|
* @property {string} POLYGON 'polygon'
|
|
* @property {string} POLYLINE 'polyline'
|
|
* @property {string} POINTS 'points'
|
|
* @readonly
|
|
*/
|
|
const ObjectShape = Object.freeze({
|
|
RECTANGLE: 'rectangle',
|
|
POLYGON: 'polygon',
|
|
POLYLINE: 'polyline',
|
|
POINTS: 'points',
|
|
});
|
|
|
|
/**
|
|
* Enum for type of server files
|
|
* @enum {number}
|
|
* @name LogType
|
|
* @memberof module:API.cvat.enums
|
|
* @property {number} pasteObject 0
|
|
* @property {number} changeAttribute 1
|
|
* @property {number} dragObject 2
|
|
* @property {number} deleteObject 3
|
|
* @property {number} pressShortcut 4
|
|
* @property {number} resizeObject 5
|
|
* @property {number} sendLogs 6
|
|
* @property {number} saveJob 7
|
|
* @property {number} jumpFrame 8
|
|
* @property {number} drawObject 9
|
|
* @property {number} changeLabel 10
|
|
* @property {number} sendTaskInfo 11
|
|
* @property {number} loadJob 12
|
|
* @property {number} moveImage 13
|
|
* @property {number} zoomImage 14
|
|
* @property {number} lockObject 15
|
|
* @property {number} mergeObjects 16
|
|
* @property {number} copyObject 17
|
|
* @property {number} propagateObject 18
|
|
* @property {number} undoAction 19
|
|
* @property {number} redoAction 20
|
|
* @property {number} sendUserActivity 21
|
|
* @property {number} sendException 22
|
|
* @property {number} changeFrame 23
|
|
* @property {number} debugInfo 24
|
|
* @property {number} fitImage 25
|
|
* @property {number} rotateImage 26
|
|
* @readonly
|
|
*/
|
|
const LogType = {
|
|
pasteObject: 0,
|
|
changeAttribute: 1,
|
|
dragObject: 2,
|
|
deleteObject: 3,
|
|
pressShortcut: 4,
|
|
resizeObject: 5,
|
|
sendLogs: 6,
|
|
saveJob: 7,
|
|
jumpFrame: 8,
|
|
drawObject: 9,
|
|
changeLabel: 10,
|
|
sendTaskInfo: 11,
|
|
loadJob: 12,
|
|
moveImage: 13,
|
|
zoomImage: 14,
|
|
lockObject: 15,
|
|
mergeObjects: 16,
|
|
copyObject: 17,
|
|
propagateObject: 18,
|
|
undoAction: 19,
|
|
redoAction: 20,
|
|
sendUserActivity: 21,
|
|
sendException: 22,
|
|
changeFrame: 23,
|
|
debugInfo: 24,
|
|
fitImage: 25,
|
|
rotateImage: 26,
|
|
};
|
|
|
|
/**
|
|
* Enum for type of server files
|
|
* @enum {number}
|
|
* @name EventType
|
|
* @memberof module:API.cvat.enums
|
|
* @property {number} frameDownloaded 0
|
|
* @readonly
|
|
*/
|
|
const EventType = Object.freeze({
|
|
frameDownloaded: 0,
|
|
});
|
|
|
|
module.exports = {
|
|
ShareFileType,
|
|
TaskStatus,
|
|
TaskMode,
|
|
AttributeType,
|
|
ObjectType,
|
|
ObjectShape,
|
|
LogType,
|
|
EventType,
|
|
};
|
|
})();
|