sha256
stringlengths
64
64
language
stringclasses
27 values
size
int32
1
491k
lines
int32
1
21.8k
content
stringlengths
1
200k
211d2292217fec85bf8aeb8bea7e976bf67c2619a7e18365be4be081847c8832
TypeScript
4,496
137
// Copyright (C) 2019-2022 Intel Corporation // Copyright (C) CVAT.ai Corporation // // SPDX-License-Identifier: MIT import * as SVG from 'svg.js'; import consts from './consts'; import { translateToSVG } from './shared'; import { Geometry } from './canvasModel'; export interface ZoomHandler { zoom(): void; ...
460df742fcd5575683643fb9321630b84ba3bdaefa1327432b8f65dea942e7e3
TypeScript
4,497
128
// Copyright (C) 2022 Intel Corporation // Copyright (C) CVAT.ai Corporation // // SPDX-License-Identifier: MIT import { Config } from '@react-awesome-query-builder/antd'; import asyncFetchUsers from 'components/resource-sorting-filtering/request-users'; export const config: Partial<Config> = { fields: { ...
3d0ad462a0f1ea398490a5adefeaeb4de7966d3d5d965a8227b4d82cdfdd374d
TypeScript
4,527
155
// Copyright (C) CVAT.ai Corporation // // SPDX-License-Identifier: MIT import type { SerializedInterval } from '../server-response-types'; import { HistoryActions, ObjectType } from '../enums'; import { AnnotationBase } from './annotation-common'; import { AudioIntervalState } from './audio-interval-state'; import ty...
416657ba991b6648a9d13f0999be1ad2dfa71ed72efcde1d98873b1c626ab83d
TypeScript
4,771
132
// Copyright (C) CVAT.ai Corporation // // SPDX-License-Identifier: MIT import { BoundariesActions, BoundariesActionTypes } from 'actions/boundaries-actions'; import { AuthActions, AuthActionTypes } from 'actions/auth-actions'; import { ShortcutsActions, ShortcutsActionsTypes } from 'actions/shortcuts-actions'; import...
618a7c2fa5e6aa26dcdf35a6d2027c01709fb4988efcbfac7b548abad112c13d
TypeScript
4,809
140
// Copyright (C) CVAT.ai Corporation // // SPDX-License-Identifier: MIT import { useCallback } from 'react'; import { AudioTimeRange, clampRange } from '../utils/audio-interval'; import { WaveformRegionRuntime } from './use-audio-waveform'; import { WaveformViewport } from './use-waveform-viewport'; import { useRegio...
2cd8301f6fdd06ca489ffe6237a7cb8e00fec3e7162f6d7ba30fe2c1c8b52caa
TypeScript
4,937
150
// Copyright (C) CVAT.ai Corporation // // SPDX-License-Identifier: MIT import { clamp } from 'utils/math'; export const ZOOM_MIN = 1; export const ZOOM_MAX = 300; export const MIN_WAVEFORM_PIXELS_PER_SECOND = 8; const FIT_INTERVAL_SAFE_INSET_RATIO = 0.1; const FIT_INTERVAL_MIN_SAFE_INSET_RATIO = 0.03; export const...
ed23317c2f82ad6d97e2f87af045520544cd3ecce85dc8313269fe4a2bdb0167
TypeScript
4,950
133
// Copyright (C) 2019-2022 Intel Corporation // Copyright (C) CVAT.ai Corporation // // SPDX-License-Identifier: MIT import { ShapeType } from '../enums'; import type { SerializedShape } from '../server-response-types'; import { checkNumberOfPoints } from '../object-utils'; import { Shape } from './shape'; import type...
4801502c19a11a1b12c944e4799e3bc87d2b1ea26d05678239955b3dc7c4b1b4
TypeScript
5,017
161
// Copyright (C) 2022 Intel Corporation // Copyright (C) CVAT.ai Corporation // // SPDX-License-Identifier: MIT import { clamp } from './math-utils'; interface TrackingResult { updated: boolean; points: number[]; } export interface TrackerMILInterface { name: string; init: (src: ImageData, points: nu...
250ac7e430b344cb78ca08d3c65bcf17d50cf996452edf6dc3974a0bff82cb06
TypeScript
5,044
128
// Copyright (C) 2019-2022 Intel Corporation // Copyright (C) CVAT.ai Corporation // // SPDX-License-Identifier: MIT import { DataError } from '../exceptions'; import { colors, ShapeType } from '../enums'; import type { SerializedShape, SerializedTrack } from '../server-response-types'; import { Shape } from './shape'...
5260c46d3c4bde86fb9da9c32fb21161b70ad35fb8e75fba3360e3dac31eacc9
TypeScript
5,055
205
// Copyright (C) 2019-2022 Intel Corporation // Copyright (C) CVAT.ai Corporation // // SPDX-License-Identifier: MIT import { CanvasModel, Geometry, Position, FocusData, ActiveElement, DrawData, MergeData, SplitData, GroupData, SelectData, JoinData, SliceData, Mode, ...
5d1f56cd81d1d5af761b9b782feaede7e09ac24745790ef94d7ff44c9cd49c27
TypeScript
5,108
125
// Copyright (C) CVAT.ai Corporation // // SPDX-License-Identifier: MIT import { ActionUnion, ThunkAction, createAction } from 'utils/redux'; import { CombinedState, InvitationsQuery } from 'reducers'; import { Invitation, Organization, getCore } from 'cvat-core-wrapper'; const cvat = getCore(); export enum Invitati...
c57c693ad9808d4a20dac4437884e73279bfb1dde659017c32a741dba89e0386
TypeScript
5,292
156
// Copyright (C) 2019-2022 Intel Corporation // Copyright (C) CVAT.ai Corporation // // SPDX-License-Identifier: MIT import * as SVG from 'svg.js'; import { MergeData } from './canvasModel'; export interface MergeHandler { merge(mergeData: MergeData): void; select(state: any): void; cancel(): void; re...
ae52a5cf7e4c572c32aa729aa0624bc96399e7939052ac8ecdf4365d5e61003e
TypeScript
5,331
153
// Copyright (C) CVAT.ai Corporation // // SPDX-License-Identifier: MIT import type RegionsPlugin from 'wavesurfer.js/dist/plugins/regions'; // Start scrolling when the active region boundary enters this edge zone. const AUTO_SCROLL_EDGE_ZONE = 40; const AUTO_SCROLL_MAX_STEP = 16; // Increase the auto-scroll velocity...
bd5d9c5b505cf781ab27faa0fc299a7a4380146428dbe316e1c174b8bd90cbd7
TypeScript
5,346
155
// Copyright (C) 2022 Intel Corporation // Copyright (C) CVAT.ai Corporation // // SPDX-License-Identifier: MIT import { ActionUnion, createAction, ThunkAction, ThunkDispatch, } from 'utils/redux'; import { getCore, Job } from 'cvat-core-wrapper'; import { JobsQuery } from 'reducers'; import { filterNull } from 'u...
46d21b45ee20a6c1aed680b8f4cf7d2ccd3375c0d6ae0cf0f476d33c7d6b789d
TypeScript
5,483
155
// Copyright (C) CVAT.ai Corporation // // SPDX-License-Identifier: MIT import { useCallback, useEffect, useRef, } from 'react'; import { useDispatch, useSelector } from 'react-redux'; import { createAudioIntervalAsync } from 'actions/audio-actions'; import { ActiveControl, CombinedState } from 'reducers'; import...
7bb51aa6514230df5e7a140b5f1c2f1a942df6d36de20ad58ee80b3038cbd15e
TypeScript
5,665
124
import { map } from 'rxjs/operators'; import { lastValueFrom } from 'rxjs'; import { inject, Injectable } from '@angular/core'; import { HttpClient, HttpErrorResponse, HttpHeaders } from '@angular/common/http'; import { Attribution, AttributionJson } from '@services/attributions/attribution'; import { Configuration, ...
63f7274ac8a95c844aaa73a925b66fb3867f221c5aca3f9273643be43ed24b02
TypeScript
5,754
188
// Copyright (C) 2019-2022 Intel Corporation // Copyright (C) CVAT.ai Corporation // // SPDX-License-Identifier: MIT import { camelCase, snakeCase } from 'lodash'; import { ArgumentError } from './exceptions'; import { CamelizedV2 } from './type-utils'; export function isBoolean(value): boolean { return typeof va...
34f74ee6a007be0193a4af8dff4d6162935ed92aaafb02dd88c5dc0258c7cd90
TypeScript
5,851
191
// Copyright (C) 2019-2022 Intel Corporation // Copyright (C) CVAT.ai Corporation // // SPDX-License-Identifier: MIT import { detect } from 'detect-browser'; import PluginRegistry from './plugins'; import { EventScope } from './enums'; import { ArgumentError } from './exceptions'; export interface SerializedEvent { ...
7306d96769eccc325286c472c79b88552cd6af7b5f3f4a21ab878bae5f935f69
TypeScript
5,869
195
// Copyright (C) 2022 Intel Corporation // // SPDX-License-Identifier: MIT import _ from 'lodash'; import { AnyAction } from 'redux'; import { JobsActionTypes } from 'actions/jobs-actions'; import { SelectionActionsTypes } from 'actions/selection-actions'; import { JobsState, SelectedResourceType } from '.'; const de...
04bad5aa0a5b356ea9e85a1392adac6fe851ec860b86420e7b4c4a411c06c62a
TypeScript
5,947
180
// Copyright (C) 2020-2022 Intel Corporation // Copyright (C) CVAT.ai Corporation // // SPDX-License-Identifier: MIT import CVATCore from 'cvat-core/src'; import _cvat from 'cvat-core/src/api'; import config from 'config'; import ObjectState, { SerializedData } from 'cvat-core/src/object-state'; import { AudioInterva...
a9903e11557e78554635e6e532d2f89f4efd7baf14027c21c68c04720953899d
TypeScript
5,979
196
// Copyright (C) 2021-2022 Intel Corporation // Copyright (C) CVAT.ai Corporation // // SPDX-License-Identifier: MIT import { numberArrayToPoints, type Point } from './math-utils'; export interface IntelligentScissorsParams { shape: { shapeType: 'polygon' | 'polyline'; }; canvas: { shapeTy...
85094b858678fa761a2408e9816f79c242b771ca031b431a49adda7251f44081
TypeScript
6,030
185
// Copyright (C) CVAT.ai Corporation // // SPDX-License-Identifier: MIT import { QualityRequirementMetric, QualityReportRequirementCalculationReason, QualityReportRequirementCalculationStatus, SerializedQualityReportData, } from './server-response-types'; import { fieldsToCamelCase } from '../common'; import U...
b4bb58f82ebb684ac4b267e8b8793ec4476c8e902a78b1cfdf2b07254a2288e9
TypeScript
6,040
126
import { bootstrapApplication } from '@angular/platform-browser'; import { provideRouter } from '@angular/router'; import { provideZoneChangeDetection } from '@angular/core'; import { provideHttpClient } from '@angular/common/http'; import { ClarityIcons, bubbleChartIcon, checkIcon, errorStandardIcon, ...
40d42a733511cca7a1f2ebe926e132c955d2bb3aff9fdb514d75dbdb745ef5fc
TypeScript
6,188
213
// Copyright (C) 2019-2022 Intel Corporation // Copyright (C) CVAT.ai Corporation // // SPDX-License-Identifier: MIT import { HistoryActions } from './enums'; const MAX_HISTORY_LENGTH = 32; interface ActionItem { action: HistoryActions; clientIds: number[]; frame: number | null; undo: () => void | nu...
f4c7c420cc42f809dc1c08127adfea80c9b372a2feec46fe15d246c693f21457
TypeScript
6,424
284
// Copyright (C) 2019-2022 Intel Corporation // Copyright (C) CVAT.ai Corporation // // SPDX-License-Identifier = MIT export enum ShareFileType { DIR = 'DIR', REG = 'REG', } export enum ChunkType { IMAGESET = 'imageset', VIDEO = 'video', } export enum TaskStatus { ANNOTATION = 'annotation', V...
03a9048436244260a4cffa1b66d5d634ac8ae5a62d27c5ad0ee95b54a290040c
TypeScript
6,493
198
// Copyright (C) CVAT.ai Corporation // // SPDX-License-Identifier: MIT import { useLayoutEffect, useRef } from 'react'; import TimelinePlugin, { type TimelinePluginOptions } from 'wavesurfer.js/dist/plugins/timeline'; import { formatSecondsWithPrecision } from 'audio/utils/format-audio-time'; import { MINIMAP_TIMELI...
fcb3b109f8e736ee21b6901d12ff2ae52520c36b4bec29ab19482e4448ecd7d2
TypeScript
6,527
179
// Copyright (C) CVAT.ai Corporation // // SPDX-License-Identifier: MIT import { throttle } from 'lodash'; import ObjectState from '../object-state'; import AnnotationsFilter from '../annotations-filter'; import { Job, Task } from '../session'; import { SerializedCollection, SerializedShape, SerializedTag, Se...
62b0c173a1348883114a3acea6b9c42d46982a54ef13fb926b5717f41d582668
TypeScript
6,600
227
// Copyright (C) 2019-2022 Intel Corporation // Copyright (C) CVAT.ai Corporation // // SPDX-License-Identifier: MIT import { DrawData, MergeData, SplitData, GroupData, SelectData, JoinData, SliceData, MasksEditData, InteractionData as _InteractionData, InteractionResult as _InteractionResult, Canv...
f16b031cd15f00bf04526134323b4c7c11520975762f6c9fc15a6afcdfbf9238
TypeScript
6,719
207
// Copyright (C) 2021-2022 Intel Corporation // Copyright (C) CVAT.ai Corporation // // SPDX-License-Identifier: MIT import { ImportActions, ImportActionTypes } from 'actions/import-actions'; import { RequestInstanceType } from 'actions/requests-actions'; import { ProjectOrTaskOrJob } from 'cvat-core-wrapper'; import ...
59237ae648f85e1dece4e08f3ac0dc270db6d38a738dd8ebc975f4c70696f157
TypeScript
6,787
188
// Copyright (C) CVAT.ai Corporation // // SPDX-License-Identifier: MIT import ObjectState from '../object-state'; import { ShapeType, ObjectType } from '../enums'; import config from '../config'; import { ActionParameterType, ActionParameters } from './base-action'; import { BaseShapesAction, ShapesActionInput, Shap...
7fbe297c9584555f0bf945447d44a21fcc93e9f2ee13ebb0cfb18cd8d05b48c1
TypeScript
6,874
177
// Copyright (C) 2020-2022 Intel Corporation // Copyright (C) CVAT.ai Corporation // // SPDX-License-Identifier: MIT import { ActionUnion, createAction, ThunkAction } from 'utils/redux'; import { getCore } from 'cvat-core-wrapper'; import { NewIssueSource } from 'reducers'; const cvat = getCore(); export enum Review...
e9e4b4271fb19f932c1a4cc900b14d9bd1fec1921e369b54332727aa28ae718f
TypeScript
6,900
207
// Copyright (C) 2020-2022 Intel Corporation // Copyright (C) CVAT.ai Corporation // // SPDX-License-Identifier: MIT import config from 'config'; import { AnnotationActionTypes } from 'actions/annotation-actions'; import { ReviewActionTypes } from 'actions/review-actions'; import { AuthActionTypes } from 'actions/auth...
06b5e6c4c30e257c58cce866e1ead35cc07daaec72fbef58c8a1bf18fc688512
TypeScript
6,938
166
// Copyright (C) CVAT.ai Corporation // // SPDX-License-Identifier: MIT import { useEffect, useLayoutEffect } from 'react'; import { clamp } from 'utils/math'; import type { WaveSurferRuntime } from './use-audio-waveform'; import type { WaveformViewport } from './use-waveform-viewport'; const MINIMAP_SCROLLBAR_CLAS...
da66f0316842200bc6aea29379b5f94d95e1d178d25e1ecd0acafbb0020c1496
TypeScript
6,972
224
// Copyright (C) 2020-2022 Intel Corporation // Copyright (C) CVAT.ai Corporation // // SPDX-License-Identifier: MIT import { BoundariesActions, BoundariesActionTypes } from 'actions/boundaries-actions'; import { AuthActions, AuthActionTypes } from 'actions/auth-actions'; import { AuthState } from '.'; const defaultS...
86c9deabe8d8d5a108e8103f12417be54a15009e993c348c012eb91eef2bf34a
TypeScript
7,471
198
// Copyright (C) 2019-2022 Intel Corporation // Copyright (C) CVAT.ai Corporation // // SPDX-License-Identifier: MIT import serverProxy from './server-proxy'; import { ArgumentError } from './exceptions'; import MLModel from './ml-model'; import { ModelKind, RQStatus, ShapeType } from './enums'; import { SerializedCol...
051ed113488cfe8ca10d0af823ed51a7b8c06a9acd23fe708711a86d54faf63c
TypeScript
7,514
227
// Copyright (C) 2020-2022 Intel Corporation // Copyright (C) CVAT.ai Corporation // // SPDX-License-Identifier: MIT import { omit } from 'lodash'; import { BoundariesActions, BoundariesActionTypes } from 'actions/boundaries-actions'; import { ModelsActionTypes, ModelsActions } from 'actions/models-actions'; import { ...
f32d974c46ba566f4ee008cd6c90509a5dd36bda849e2f101976642c166ebf3d
TypeScript
7,541
202
// Copyright (C) 2021-2022 Intel Corporation // Copyright (C) CVAT.ai Corporation // // SPDX-License-Identifier: MIT import { ActionUnion, createAction, ThunkAction } from 'utils/redux'; import { Storage, ProjectOrTaskOrJob, Job, getCore, StorageLocation, RQStatus, } from 'cvat-core-wrapper'; import { RequestI...
31b54499db0b8f124dfa138c3c40968718de64887fecc1e7b39984be2dd0c531
TypeScript
7,550
209
// Copyright (C) CVAT.ai Corporation // // SPDX-License-Identifier: MIT import { QualityRequirement } from 'cvat-core-wrapper'; import { QUALITY_REQUIREMENT_METRICS, parseQualityTargetMetric, } from 'cvat-core/src/quality/quality-requirement-utils'; import { QualityMetric, QualityMetricAggregation, Quality...
bde4e066a0bc7c20d4d3f032ed476988e37c2430f3e9a7acf5b63a3d52816325
TypeScript
7,648
205
// Copyright (C) CVAT.ai Corporation // // SPDX-License-Identifier: MIT import { throttle, range } from 'lodash'; import ObjectState from '../object-state'; import AnnotationsFilter from '../annotations-filter'; import { Job, Task } from '../session'; import { SerializedCollection, SerializedShape } from '../server-r...
c55e23567036acf4fe9aae2097de1ab8702ac3bcd8f2fd571f86aa2fdb40b4fe
TypeScript
7,807
238
// Copyright (C) 2021-2022 Intel Corporation // Copyright (C) CVAT.ai Corporation // // SPDX-License-Identifier: MIT import { SerializedLabel, SerializedAttribute, getCore, LabelType, } from 'cvat-core-wrapper'; export interface SkeletonConfiguration { type: 'skeleton'; svg: string; sublabels: Seriali...
4ca6c844dfcba173b64d4e30d9f0f308a8d2a9a14d4a310bfd80b0ab77b1298e
TypeScript
7,901
201
// Copyright (C) CVAT.ai Corporation // // SPDX-License-Identifier: MIT import { KeyMap } from 'utils/mousetrap-react'; import { Attribute, ObjectState, ObjectType, ShapeType, } from 'cvat-core-wrapper'; type MultiSelectModifier = 'shift' | 'ctrl' | 'alt' | 'meta'; type ModifierEvent = Pick<MouseEvent, 'shiftKey'...
19f9bd5cb5811818a58dddf80504ba7d6371978b8dd84a80a99b4674fa4cff9d
TypeScript
7,954
193
// Copyright (C) 2019-2022 Intel Corporation // Copyright (C) CVAT.ai Corporation // // SPDX-License-Identifier: MIT import { ActionUnion, createAction, ThunkAction, ThunkDispatch, } from 'utils/redux'; import { ProjectsQuery, TasksQuery, CombinedState, } from 'reducers'; import { getTasksAsync } from 'actions...
ff4b27c84f02726082fc1757778fee606ecb382a63dec70524ebdf12de272222
TypeScript
8,008
250
// Copyright (C) CVAT.ai Corporation // // SPDX-License-Identifier: MIT import PluginRegistry from '../plugins'; import serverProxy from '../server-proxy'; import { fieldsToCamelCase, fieldsToSnakeCase } from '../common'; import { CamelizedV2 } from '../type-utils'; import { SerializedEffectiveQualityRequirementDa...
333cdb7bd3aad8196a2ea2697c5bae1df1b6e1cc494f5db27c2bf721526771c1
TypeScript
8,064
258
// Copyright (C) 2020-2022 Intel Corporation // Copyright (C) CVAT.ai Corporation // // SPDX-License-Identifier: MIT import { AnyAction } from 'redux'; import { BoundariesActionTypes } from 'actions/boundaries-actions'; import { TasksActionTypes } from 'actions/tasks-actions'; import { AuthActionTypes } from 'actions/...
f014c634382cf82e60b3bb8304a96e8231361d73021edad419b1559a6796a757
TypeScript
8,156
245
// Copyright (C) 2020-2022 Intel Corporation // Copyright (C) CVAT.ai Corporation // // SPDX-License-Identifier: MIT import quickhull from 'quickhull'; import PluginRegistry from './plugins'; import Comment, { RawCommentData } from './comment'; import User from './user'; import { ArgumentError } from './exceptions'; ...
d10dd2c645979657eab40631c6e7b527927911ef08a5fb9487a0856ba34e0e91
TypeScript
8,346
191
// Copyright (C) 2021-2022 Intel Corporation // Copyright (C) CVAT.ai Corporation // // SPDX-License-Identifier: MIT import serverProxy from './server-proxy'; import { resolvePreviewResponse } from './frames'; import ProjectClass from './project'; import { exportDataset, importDataset } from './annotations'; import { ...
e055b93bafaeb8258b4c2477a63c8a49681d2aa934bbeec7c31a9a62bc309a23
TypeScript
8,566
293
// Copyright (C) 2020-2022 Intel Corporation // Copyright (C) CVAT.ai Corporation // // SPDX-License-Identifier: MIT import { PluginsActionTypes, PluginActions } from 'actions/plugins-actions'; import { PluginComponent, PluginsState } from '.'; const defaultState: PluginsState = { fetching: false, initialized...
bbe6d1ee2f21b785020f39dd4bfafd13a62b2fbb9ddcdf5dea23257e644465f9
TypeScript
8,658
281
// Copyright (C) CVAT.ai Corporation // // SPDX-License-Identifier: MIT import { type Label } from '../labels'; import { colors, Source, HistoryActions, } from '../enums'; import { validateAttributeValue } from '../object-utils'; import { AnnotationContext } from './annotation-context'; import type { AnnotationInj...
50664bfd066b7808fa5406750609650c10f03fa100bcacb55eaeeb7b65d94420
TypeScript
8,794
281
// Copyright (C) 2020-2022 Intel Corporation // Copyright (C) CVAT.ai Corporation // // SPDX-License-Identifier: MIT import { AnyAction } from 'redux'; import { omit } from 'lodash'; import { ProjectsActionTypes } from 'actions/projects-actions'; import { BoundariesActionTypes } from 'actions/boundaries-actions'; imp...
5a020ad079a436fb38da7c3ac2ec593274ec1a270514318aea1454a2281deac3
TypeScript
9,012
298
// Copyright (C) CVAT.ai Corporation // // SPDX-License-Identifier: MIT import { ObjectType } from '../enums'; import type { SerializedUser } from '../server-response-types'; export enum QualityRequirementAnnotationType { TAG = 'tag', RECTANGLE = 'rectangle', SKELETON = 'skeleton', SKELETON_KEYPOINT =...
dddddb572990946e2854c63a5499e4aa1a6b4829286e4184d8c8230d00b3f86d
TypeScript
9,026
219
// Copyright (C) 2021-2022 Intel Corporation // Copyright (C) CVAT.ai Corporation // // SPDX-License-Identifier: MIT import { createAction, ActionUnion, ThunkAction } from 'utils/redux'; import { getCore, Storage, Job, Task, Project, ProjectOrTaskOrJob, } from 'cvat-core-wrapper'; import { getProjectsAsync } from ...
2fdf7954b96e7f5eac6170234118f0e121c6c22f4d54563ecf2a7407af5549e7
TypeScript
9,036
242
// Copyright (C) 2020-2022 Intel Corporation // Copyright (C) CVAT.ai Corporation // // SPDX-License-Identifier: MIT import { ActionUnion, createAction, ThunkAction } from 'utils/redux'; import { ActiveInference, ModelsQuery, } from 'reducers'; import { getCore, MLModel, RQStatus, } from 'cvat-core-wrapper'; ...
c486462d24f6ec2bc3a7500b3dec8009a813a9994cd733064040bfabba489964
TypeScript
9,096
233
// Copyright (C) CVAT.ai Corporation // // SPDX-License-Identifier: MIT import createElement from 'wavesurfer.js/dist/dom'; import TimelinePlugin, { type TimelinePluginOptions } from 'wavesurfer.js/dist/plugins/timeline'; const VISIBLE_RANGE_OVERSCAN_VIEWPORTS = 1; interface TimelinePluginInternals { timelineWra...
59e3e306d4cae4dcc1be1eb61cfd3944b54c83c14e852ec8ec2846c81b9cc449
TypeScript
9,124
237
// Copyright (C) CVAT.ai Corporation // // SPDX-License-Identifier: MIT import serverProxy from './server-proxy'; import { RQStatus } from './enums'; import { Request } from './request'; import { RequestError } from './exceptions'; import { PaginatedResource } from './core-types'; import config from './config'; const...
f8a561e75d1fa24922798028b40c20fb3bd44d33bbcf66b9fe091f402615a2f7
TypeScript
9,141
263
// Copyright (C) 2020-2022 Intel Corporation // Copyright (C) CVAT.ai Corporation // // SPDX-License-Identifier: MIT import { ObjectState, ShapeType, getCore } from 'cvat-core-wrapper'; import config from 'config'; import TrackerMILAction from './annotations-actions/tracker-mil'; const core = getCore(); type OpenCVI...
f33794d53fd4b7e7734a76badf1bf0b1ed1dd4394affaf2b3be00a6a913c07f5
TypeScript
9,227
282
// Copyright (C) 2021-2022 Intel Corporation // Copyright (C) CVAT.ai Corporation // // SPDX-License-Identifier: MIT import { AuthActionTypes } from 'actions/auth-actions'; import { OrganizationActionsTypes } from 'actions/organization-actions'; import { SelectionActionsTypes } from 'actions/selection-actions'; import...
212d4e3f6cfbff764ab85e2a60e14c6d9c54a8650dad4325d10d33b32bddb675
TypeScript
9,635
207
// Copyright (C) CVAT.ai Corporation // // SPDX-License-Identifier: MIT import { useLayoutEffect, useState } from 'react'; import { useSelector } from 'react-redux'; import type { Region } from 'wavesurfer.js/dist/plugins/regions'; import { ActiveControl, CombinedState } from 'reducers'; import { shallowEqual } from ...
6f4f66cbedc2b990ddaaa98f3bcd811af13739d2728bb131e272dfa7645ad617
TypeScript
9,714
256
// Copyright (C) CVAT.ai Corporation // // SPDX-License-Identifier: MIT import { isEqual, cloneDeep } from 'lodash'; import { registerComponentShortcuts } from 'actions/shortcuts-actions'; import { KeyMap, KeyMapItem } from './mousetrap-react'; import { ShortcutScope } from './enums'; interface FlatKeyMapItem { s...
66152df41be72338bfa235aa5b275f83f9b8b77620b4ffd97b3750750b715317
TypeScript
9,732
250
// Copyright (C) CVAT.ai Corporation // // SPDX-License-Identifier: MIT import { useEffect, useRef } from 'react'; import { useDispatch, useSelector } from 'react-redux'; import type { Region } from 'wavesurfer.js/dist/plugins/regions'; import { audioActions, requestPlayAudioIntervalOnce, } from 'actions/audi...
a82d4647925c44b7b743827b1c43f303b6eda2f15d576b8f7e6dda0eb7309c06
TypeScript
9,821
315
// Copyright (C) 2019-2022 Intel Corporation // Copyright (C) CVAT.ai Corporation // // SPDX-License-Identifier: MIT import DOMPurify from 'dompurify'; import _ from 'lodash'; import { AttrInputType, SerializedAttribute, SerializedLabel, } from './server-response-types'; import { ShapeType, AttributeType, LabelTyp...
056ace7fc50c32584e886005fdcd13d4b160ea63112436ed5901f3c6e6f98c6f
TypeScript
9,903
283
// Copyright (C) 2019-2022 Intel Corporation // Copyright (C) CVAT.ai Corporation // // SPDX-License-Identifier: MIT import PluginRegistry from './plugins'; import serverProxy from './server-proxy'; import makeEvent, { Event, JSONEventPayload } from './event'; import { EventScope } from './enums'; import { ArgumentErr...
3b3e2f5a3baa38aef4338e6852e0251d7464f07cc3c99eec3343d763a918f9d8
TypeScript
9,969
321
// Copyright (C) 2019-2022 Intel Corporation // Copyright (C) CVAT.ai Corporation // // SPDX-License-Identifier: MIT import { omit } from 'lodash'; import ObjectState, { type SerializedData } from '../object-state'; import { ScriptingError } from '../exceptions'; import { ObjectType, HistoryActions } from '../enums'; ...
e0bdce1d8e32dd6d382312fa98296bd8f5ae3409bf8c73764db57d2be7228dd9
TypeScript
10,078
270
// Copyright (C) CVAT.ai Corporation // // SPDX-License-Identifier: MIT import IntelligentScissorsImplementation, { type IntelligentScissorsInterface, } from './intelligent-scissors'; import HistogramEqualizationImplementation from './histogram-equalization'; import TrackerMILImplementation, { type TrackerMILI...
a87eaafc49e432fd71c904ed63184dc40d183acb8a53f8cb2855312311295d0e
TypeScript
10,097
287
// Copyright (C) CVAT.ai Corporation // // SPDX-License-Identifier: MIT import { AnalyticsEventsFilter, QualityConflictsFilter, QualityReportsFilter, QualitySettingsFilter, QualityRequirementsFilter, ConsensusSettingsFilter, ApiTokensFilter, } from './server-request-types'; import PluginRegistry from './plugin...
82c1e7562e1d26f5132d90abde1eb7fcfa4ca3f30f131e4b03027f88322b5f9d
TypeScript
10,109
325
// Copyright (C) 2021-2022 Intel Corporation // Copyright (C) CVAT.ai Corporation // // SPDX-License-Identifier: MIT import _ from 'lodash'; import { useRef, useEffect, useState, useCallback, useLayoutEffect, EffectCallback, DependencyList, } from 'react'; import { useSelector } from 'react-redux'; import { us...
1a74ad97c94e94b469db4036239ecfa383d021fed90678ebcb7c1b72220c0b8a
TypeScript
10,208
221
// Copyright (C) 2021-2022 Intel Corporation // Copyright (C) CVAT.ai Corporation // // SPDX-License-Identifier: MIT import { ActionUnion, createAction, ThunkAction, ThunkDispatch, } from 'utils/redux'; import { getCore, Project, Task, CloudStorage, } from 'cvat-core-wrapper'; import { CloudStoragesQuery } fro...
0e755c40ec4d30ae720eae9c50d41fc63cdf1cd9c241edce67392053249a2cc7
TypeScript
10,824
299
// Copyright (C) 2019-2022 Intel Corporation // Copyright (C) CVAT.ai Corporation // // SPDX-License-Identifier: MIT import { Storage } from './storage'; import serverProxy from './server-proxy'; import AnnotationsCollection from './annotations-collection'; import AnnotationsSaver from './annotations-saver'; import An...
0ab5cad61933691477eceafc3d0c53cc54578ea4fd720882cb6f2bef726648f5
TypeScript
10,886
302
// Copyright (C) CVAT.ai Corporation // // SPDX-License-Identifier: MIT import { useEffect, useRef, useState, } from 'react'; import { useDispatch } from 'react-redux'; import WaveSurfer from 'wavesurfer.js'; import type { GenericPlugin } from 'wavesurfer.js/dist/base-plugin'; import TimelinePlugin from 'wavesurfe...
306a04955b24809ea4411da331beebb0fe8a0b800d8dfd6e7a7426194ca1a23c
TypeScript
10,928
278
// Copyright (C) 2019-2022 Intel Corporation // Copyright (C) CVAT.ai Corporation // // SPDX-License-Identifier: MIT import config from '../config'; import type ObjectState from '../object-state'; import { ArgumentError } from '../exceptions'; import { ShapeType, HistoryActions } from '../enums'; import type { Seriali...
1f61974701bda6d02924b9035c4af13ac502072e6bf686615e8d87414c4d2c3f
TypeScript
11,064
290
// Copyright (C) 2019-2022 Intel Corporation // Copyright (C) CVAT.ai Corporation // // SPDX-License-Identifier: MIT import { DimensionType, ProjectStatus, StorageLocation } from './enums'; import { Storage } from './storage'; import { SerializedLabel, SerializedProject } from './server-response-types'; import PluginR...
125f7276b1eb5f38379e221b037baf5329c9f24ae55b48ed24f09efbf3d7ab9f
TypeScript
11,115
314
// Copyright (C) CVAT.ai Corporation // // SPDX-License-Identifier: MIT import consts from './consts'; import { Geometry } from './canvasModel'; import { intersection } from './cuboid'; import { Box, Point, clamp, } from './shared'; export interface FinalCoordinates { points: number[]; box: Box; } export...
5be4ddbdbc96525c213b3196f3928ac943b657bd5c863925e01e1a15a047c785
TypeScript
11,118
470
// Copyright (C) CVAT.ai Corporation // // SPDX-License-Identifier: MIT import { ChunkType, DimensionType, JobStage, JobState, JobType, MediaType, ProjectStatus, ShapeType, StorageLocation, LabelType, ShareFileType, Source, TaskMode, TaskStatus, CloudStorageCredentialsType, CloudStorageProviderType...
b2df01ee2af6c3bcb7ffc49a4c672724b23e813706a2080ecabccb5a743024ef
TypeScript
11,130
312
// Copyright (C) 2019-2022 Intel Corporation // Copyright (C) CVAT.ai Corporation // // SPDX-License-Identifier: MIT import ObjectState, { type SerializedData } from '../object-state'; import { ScriptingError } from '../exceptions'; import type { Label } from '../labels'; import { ShapeType, ObjectType, HistoryAct...
5890d7c42f55cbd68ad9a15142d931973e9e1e2275af6a75fdc6e71c1b4609ca
TypeScript
11,330
289
// Copyright (C) 2019-2022 Intel Corporation // Copyright (C) CVAT.ai Corporation // // SPDX-License-Identifier: MIT import type { SerializedTrack } from '../server-response-types'; import { Track } from './track'; import type { AnnotationInjection, InterpolatedPosition, Point2D } from './types'; export class PolyTra...
63b4661f6febbb2d770c347e813e3f78b7a68369f659fe120a43afc556c6394c
TypeScript
11,383
291
// Copyright (C) CVAT.ai Corporation // // SPDX-License-Identifier: MIT import { useCallback, useEffect, useRef, } from 'react'; import { useDispatch, useSelector } from 'react-redux'; import { audioActions } from 'actions/audio-actions'; import { CombinedState } from 'reducers'; import { shallowEqual, ThunkDispa...
9e96ae49ca704404c71491a8b479225ac4d4965f738bdcffb22cc0a48e7cfaa5
TypeScript
11,638
359
// Copyright (C) CVAT.ai Corporation // // SPDX-License-Identifier: MIT import PluginRegistry from './plugins'; import User from './user'; import serverProxy from './server-proxy'; import { WebhookSourceType, WebhookContentType } from './enums'; import { isEnum } from './common'; import { ArgumentError } from './excep...
2765ef9097677b335f9e91585a76a49e9a7c6b962010ec62040e33a5b53f8845
TypeScript
11,936
353
// Copyright (C) CVAT.ai Corporation // // SPDX-License-Identifier: MIT /* eslint-disable no-restricted-globals */ const MAX_RETRIES = 10; const BASE_RETRY_DELAY_MS = 1000; const MAX_RETRY_DELAY_MS = 60000; const MIN_CHUNK_SIZE_FOR_TELEMETRY_BYTES = 2 * 1024 * 1024; class DownloadError extends Error { public cod...
786769f1417ecb601d7dceb0527c40703310820b29304ea4c0f9ccc8c01a874e
TypeScript
11,941
310
// Copyright (C) 2020-2022 Intel Corporation // Copyright (C) CVAT.ai Corporation // // SPDX-License-Identifier: MIT import { ActionUnion, createAction, ThunkAction } from 'utils/redux'; import { RegisterData } from 'components/register-page/register-form'; import { ensureError } from 'utils/error-handling'; import { ...
bc91b4fed4d16e014a68cba44fdd26165c67873bb63ab3795d8d9658b9da9a9a
TypeScript
12,007
308
// Copyright (C) CVAT.ai Corporation // // SPDX-License-Identifier: MIT import { range, cloneDeep } from 'lodash'; import { Job, Task, ActionParameterType, BaseCollectionAction, ObjectType, ObjectState, Source, ShapeType, } from 'cvat-core-wrapper'; type Collection = Parameters<BaseCollectionAction['run']>[0...
57067ad0da7d3ebb489d42916252409e4b8b5c89f1b27ff28a1251fa2f3c6cae
TypeScript
12,353
400
// Copyright (C) 2019-2022 Intel Corporation // Copyright (C) CVAT.ai Corporation // // SPDX-License-Identifier: MIT import { AnyAction } from 'redux'; import { TasksQuery } from 'reducers'; import { getCore, RQStatus, Storage, StorageLocation, Task, UpdateStatusData, Request, FramesMetaData, } from 'cvat-core-wra...
2ae363054a1bf1703daf8863ec3cf6b86ca1ae16e002d966340c69696901b4de
TypeScript
12,509
363
// Copyright (C) CVAT.ai Corporation // // SPDX-License-Identifier: MIT import PluginRegistry from '../plugins'; import { ArgumentError } from '../exceptions'; import { Label } from '../labels'; import { ObjectType, Source } from '../enums'; import type { SerializedInterval } from '../server-response-types'; import ty...
2deb9db32467c8c922608feb594450af59a5bf36a61d2ed5d9da1e80e047eeeb
TypeScript
12,799
337
// Copyright (C) 2021-2022 Intel Corporation // Copyright (C) CVAT.ai Corporation // // SPDX-License-Identifier: MIT import * as THREE from 'three'; import { OrientationVisibility, ViewType } from './canvas3dModel'; import constants from './consts'; import getCircleTexture from './controlPointTexture'; import { dispos...
553a9e134309f32d015e203ebbeeeb9b2a5b1de4d30901a208cde22dcb03d4ac
TypeScript
12,809
405
// Copyright (C) 2021-2022 Intel Corporation // Copyright (C) CVAT.ai Corporation // // SPDX-License-Identifier: MIT import { CloudStorageActions, CloudStorageActionTypes } from 'actions/cloud-storage-actions'; import { AuthActions, AuthActionTypes } from 'actions/auth-actions'; import { SelectionActionsTypes, Selecti...
c6b9b395ed23daaa99ed429dda351903145049b2de441161ad11245e8003e3af
TypeScript
12,902
338
// Copyright (C) 2026 CVAT.ai Corporation // // SPDX-License-Identifier: MIT import { RotatedShapeFitter } from './canvasModel'; export interface RotatedShapeFit { center: { x: number; y: number }; size: { width: number; height: number }; angle: number; topEdge?: RotatedShapeTopEdge; } export interfa...
71c7320fcbcc0cf735f9fa5bf7a8413b7e91500fa9459fd3f72e23f7a76fea8b
TypeScript
13,656
404
// Copyright (C) CVAT.ai Corporation // // SPDX-License-Identifier: MIT import { DataError, ArgumentError } from './exceptions'; import { Attribute } from './labels'; import { ShapeType, AttributeType, ObjectType } from './enums'; import { SerializedShape } from './server-response-types'; import ObjectState, { Seriali...
73cee3419bd862ee0a832f7511a096d48b920dba33f546e84a0f5f14e4e0e0af
TypeScript
14,017
464
// Copyright (C) 2021-2022 Intel Corporation // Copyright (C) CVAT.ai Corporation // // SPDX-License-Identifier: MIT import { ObjectState } from '.'; import { MasterImpl } from './master'; import consts from './consts'; export interface Size { width: number; height: number; } export interface ActiveElement {...
a85638d7d4d543a6c0241fcf2829b92879d352ff2ffc16ca57f6b02585cc57af
TypeScript
14,209
484
// Copyright (C) 2021-2022 Intel Corporation // // SPDX-License-Identifier: MIT import consts from './consts'; import { Point } from './shared'; export enum Orientation { LEFT = 'left', RIGHT = 'right', } export function intersection(p1: Point, p2: Point, p3: Point, p4: Point): Point | null { // Check if...
4f2b43f6f6f8517b38bc873e5667f144e26ef34a3014448991ec7caf0874e4ff
TypeScript
14,506
441
// Copyright (C) CVAT.ai Corporation // // SPDX-License-Identifier: MIT import { AnnotationActionTypes } from 'actions/annotation-actions'; import { AudioActions, AudioActionTypes } from 'actions/audio-actions'; import { BoundariesActionTypes } from 'actions/boundaries-actions'; import { limitZoom } from 'audio/utils/...
d12c8172c67ba268602441ab7c5bf59fb1d2bcbd7cdb9ddac38813b0bf297aff
TypeScript
14,829
387
// Copyright (C) 2021-2022 Intel Corporation // Copyright (C) CVAT.ai Corporation // // SPDX-License-Identifier: MIT import { omit } from 'lodash'; import PluginRegistry from './plugins'; import serverProxy from './server-proxy'; import { ArgumentError } from './exceptions'; import { CloudStorageCredentialsType, Cloud...
64d7559d7ed192236f4da08ee6d75427df4c58ab612daf6976ff2e9163cef369
TypeScript
15,131
465
// Copyright (C) 2021-2022 Intel Corporation // Copyright (C) CVAT.ai Corporation // // SPDX-License-Identifier: MIT import { SerializedInvitationData, SerializedOrganization, SerializedOrganizationContact, SerializedUser, } from './server-response-types'; import { OrganizationMembersFilter } from './server-reques...
de4d0bdea81d82264e507007b4d875386bde024a15f3054a4e5c17efc40f7cdd
TypeScript
15,519
384
// Copyright (C) CVAT.ai Corporation // // SPDX-License-Identifier: MIT import * as SVG from 'svg.js'; import { RLEToImageData, imageDataToDataURL, translateToSVG } from './shared'; import { Geometry } from './canvasModel'; import consts from './consts'; export interface SelectionFilter { objectType?: string[]; ...
6e2df8f1a74f3f5fe634964aa8c3174cab93ef11db6f91bed343a57252f6524d
TypeScript
15,611
335
// Copyright (C) 2021-2022 Intel Corporation // Copyright (C) CVAT.ai Corporation // // SPDX-License-Identifier: MIT import { Store } from 'antd/lib/form/interface'; import { getCore, Membership, MembershipRole, Organization, User, } from 'cvat-core-wrapper'; import { ActionUnion, createAction, ThunkAction } from ...
b1b073a167c584a3d26a83636f5c81d5448acf571284d76ade1294b54e33b8a8
TypeScript
15,866
441
// Copyright (C) 2021-2022 Intel Corporation // Copyright (C) CVAT.ai Corporation // // SPDX-License-Identifier: MIT import { Mutex } from 'async-mutex'; import { MP4Reader, Bytestream } from './3rdparty/mp4'; export class RequestOutdatedError extends Error {} export enum BlockType { MP4VIDEO = 'mp4video', A...
13ac98ef13239a89d11ec626fe9f5674d156cc1b8a60eb347c64e509db7e5eac
TypeScript
16,037
533
// Copyright (C) 2020-2022 Intel Corporation // Copyright (C) CVAT.ai Corporation // // SPDX-License-Identifier: MIT import _ from 'lodash'; import { AnyAction } from 'redux'; import { ThunkAction } from 'utils/redux'; import { GridColor, ColorBy, SettingsState, ToolsBlockerState, CombinedState, } from 'reduce...
e54ccf5f1875a2593bb825076a13fb3f82afb7a21a3c4d90e38e6578e109f91e
TypeScript
16,399
521
// Copyright (C) 2020-2022 Intel Corporation // Copyright (C) CVAT.ai Corporation // // SPDX-License-Identifier: MIT import { AnyAction } from 'redux'; import { AuthActionTypes } from 'actions/auth-actions'; import { SettingsActionTypes } from 'actions/settings-actions'; import { AnnotationActionTypes } from 'actions...
e1fa19879665bf752ae863bf2ab4bccaa52c1561a3702555e76d9b4fdc5f9531
TypeScript
17,023
416
// Copyright (C) 2019-2022 Intel Corporation // Copyright (C) CVAT.ai Corporation // // SPDX-License-Identifier: MIT import ObjectState, { type SerializedData } from '../object-state'; import { ShapeType, ObjectType, HistoryActions, } from '../enums'; import type { SerializedTrack } from '../server-response-types'...
6266b28ef2e8442f323d7d06a1d58ce5320326eaab0c573c93b62b8833fb48e3
TypeScript
17,454
480
// Copyright (C) 2019-2022 Intel Corporation // Copyright (C) CVAT.ai Corporation // // SPDX-License-Identifier: MIT import * as SVG from 'svg.js'; import 'svg.select.js'; import consts from './consts'; import { translateFromSVG, pointsToNumberArray } from './shared'; import { PolyEditData, Geometry, Configuration } ...
7221983d1226957ad60636c9b25c1baf1688ee9bb2026f6a1ec713a8d882eb9a
TypeScript
17,568
409
// Copyright (C) CVAT.ai Corporation // // SPDX-License-Identifier: MIT import { useCallback, useEffect, useRef, useLayoutEffect, useState, } from 'react'; import message from 'antd/lib/message'; import { useDispatch, useSelector } from 'react-redux'; import { audioActions } from 'actions/audio-actions'; import {...
ba5a05eb23208a486760e7bc5f55ff4e666777930119dd65e37e07f5eed7700b
TypeScript
18,055
505
// Copyright (C) CVAT.ai Corporation // Copyright (C) 2020-2022 Intel Corporation // // SPDX-License-Identifier: MIT import * as SVG from 'svg.js'; import consts from './consts'; import { Configuration, Geometry } from './canvasModel'; import { translateToSVG } from './shared'; interface TransformedShape { point...
2951dee9cd440fbc7e48d68fd71cfa8ef3c2688ff06fc279466139be58c4df08
TypeScript
18,645
501
// Copyright (C) 2020-2022 Intel Corporation // Copyright (C) CVAT.ai Corporation // // SPDX-License-Identifier: MIT import jsonLogic from 'json-logic-js'; import { SerializedData } from './object-state'; import { AttributeType, ObjectType, ShapeType } from './enums'; import { SerializedCollection } from './server-res...