Bin
2025-12-17 d616898802dfe7e5dd648bcf53c6d1f86b6d3642
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import type { ReactNode } from "react";
import type { MSTObjectTag, MSTTagImage, RawResult } from "../../stores/types";
 
export type LabelColors = {
  value: string;
  border: string;
  color?: string;
  background: string;
};
 
export type LabelCounts = LabelColors & {
  count: number;
};
 
export type ControlTag = {
  name: string;
  type: string;
  to_name: string;
  label_attrs: Record<string, LabelColors>;
  per_region: boolean;
};
 
export type AnnotationSummary = {
  id: string;
  type: "annotation" | "prediction";
  results: RawResult[];
  createdBy: string;
  user: any;
};
 
export type ObjectTagEntry = [string, MSTObjectTag | MSTTagImage];
export type ObjectTypes = Record<string, { type: string; value: any }>;
 
export type RendererType = (results: RawResult[], control: ControlTag) => ReactNode;