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.
41 lines
838 B
TypeScript
41 lines
838 B
TypeScript
// Copyright (C) 2020-2022 Intel Corporation
|
|
//
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
import _cvat from 'cvat-core/src/api';
|
|
import ObjectState from 'cvat-core/src/object-state';
|
|
import Webhook from 'cvat-core/src/webhook';
|
|
import {
|
|
Label, Attribute, RawAttribute, RawLabel,
|
|
} from 'cvat-core/src/labels';
|
|
import { ShapeType, LabelType } from 'cvat-core/src/enums';
|
|
import { Storage, StorageData } from 'cvat-core/src/storage';
|
|
|
|
const cvat: any = _cvat;
|
|
|
|
cvat.config.backendAPI = '/api';
|
|
cvat.config.origin = window.location.origin;
|
|
cvat.config.uploadChunkSize = 100;
|
|
(globalThis as any).cvat = cvat;
|
|
|
|
function getCore(): any {
|
|
return cvat;
|
|
}
|
|
|
|
export {
|
|
getCore,
|
|
ObjectState,
|
|
Label,
|
|
Attribute,
|
|
ShapeType,
|
|
LabelType,
|
|
Storage,
|
|
Webhook,
|
|
};
|
|
|
|
export type {
|
|
RawAttribute,
|
|
RawLabel,
|
|
StorageData,
|
|
};
|